PLAN IS EXECUTABLE AND PACKAGE IS NOT EXECUTABLE . THEN WHAT
IS THE USE OF PACKAGE?

Answer Posted / vaneesh khurana

See there is not doubt that PLAN is an executable form of
DBRM and package is not the executable form.
Basically a DBRM can be linked to PLAN directly or a DBRM
can be linked to Package and that package can further linked
to the PLAN
Now if we directly link the DBRM with the plan then every
time we recompile the program(DBRM) we have to regenerate
the plan.
Whereas if we link the DBRM via package then every time we
recompile the program(DBRM) we only require to recompile the
Package.
Hence Binding through package prevents regeneration of plan.

1 more line I want to add just for knowledge.
If we regenerate the PLAN every time then all the other
Programs(DBRMs) which are attached to that same PLAN
required to be rebind thus take waste time.


Hope this answers your query...

Is This Answer Correct ?    27 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you simulate the explain of an embedded sql statement in spufi/qmf?

634


What's The Error Code For Unique Index Voilation?

651


Explain about rct in db2?

640


What language is db2 written in?

595


Highlight all the advantages that are attached to a package.

627






Is db2 free?

684


What does runstats do in db2?

607


What are db2 objects?

641


Define buffer pool.

626


What are packages in db2?

597


How do I import data from excel to db2?

615


What is db2? Explain.

606


Which command is used to remove all rows from a table?

553


What is release/acquire in bind?

656


Why do we bind in db2?

631