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 > Db2 procedure dependency and rebind

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-30-11, 05:14
rajinbits rajinbits is offline
Registered User
 
Join Date: Nov 2007
Posts: 26
Db2 procedure dependency and rebind

Hi,
This is related to DB2 UDB Ver 9.5 fixpack 8. I have 2 stored procedures using a view. But views are used in different fashion. Details are mentioned below.
1) procedure A
Uses the view to declare curor and return it to calling application
2)procedure B
Uses the view to get some data and insert it in temp table and then return the cursor to calling application using temp table

Problem:
When I drop the view and recreate it, procedure A works fine with implicit rebind. But procedure B does not work even with explicit rebind. The only way it works is by dropping and recreating the procedure.

Why does this happen? Any way to resolve this ?

Also, When I query SYSIBM.SYSPLANDEP for proc A and prob B package, view is listed for for procedure A but not for proc B. Any idea why?

Thanks,
Rajesh
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