OBIDXLAT specification
- For multiple-table table spaces, rows are not translated for which there is no OBID clause, but you must code at least one OBID clause with both source and target values, or you must code a DBID or PSID clause.
- For an index, if you code an OBID clause, you must code two OBID clauses, one for the index and one for the table on which the index is built. When INCOPY is specified for an index, you might omit both OBID clauses, in which case the source OBID for the index and the table is taken from the image copy. If you do not omit the ID clauses, you must code both the target and source values for both OBID clauses.
If you code INCOPY and OBIDXLAT, you must code TOCOPY or you must supply the source DBID and PSID in the clause. You can use the USEHDROBIDS option (USEHDROBIDS and USEHDROBIDS-YES) to indicate if the OBIDs in the header are valid or not.
If you code OBIDXLAT and log apply is required, you should also specify OUTCOPY ONLY. These specifications produce an output copy that you can use on a different system with different OBIDs. If you were to do OBIDXLAT to an existing space, the object IDs would no longer match.
For example, these are valid specifications:
INCOPY FULL DSNAME ... RBA X'123456'
or
INCOPY FULL DSNAME ...
TOCOPY LASTCOPY
The following example is not valid:
INCOPY FULL DSNAME ... RBA X'123456'
The syntax diagram for the OBIDXLAT specification is in RECOVER-TABLESPACE-RECOVER-INDEX-and-RECOVER-INDEXSPACE-syntax.
OBIDXLAT
Use the OBIDXLAT keyword to change the internal IDs in the Db2 table space or index as the table space or index is recovered.
Option | Description |
---|---|
RESET | The RESET keyword causes the log points in each data page to be reset to '0'. You must specify RESET when you are migrating data from one Db2 non-data-sharing system to another because the log point values on the first subsystem is meaningless or misleading on the target Db2. The recovery log point and level fields in the header page are also reset to 0 if you are not using the INDEPENDENT OUTSPACE option. If you are using the INDEPENDENT OUTSPACE option, the level fields are reset but the recovery log point is not. |
DBID (X'hexSourceID', X'hexTargetID') | |
DBID (decimalSourceID, decimalTargetID) | Optionally, specify this clause to provide the DBIDs to be translated. You can specify the DBID in hexadecimal or decimal format. |
PSID (X'hexSourceID', X'hexTargetID') | |
PSID (decimalSourceID, decimalTargetID) | Optionally, specify this clause to provide the PSIDs to be translated. You can specify the PSID in hexadecimal or decimal format. When you are recovering clone objects, remember that the base and clone objects are differentiated by differences in the PSID value. The high order bit of the PSID is used to refer to a particular data set instance number as follows:
Other than the high order bit, the PSID numbers are the same for both a base object and its clone. You should use the PSID with the high order bit set on for instance 2 objects in the OBIDXLAT translation specification. |
OBID (X'hexSourceID', X'hexTargetID') | |
OBID (decimalSourceID, decimalTargetID) | Optionally, specify this clause to provide the OBIDs to be translated. You can specify the OBID in hexadecimal or decimal format. |