What is package versioning? Please give an example.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

When reorg is used?

676


Explain in detail about buffer manager and its functionalities?

564


How do I add a column in db2?

591


What are iseries servers?

566


How can the firstname and the lastname from the emp table be concatenated to generate complete names?

747






What is the maximum length of sqlca?

869


What is plan in cobol db2?

595


Mention the location where the output received from explain statement is stored.

628


What is performance tuning db2?

620


What is an instance in db2?

563


What is a db2 collection?

605


How do you concatenate the firstname and lastname from emp table to give a complete name?

603


Why cursor is used in db2?

575


What is the maximum size of varchar data type in db2?

645


What is a db2 table?

597