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

Dropping procedure - problem

WB
Hi,

I'm trying to drop procedure on DB2 UDB v.8.1 fix 4 / AIX 5.1.

SYSIBM.SYSROUTINES contains row with my procedure and points to not existing
package.

When I try to drop my procedure (drop procedure xxx.xxx) I get "SQL0100W No
row was found for FETCH, UPDATE or DELETE; or the result of a query is an
empty table".

When I try to create procedure I get "SQL0454N The signature provided in the
definition for routine xxx.xxx matches the signature of some other routine
that already exists in the schema or for the type."

Procedure and specific name are the same.
Can anyone help? Thanks Wojtek
Nov 12 '05 #1
6 9440
Looks like a bug in eth DROP PROCEDURE DDL.
Is the procedure to be dropped very simple?
Can you post it?

Cheers
Serge

--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #2
"WB" <wb*******@taran.com.pl> wrote in message news:<c5**********@nemesis.news.tpi.pl>...
When I try to drop my procedure (drop procedure xxx.xxx) I get "SQL0100W No
row was found for FETCH, UPDATE or DELETE; or the result of a query is an
empty table".

When I try to create procedure I get "SQL0454N The signature provided in the
definition for routine xxx.xxx matches the signature of some other routine
that already exists in the schema or for the type."


Unsure, I've not got an SP-compiler to hand, but think this might be
DB2's unfriendly way of telling you that you have overloaded
procedures. Just a hunch (or faint memory).
DG
Nov 12 '05 #3
Ian
WB wrote:
Hi,

I'm trying to drop procedure on DB2 UDB v.8.1 fix 4 / AIX 5.1.

SYSIBM.SYSROUTINES contains row with my procedure and points to not existing
package.

When I try to drop my procedure (drop procedure xxx.xxx) I get "SQL0100W No
row was found for FETCH, UPDATE or DELETE; or the result of a query is an
empty table".

When I try to create procedure I get "SQL0454N The signature provided in the
definition for routine xxx.xxx matches the signature of some other routine
that already exists in the schema or for the type."


Have you tried DROP SPECIFIC PROCEDURE?


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Nov 12 '05 #4
WB

Uzytkownik "Serge Rielau" <sr*****@ca.eye-be-em.com> napisal w wiadomosci
news:c5**********@hanover.torolab.ibm.com...
Looks like a bug in eth DROP PROCEDURE DDL.
Is the procedure to be dropped very simple?
Can you post it?


Hi,

Average compilation (bind) time for this procedure is 30 minutes.
In case of communication failure (or by issuing db2 force application
command) package is not created but procedure is registered in system
tables. There are some entries in db2diag.log like:

2004-04-14-00.07.20.680241 Instance:db2inst1 Node:000
PID:29432(db2agent (MPGKB)) TID:1 Appid:GA0A0A73.E80B.008703173815
PSM - SQL Procedure psm_prep_and_compile Probe:50 Database:MPGKB

DIA0001E An internal error occurred. Report the following error code :
"ZRC=0x8012006D".

PID:29432 TID:1 Node:000 Title: SQLCA
sqlcaid : SQLCA sqlcabc: 136 sqlcode: -1131 sqlerrml: 0
sqlerrmc:
sqlerrp : SQLRRRCP?
sqlerrd : (1) 0x80040003 (2) 0x00000003 (3) 0x00000000
(4) 0x00000000 (5) 0x00000000 (6) 0x00000000
sqlwarn : (1) (2) (3) (4) (5) (6)
(7) (8) (9) (10) (11)
sqlstate: 55032

2004-04-14-00.07.20.758159 Instance:db2inst1 Node:000
PID:29432(db2agent (MPGKB)) TID:1 Appid:GA0A0A73.E80B.008703173815
PSM - SQL Procedure psm_prep_and_compile Probe:0 Database:MPGKB

DIA0001E An internal error occurred. Report the following error code :
"ZRC=0x8012006D".

PID:29432 TID:1 Node:000 Title: SQL procedure prep_and_compile:
2004-04-14-00.07.20.738401 Instance:db2inst1 Node:000
PID:14782(db2fmp (29432)) TID:1 Appid:none
oper system services sqloSetFileAccessMode Probe:100

errno:
0x2FF18890 : 0x00000002 ....

PID:14782 TID:1 Node:000 Title: Path/Filename
/taransys/db2inst1/sqllib/function/routine/sqlproc/MPGKB/DB2TARAN/tmp/P33251
14.bnd

2004-04-14-00.07.21.582432 Instance:db2inst1 Node:000
PID:14782(db2fmp (29432)) TID:1 Appid:none
routine_infrastructure sqlerFmpListener Probe:350

DIA0001E An internal error occurred. Report the following error code :
"ZRC=0xFFFFFB95".

I checked a SYSIBM.SYSROUTINES table:

Select ROUTINENAME, ROUTINESCHEMA, DEFINER, SPECIFICNAME, ROUTINE_ID,
RETURN_TYPE, IMPLEMENTATION from SYSIBM.SYSROUTINES WHERE ROUTINENAME =
'M_DEL_POZ_OBROTY'

and I got:

ROUTINENAME
ROUTINESCHEMA
DEFINER
SPECIFICNAME
ROUTINE_ID
RETURN_TYPE
IMPLEMENTATION
-----------------------------
M_DEL_POZ_OBROTY
DB2TARAN
DBTARAN1
M_DEL_POZ_OBROTY
66706
-2
P3325114!pgsjmp

And when i checked sysibm.packages for P3325114 I got no rows.
There are no files in sqllib/function/routine/sqlproc/MPGKB/DB2TARAN with
similar name.
The procedure is complicated. It contains many select statements and calls
to other procedures.

Any ideas?

Wojtek
Nov 12 '05 #5
Interesting indeed....
My first gues was that your procedure is pathological in the sense of
not creating a package (because it is so simple).
Obviously that isn't the case.
Digging deeper I learned that a similar PMR is currently being
investigated. Your info sheds some more light on this puppy.
I've two requests:
1. Run a small experiment (I have a suspicion :-):
a) Make sure you run with autocommit OFF (db2 +c)
b) do some DDL or DML (e.g. create table)
c) Create the procedure
d) Force the app while creating the procedure
Is the change done in b) still around?
2. Contact support, get a PMR opened.

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #6
0x8012006D -2146303891 SQLR_CA_BUILT -902 SQLCA has already been built

PM

"WB" <wb*******@taran.com.pl> a écrit dans le message de
news:c5**********@nemesis.news.tpi.pl...

Uzytkownik "Serge Rielau" <sr*****@ca.eye-be-em.com> napisal w wiadomosci
news:c5**********@hanover.torolab.ibm.com...
Looks like a bug in eth DROP PROCEDURE DDL.
Is the procedure to be dropped very simple?
Can you post it?

Hi,

Average compilation (bind) time for this procedure is 30 minutes.
In case of communication failure (or by issuing db2 force application
command) package is not created but procedure is registered in system
tables. There are some entries in db2diag.log like:

2004-04-14-00.07.20.680241 Instance:db2inst1 Node:000
PID:29432(db2agent (MPGKB)) TID:1 Appid:GA0A0A73.E80B.008703173815
PSM - SQL Procedure psm_prep_and_compile Probe:50 Database:MPGKB

DIA0001E An internal error occurred. Report the following error code :
"ZRC=0x8012006D".

PID:29432 TID:1 Node:000 Title: SQLCA
sqlcaid : SQLCA sqlcabc: 136 sqlcode: -1131 sqlerrml: 0
sqlerrmc:
sqlerrp : SQLRRRCP?
sqlerrd : (1) 0x80040003 (2) 0x00000003 (3) 0x00000000
(4) 0x00000000 (5) 0x00000000 (6) 0x00000000
sqlwarn : (1) (2) (3) (4) (5) (6)
(7) (8) (9) (10) (11)
sqlstate: 55032

2004-04-14-00.07.20.758159 Instance:db2inst1 Node:000
PID:29432(db2agent (MPGKB)) TID:1 Appid:GA0A0A73.E80B.008703173815
PSM - SQL Procedure psm_prep_and_compile Probe:0 Database:MPGKB

DIA0001E An internal error occurred. Report the following error code :
"ZRC=0x8012006D".

PID:29432 TID:1 Node:000 Title: SQL procedure prep_and_compile:
2004-04-14-00.07.20.738401 Instance:db2inst1 Node:000
PID:14782(db2fmp (29432)) TID:1 Appid:none
oper system services sqloSetFileAccessMode Probe:100

errno:
0x2FF18890 : 0x00000002 ....

PID:14782 TID:1 Node:000 Title: Path/Filename

/taransys/db2inst1/sqllib/function/routine/sqlproc/MPGKB/DB2TARAN/tmp/P33251 14.bnd

2004-04-14-00.07.21.582432 Instance:db2inst1 Node:000
PID:14782(db2fmp (29432)) TID:1 Appid:none
routine_infrastructure sqlerFmpListener Probe:350

DIA0001E An internal error occurred. Report the following error code :
"ZRC=0xFFFFFB95".

I checked a SYSIBM.SYSROUTINES table:

Select ROUTINENAME, ROUTINESCHEMA, DEFINER, SPECIFICNAME, ROUTINE_ID,
RETURN_TYPE, IMPLEMENTATION from SYSIBM.SYSROUTINES WHERE ROUTINENAME =
'M_DEL_POZ_OBROTY'

and I got:

ROUTINENAME
ROUTINESCHEMA
DEFINER
SPECIFICNAME
ROUTINE_ID
RETURN_TYPE
IMPLEMENTATION
-----------------------------
M_DEL_POZ_OBROTY
DB2TARAN
DBTARAN1
M_DEL_POZ_OBROTY
66706
-2
P3325114!pgsjmp

And when i checked sysibm.packages for P3325114 I got no rows.
There are no files in sqllib/function/routine/sqlproc/MPGKB/DB2TARAN with
similar name.
The procedure is complicated. It contains many select statements and calls
to other procedures.

Any ideas?

Wojtek

Nov 12 '05 #7

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

Similar topics

4
by: Dmitri | last post by:
I just looked at a coworker's stored procedure and this person is dropping 4 Foreign key constraints and then re-adding them after processing the required logic (updating rows in the 4 tables in...
7
by: Jeff Wang | last post by:
Hi all, Can someone help me out? I've been struggling with this for almost a week and still have no clue what's wrong. Basically I want to write a DB2 stored procedure for OS/390 in REXX. In...
6
by: Wojciech Wendrychowicz | last post by:
Hello to All, I'm trying to retrieve records from AS/400 in an VBA application. So, I've made an RPG program, then a stored procedure wchich calls that RPG program, and finally some VBA code to...
3
by: seash | last post by:
hi i got this code in FAQs to prevent combobox from dropping, but i dont know how to use it in my class here is the code, 1>when i create an object of MyCombo box class in my class the object is...
11
by: raylopez99 | last post by:
Keep in mind this is my first compiled SQL program Stored Procedure (SP), copied from a book by Frasier Visual C++.NET in Visual Studio 2005 (Chap12). So far, so theory, except for one bug...
0
by: phil | last post by:
Problem Dropping Members from a Replication Set Originally posted: 2007 May 21 04:36 AM 9200Phil Post new reply Hi I'm trying to drop a number of tables from a replication set. Environment:
1
by: Rahul Babbar | last post by:
Hi, I am getting a error sqlcode : -911, sqlstate : 40001 error, i.e. Deadlock error while trying to drop the procedure. I had seen cases of getting deadlocks in a table but not in...
3
by: =?Utf-8?B?TG9nZ2Vy?= | last post by:
Help, I’m applying updates to a web application that used Web Form Designer Generated Code. I’m using Visual Studio 2003. For some reason lines keep dropping out of the code in the .aspx.vb...
1
by: pixelfreaks | last post by:
Hello, I am having a problem in aligning the sidebar and content area in a webpage. I am using css. Consider the below layout. __________________________________________ | ...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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: 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.