What is package versioning? Please give an example.



What is package versioning? Please give an example...

Answer / mani

Versioning allows multiple packages that share both the
schema and Package ID to co exist in the system catalogs.

A sample application called payroll is compiled from
payroll.sqc.This application would be precompiled and the
package payroll bound to the database and the application
delivered to the users.users then could run the application
in production.
If the application required modification (even without sql
changes) the process of recompiling,binding and sending the
application to the users must be repeated.If the version
option was not specified for this second precompilation of
payroll, the first package is replaced by second package.
Any user who attempts to run the old version of application
would get -818 error.To avoid this use VERSION and it allows
both versions of the appliction to run at the same time.

When the first version of Payroll was created, the version
option should be used during the precompilation step.

DB2 PREP PAYROLL.SQC VERSION V1.1

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More DB2 Interview Questions

what is the syntax for FOR UPDATE CLAUSE in cursor declaration and how can u update using cursor? is it possible to update multiple rows at a time.

2 Answers   Syntel,


In an sql table that is embedded, what is the procedure to retrieve rows that are part of a db2 table?

0 Answers  


In my table having 100 Rec. How can I delete the 7th row?? (we don't know what is data inside the table)

9 Answers   IBM,


Do we need cursor for Count(*)?

4 Answers   iGate,


what is a collection?

2 Answers  


Where are plans stored?

2 Answers  


What is image copy?

1 Answers   Virtusa,


What is a predicate?

1 Answers  


pls tell me abt the normalization five types....

2 Answers  


Give the name of some fields form sqlca.

0 Answers  


Give the COBOL definition of a VARCHAR field.

2 Answers  


How does coalesce work?

0 Answers  


Categories