473,396 Members | 1,872 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,396 software developers and data experts.

LOWER() and UPPER() functions not found.

Hi ... We are running v7.1 on Linux Redhat 7.2
All things were fine, until the power supply of the box fried
after 4 years of un-interrupted service (2 reboots only)
Replaced the power supply, and all (well almost) is working 100%

Problem is that all of a sudden the LOWER() and UPPER() functions
in my queries stopped working, with the following error.

ERROR INFO
------------------------------------------------------------------------------------------------------
DB2 Error Code = -440
[IBM][CLI Driver][DB2/LINUX] SQL0440N No function by the name "LOWER"
having compatible arguments was found in the function path.
SQLSTATE=42884
------------------------------------------------------------------------------------------------------
QUERY
-----------------------------------------------------------------------------------
SELECT Username FROM db2inst1.USERS
WHERE SiteID = 0 AND LOWER(UserName) = 'herman'
-----------------------------------------------------------------------------------
TABLE INFO
db2 => describe table users

Column Type Type
name schema name Length
Scale Nulls
------------------------------ --------- ------------------ --------
----- -----
SITEID SYSIBM INTEGER 4
0 No
USERNAME SYSIBM VARCHAR 30
0 No
PASSWORD SYSIBM VARCHAR 30
0 No
ACCESSRIGHTS SYSIBM VARCHAR 50
0 No
REFERNAME SYSIBM VARCHAR 50
0 Yes
REFERSITE SYSIBM INTEGER 4
0 No
SITERIGHTS SYSIBM VARCHAR 50
0 Yes
JUMPURL SYSIBM VARCHAR 100
0 Yes


db2 => SELECT DISTINCT(CURRENT PATH) FROM USERS
shows : "SYSIBM","SYSFUN","DB2INST1"

Most functions are working, but so far LOWER() and UPPER() just stopped
working for no reason.
I have been fighting this all day, and this is a live production
server,
so we have absolute pandamonium here....

If ANYONE can help, im very desperate...

Thanks

Mar 30 '06 #1
8 9461
In article <11**********************@v46g2000cwv.googlegroups .com>,
he****@appscom.co.za says...
Hi ... We are running v7.1 on Linux Redhat 7.2
All things were fine, until the power supply of the box fried
after 4 years of un-interrupted service (2 reboots only)
Replaced the power supply, and all (well almost) is working 100%

Problem is that all of a sudden the LOWER() and UPPER() functions
in my queries stopped working, with the following error.


Just a first guess but maybe running DB2UPDV7 against the database might
fix some troubles.
Did you check the db2diag.log for error messages?
Mar 30 '06 #2
I have checked db2diag....no errors
I havent got the file db2updv7 ... cant find it anywhere on the
system...

Mar 30 '06 #3
In article <11**********************@i40g2000cwc.googlegroups .com>,
he****@appscom.co.za says...
I have checked db2diag....no errors
I havent got the file db2updv7 ... cant find it anywhere on the
system...


If I do remember right it should be on the server in the misc directory.
If you don't have it on your system you are running with the oldest V7
level. You need to install later fixpacks to be a bit less outdated (FP3
to get you to 7.2, FP14 after that to get you to the latest one).

Sorry, I can't help you with the upper/lower problem.
Mar 30 '06 #4
SUCCESS !!!!!

When I replaced the power supply, the BOIS reset the date
to the year 2000, and I never picked it up.

I rebooted, set the BIOS time to now() and Bob is now my uncle...

Herman

Mar 30 '06 #5
In article <11**********************@j33g2000cwa.googlegroups .com>,
he****@appscom.co.za says...
SUCCESS !!!!!

When I replaced the power supply, the BOIS reset the date
to the year 2000, and I never picked it up.

I rebooted, set the BIOS time to now() and Bob is now my uncle...

Herman


Good news. Still I would recommend an update if you are really on V7.1
without any fixpacks.
Mar 30 '06 #6
:) hehe....
this box is very old, and is going to be retired in about 3 months.
Its been running as is for 4 years without a single problem,
so Id rather not tamper with it now ..

Mar 30 '06 #7
In article <11**********************@j33g2000cwa.googlegroups .com>,
he****@appscom.co.za says...
:) hehe....
this box is very old, and is going to be retired in about 3 months.
Its been running as is for 4 years without a single problem,
so Id rather not tamper with it now ..


Yep, then it's the best choice :)
Mar 30 '06 #8
Gert van der Kooij wrote:
In article <11**********************@j33g2000cwa.googlegroups .com>,
he****@appscom.co.za says...
:) hehe....
this box is very old, and is going to be retired in about 3 months.
Its been running as is for 4 years without a single problem,
so Id rather not tamper with it now ..


Yep, then it's the best choice :)

Just to provide some color:
Function resolution ignores functions created in the future.
For functions defined in SYSFUN (such as old versions of UPPER and
LOWER) this means the system time needs to be higher than the time the
database was created.
Apparently LOWER and UPPER were the only SYSFUN functions you used,
otherwise the problem would have been more generalized.

I recall a PMR years ago where a customer had a DPF (then EEE) system
with a major clock skew between the catalog node and other nodes.
As a result any UDF they defined could not be accessed for some minutes
after the CREATE. Magically after a few retries they appeared. :-)

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Mar 30 '06 #9

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

Similar topics

23
by: Hallvard B Furuseth | last post by:
Has someone got a Python routine or module which converts Unicode strings to lowercase (or uppercase)? What I actually need to do is to compare a number of strings in a case-insensitive manner,...
2
by: John F Dutcher | last post by:
There must be a 'fundamental' reason why 'string' functions are reported as 'not found' even though the 'import string' statement is present. If the script has user-defined functions at its...
27
by: Maximus | last post by:
Hi, I was just wondering, is it good to use return without arguments in a void function as following: void SetMapLayer() { if( !Map ) return; layer = LAYER_MAP; }
22
by: DJ | last post by:
Can someone tell me the library call that converts strings to lower case or retrns a new string that is lower case of the original, thanks im using <string> David
4
by: Marek Lewczuk | last post by:
I'm looking at "TODO list for PostgreSQL" and "Fix upper()/lower() to work for multibyte encodings" has no dash (-) -- so it won't be made in 7.5 ? Another question is about WIN32 native release...
17
by: Janice | last post by:
char* line = "abcd"; How to convert the line to upper case and print? Any option for printf to do this? Thanx
2
by: Tim Conner | last post by:
Hi, Thanks to Peter, Chris and Steven who answered my previous answer about regex to split a string. Actually, it was as easy as create a regex with the pattern "/*-+()," and most of my string...
4
by: pginfo | last post by:
Hi , I tesetd the lower/upper support and cyrillic and it looks broken. My system: pg 7.4.3 freebsd 5.2.1. I created my database with 'UNICODE'.
2
Thekid
by: Thekid | last post by:
I had made a post about making a loop using letters instead of numbers and dshimer gave me this solution: for i in range(65,70): for j in range(65,70): for k in range(65,70): ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
agi2029
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,...

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.