How can I use BMC Unload Plus for Db2 Utility to unload data from an image copy generated at a Db2 Subsystem, when running the Unload Plus job at another Subsystem, for example, to replicate Production data in a Test environment? |
You can use BMC Unload Plus for Db2 Utility to unload data from an Image Copy generated at a Db2 Subsystem, when running the Unload Plus job at a different Db2 Subsystem, for example, to Replicate Production data in a Test environment, These are the steps of a procedure that you can use: 1.- Extract the HDDL of the Source Tablespace that you want to unload data from - You can use BMC Catalog Manager for Db2 HDDL command, executed against the Source Base Tablespace. 2.- Transmit or copy the DDL script containing the SQL CREATE statements of the Tablespace and Table you want to unload data from, to the Target system. 3.- Edit the transmitted DDL to comply with the standards of the Target environment and execute it to create the Target Tablespace and Table. Important Note:
4.- Generate a Full Image Copy either with IBM Copy or BMC AMI Copy for Db2, on a Shared Dasd unit, or on a Tape unit that can be accessed from both the Source Db2 Subsystem and the Target Db2 Subsystem. 5.- Generate a BMC Unload Plus for Db2 Utility JCL in the Target Db2 Subsystem, pointing to the Image Copy taken in step 4 above, allocated to your JCL like in this example: //IMAGECOP DD DISP=SHR, // DSN=prefix.IC.dbname.tsname.Pnnn.Dicdate 6.- SInce the Image Copy that is used as Input to Unload Plus in the Target Subsystem was generated in a different Db2 Subsystem, you need to specify three keywords in the Unload Plus job:
UNLOAD INFILE IMAGECOP UNICODE CNTLCARDS DB2LOAD CNTLDDN SYSPUNCH FIXEDVARCHAR YES ORDER YES SORTNUM 32 SELECT * FROM Creator.Name (OBID id) ESTROWS nnnn Where:
|