The procedure for installing this feature in a VM environment has three steps. You must do these steps in order.
This step is mandatory.
Figure 10. Minidisk Space Calculation for Data Restore VM Installation
3375 : 16 CYLINDERS
3380 : 10 CYLINDERS
3390 : 9 CYLINDERS
9345 : 10 CYLINDERS
FBA : 10000 BLOCKS
This step is mandatory.
In this step, you define the database manager resources so that you can run Data Restore.
You need three public dbspaces:
Note: | This dbspace is not acquired during installation. |
Using ISQL, enter the following commands:
Figure 11. Acquiring the Required Dbspaces
(1) ---> SQLINIT DBNAME(dbname)
(2) ---> ISQL
(3) ---> CONNECT SQLDBA IDENTIFIED BY XXXXXXXX
(4) ---> ACQUIRE PUBLIC DBSPACE NAMED DATARFTR (PAGES=6400,PCTFREE=0,STORPOOL=n)
(5) ---> ACQUIRE PUBLIC DBSPACE NAMED DATARFT2 (PAGES=1024,PCTFREE=0,PCTINDEX=10,
STORPOOL=n)
(6) ---> EXIT
Note: | With the STORPOOL parameter, you may select either a recoverable or a nonrecoverable storage pool. Use a nonrecoverable storage pool, if possible. |
You are now ready to complete the Data Restore installation.
This process consists of four mandatory steps and two optional steps.
This step is mandatory.
Log on to the Data Restore userid and execute the commands in Figure 12.
Figure 12. Loading the Installation Files
(1) ---> ACCESS cuu1 A
(2) ---> ATTACH cuu2 to * as 181
(3) ---> VMFPLC2 REW
(4) ---> VMFPLC2 LOAD
(5) ---> SQLINIT DBNAME(dbname)
This step is mandatory.
Run the following EXEC:
Figure 13. Creating the Database Environment
XTS9CRE
This EXEC creates the required database environment; for example, tables used internally by the product.
When prompted, enter the appropriate SQL CONNECT statement to connect to the database as user SQLDBA, or, if the VM userid has DBA authority, press the enter key.
This step is mandatory.
Run the following EXEC:
Figure 14. Loading the Data Restore Packages
XTS9PREP
This EXEC loads the Data Restore packages into the database.
When prompted, enter the appropriate SQL CONNECT statement to connect to the database as user SQLDBA, or, if the VM userid has DBA authority, press the enter key.
This step is mandatory.
Run the following EXEC:
Figure 15. Creating the Data Restore Modules
XTS9GMOD
This EXEC creates the Data Restore executable modules XTS91001, and XTS91002. These modules are used to invoke various functions such as BACKUP, for example.
Data Restore is now installed in one application server. You may want to take a backup of your database at this point.
This step is optional.
If you want to install Data Restore in additional application servers on the same VM system, repeat the following steps:
This step is optional.
While using Data Restore, you can pass parameters in the SYSIN file. Instead of passing these parameters, you can modify and assemble the LMBRPARM program to specify default values for them.
Notes:
Figure 16. XTS9PARM ASSEMBLE Program (Catalog Default Values)
(1) ---> MACRO
(1) ---> LMBRPARM &NOTA=E,&CASE=M,&DEVICE=TAPE, *
(1) ---> &COMMIT=0,&MSGCLAS=1,&MSGDEV=3, *
(1) ---> &DBAPW=SQLDBAPW,&BASE=SQL/DS V3R5,&LANG=S01,&CONFIRM=YES
LCLB &BIT1,&BIT2;
DC CL11'&PWD'
&BIT1 SETB ('&DEVICE' EQ 'TAPE')
&BIT2 SETB ('&DEVICE' EQ 'DASD')
DC AL1(&BIT1+&BIT2*2)
&BIT1 SETB ('&NOTA'(1,1) EQ 'E')
DC AL1(&BIT1)
&BIT1 SETB ('&CASE'(1,1) EQ 'M')
&BIT2 SETB ('&CASE'(1,1) EQ 'U')
DC AL1(&BIT1+&BIT2*2)
DC AL4(&COMMIT)
DC AL1(&MSGCLAS)
DC AL1(&MSGDEV)
DC CL8'&DBAPW'
DC CL8'&BASE'
DC CL4'&LANG'
DC CL1'&CONFIRM'
MEND
LMBRPARM CSECT
* in order to customize your default table
** modify the following statement specifying all required parameters
(2) ---> LMBRPARM LANG=S001,BASE=dbname
END LMBRPARM
Refer to OPTIONS and CONTROL Statements which explains the OPTIONS parameters on the LMBRPARM macro.
The CMS minidisk on which Data Restore is installed should be linked and accessed.
Note: | Link the minidisk with an address different from the minidisk of the application server to avoid LINK errors during operation. |
You can use a REXX EXEC like the one in Figure 17 to execute the Data Restore functions.
Figure 17. Example EXEC to Execute Data Restore Functions
/**/
'FILEDEF ARCHIV TAP1 SL 1 (RECFM VB BLOCK 32760'
'FILEDEF SYSPRINT DISK BACKUP SYSPRINT A'
'FILEDEF SYSIN DISK BACKUP SYSIN A'
'XTS91001'
The SYSIN specifies which function to process. In Figure 17, the SYSIN file starts Data Restore to execute a BACKUP command in a VM environment.