PLAN IS EXECUTABLE AND PACKAGE IS NOT EXECUTABLE . THEN WHAT
IS THE USE OF PACKAGE?
Answers were Sorted based on User's Feedback
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 |
What is buffer pool and list some of them?
How many Buffer pools are there in DB2 and what are they?
How do I copy a table in db2?
How to insert more than one record using insert?
What does db2 blu stand for?
What is cascading rollback?
What are the benefits of using the db2 database?
what is the use of bind parameter, Replace?
Explain what a plan is?
What is isolation level in db2?
what is the certification that has a good value for a practioner in mainframes but not habving much knowledge on db2 related stuff?
what is REORG? what is the use?