Some databases must run 24 hours a day. Since user archives cannot be taken online, only DB2 database archives can be taken if the database must remain online.
There are two ways to process a DB2 archive tape to restore individual tables:
Notes:
Figure 100. Translating a DB2 Server for VSE & VM Archive into a BACKUP
Before you can recover from DB2 Server for VSE & VM archives, you need to create some work files.
Recommended sizes for the work files are as follows:
Example of JCL (VSE) to translate an archive tape
Figure 101. Sample JCL to Translate an DB2 Server for VSE Archive into a BACKUP File
// JOB TRANSLATE
(1) ---> // LIBDEF *,SEARCH=(PRD2.DB2vrm,PRD2.RCVvrm)
(2) ---> // TLBL ARIARCH,'ARCHIVE.DB2'
(3) ---> // TLBL ARCHIV,'BACKUP.DB2'
(4) ---> // DLBL SYS0001,,,VSAM,RECSIZE=4096,RECORDS=(100,100)
(5) ---> // DLBL HEADER,,,VSAM,RECSIZE=4096,RECORDS=(100,100)
(6) ---> // DLBL DIRWORK,,,VSAM
(7) ---> // EXEC XTS91001,SIZE=AUTO
(8) ---> TRANSLATE
/*
Example of an EXEC to translate an archive tape
Figure 102. Sample EXEC to Translate a DB2 Server for VM Archive into a BACKUP File
/**/
(1) ---> 'FILEDEF ARIARCH TAP1 SL 1 (RECFM FB BLOCK 28672 LRECL 4096'
(2) ---> 'FILEDEF ARCHIV DISK BACKUP DATA G (RECFM VB BLOCK 32760'
(3) ---> 'FILEDEF SYS0001 DISK SYS0001 DATA H(RECFM F BLOCK 4096'
(4) ---> 'FILEDEF HEADER DISK HEADER DATA H(RECFM F BLOCK 4096'
(5) ---> 'FILEDEF DIRWORK DISK DIRWORK DATA H(RECFM F BLOCK 0512'
(6) ---> 'FILEDEF SYSIN DISK TRANS SYSIN A'
(7) ---> 'FILEDEF SYSPRINT DISK TRANS SYSPRINT A'
(8) ---> 'XEDIT TRANS SYSIN A'
(9) ---> 'XTS91001'
The SYSIN file must contain the following statements:
Figure 103. Sample SYSIN to Translate a DB2 Server for VM Archive into a BACKUP File
(1) ---> TRANSLATE
The list of all reloadable tables is displayed on SYSPRINT.
Figure 104. Sample Report after Translation of a DB2 Server for VM Archive
XTS9-143 OPTIONS
XTS9-143 TRANSLATE
XTS9-143 /*
XTS9-100 Data Restore feature VERSION 7.1.0
XTS9-193 MOUNT FIRST TAPE OF DATABASE SERVER ARCHIVE
XTS9-406 ENTER 0(CANCEL) OR 1(CONTINUE)
XTS9-403 REPLY IS 1
XTS9-013 TABLE SQLDBA .ACTIVITY MAY BE RELOADED
XTS9-013 Table SQLDBA .ALLGOOD MAY BE RELOADED
XTS9-013 Table SQLDBA .A0001 MAY BE RELOADED
XTS9-013 Table SQLDBA .A0002 MAY BE RELOADED
.
.
XTS9-013 Table SQLDBA .A0011 MAY BE RELOADED
XTS9-007 Processing successfully completed
Notes: