Page 1 of 1

Table REORG and bind the programs.

Posted: Mon Jan 04, 2016 3:30 pm
by Sharvana Mohan
Hi,

Whenever we do a table REORG, do we need to bind one and all the programs related to table? If no, why it is not needed. While for a program change we always do it.

Re: Table REORG and bind the programs.

Posted: Mon Jan 04, 2016 7:38 pm
by Akatsukami
Although DB2 is not my area of greatest expertise, I believe that your process would be REORG, RUNSTATS (to establish new access paths to the reorganized data), and (RE)BIND (to allow use of those new access paths).

Re: Table REORG and bind the programs.

Posted: Tue Feb 09, 2016 12:00 pm
by Sharvana Mohan
Thanks for the reply but it did not answer the question, whenever we do a table REORG, do we need to bind one and all the programs related to table? Can you please help me with that anwer too?

Re: Table REORG and bind the programs.

Posted: Sat Feb 20, 2016 6:25 pm
by Anuj Dhawan
whenever we do a table REORG, do we need to bind one and all the programs related to table? Can you please help me with that anwer too?
The short answer is No, DB2 does not mandate that.

The longer answer depends on the mind set of the shop. Two types of thoughts work on REBINDing DB2 plans and packages. In first case, one would recommend to REBIND regularly after running RUNSTATS, which of course you'll do after the REORG. If you don't do it, your programs and applications does not stop working but chances are that without REBIND, static SQLs are failing to get the best out of DB2 sub-system for the best performance.

In the second case, they recommend not to REBIND until it is giving you problems. This way, you will run REORG/RUNSTATS but you will not REBIND your plans and packages until performance is a question.

So you are left with the choice to abide by what your shop's approach is.

Re: Table REORG and bind the programs.

Posted: Mon Feb 22, 2016 2:56 pm
by Sharvana Mohan
Thanks Anuj.

Re: Table REORG and bind the programs.

Posted: Tue Feb 23, 2016 11:16 pm
by Anuj Dhawan
You're Welcome! :)