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. 6 4911
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.
Check that the LOG function does exist in the catalogs:
C:\>db2 select substr(funcname , 1, 5) as funcname, substr(funcsche ma, 1, 8) as funcschema from syscat.function s 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","SYSFU N","SYSPROC","L MENARD"
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"
"JasonFriedman8 0238" <ja***@powerpul l.net> wrote in message news:11******** **************@ g49g2000cwa.goo glegroups.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.
Also, I created a new database on this instance, and the functions are
working there normally.
Larry Menard wrote: Check that the LOG function does exist in the catalogs:
C:\>db2 select substr(funcname , 1, 5) as funcname, substr(funcsche ma, 1, 8) as funcschema from syscat.function s 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","SYSFU N","SYSPROC","L MENARD"
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
JasonFriedman80 238 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
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 important
changes, so in this thread I would like to focus on that issue alone.
I have edited the Proposed Syntax example below to take out the
changes unecessary to this discussion. I left in the change of
"instance variable" syntax (...
|
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
letting tuples-like objects (x,y,z=0) acting as functions on other
tuples I wonder why this would not be a good starting point of
rethinking anonymus functions?
In Georges proposition the action is
|
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;
|
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 same type for a
given instance of the class, but different types for different instances.)
#include<set>
using namespace std;
template<class T>
|
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 = (state.cam1x - x1) - (state.cam2x - x2);
dX = 0.5 * ((state.cam1x - x1) + (state.cam2x - x2));
| |
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 Financial, Statistical,
etc.
The place I want my help-text to be available is in the
Insert->Function. Here, we can select a category and function. The
corresponding help text is displayed. Now, my automation add-in is
|
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 Financial, Statistical,
etc.
The place I want my help-text to be available is in the
Insert->Function. Here, we can select a category and function. The
corresponding help text is displayed. Now, my automation add-in is
|
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 book's instructions) and Line.h in included in Day10Doc.cpp
Here is the contents of Day10Doc.h
#if !defined(AFX_DAY10DOC_H__16736853_CB29_49E7_A8ED_C912CAE666EC__INCLUDED_)
#define AFX_DAY10DOC_H__16736853_CB29_49E7_A8ED_C912CAE666EC__INCLUDED_
...
|
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 '}'
c:\documents and settings\administrator\desktop\master\91.cpp(6) : error C2143: syntax error : missing ';' before '}'
c:\documents and settings\administrator\desktop\master\91.cpp(6) : error C2143: syntax error : missing ';' before '}'
c:\documents...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |