473,695 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Strange problem

Hi!

I have a procedure that is compiled in the database and I can also recompile
it without any problems, but when I call it I get this strange error:
[IBM][CLI Driver][DB2/NT] SQL0727N An error occurred during implicit system
action type "1". Information returned for the error includes
SQLCODE "-206", SQLSTATE "42703" and message tokens "ARTI_ID".
SQLSTATE=56098

As I read the manuals I know that SQLCODE 206 means that ARTI_ID is not
valid in the context where it is used. But If this would be the case then
the procedure would not compile, right ?

Any suggestions ?

Best regards,
Kovi
--
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
| Gregor Kovac | Gr**********@mi kropis.si |
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
Jun 20 '06 #1
11 11266
"Gregor Kovac" <gr**********@m ikropis.si> wrote in message
news:HN******** ************@ne ws.siol.net...
Hi!

I have a procedure that is compiled in the database and I can also
recompile
it without any problems, but when I call it I get this strange error:
[IBM][CLI Driver][DB2/NT] SQL0727N An error occurred during implicit
system
action type "1". Information returned for the error includes
SQLCODE "-206", SQLSTATE "42703" and message tokens "ARTI_ID".
SQLSTATE=56098

As I read the manuals I know that SQLCODE 206 means that ARTI_ID is not
valid in the context where it is used. But If this would be the case then
the procedure would not compile, right ?

Any suggestions ?

Best regards,
Kovi
--


It could be an SQL statement that is dynamically prepared in the SP, which
cannot be validated at procedure create time.

It would help if you could post the procedure code, and indicate the DB2
level and OS you are using (type db2level from the command line).
Jun 20 '06 #2
Mark A wrote:
"Gregor Kovac" <gr**********@m ikropis.si> wrote in message
news:HN******** ************@ne ws.siol.net...
Hi!

I have a procedure that is compiled in the database and I can also
recompile
it without any problems, but when I call it I get this strange error:
[IBM][CLI Driver][DB2/NT] SQL0727N An error occurred during implicit
system
action type "1". Information returned for the error includes
SQLCODE "-206", SQLSTATE "42703" and message tokens "ARTI_ID".
SQLSTATE=56098

As I read the manuals I know that SQLCODE 206 means that ARTI_ID is not
valid in the context where it is used. But If this would be the case then
the procedure would not compile, right ?

Any suggestions ?

Best regards,
Kovi
--


It could be an SQL statement that is dynamically prepared in the SP, which
cannot be validated at procedure create time.

It would help if you could post the procedure code, and indicate the DB2
level and OS you are using (type db2level from the command line).


There is NO dynamic SQL that is prepared in the procedure.
db2level gives:
DB21085I Instance "DB2" uses "32" bits and DB2 code release "SQL08024" with
level identifier "03050106".
Informational tokens are "DB2 v8.1.11.973", "s060120", "WR21365", and FixPak
"11".
Product is installed at "C:\PROGRA~1\IB M\SQLLIB".

--
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
| Gregor Kovac | Gr**********@mi kropis.si |
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
Jun 20 '06 #3
"Gregor Kovac" <gr**********@m ikropis.si> wrote in message
news:RT******** ************@ne ws.siol.net...
There is NO dynamic SQL that is prepared in the procedure.
db2level gives:
DB21085I Instance "DB2" uses "32" bits and DB2 code release "SQL08024"
with
level identifier "03050106".
Informational tokens are "DB2 v8.1.11.973", "s060120", "WR21365", and
FixPak
"11".
Product is installed at "C:\PROGRA~1\IB M\SQLLIB".


OK, but it would help to see the SP source code.
Jun 20 '06 #4
Mark A wrote:
"Gregor Kovac" <gr**********@m ikropis.si> wrote in message
news:RT******** ************@ne ws.siol.net...
There is NO dynamic SQL that is prepared in the procedure.
db2level gives:
DB21085I Instance "DB2" uses "32" bits and DB2 code release "SQL08024"
with
level identifier "03050106".
Informational tokens are "DB2 v8.1.11.973", "s060120", "WR21365", and
FixPak
"11".
Product is installed at "C:\PROGRA~1\IB M\SQLLIB".


OK, but it would help to see the SP source code.

Here it is and is quite large.

--
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
| Gregor Kovac | Gr**********@mi kropis.si |
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
Jun 20 '06 #5
DB2 is performing an implicit rebind for some
reason. You say that the procedure lacks
any dynamic SQL, but does it contain any
session tables? Are any of the packages
invalidated by external reasons like
schema-changes (check syscat.packages
for any invalidated packages), or
sql-function changes, trigger-changes etc?

Jun 20 '06 #6
mike wrote:
DB2 is performing an implicit rebind for some
reason. You say that the procedure lacks
any dynamic SQL, but does it contain any
session tables? Are any of the packages
invalidated by external reasons like
schema-changes (check syscat.packages
for any invalidated packages), or
sql-function changes, trigger-changes etc?

There are no session tables and I'm not sure for other changes.
The thing is that REBIND command fails, but DROP and CREATE of the same
procedure and the same code works. Hmm....
--
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
| Gregor Kovac | Gr**********@mi kropis.si |
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
Jun 20 '06 #7
Is REOPT active ?

Jun 20 '06 #8
mike wrote:
Is REOPT active ?

Sory, but I've never heard of REOPT...
--
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
| Gregor Kovac | Gr**********@mi kropis.si |
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
Jun 20 '06 #9
"Gregor Kovac" <gr**********@m ikropis.si> wrote in message
news:48******** ************@ne ws.siol.net...
Here it is and is quite large.


I don't what what the -206 is, but what the heck is this:

DECLARE XDELETE_UPDATE_ SQL VARCHAR(10000);

I don't see that variable referenced anyplace else in the SP.
Jun 20 '06 #10

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

Similar topics

6
3019
by: Eric Boutin | last post by:
Hi ! I have a strange problem with a std::ostringstream.. code : #include <sstream> /*...*/ std::ostringstream ss(); ss << "\"\"" << libpath << "\"\" \"\"" << argfilename << "\"\" \"\"" << outfilename << "\"\""; //line 75
3
2301
by: Andrew Mayo | last post by:
(note: reason for posting here; browser helper object is written in C++; C++ developers tend to know the intricacies of message handling; this looks like a Windows messaging issue) Microsoft very kindly make available a DLL (the browser helper DLL) which allows you to trap and disable the context menu (right mouse click) and various 'built-in' browser accelerators (such as ctrl+P which brings up the print dialogue, and F5, which will...
0
1241
by: Joo Santa Brbara | last post by:
Hi all. i have a strange problem i have done a User Control, in wich i have placed a few buttons inside it and place it in an form. in the previous version of .NET (2003), i have try to access the controls property of my usercontrol and there were no controls inside it but now in .NET 2005 i have access the same controls property and it have there all buttons that i have put inside. this is very strange, because anyone can have access...
3
2066
by: Sameh Halabi | last post by:
Hi I have a strange problem in C , I hope someone may help with it . the problem is as follows : I have an existing big structure (that I can't change) which contains in it groups of variables that is repeated . typedef struct big_struct { ..... ..... char a1;
6
8523
by: leonecla | last post by:
Hi everybody, I'm facing a very very strange problem with a very very simple C program... My goal should be to write to a binary file some numbers (integers), each one represented as a sequence of 32 bit. I made this stupid trial code: --------------------------------------------- FILE *fout;
1
3764
by: Sam Kong | last post by:
Hello! Recently I had a strange problem with Visual C# 2005 beta 1. When I ran(F5 key) a program, <#if DEBUG> statement was not working. It ran as RELEASE mode. So I had to manually define DEBUG to make #if DEBUG work. When I first started the project, this problem didn't exist. The problem started to exist in the middle of doing the project. Today, I decided to figure out what went wrong.
12
1503
by: ishtar2020 | last post by:
Hi everybody I've been writing my very first application in Python and everything is running smoothly, except for a strange problem that pops up every once in a while. I'm sure is the kind of newbie thing every seasoned programmer knows. Sometimes a receive strange Syntax Errors from parts of code that worked perfectly minutes ago. What's even more puzzling is that those errors are pointed to another part of the module when I do some...
0
1351
by: riteshjain1982 | last post by:
Pagepostback.....strange problem Hi, I am at cient place and getting very strange problem with my asp.net application............when i call my web application from any desktop machine in lan it's working fine(even from my laptop it's working fine) but when i called it from the any of the client LAPTOP (HP make) having Window XP Prfession ver 2002 i am get the main page properly,but when i click on any of the image button/link button (on...
1
6992
by: Victor | last post by:
Hi guys, I have a very strange problem with scriptmanager here. I want to load a js (which is embed in the project) but everytime i try to load that, it gives me error like Specified argument was out of the range of valid values. Parameter name: utcDate Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in...
4
1783
by: John Brock | last post by:
I have a .NET application that, among other things, creates Excel workbooks, and I have run into a very strange problem involving formulas on one worksheet that reference values on another worksheet. The text I write into, let's say, cell A25 on Sheet1 (using .NET) looks something like this: =VLOOKUP(RC,'Sheet2'!A:X,6,FALSE) On the completed workbook this turns into:
0
8630
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8568
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8982
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 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...
0
8825
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7660
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 projectplanning, coding, testing, and deploymentwithout 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...
0
5839
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4340
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4579
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
1976
bsmnconsultancy
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...

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.