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

Update command

1 Answers  


What is rebind in db2?

0 Answers  


What is the physical storage length of each of the following DB2 data types: DATE, TIME, TIMESTAMP?

1 Answers   CTS,


What is the role of union all and union

0 Answers  


Explain the use of the WHERE clause.

2 Answers   IBM,






How do you select a row using indexes in db2?

0 Answers  


In db2, how do you insert multiple rows in 1 query using a.) Cursors, b.) Normal query?? Give syntax for both.

5 Answers   CTS,


what is diffrence b/w file-aid tool and file-aid utility???

1 Answers  


What is the picture clause of null indicator variable?

0 Answers  


Following a db2 update statement, what is the quickest way to compute the total number of updated rows?

0 Answers  


In case if at some point of time db2 is down, would that impact the pre-compilation process of a db2-cobol program?

0 Answers  


in GDG: is it poosible to copy records from a file which utilizes some 100 cylinders to a gdg whose model is defined as trk(1,0) and also it possible to copy 100 bytes file to 80 bytes file?

1 Answers   IBM,


Categories