473,395 Members | 2,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

missing functions

Quite suddenly, it seems, our DB does not recognize these functions:
UPPER
LOWER
LTRIM
LEAST
LOG
The error message is:
SQL0440N No authorized routine named "LOG" of type "FUNCTION" having
compatible arguments was found. SQLSTATE=42884

There might be others, we haven't tested them all. These functions
continue to work:
MIN
MAX
SUBSTR

Running 8.2.0 on Linux.

Dec 8 '05 #1
6 4881
I should add that we had a WebSphere application connected to this
database, and it continued to perform normally, until we bounced it,
and now it fails (SQL0440N) whenver trying to invoke, for example,
LOWER.

Dec 8 '05 #2
Check that the LOG function does exist in the catalogs:

C:\>db2 select substr(funcname, 1, 5) as funcname, substr(funcschema, 1, 8) as funcschema from syscat.functions where funcname = 'LOG'

FUNCNAME FUNCSCHEMA
-------- ----------
LOG SYSFUN

1 record(s) selected.

And if it does, make sure that schema is in your CURRENT FUNCTION PATH special register:

C:\>db2 values current function path

1
--------------------------------------------------------------------------------
"SYSIBM","SYSFUN","SYSPROC","LMENARD"

1 record(s) selected.

Note that the WebSphere app could conceivably be modifying its own CURRENT FUNCTION PATH, so that what you get from a CLP connection won't necessarily reflect what the app would see.
--
--------------------
Larry Menard
"Defender of Geese and of All Things Natural"
"JasonFriedman80238" <ja***@powerpull.net> wrote in message news:11**********************@g49g2000cwa.googlegr oups.com...
I should add that we had a WebSphere application connected to this
database, and it continued to perform normally, until we bounced it,
and now it fails (SQL0440N) whenver trying to invoke, for example,
LOWER.

Dec 8 '05 #3
Also, I created a new database on this instance, and the functions are
working there normally.

Dec 8 '05 #4
Larry Menard wrote:
Check that the LOG function does exist in the catalogs:
C:\>db2 select substr(funcname, 1, 5) as funcname,
substr(funcschema, 1, 8) as funcschema from syscat.functions where
funcname = 'LOG'

FUNCNAME FUNCSCHEMA
-------- ----------
LOG SYSFUN

1 record(s) selected.
And if it does, make sure that schema is in your CURRENT FUNCTION
PATH special register:
C:\>db2 values current function path

1
--------------------------------------------------------------------------------
"SYSIBM","SYSFUN","SYSPROC","LMENARD"

1 record(s) selected.
Note that the WebSphere app could conceivably be modifying its own
CURRENT FUNCTION PATH, so that what you get from a CLP connection won't
necessarily reflect what the app would see.

Also note that really bad things can happen if teh systemclock gets
reset/turned backwards.
Check CURRENT TIMESTAMP and make sure its prior to when the database was
created (you can check the create time of a system object to compare)

Function resolution goes by TIME, PATH, privileges and signature.

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Dec 8 '05 #5
JasonFriedman80238 wrote:
Also, I created a new database on this instance, and the functions are
working there normally.

Any recent changes in fixpak levels to DB2?

Larry Edelstein
Dec 8 '05 #6
Timestamp looks normal, I'm not aware of any resets.
We recently upgraded from FixPak5 to FixPak7, but that was before we
created the database and installed the application.

Dec 8 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

99
by: David MacQuigg | last post by:
I'm not getting any feedback on the most important benefit in my proposed "Ideas for Python 3" thread - the unification of methods and functions. Perhaps it was buried among too many other less...
37
by: Kay Schluehr | last post by:
Since George Sakkis proposed a new way of doing list comprehensions http://groups-beta.google.com/group/comp.lang.python/browse_frm/thread/ac5023ad18b2835f/d3ff1b81fa70c8a7#d3ff1b81fa70c8a7 ...
18
by: tomakated | last post by:
Hi, i'm new here and I can't get my get_item_price() function to work I need it to take in 4 items int main() { double item1, item2, item3, item4, lowest=0, total; char response;
9
by: Jon Wilson | last post by:
I have a class which needs to accumulate data. The way we get this data is by calling a member function which returns float on a number of different objects of different type (they are all the...
10
by: John | last post by:
Hi all... Either I'm doing really something really stupid - or maybe there is some bug somewhere (optimizing?). In a function I have: int x1, y1, x2, y2; float dR, dX, dY; dR =...
1
by: jim4u | last post by:
Hi gurus, I have an automation add-in created using C# for Excel, in which I am exposing a number of functions. Is there any way I can add help-text the way excel does for other categories like...
0
by: jim4u | last post by:
Hi gurus, I have an automation add-in created using C# for Excel, in which I am exposing a number of functions. Is there any way I can add help-text the way excel does for other categories like...
1
by: BobPaul | last post by:
I'm following code out of a howto book and this is really bugging me. This header file was created by VStudio 6.0 when I did a "Right Click: Add Member Function" CLine is a class I wrote (per the...
4
by: keith katthy | last post by:
Anybody who can tell me the ?I'm the begginer..plz Compiling... 91.cpp c:\documents and settings\administrator\desktop\master\91.cpp(6) : error C2143: syntax error : missing ';' before '}'...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.