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

SQL OK in 8.1.0 but not in 8.2 ?

SYSTEM A) Linux RHEL3
-sh-2.05b$ uname -a
Linux Database.EGR.UH.EDU 2.4.21-20.0.1.ELsmp #1 SMP Wed Nov 24 20:34:01 EST 2004 i686 i686 i386 GNU/Linux
-sh-2.05b$ db2level
DB21085I Instance "db2inst1" uses "32" bits and DB2 code release "SQL08020" with level identifier "03010106".
Informational tokens are "DB2 v8.1.0.64", "s040812", "MI00086", and FixPak "7".
Product is installed at "/opt/IBM/db2/V8.1".

SYSTEM B) Linux, RH8
sh-2.05a$ uname -a
Linux Database1.EGR.UH.EDU 2.4.20-28.7smp #1 SMP Thu Dec 18 11:18:31 EST 2003 i686 unknown
sh-2.05a$ db2level
DB21085I Instance "db2inst2" uses "32" bits and DB2 code release "SQL08010" with level identifier "01010106".
Informational tokens are "DB2 v8.1.0.0", "s021023", "", and FixPak "0".
Product is installed at "/opt/IBM/db2/V8.1".

Same table on both systems:

sh-2.05a$ db2 describe table grades

Column Type Type
name schema name Length Scale Nulls
------------------------------ --------- ------------------ -------- ----- ------
SSN SYSIBM INTEGER 4 0 No
SEM SYSIBM INTEGER 4 0 Yes
COURSE SYSIBM VARCHAR 8 0 Yes
DEPT SYSIBM CHARACTER 4 0 Yes
SECNO SYSIBM VARCHAR 5 0 Yes
INSTR SYSIBM VARCHAR 12 0 Yes
HRS SYSIBM DECIMAL 5 1 Yes
LGRD SYSIBM VARCHAR 2 0 Yes
GRD SYSIBM DECIMAL 4 2 Yes

9 record(s) selected.

On SYSTEM A, the query

select sem,count(ssn)
from grades g
where (course='ECE 2331' or course='ELEE2331') and hrs > 0
group by sem;

produces the error

SQL0440N No authorized routine named "SUBSTR" of type "FUNCTION" having compatible arguments was found. SQLSTATE=42884

Whereas on SYSTEM B

the query is accepted and produces results.

N. Shamsundar
University of Houston
Nov 12 '05 #1
8 1987
AK
> INSTR SYSIBM VARCHAR 12 0 Yes
can't verify at home, but INSTR surely sounds like a function name, isn't it?
Nov 12 '05 #2
Ian
N. Shamsundar wrote:
-sh-2.05b$ db2level
DB21085I Instance "db2inst1" uses "32" bits and DB2 code release
"SQL08020" with level identifier "03010106".
Informational tokens are "DB2 v8.1.0.64", "s040812", "MI00086", and
FixPak "7".
Product is installed at "/opt/IBM/db2/V8.1".
On SYSTEM A, the query

select sem,count(ssn)
from grades g
where (course='ECE 2331' or course='ELEE2331') and hrs > 0
group by sem;

produces the error

SQL0440N No authorized routine named "SUBSTR" of type "FUNCTION" having
compatible arguments was found. SQLSTATE=42884


When you applied fixpack 7, did you follow all of the instructions in
the FixpackReadme.txt, including rebinding everything (there are three
binds that need to be done).

Nov 12 '05 #3
N. Shamsundar wrote:
SYSTEM A) Linux RHEL3
-sh-2.05b$ uname -a
Linux Database.EGR.UH.EDU 2.4.21-20.0.1.ELsmp #1 SMP Wed Nov 24 20:34:01
EST 2004 i686 i686 i386 GNU/Linux -sh-2.05b$ db2level
DB21085I Instance "db2inst1" uses "32" bits and DB2 code release
"SQL08020" with level identifier "03010106".
Informational tokens are "DB2 v8.1.0.64", "s040812", "MI00086", and
FixPak "7".
Product is installed at "/opt/IBM/db2/V8.1".

SYSTEM B) Linux, RH8
sh-2.05a$ uname -a
Linux Database1.EGR.UH.EDU 2.4.20-28.7smp #1 SMP Thu Dec 18 11:18:31 EST
2003 i686 unknown sh-2.05a$ db2level
DB21085I Instance "db2inst2" uses "32" bits and DB2 code release
"SQL08010" with level identifier "01010106".
Informational tokens are "DB2 v8.1.0.0", "s021023", "", and FixPak "0".
Product is installed at "/opt/IBM/db2/V8.1".

Same table on both systems:

sh-2.05a$ db2 describe table grades

Column Type Type
name schema name Length
Scale Nulls
------------------------------ --------- ------------------ --------
----- ------
SSN SYSIBM INTEGER 4
0 No
SEM SYSIBM INTEGER 4
0 Yes
COURSE SYSIBM VARCHAR 8
0 Yes
DEPT SYSIBM CHARACTER 4
0 Yes
SECNO SYSIBM VARCHAR 5
0 Yes
INSTR SYSIBM VARCHAR 12
0 Yes
HRS SYSIBM DECIMAL 5
1 Yes
LGRD SYSIBM VARCHAR 2
0 Yes
GRD SYSIBM DECIMAL 4
2 Yes

9 record(s) selected.

On SYSTEM A, the query

select sem,count(ssn)
from grades g
where (course='ECE 2331' or course='ELEE2331') and hrs > 0
group by sem;

produces the error

SQL0440N No authorized routine named "SUBSTR" of type "FUNCTION" having
compatible arguments was found. SQLSTATE=42884

Whereas on SYSTEM B

the query is accepted and produces results.

N. Shamsundar
University of Houston

Smells like query rewrite... Try this (replaced one E with an X):
select sem,count(ssn)
from grades g
where (course='ECE 2331' or course='XLEE2331') and hrs > 0
group by sem;

Also I would like to see the result of:
VALUES CURRENT PATH

Cheers
Serge
Nov 12 '05 #4
Serge Rielau wrote:
N. Shamsundar wrote:
SYSTEM A) Linux RHEL3
-sh-2.05b$ uname -a
Linux Database.EGR.UH.EDU 2.4.21-20.0.1.ELsmp #1 SMP Wed Nov 24
20:34:01 EST 2004 i686 i686 i386 GNU/Linux -sh-2.05b$ db2level
DB21085I Instance "db2inst1" uses "32" bits and DB2 code release
"SQL08020" with level identifier "03010106".
Informational tokens are "DB2 v8.1.0.64", "s040812", "MI00086", and
FixPak "7".
Product is installed at "/opt/IBM/db2/V8.1".

SYSTEM B) Linux, RH8
sh-2.05a$ uname -a
Linux Database1.EGR.UH.EDU 2.4.20-28.7smp #1 SMP Thu Dec 18 11:18:31
EST 2003 i686 unknown sh-2.05a$ db2level
DB21085I Instance "db2inst2" uses "32" bits and DB2 code release
"SQL08010" with level identifier "01010106".
Informational tokens are "DB2 v8.1.0.0", "s021023", "", and FixPak "0".
Product is installed at "/opt/IBM/db2/V8.1".

Same table on both systems:

sh-2.05a$ db2 describe table grades

Column Type Type
name schema name Length
Scale Nulls
------------------------------ --------- ------------------ --------
----- ------
SSN SYSIBM INTEGER
4 0 No
SEM SYSIBM INTEGER
4 0 Yes
COURSE SYSIBM VARCHAR
8 0 Yes
DEPT SYSIBM CHARACTER
4 0 Yes
SECNO SYSIBM VARCHAR
5 0 Yes
INSTR SYSIBM VARCHAR
12 0 Yes
HRS SYSIBM DECIMAL
5 1 Yes
LGRD SYSIBM VARCHAR
2 0 Yes
GRD SYSIBM DECIMAL
4 2 Yes

9 record(s) selected.

On SYSTEM A, the query

select sem,count(ssn)
from grades g
where (course='ECE 2331' or course='ELEE2331') and hrs > 0
group by sem;

produces the error

SQL0440N No authorized routine named "SUBSTR" of type "FUNCTION"
having compatible arguments was found. SQLSTATE=42884

Whereas on SYSTEM B

the query is accepted and produces results.

N. Shamsundar
University of Houston
Smells like query rewrite... Try this (replaced one E with an X):
select sem,count(ssn)
from grades g
where (course='ECE 2331' or course='XLEE2331') and hrs > 0
group by sem;

Also I would like to see the result of:
VALUES CURRENT PATH

Cheers
Serge

Here you are:

Changing to XLEE did not change the response:

N. Shamsundar
Database server = DB2/LINUX 8.2.0
SQL authorization ID = DB2INST1
Local database alias = EGDB

db2 => values current path

1
--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------
----------------------------------------------------------------------------------
"SYSIBM","SYSFUN","SYSPROC","DB2INST1"

1 record(s) selected.

db2 => quit
DB20000I The QUIT command completed successfully.
-sh-2.05b$ db2 -t
(c) Copyright IBM Corporation 1993,2002
Command Line Processor for DB2 SDK 8.2.0

You can issue database manager commands and SQL statements from the command
prompt. For example:
db2 => connect to sample
db2 => bind sample.bnd

For general help, type: ?.
For command help, type: ? command, where command can be
the first few keywords of a database manager command. For example:
? CATALOG DATABASE for help on the CATALOG DATABASE command
? CATALOG for help on all of the CATALOG commands.

To exit db2 interactive mode, type QUIT at the command prompt. Outside
interactive mode, all commands must be prefixed with 'db2'.
To list the current command option settings, type LIST COMMAND OPTIONS.

For more detailed help, refer to the Online Reference Manual.

db2 => select sem,count(ssn)
from graddb2 (cont.) => es g
where (coudb2 (cont.) => rse='ECE 2331' or course='ELEE2331') and hrs > 0
group by sem; db2 (cont.) =>
SQL0440N No authorized routine named "SUBSTR" of type "FUNCTION" having
compatible arguments was found. SQLSTATE=42884
db2 => select sem,count(ssn)
from gradb2 (cont.) => des g
where (cdb2 (cont.) => ourse='ECE 2331' or course='XLEE2331') and hrs > 0
group by sedb2 (cont.) => m;
SQL0440N No authorized routine named "SUBSTR" of type "FUNCTION" having
compatible arguments was found. SQLSTATE=42884


Nov 12 '05 #5
Ian wrote:
N. Shamsundar wrote:
-sh-2.05b$ db2level
DB21085I Instance "db2inst1" uses "32" bits and DB2 code release
"SQL08020" with level identifier "03010106".
Informational tokens are "DB2 v8.1.0.64", "s040812", "MI00086", and
FixPak "7".
Product is installed at "/opt/IBM/db2/V8.1".
On SYSTEM A, the query

select sem,count(ssn)
from grades g
where (course='ECE 2331' or course='ELEE2331') and hrs > 0
group by sem;

produces the error

SQL0440N No authorized routine named "SUBSTR" of type "FUNCTION"
having compatible arguments was found. SQLSTATE=42884

When you applied fixpack 7, did you follow all of the instructions in
the FixpackReadme.txt, including rebinding everything (there are three
binds that need to be done).

Thanks.

This was after a fresh install on a new server (the sysadmins did the install; they had some problems with the Java versions and had to do more than one attempt before succeeding). Should I still go in and do the rebinds?

N. Shamsundar
Nov 12 '05 #6
AK wrote:
INSTR SYSIBM VARCHAR 12 0 Yes


can't verify at home, but INSTR surely sounds like a function name, isn't it?


Thanks.

Yes, but no such function found by looking in InfoCenter, and I did not create any such function.

Just to see, I dropped and recreated the table changing "INSTR" to "TEACHER", and I still ran into the same problem.

N. Shamsundar
Nov 12 '05 #7
Ian

This was after a fresh install on a new server (the sysadmins did the
install; they had some problems with the Java versions and had to do
more than one attempt before succeeding). Should I still go in and do
the rebinds?


Well, it wouldn't hurt to follow the steps in the FixpackReadme again,
for the binds.

Nov 12 '05 #8
Can you send me a full repro script by email? I'm not able to rero with
the information given.

Cheers
Serge
Nov 12 '05 #9

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

Similar topics

3
by: William C. White | last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company doesn't installed additional software (such as cURL)...
2
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues...
3
by: James | last post by:
Hi, I have a form with 2 fields. 'A' 'B' The user completes one of the fields and the form is submitted. On the results page I want to run a query, but this will change subject to which...
0
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
1
by: Richard Galli | last post by:
I want viewers to compare state laws on a single subject. Imagine a three-column table with a drop-down box on the top. A viewer selects a state from the list, and that state's text fills the...
4
by: Albert Ahtenberg | last post by:
Hello, I have two questions. 1. When the user presses the back button and returns to a form he filled the form is reseted. How do I leave there the values he inserted? 2. When the...
1
by: inderjit S Gabrie | last post by:
Hi all Here is the scenerio ...is it possibly to do this... i am getting valid course dates output on to a web which i have designed ....all is okay so far , look at the following web url ...
2
by: Jack | last post by:
Hi All, What is the PHP equivilent of Oracle bind variables in a SQL statement, e.g. select x from y where z=:parameter Which in asp/jsp would be followed by some statements to bind a value...
3
by: Sandwick | last post by:
I am trying to change the size of a drawing so they are all 3x3. the script below is what i was trying to use to cut it in half ... I get errors. I can display the normal picture but not the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.