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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / shaikdada

please give me the answer

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More DB2 Interview Questions

In SPUFI suppose you want to select maximum of 1000 rows, but the select returns only 200 rows. What are the 2 SQLCODEs that are returned?

1 Answers  


What is query_cache_limit?

0 Answers  


How can you display the current date & current time ?

1 Answers   Cap Gemini,


What is the role of union all and union

0 Answers  


what is Static and dynamic linking

1 Answers   Virtusa,






What are delete-connected tables?

1 Answers  


Can one database have multiple instances?

0 Answers  


Describe what a storage group(STOGROUP) is?

2 Answers  


What is meant by explain?

0 Answers  


What is image copy?

1 Answers   Virtusa,


Mention the various locks that are available in db2.

0 Answers  


What is cursor stability?

1 Answers  


Categories