EXPORT syntax option description
This section describes each of the options you can specify with the EXPORT command.
- APPLICATION creatorName
- ATLOGPOINT
- ATRBA
- AUX
- CLONE
- COLSTATS
- DSNAME dataSetName
- EXCLUDE
- EXPORTDDN exportOutputDescriptor
- INDEXES
- OBJECTSET objectSetName
- ON ERROR ICEXISTS
- ON ERROR NOTSUPPORTED
- REUSE
- RMGROUP creator.groupName RMGROUPTS creator.groupName
- STATS
- TABLESPACE databaseName.spaceName
- TABLESPACE OBJECTSET objectSetName
- TAGSET tagName
- TAPEVOLS
Option | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
APPLICATION creatorName | APPLICATION creatorName can be used to specify the object for migration. When this type of object is specified with a creator name of SAPR3, all table spaces that have CREATOR=SAPR3 are copied. APPLICATION can be mixed with TABLESPACE specifications within the same EXPORT command. | ||||||||||
ATLOGPOINT | The ATLOGPOINT option specifies the image copy to export. The copy must be registered in the SYSIBM.SYSCOPY table or BMCXCOPY. The default is the most recent primary image copy. BMC AMI Copy will only EXPORT one image copy per object. If there are multiple image copies available at a given log point, preference will be given in the following order: LP, LB, RB, RP. Values of ATLOGPOINT
| ||||||||||
ATRBA | The ATRBA option specifies the image copy to export. The copy must be registered in the SYSIBM.SYSCOPY table or BMCXCOPY. The default is the most recent primary image copy. BMC AMI Copy exports only one image copy per object. If there are multiple image copies available at a given log point, preference is given in the following order: LP, LB, RB, RP. Values of ATRBA
| ||||||||||
AUX | The AUX option allows BMC AMI Copy to migrate auxiliary, history, and archive objects without having to explicitly specify these objects. AUX ALL is automatically generated for EXPORT commands. This includes XML and LOB spaces. For a description of the AUX option and its parameters, see AUX. | ||||||||||
CLONE | The CLONE option indicates that EXPORT is to process only image copies that are for clone tables. The base table space and its clone can not be processed in the same BMC AMI Copy command. | ||||||||||
COLSTATS | You can use the COLSTATS option to carry forward existing RUNSTATS column statistics from a migration file and to apply these column statistics during a BMC AMI Recover IMPORT. To import statistics, you must have specified STATS YES COLSTATS YES in the BMC AMI Copy EXPORT command.
| ||||||||||
DSNAME dataSetName | Use the DSNAME option when you dynamically allocate the migration file data set and want to override the default name. The value of dataSetName becomes the new default migration file data set name. You can construct dataSetName using any of the symbolic variables listed under COPYDSN. This option is usually used with wildcard selection of data sets. Using-symbolic-variables and Stacking-copies-on-tape provide more information. | ||||||||||
EXCLUDE | Use the EXCLUDE option after a wildcard space specification to exclude one or more spaces from migration that would otherwise be included. You can use wildcards % and * or specific names to specify the exclusions. The excluded spaces must be in the form of a list following the EXCLUDE keyword. Each item in the list must be in the form databaseName.s paceName and you must separate the individual items by commas. Optionally, you can enclose the list in parentheses. Excluding-specified-spaces-from-a-wildcard-specification provides more information. | ||||||||||
EXPORTDDN exportOutputDescriptor | Use the EXPORTDDN option to specify the OUTPUT command descriptor name that has the EXPOUT YES option. | ||||||||||
INDEXES | The INDEXES option allows you to specify that you want BMC AMI Copy to export the indexes associated with the table space(s) given by the object list of the EXPORT command. The default is INDEXES NO indicating that no indexes are to be exported. Values of INDEXES
| ||||||||||
OBJECTSET objectSetName | Use OBJECTSET objectSetName to specify the table spaces that are included in a BMC AMI Recovery Manager group that you want to migrate. The BMC AMI Recovery Manager group is identified by objectSetName. BMC AMI Copy does not allow wildcards to be specified with OBJECTSET and will issue messages regarding an invalid group name if wildcards are used. BMC AMI Copy accesses the BMC Common Db2 repository and the Db2 catalog to retrieve the table spaces that are defined for the group. For more information about BMC AMI Recovery Manager groups, see the BMC AMI Recovery Manager for Db2 documentation. | ||||||||||
ON ERROR ICEXISTS | The ON ERROR ICEXISTS option allows you to specify what action BMC AMI Copy is to take for EXPORT when a valid source copy does not exist. Values of ON ERROR ICEXISTS
| ||||||||||
ON ERROR NOTSUPPORTED | The ON ERROR NOTSUPPORTED option allows you to specify what action BMC AMI Copy is to take if a space or partition is an unsupported type in BMC AMI Copy. The following table lists the types not supported by BMC AMI Copy and the error messages that BMC AMI Copy issues:
Values of ON ERROR NOTSUPPORTED
| ||||||||||
REUSE | The REUSE option allows you to specify the allocation disposition of the migration file. Values of REUSE
| ||||||||||
RMGROUP creator.groupName RMGROUPTS creator.groupName | RMGROUP can be used in place of TABLESPACE in any EXPORT command. Use RMGROUP to specify the table spaces that are included in a BMC AMI Recovery Manager group that you want to migrate. RMGROUP is followed by the two-part RECOVERY MANAGER creator.groupName. A maximum of 8 characters can be used for creator, while groupName can be a maximum of 18 characters. creator follows the rules for short SQL identifiers. groupName follows the rules for long SQL identifiers. Each part, creator and groupName, can be delimited by double or single quotation marks. The symbols $, #, and @ are valid and can be used as the first character for creator. BMC AMI Copy does not allow wildcards to be specified with RMGROUP and will issue messages regarding an invalid group name if wildcards are used. BMC AMI Copy accesses the BMC Common Db2 repository and the Db2 catalog to retrieve the table spaces that are defined for the group. For more information about BMC AMI Recovery Manager groups, see the BMC AMI Recovery Manager for Db2 documentation. | ||||||||||
STATS | The STATS option allows you to carry forward existing RUNSTATS in a migration file. These RUNSTATS may then be optionally applied during an BMC AMI Recover IMPORT using the migration file. Specifying YES includes SYSINDEXSTATS, SYSLOBSTATS, and SYSTABSTATS in the migration file. Real time statistics are included in a migration, regardless of the STATS specification.
| ||||||||||
TABLESPACE databaseName.spaceName | Use the TABLESPACE option to specify the spaces that you want to migrate. The space specification is a list that can contain both explicit space names and wildcard patterns with the individual items in the list separated by commas. Each explicit space name in the space list must be in the form databaseName.spaceName where:
You can enclose databaseName.spaceName in double quotation marks or single quotation marks. This allows use of special characters, such as $, #, or /, in your object names. When you use a wildcard pattern to specify multiple spaces, you can include the wildcard characters * (asterisk) and % (percent) to provide matching on one or more characters. Using-wildcard-characters-in-the-object-name-specification tells you how wildcards are used and how BMC AMI Copy orders the results of wildcard expansions. | ||||||||||
TABLESPACE OBJECTSET objectSetName | Use TABLESPACE OBJECTSET objectSetName to specify the table spaces that are included in a BMC AMI Recovery Manager group that you want to migrate. The BMC AMI Recovery Manager group is identified by objectSetName. objectSetName identifies the BMC AMI Recovery Manager group that contains the table spaces. BMC AMI Copy does not allow wildcards to be specified with OBJECTSET and will issue messages regarding an invalid group name if wildcards are used. BMC AMI Copy accesses the BMC Common Db2 repository and the Db2 catalog to retrieve the table spaces that are defined for the group. For more information about BMC AMI Recovery Manager groups, see the BMC AMI Recovery Manager for Db2 documentation. | ||||||||||
TAGSET tagName | Use the TAGSET option to include table spaces tagged with a tag name in the COPY command. All table spaces with the specified tag are selected for EXPORT processing. Use EXCLUDE to omit unwanted table spaces. | ||||||||||
TAPEVOLS | The TAPEVOLS option requests that EXPORT capture volser and file sequence number for image copies on tape and include them in the migration file. TAPEVOLS allows BMC AMI Recover to import from the image copies when they are not cataloged on the target system.
|
Related topic