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 > How to rebind SQL stored procedure

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-05-03, 10:54
bbfung bbfung is offline
Registered User
 
Join Date: Nov 2003
Posts: 18
How to rebind SQL stored procedure

When SQL stored procedure is created, it do the bind and created the package file automatically, and thus access plan are generated at that point. Is there a way I can update the access plan without dropping and recreating the SQL stored procedure? I want to rebind my SQL stored procedure but don't know where the bnd file is kept. I am using DB2 V7.2 windows client on V7.2 DB2 UDB on Linux. Thx.
Reply With Quote
  #2 (permalink)  
Old 11-05-03, 11:16
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
I think you can just rebind the package-name. You don't need to know where it is. See the rebind command.
Reply With Quote
  #3 (permalink)  
Old 11-05-03, 11:48
bbfung bbfung is offline
Registered User
 
Join Date: Nov 2003
Posts: 18
Thanks for your help. I will try db2rbind <dbname> all.
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