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 > rebind packages after runstats

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-25-08, 03:13
baloo99 baloo99 is offline
Registered User
 
Join Date: Feb 2007
Location: Bratislava, Slovakia
Posts: 85
rebind packages after runstats

Hi all,
please how to determine what package(s) must be rebind after runstats, when i run runstats on some concrete table?
thanks advance
DB2 LUW, linux, 8.2.3
__________________
Beer contains just a small amount of vitamines - that's why it's necessary to drink lot of it.
Reply With Quote
  #2 (permalink)  
Old 11-25-08, 03:48
JAYANTA_DATTA JAYANTA_DATTA is offline
Registered User
 
Join Date: Oct 2004
Location: DELHI INDIA
Posts: 336
Packages are automatically rebinded during its first execution after any changes happened to the Access-plan.

You don't need to explicitly do rebinding. Just take care of your REORG/RUNSTAT and Db2 will take care of the rest.

Thanks,
Jayanta
Reply With Quote
  #3 (permalink)  
Old 11-25-08, 09:00
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
@Jayanta: That is not correct! You may not need to rebind if you update the statistics (runstats) and have used REOPT(ALWAYS).

The REBIND command is intended for exactly such purposes, i.e. rebind packages after statistics have changed: http://publib.boulder.ibm.com/infoce.../c0005566.html

As for finding the necessary packages, try your favorite search engine. This question has been answered frequently already.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #4 (permalink)  
Old 11-26-08, 00:33
JAYANTA_DATTA JAYANTA_DATTA is offline
Registered User
 
Join Date: Oct 2004
Location: DELHI INDIA
Posts: 336
hi Knut.
thanks for the same. you are correct. I was referring from day-to-day things, where even the first execution of the Proc was getting rebinded automatically due to addition of an added Index in the table and that Stats-update etc. But yes, there are specific purposes and cases.
Thanks once again,
Jayanta
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