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 |
If the main program has only cobol statements and subprogram has the db2 statements what is the procedure for precompilation. for which program we need to do the precompilation
What are the benefits of using the db2 database?
select * from orders where odate between '2010-01-01'and '2010-03-31' How do u fetch this into cursor?
What is the SQL Communications Area and what are some of its key fields?
What is a buffer in memory?
what is the soft code for deadlock ?
why db2 is called as universal database?what is the storage capacity of db2v9 n what are the advantages of db2
How to resolve -803 sql code in DB2?
What is the usage of open cursor command?
What is query for your birthday date should be in hours,minute and seconds format?
What is QUIESCE?
if one db2 pgm calls another db2 pgm. how many plans do we need. what r the steps involved..