RATE THIS ANSWER
0
Click to Vote:
0
0
Last Answered:
May 15 2008 5:39 PM GMT
by DB2 DBA
Use the DSN1COPY Utility to copy the data back into the original tablespace. No translation required
or
Use the DSN1COPY utility to copy the data into a new tablespace from the Image Copy. You must know the old and new DBID, PSID and OBID
The Index Rebuild utility can be used to reconstruct the indexes.
To obtain the names, DBIDs, PSIDs, ISOBIDs, and OBIDs, run the DSNTEP2 sample application on both the source and target systems.
The following SQL statements yield the above information:
Note: The example for indexes yields the above information, along with an additional column of data.
Product-sensitive Programming Interface For table spaces:
SELECT DBID, PSID FROM SYSIBM.SYSTABLESPACE
WHERE NAME=’tablespace_name’
AND DBNAME=’database_name’;
SELECT NAME, OBID FROM SYSIBM.SYSTABLES
WHERE TSNAME=’tablespace_name’
AND CREATOR=’creator_name’;
|
|
For index spaces:
SELECT DBID, ISOBID, OBID FROM SYSIBM.SYSINDEXES
WHERE NAME=’index_name’
AND CREATOR=’creator_name’;