If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > db2expln for procedure

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-12-08, 03:34
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
db2expln for procedure

Using db2expln first time for packages.
It works fine when there are tables however it fails whenever it has reference to GTT....
How are access plans created in case of GTT's ......
Didn't get what Incremental Bind is ?

-------------------- SECTION ---------------------------------------

Section = 15





Statement:

VALUES(

(Select Count(*)

from SESSION.TEMP_PUPILDETAILS))INTO :HV00025 :HI00025

Incremental Bind Section
Error revalidating section:
SQL0727N An error occurred during implicit system action type "5".


Information returned for the error includes SQLCODE "-204", SQLSTATE


"42704" and message tokens "SESSION.TEMP_PUPILDETAILS". SQLSTATE=00000




-------------------- SECTION ---------------------------------------
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer
Reply With Quote
  #2 (permalink)  
Old 09-12-08, 09:15
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
SQLCODE -204 is for an undefined name. The system does not know what the GTT is. Try defining it first.

Andy
Reply With Quote
  #3 (permalink)  
Old 09-12-08, 14:50
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
The problem is that db2batch establishes a new connection to DB2. Thus, it cannot know anything about the GTT you may have defined in another connection.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On