There are two ways to invoke the Package Utility:
Figure 21. Package Utility Screen
+--------------------------------------------------------------------------------+ | mm/dd/yyyy CONTROL CENTER hh:mm:ss | |*-------------------------- PACKAGE UTILITY --------------------------* | || | | || DATABASE => SQLDBA | | || | | || OWNER => ________ PACKAGE-NAME => ________ | | || | | || OPTION => _ (1=UNLOAD PACKAGE 2=RELOAD PACKAGE) | | || (3=REBIND PACKAGE 4=VIEW PACKAGE) | | || | | || ********************** OPTIONAL PARAMETERS ********************** | | || | | || INVALID ONLY? => 2 (1=YES/2=NO) | | || | | || TO SERVER-NAME => __________________ | | || | | || REPLACE/NEW => 1 (1=REPLACE/2=NEW) | | || | | || KEEP/REVOKE => 1 (1=KEEP/2=REVOKE) | | || | | |*------------------------------------------------------------------ SQC16 ----* | | | |PRESS ENTER TO PROCESS | |ENTER F1=HELP F3=EXIT | +--------------------------------------------------------------------------------+
The Package Utility parameters are:
The examples below illustrate how to use the Unload and View Package functions.
To Unload a package, select Option 1 on the Package Utility screen (Figure 21). Identify the package to be unloaded by specifying the owner and package name. Optionally, you may specify a server name other than the one that is displayed. If the package does not exist, you will receive a message in the lower left hand corner of menu.
After you press ENTER while viewing the Package Utility screen, the Package Job Submit screen, Figure 22, is displayed. This is where you specify the parameters for job submission to the VSE/POWER queue.
Figure 22. Package Job Submit Screen
+--------------------------------------------------------------------------------+ | mm/dd/yyyy CONTROL CENTER hh:mm:ss | |*------------------------- PACKAGE JOB SUBMIT SCREEN -------------------------* | || | | || JOBNAME => ________ CLASS => A | | || | | || PRI => 3 DISP => D (D,H,L,K) | | || | | || FROM => ________ | | || | | || DUETIME => ____ (HHMM) DUEDATE => ______ (AABBYY) | | || | | || DUEDAY => __________________________________________ | | || | | || | | || OTHER => ______________________________________________________________ | | || | | || LST CLASS => A | | || | | || DEST => ________ | | || | | || | | |*------------------------------------------------------------------ SQC17 ----* | | | |PRESS ENTER TO PROCESS | |ENTER F1=HELP F3=EXIT | +--------------------------------------------------------------------------------+
The job submission parameters are:
Disposition defaults to D.
To view a package, specify the OWNER and PACKAGE_NAME fields on the Package Utility screen (Figure 21), and select Option 4. Provide appropriate parameters on the Package Job Submit screen. The View Package tool executes DBSU to unload the desired package to a SAM file. It then generates a package report that lets you view the package contents which include:
This data is quite helpful and can be used to analyze performance problems.
Figure 23 shows a report generated from the View Package option.
Figure 23. Example Output from View Package Option
Date: dd Mmm yyyy Page: 1
Control Center Package Report
_____________________________
Package: SQLMSTR.SQC05
Database: SQLDBA
First Create Release: 7.1
Last Create Release: 7.1
Charname: INTERNATIONAL
Sections: 6
Preprocessing Characteristics:
_______________________________
NOGRAPHIC, BLOCK, NOMODIFY, NODESCRIBE
Options Specified at Prep time:
________________________________
BLock
ISOLation(RR)
DEFAULT Options at Prep time:
______________________________
RELease(COMMIT), EXPLAIN(NO), KEEP, REPLACE, NOEXIST
NOCHECK, PERiod, APOST
PREPname=SQC05, CTOKEN(NO), LABEL( )
Static SQL Statements in Package:
__________________________________
SELECT NPAGES, POOL INTO :H, :H FROM SYSTEM.SYSDBSPACES WHERE OWNER
:H AND DBSPACENAME = :H
SELECT OWNER FROM SYSTEM.SYSDBSPACES WHERE OWNER = :H AND DBSPACETYPE =
:H AND NPAGES = :H AND POOL IN (:H,:H)
SELECT OWNER INTO :H FROM SYSTEM.SYSDBSPACES WHERE OWNER = :H AND
DBSPACENAME = :H
SELECT VALUE INTO :H FROM SYSTEM.SYSOPTIONS WHERE SQLOPTION = 'RELEASE'
SELECT CURRENT SERVER INTO :H FROM SYSTEM.SYSOPTIONS WHERE SQLOPTION =
'RELEASE'