What is a DB2 plan?
Answers were Sorted based on User's Feedback
Answer / jessica
A plan is an executable module containing the access path
logic produced by the DB2 optimizer. It can be composed of
one or more DBRMs and packages. Before a DB2 for z/OS
program (with static SQL) can be run, it must have a plan
associated with it.
Plans are created by the BIND command. The plan is stored in
the DB2 directory and accessed when its program is run.
Information about the plan is stored in the DB2 catalog.
| Is This Answer Correct ? | 88 Yes | 5 No |
Answer / sadiq afroze
An application plan or package is generated by the bind to
define an access path
| Is This Answer Correct ? | 64 Yes | 14 No |
Answer / guest
It establish relation between application program and DB2
tables.
| Is This Answer Correct ? | 53 Yes | 10 No |
Answer / shankar
Only PLANS are executable and not PACKAGES. You have bind
your package to a PLAN while executing.
| Is This Answer Correct ? | 33 Yes | 10 No |
Answer / vira raguram.i
a plan is an executable module containing the access path
logic produced by the db2 optimizer.it can have one or more
DBRMs or packages.
| Is This Answer Correct ? | 14 Yes | 2 No |
Answer / anil
A plan provides the channel between the aplication program
and the system which can be called up on call statements to
cobol for the sql code from db2 catalog when bind process
has done..
| Is This Answer Correct ? | 11 Yes | 0 No |
Answer / siri
BIND CAN HAPPEN TWO PROCESS...ONE IS PACKAGE...ANOTHER ONE IS PLAN....PLAN IS EXCUTABLE....WE BIND DBRM TO PACKAGE AND THEN INTO THE PLAN....WE BIND DIRECTLY DBRM TO PLAN...ONE DBRM IS CREATED FOR ONE PROGRAM....IN 10 DBRMS WE BIND INTO THE PLAN...IN 10 TIMES WE BIND INTO THE PLAN...IN CASE OF PACKAGE 10 DBRMS ARE BIND INTO THE PACKAGE AND THEN INTO THE PLAN ITS NO NEED TO BIND 10 TIMES..10 PACKAGES ARE INCLUDED IN ONE PACKAGE LIST..WE BIND ONE PACKAGE INTO THE PLAN AUTOMATICALLY 9 PACKAGES ARE BIND...PLAN IS EXCUTABLE...MEANS IT IS EXCUTABLE WITH LOAD MODULE...PLAN TIME STAMP TOKEN AND LOAD MODULE TIME STAMP TOKEN IF IT MATCH..THE PROGRAM IS EXCUTED...
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / ganesh
A db2 plan contains collections which in turn contains
packages.
A package contains the exectauble format of the sql
statements placed in the DBRM which was created during the
pre-comlie step.
| Is This Answer Correct ? | 9 Yes | 7 No |
Can All Users Have The Privilege To Use The SQL Statement Select (DML)?
Can a primary key have null values? If we try to insert a null value in a primary key column, will it work or give an error code?
How is the value function used?
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 the purpose of using commit?
Compare a subselect to a join?
What is the syntax for seeing the columns and data types of a table in the db2 database?
difference between group clause and order clause
Can a unique index have more than one null value? If not, what error code is given if an attempt is made to insert more than one null value?
What is correlation names?
What is load replace in db2?
When will you chose to run RUNSTATS?