can any body explain about plan and pakage in detail....

Answers were Sorted based on User's Feedback



can any body explain about plan and pakage in detail......

Answer / ashish kumar

A DB2 bind is a process that builds an access path to DB2
tables.

A BIND process establishes a relationship between an APPLICATION
PROGRAM and its RELATIONAL DATA.
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.
The plans are available in the Catalog table SYSIBM.SYSPLAN

DB2 Bind compiles all your sql statements(dbrm) into an
executable format.
It uses DB2 Optimizer to create the better access path.
Package is the executable access path code for the sql
statements in the DBRM

Plan contains package list which is nothing but pointers to
packages.

Is This Answer Correct ?    13 Yes 0 No

can any body explain about plan and pakage in detail......

Answer / srinivasa gudla

A package is single bound DBRM with optimized access paths.
It contains location identifier, collection Identifier and
package identifier.

A package can have multiple versions, each with it's own
version identifier

Advantages of Packages,
Reduce the Bind Time.
Versioning.
Can provide BIND options at programmer level.

As Ashish mentioned above, Plan contains packages list which
is nothing but Pointers. whenever you are doing changes in
SQL staetments related to particular DBRM . Then only that
particular Packages needs to be rebind not the Plan. This is
similar to recompiling a sub program not the main program.

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More DB2 Interview Questions

Is Cursor exicutable ?

3 Answers   TetraSoft,


what is the name of the default db2 catalog database?

3 Answers   IBM,


Is db2 a mainframe database?

1 Answers  


What is the size of a data page?

2 Answers   IBM,


Q4. How will you get the count of record without using COUNT verb in query?

2 Answers   IBM,


What is the difference between dbm cfg and db cfg file in db2 ?

1 Answers   MCN Solutions,


What is the cobol picture clause of the db2 data types date, time, timestamp?

1 Answers  


What is an alias and how does it differ from a synonym?

3 Answers  


What does the sqlcode of -818 pertain to?

3 Answers  


What are PACKAGES ?

3 Answers  


if any of the column names is provided wrong, where do you get the error(during precompilation or during Bind)

3 Answers  


what is a collection?

2 Answers  


Categories