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 > Mass rebind

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-05-04, 09:59
natesh natesh is offline
Registered User
 
Join Date: Aug 2004
Posts: 1
Mass rebind

What is the easiest way to rebind all the plans in a DB2 subsystem?
Reply With Quote
  #2 (permalink)  
Old 08-05-04, 11:21
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Since you used the word "subsystem" does that mean you are using DB2 for OS/390 and z/OS? Please specify your platform and other info as requested in Must Read Before Posting thread.

You can build a list of all plans to rebind using the following as a guide (this is not the exact syntax):

Select 'REBIND PLAN ('||name||' );' from sysibm.sysplan where ...

You can do something similar for packages if needed.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 08-05-04, 14:59
sphelical sphelical is offline
Registered User
 
Join Date: Aug 2004
Posts: 6
look at "db2rbind" if on the distributed...

db2rbind database-alias -l logfile [all -u userid -p password] [-r {conservative|any}]
Reply With Quote
  #4 (permalink)  
Old 08-06-04, 09:32
chas_dba chas_dba is offline
Registered User
 
Join Date: Sep 2003
Posts: 33
I am assuming that your platform is os/390 or Z/os. If it is, then goto DB2I PRIMARY OPTION MENU (where we run our spufi etc) use option 5. which can be used for bind/rebind one or all plans and packages in a subsystem.
__________________
bs
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