SHRLEVEL
The SHRLEVEL option specifies the level of access that concurrently operating Db2 applications and utilities have to the target spaces during UNLOAD PLUS processing.
Restriction
UNLOAD PLUS ignores this option when DIRECT NO is in effect.
Specifying the default
You can specify the default for the SHRLEVEL command option in your installation options module by using the SHRLEVEL installation option. UNLOAD PLUS was shipped with a default value of REFERENCE for this option. The command option overrides the default that is in the installation options module.
REFERENCE
SHRLEVEL REFERENCE restricts object status to read-only during UNLOAD PLUS processing. UNLOAD PLUS then externalizes the pages of the table space. When UNLOAD PLUS is operating on partitioned objects, access is restricted only to the partitions that are being unloaded. When UNLOAD PLUS processing completes, the utility restores the object to its original status.
If you are unloading from a full or incremental image copy (including an encrypted copy or cabinet copy), UNLOAD PLUS unloads only from image copies that are marked as SHRLEVEL REFERENCE in SYSIBM.SYSCOPY or, for an encrypted copy or cabinet copy, the BMCXCOPY table.
CHANGE
If you are unloading from a table space, specify SHRLEVEL CHANGE to allow read/write access to the table space during unload processing.
If you are unloading from a full or incremental image copy (including an encrypted copy or cabinet copy), UNLOAD PLUS unloads from image copies marked as either SHRLEVEL REFERENCE or SHRLEVEL CHANGE in SYSIBM.SYSCOPY or, for an encrypted copy or cabinet copy, the BMCXCOPY table.
CONSISTENT NO
This option tells UNLOAD PLUS not to attempt to maintain consistency with a point-in-time image of the data when using SHRLEVEL CHANGE. When you specify CONSISTENT NO, UNLOAD PLUS does not restrict access to the object except for the brief time required to externalize pages if you specify QUIESCE YES. CONSISTENT NO is the default for SHRLEVEL CHANGE.
Specifying the default
You can specify the default for the SHRLEVEL CHANGE CONSISTENT command option in your installation options module by using the CHANGE_CONSISTENT installation option. UNLOAD PLUS was shipped with a default value of NO for this option. The command option overrides the default that is in the installation options module.
QUIESCE | This option tells UNLOAD PLUS whether to externalize the unloaded table space’s pages from the Db2 buffer pool. If you specify QUIESCE without a value, UNLOAD PLUS assumes QUIESCE YES. The following table describes the values that you can specify with QUIESCE:
|
CONSISTENT YES
Specify CONSISTENT YES to have UNLOAD PLUS maintain consistency with a point-in-time image of the data while enabling read/write access to the data. UNLOAD PLUS provides this capability by using XBM or SUF to produce a snapshot image of the data in a table space.
When you specify SHRLEVEL CHANGE CONSISTENT YES, UNLOAD PLUS externalizes the pages of the table space, then activates XBM or SUF to begin caching pre-update page images. For more information about using XBM or SUF with UNLOAD PLUS, see Running-SHRLEVEL-CHANGE-CONSISTENT-YES. For detailed information about XBM and SUF, see the SNAPSHOT UPGRADE FEATURE for DB2 documentation.
Restriction
This option is not valid when you specify INFILE.
Specifying the default
You can specify the default for the SHRLEVEL CHANGE CONSISTENT command option in your installation options module by using the CHANGE_CONSISTENT installation option. UNLOAD PLUS was shipped with a default value of NO for this option. The command option overrides the default that is in the installation options module.
Related topics