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 |
How can you display the current date & current time ?
What is explain in db2?
Explain what are the various isolation levels possible?
Can any one tell me about Restart logic in DB2.
What is the COBOL picture clause for a DB2 column defined as DECIMAL(11,2)?
I HAVE 2 TABLES ONE IS EMP_TABLE AND ANOTHER DEPT_TABLE.EMP_TABLE CONTAINS NAME,DEPTNO,DEPTNAME,LOCATION AND DEPT_TABLE CONTAINS DEPTNO,DOJ(DATE OF JOINING).I WANT TO DISPLAY NAME,DEPTNAME,DOJ AND WHO ARE JOINED BETWEN 01- JAN-2007 TO 01-JAN-2008?
Name some fields from SQLCA.
What information is used as input to the bind process?
How will you delete duplicate records from a table?
What is PRIME TABLE and what are the uses of it
What does an outer join do?
Which one allows duplicate values Union or Union All ?