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 |
in the CURSOR declare statement, if i am using an where clause and trying to compare the value with a host-varialble. EXEC SQL DECLARE C1 CURSOR FOR SELECT DEPTNO, DEPTNAME, MGRNO FROM DEPARTMENT WHERE ADMRDEPT = :ADM-DEPT Where would i need to provide value to this host-variable in the where clause. how could i pass value to this host-variable to check it.
How to connect to db2 database from windows command line?
How do you declare a host variable (in COBOL) for an attribute named emp-name of type VARCHAR(25) ?
How do you retrieve the data from a nullable column?
what's the error code for Unique Index Violation?
What are bind parameters in db2?
can you use symbolic parameters in JOB?
Suppose the outcome of executing a query results in a row having null. Based on the answer how you use it? Its declaration and inclusion?
How can you find out which query is taking lot of time to execute in cobol-db2 program ?
in db2, already 10 columns arie der, and i want to insert 11th column. what parameters u wil consider for insertion and how will u insert
can we view the access paths created by dbrm ? how ? thx
Hi. I am currently working as a application developer. I would like to persue a DB2 certification exam. Can anybody please provide me the details about this exam like Syllabus, Cost and how to take the certification?