DB2 Server for VSE & VM: Data Restore Guide


Complex Environment Considerations

Installation Considerations

The previous sections contain installation instructions for simple environments; generally, with one or more databases in a single VM or VSE system, or in a single VM/VSE Guest Sharing environment.

This section will consider more complex installations, with multiple databases in multiple operating systems on multiple processors.

A complete installation of Data Restore, as described in previous sections, is needed on every independent system which has a DB2 Server for VSE & VM server installed. Some installation steps must be repeated for every additional server on the same system. If you do not do these steps for a server, Data Restore cannot be used with that server.

If you want to be able to perform Data Restore functions against more than one server on the same system at the same time, you will need to repeat some other steps. This requires that you have one set of work areas (i.e. a userid with minidisk space under VM or a set of VSAM work files under VSE) per simultaneous use of Data Restore.

Installations which use VSE Guest Sharing and also have servers running under the same VSE system must install Data Restore on both the VM and the VSE systems.

In general:

The following table (Table 5) summarizes which installation steps you must perform and which ones you may need to repeat, depending on your environment and operational needs. Remember that "Step 3.6 Define Default Values for Data Restore Parameters" is optional.

Table 5. Installation Steps Summary
Step Description: Do Once per System? Do Once per Server? Repeat if Simultaneous Usage or Multiple Defaults are needed?
  VM:


Step 1. Define the VM Resources Yes
1 3
Step 3.1 Load Data Restore from Tape Yes

Step 3.4 Create the Data Restore Modules Yes

Step 2. Define the Database Manager Resources
Yes
Step 3.2 Create the Database Environment
Yes
Step 3.3 Load the Data Restore Packages
Yes
Step 3.6 Define Default Values for Data Restore Parameters Yes
3
  VSE:


Step 1. Define the Library to be Installed Yes
2 3
Step 2. Restore the Data Restore Distribution Library Yes

Step 3.4 Link-edit the Data Restore PRDI Yes

Step 3.1 Acquire the Required Dbspaces
Yes
Step 3.2 Create the Required Tables
Yes
Step 3.3 Reload the Data Restore Packages
Yes
Step 3.5 Define the VSAM Files for Data Restore Yes
Yes 2
Step 3.6 Define Default Values for Data Restore Parameters Yes
3

Notes on Table 5:

  1. If multiple, simultaneous usage of Data Restore is required against multiple servers, multiple userids must be defined and the files and modules must be available to all of these userids. The minidisk containing the Data Restore feature can be shared R/O among these userids, but each userid requires R/W minidisk space for work files.
  2. If multiple, simultaneous usage of Data Restore is required against multiple servers, you must define multiple VSAM work files. You must either use a separate VSAM user catalog for each set of identically named work files, or you must specify different work file names in the same VSAM user catalog. In either case, changes will need to be made to the JCL to point to the correct set of work files. All jobs can share the same sublibrary containing the Data Restore feature.
  3. For VM: If you want different defaults to apply, you must set up a separate minidisk for each set of defaults desired. As you can override all defaults using control statements, it is normally not worthwhile to set up multiple minidisks just to have different sets of defaults. This also requires the userid running Data Restore to link and access the correct minidisk. Note that "Step 3.4 Create the Data Restore Modules" must be repeated, as the modules must be recreated before the defaults become active.

    For VSE: If you want different defaults to apply, you must set up a separate sublibrary for each set of defaults desired. As you can override all defaults using control statements, it is normally not worthwhile to set up multiple sublibraries just to have different sets of defaults. This also requires JCL changes to set the correct library search chain. Note that "Step 3.4 Link-edit the Data Restore PRDI" must be repeated, as the phases must be recreated before the defaults become active.

    For both: If you decide to use multiple defaults minidisks or sublibraries, you must reinstall from the distribution tape or copy from the initial minidisk/sublibrary, redefine the defaults, and then regenerate the CMS modules or re-linkedit the VSE phases. Finally, you must set up the extra work minidisk space or VSAM files.

A Complex Environment Example

Consider the following complex example, as shown in Figure 45. In this environment, it is assumed that the VSE-Virtual system can access the VM databases via Guest Sharing.

Figure 45. A Complex Environment

ARIDCOEN

The recommended sequence for installing Data Restore on all servers is as follows:

  1. The Data Restore feature should be installed completely into DB-TST on VM-2 by doing VM installation "Step 1. Define the VM Resources" through "Step 3.6 Define Default Values for Data Restore Parameters".
  2. Likewise, Data Restore should be installed completely into DB-VTST on VSE-Native by doing VSE installation "Step 1. Define the Library to be Installed" through "Step 3.6 Define Default Values for Data Restore Parameters".
  3. You can then test Data Restore under both VM and VSE to ensure it is installed and working correctly.

  4. Then you would repeat VM installation steps for DB-C on VM-2:
  5. Then you would repeat VSE installation steps for DB-V3 on VSE-Native:
  6. Next, a complete install of the feature would be done for, say, DB-A on VM-1 and again for DB-V1 on VSE-Virtual.
  7. Then you would repeat VM installation steps for DB-B on VM-1:
  8. Then you would repeat VSE Installation steps for DB-V2 on VSE-Virtual:

This would complete the install of Data Restore on all systems and in all servers. No extra steps are needed because of Guest Sharing access because servers also exist on the VSE-Virtual system.

If you have a Guest VSE system which accesses VM servers via VSE Guest Sharing, but does not also have DB2 Server for VSE databases, you need to define a sublibrary and install Data Restore into it, as described in Step 4. Define the VSE Resources and Step 5. Complete the VSE Installation Process.

If simultaneous usage of Data Restore is required against multiple databases on the same system, you need to repeat some other steps. See the notes under Table 5.

Security and Authorizing Access to the Server Minidisks (VM Only)

The Data Restore feature must have READ and WRITE access to the server's database disks (i.e. the directory, log, and dbextent minidisks). If you have multiple servers, this applies to these disks on all servers which are to be used with Data Restore.

The following possible scenarios are considered:

  1. An external security manager is used

    In this case, you must authorize the Data Restore userid to have WRITE access to all the databases disks, for each database userid.

  2. No external security manager, all minidisks have identical read and identical write passwords on all servers

    In this case, you must set the READPW and WRITEPW parameters to the correct passwords in the control file. These are described in "OPTIONS and CONTROL Statements".

  3. No external security manager, all minidisks do not have identical read or write passwords

    You must put LINK statements into the VM Directory entry for the Data Restore userid for all minidisks for the servers, using the same addresses as used by the dbname SQLFDEF Q file of the server. If you have multiple servers with identical addresses, this will not work, and you will need to set up multiple Data Restore userids so they can each have one or more sets of LINK commands in the VM Directory.

  4. No external security manager, minidisks have no passwords

    This is effectively the same case as the previous one.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]