DB2 Server for VSE & VM: Control Center Operations Guide for VM


Chapter 4. Database Setup

This chapter describes how to set up a database to be managed by a Control Center service machine.

Prior to performing the database setup process detailed in this chapter you should have:


Database Setup Considerations

Prior to setting up a database to be managed by a Control Center service machine, you will need to make some decisions about the operation of the database. Control Center allows you to manage the operational functions of databases in different ways, adapting to the needs of each specific database. Decisions such as logmode; what type of archiving will be used (database or User); whether archives will use predefined tapes, scratch tapes, or disk files; and how often archives will be taken, need to be made prior to establishing a database under Control Center.

Naming Convention

Another important consideration for a database is the naming convention chosen for the database machine name and the database dbname. For ease of use and to eliminate confusion, the database machine name should be identical to the dbname. The System Administration tools rely on an IUCV communication between the Control Center service machine and the database machine. Most references within this manual and the Control Center interface for these tools will therefore use the term database to refer to the database machine name. Only Database Administration tools, which interface with the database as database applications, utilize the database dbname instead of the database machine name.

Control Center provides the capability to assign a database machine nickname in file SQLMSTR DIRECTRY. Therefore, if a database machine name differs from the dbname, it can be assigned a nickname equal to the dbname. This will allow users to enter either the database machine name or nickname (dbname) when using the Control Center panel interface. Control Center will automatically convert the nickname to the machine name prior to executing the requested tool.


Checklist for Setting up a Database to Work with Control Center


Notes:



Preliminary Setup

  1. Log On to the VM MAINT Machine ("Setup Step 1: Log On to the VM MAINT Machine")
  2. Redefine the Database Machine (SQLMACH) ("Setup Step 2: Redefine the Database Machine (SQLMACH)")
  3. Update the VM Directory ("Setup Step 3: Update the VM Directory")
  4. Add SQLMACH Machine to Autolog List ("Setup Step 4: Add SQLMACH Machine to Autolog List")
  5. Log Off the MAINT Machine ("Setup Step 5: Log Off the MAINT Machine")

    Control Files Setup

  6. Log On to the MSTROWN Machine ("Setup Step 6: Log On to the MSTROWN Machine")
  7. Link and Access the Control Center Code Disk ("Setup Step 7: Link and Access the Control Center Code Disk")
  8. Start Control Center Session ("Setup Step 8: Start Control Center Session")
  9. Define Database Parameters File ("Setup Step 9: Define Database Parameters File")
  10. Define Database TAPES File ("Setup Step 10: Define Database TAPES File")
  11. &circle. Define Database ARISPOOL File ("Setup Step 11: Define Database ARISPOOL File")
  12. End Control Center Session ("Setup Step 12: End Control Center Session")
  13. Migrate SQLMSTR DIRECTRY and DBINIT CONTROL Files ("Setup Step 13: Migrate SQLMSTR DIRECTRY and DBINIT CONTROL Files")
  14. &circle. SQLMSTR DIRECTRY Customization ("Setup Step 14: SQLMSTR DIRECTRY Customization")
  15. Log Off the MSTROWN Machine ("Setup Step 15: Log Off the MSTROWN Machine")

    Database Machine Setup

  16. Log On to the Database Machine (SQLMACH) ("Setup Step 16: Log On to the Database Machine (SQLMACH)")
  17. Link and Access the Control Center Code Disk ("Setup Step 17: Link and Access the Control Center Code Disk")
  18. Copy and Update DBPROF EXEC ("Setup Step 18: Copy and Update DBPROF EXEC")
  19. Run DBSTART EXEC ("Setup Step 19: Run DBSTART EXEC")

    Setup Verification

  20. &circle. Log On to the MSTROWN Machine ("Setup Step 20: Log On to the MSTROWN Machine")
  21. &circle. Verify Messages Received ("Setup Step 21: Verify Messages Received")
  22. &circle. Link and Access the Control Center Code Disk ("Setup Step 22: Link and Access the Control Center Code Disk")
  23. &circle. Review the Database Startup File ("Setup Step 23: Review the Database Startup File")


Preliminary Setup

Steps 1 through 5 prepare your database machine for interfacing with the Control Center product. Figure 6 summarizes what you will accomplish.

Figure 6. Database Machine in a Control Center Environment.  Database machine SQLMACH (A) has been added to the environment shown in Figure 7 using the database setup process. Service machine MSTRSRVO manages SQLMACH and is the owner of the Control Center code disk. A shared service machine (MSTRSRVS) could have been used instead of MSTRSRVO; it would link to the same code disk as SQLMACH. Communications between SQLMACH and MSTRSRVO is through the SCIF interface. 


View figure.

Figure 7. Virtual Machines and Minidisks in a Control Center Service Machine Full Installation.  MSTRSRVO (A) is the owner of the Control Center code disk (C). MSTROWN (B) links to the code disk in READ mode and is defined as the logical owner of MSTRSRVO. 


View figure.

Setup Step 1: Log On to the VM MAINT Machine

To begin the database machine setup, log on to the MAINT virtual machine.

Setup Step 2: Redefine the Database Machine (SQLMACH)

Change the VM directory entries for the database machine to activate the Secondary Console Interface Facility (SCIF) and to link the Control Center code disk. Refer to the appropriate Virtual Machine Operation manuals for a complete description of these statements.

Figure 8. Example VM Directory Control Statements for a Database Machine


View figure.

Statement 1: CONSOLE 009 3215 T MSTRSRVO
Defines the managing Control Center service machine as being the secondary console of the database machine. This is done by including T MSTRSRVO in the CONSOLE statement as shown.
Note:The managing service machine can either be the owner of the code disk or a service machine that shares a code disk.

Statement 2: LINK MSTRSRVO 195 547 RR
This statement links in READ mode to the same code disk linked to by the managing service machine. Depending on your environment, the code disk can be owned by a machine other than the managing service machine; (the managing service machine is sharing a code disk).

Instead of including the above statement in the VM directory, you may, during a later step, add a LINK statement to the PROFILE EXEC of the SQLMACH machine.
Note:SQLMACH must be authorized to access the Control Center code disk in READ mode.

Important:

  1. The IPL CMS statement should not include PARM AUTOCR. PARM AUTOCR causes an extra console interrupt to occur on the database machine when it is autologged. This results in problems with startup communications between the database machine and the Control Center service machine.
  2. SYSPROF EXEC should be checked to avoid additional console interrupts from being stacked during database startup. If the SYSPROF EXEC causes a problem, the IPL statement in the database machine directory can be modified to IPL CMS PARM NOSPROF.
  3. If minidisk passwords are used, please read Appendix C, Password Support for more information.

Setup Step 3: Update the VM Directory

After you have made the VM directory statement changes for the database machine, update the VM directory using your local operating procedures.

Setup Step 4: Add SQLMACH Machine to Autolog List

Under normal operations the SQLMACH machine should be autologged each time the CPU is IPLed. The SQLMACH machine should therefore be included in the list of virtual machines that are autologged each time the CPU is IPLed.

For proper startup of each database when the CPU is IPLed, the database machine must be autologged after the managing Control Center service machine.
Important:

  1. The Control Center service machine must be autologged prior to the database machine for SCIF communication to be properly established. Additionally, portions of the database startup process require that the Control Center service machine be fully operational.
  2. If problems occur with the database machine startup when the CPU is IPLed, then a CP SLEEP 1 MIN statement should be added near the beginning of the database machine's PROFILE EXEC. This will delay the startup of the database machine for 1 minute, giving the Control Center service machine a chance to become fully operational.

Setup Step 5: Log Off the MAINT Machine

Preliminary setup is now complete. Log off the MAINT machine.


Control Files Setup

Steps 6 through 15 generate the database control files listed below. These files are kept on the managing service machine's 191 A-disk.

Additionally, Control Center control files SQLMSTR DIRECTRY and DBINIT CONTROL are updated with entries for the new database. These files are kept on the service machine's 195 code disk.
Important:

If the managing service machine is using a shared code disk, additional steps are required to migrate the updated Control Center control files to the code disk.

The Control Center service machine must be operational to complete steps 8 through 12 and for the verification process. Refer to DB2 Server for VM Control Center Program Directory.

Setup Step 6: Log On to the MSTROWN Machine

Log on to the MSTROWN machine or any machine that has Control Center Administrator authority on the service machine specified on the CONSOLE statement in Setup Step 2 (the managing Control Center service machine).

Setup Step 7: Link and Access the Control Center Code Disk

Link and access the Control Center code disk in READ mode with an available virtual device address (CUU) and access mode |(for example, 195 D).

Notes:

  1. Depending on your environment, the code disk may already be linked and accessed.
  2. Depending on your environment, the code disk may be owned by a machine other than the managing service machine; (the managing service machine is sharing a code disk).

Setup Step 8: Start Control Center Session

To establish communications with MSTRSRV and to start Control Center in panel mode, enter these commands at the CMS command prompt:

SQM (MSTRSRV
SQM

Replace MSTRSRV with the machine ID of your service machine.

The Control Center Main Menu should now be displayed. Select Option N (New Database Setup) to display the panel shown in Figure 9. Enter the database machine name in field (A).

Figure 9. New Database Setup Panel

+--------------------------------------------------------------------------------+
| mm/dd/yyyy                      CONTROL CENTER                      hh:mm:ss   |
|*---------------------------- New Database Setup ----------------------------*  |
|| Command ==>                                              CTRLID: MSTRSRV   |  |
||    Database   => (A)                                      NODE:  VMSYSTM   |  |
||                                                                            |  |
||  This function allows the creation of Control Center files required to     |  |
||  manage a new database (PARMS, TAPES, ARISPOOL).  The PARMS file           |  |
||  will contain parameters associated with database operations               |  |
||  including startup, utility/tape and archiving parameters.  The            |  |
||  TAPES file will contain information about tapes or disks required         |  |
||  to archive and recover the database.  The ARISPOOL file defines           |  |
||  VM Dataspace usage.                                                       |  |
||                                                                            |  |
||  In addition to this setup process, the DBPROF EXEC located on the         |  |
||  CTRLCTR 191 (A) disk must be copied to the database 191 (A) disk and      |  |
||  renamed to PROFILE EXEC.  Without this PROFILE EXEC, the data base        |  |
||  will not communicate properly with CTRLCTR.  The database VM              |  |
||  directory must also direct secondary console output to the CTRLCTR        |  |
||  machine as defined in the database setup documentation.                   |  |
||                                                                            |  |
||  Select PF4 to create PARMS file, PF5 for TAPES file, PF6 for VMDSS file.  |  |
||                                                                            |  |
|*---------------------------------------------------------------SQMDBSET-----*  |
|PF: 1 Help   3 End   4 PARMS file    5 TAPES file    6 ARISPOOL file            |
+--------------------------------------------------------------------------------+

Setup Step 9: Define Database Parameters File

Press PF4 (PARMS file) to create the database parameters file. Refer to About the Database Parameters Tool for a complete description of the Database Parameters tool.

About the Database Parameters File

Control Center maintains a set of database startup and control parameters for each database machine it manages. Parameters for each database managed by the service machine are saved in separate files named database PARMS, where database is the database machine ID, and are kept on the Control Center service machine's 191 A-disk. Database parameters are separated into the | following general groups:

  1. Authorization/Notification parameters
  2. Utility parameters
  3. Tape parameters
  4. Archiving/Tracing parameters
  5. Database startup parameters
  6. Data Restore parameters

Complete information about the database parameters file, including the Data Restore enablement, can be found in Database Parameters File.

Setup Step 10: Define Database TAPES File


Terminology Used in this Section:

  1. The term output media refers to both tape (cartridge or reel-to-reel) and disk (CMS file) unless explicitly stated otherwise, as in "tape output medium".

  2. The use of the term tapes when referencing the "tapes file" is not meant to exclude disk output medium.

  3. The use of the term tapes in the Control Center panel interface is not meant, in most cases, to exclude disk output medium.

Press PF5 (TAPES file) to create the database TAPES file. Refer to Chapter 11, Tape Management Tool for a complete description of the Tape Management tool.

About the Database TAPES File

A separate database TAPES file is maintained by Control Center for each database machine it manages. Tapes files are named database TAPES, where database is the database machine ID, and are kept on the Control Center service machine's 191 A-disk.

Control Center uses the database TAPES file to maintain a list of output media assigned for usage during database archive, log archive, and trace activities. It must be defined prior to starting the database under Control Center control. When the database is started, FILEDEF and LABELDEF commands will be issued for the output media identified in this file. Control Center references and updates this file as necessary during archive, log archive, and trace activities.

It is the responsibility of the database administrator to assure that the TAPES file is created correctly, with valid tape volids and with series numbers that match those identified in the database parameters file. The SERIES parameters in the parameters file indicate which group of tapes within the TAPES file will be used for the next archive. After initially setting these parameters, Control Center will maintain the values automatically when archives are performed.

A full database archive will use as many archive tapes as it needs that have the same series number. Each subsequent log archive after a full archive will use tapes within the same series as the previous full archive. Even though tapes may be available elsewhere within the TAPES file, Control Center will not use them unless they have the same series number as that specified within the database parameters file.
Important:

Output media with the same series number are considered by Control Center to belong together as a single logical group.

An important consideration when creating this file is determining how many series of tapes should be included. At least three series should be created, although Control Center will operate with fewer. It should be remembered that if an archive fails, you would want to have at least one previous successful archive to fall back on.

Each tape included in the TAPES file should be labelled and assigned to the database machine which will be using it. This must be done by using whatever tape management system is installed on your system.

Scratch Tape Acquisition

If the DYNAM/T or VMTAPE product is used at your site, the SCRATCH TAPE ACQUISITION (S) option of the Tape Management tool can be used to add tapes to this file. This function will request that a scratch tape be mounted, and will acquire ownership of the tape for the indicated retention period and place it in the database TAPES file.
Usage Consideration:If you have DYNAM/T installed and use DYNOPEN as your tape method, the SCRATCH TAPE ACQUISITION tool cannot be used. Only DYNMOUNT supports the use of scratch tape acquisition. Check the SQLMSTR Control file to determine if DYNOPEN has been selected as the tape method for DYNAM/T, if this is the case, scratch tape acquisition will fail.
Important:

Check your tape facility to ensure that the RETENTION period parameter is implemented correctly.

If you are running under logmode Y or A, therefore doing only full database archives, you will only need to include ARCHIVE tapes within the TAPES file. You must assure that enough tapes are listed for each series to perform a complete database archive. You should also have at least one extra tape available in each series to allow for database growth. When a database starts up, every ARCHIVE tape in the specified series will be LABELDEFed for a multivolume archive. If enough tapes are not available to complete the archive, the results will be unpredictable (dependent upon the tape management system being used).

If you are running under logmode L, performing log archiving, then you will need to include LOG tapes within the TAPES file. These tapes will be used to dump the database log file when it becomes full.
Important:

Control Center expects that the entire log file will fit on a single LOG tape. This will enable log archives to be taken while the database remains up. If the log file is larger than what will fit on a single tape, then Control Center will not operate properly. This implementation is due to a restriction in CMS and database which prevents the LABELDEF command from being reissued while the database is running.

If you are doing tracing within the database, then you will need to include TRACE tapes within the TAPES file.

|For a complete description of the TAPES file format, refer to Database TAPES File Format.

Archives to Tape Examples

The following is an example database TAPES file for archiving to tape. It specifies that Control Center will rotate three sets of archive tapes (series 100, 200, 300). It also indicates that logmode L (log archiving) will be used. Each series has three ARCHIVE tapes, allowing for a database size that will fit entirely on three tapes. Each series also has two LOG tapes. This essentially allows for only one log archive between full database archives, since the first step of a full database archive under logmode L will be to perform a Log Archive.

You must have one LOG tape more than you expect to need between full database archives. Control Center will request a scratch tape to be mounted when no tapes are available for a given series in the database TAPES file. This cannot perform properly if VMTAPE or DYNAM/T is not being used. In an effort to prevent running out of tapes, Control Center will warn the DBA(s) whenever the last tape in a series is mounted.

Figure 10. Example TAPES File for Archiving to Tape

                                           VOLID/
 SERIES  TYPE     DATE   TIME     STATUS   FILENAME  FILETYPE  FM   CUU   CI
  100    ARCHIVE  00000  00:00:00 UNUSED   VOL100
  100    ARCHIVE  00000  00:00:00 UNUSED   VOL101
  100    ARCHIVE  00000  00:00:00 UNUSED   VOL102
  100    LOG      00000  00:00:00 UNUSED   VOL110
  100    LOG      00000  00:00:00 UNUSED   VOL111
  200    ARCHIVE  00000  00:00:00 UNUSED   VOL200
  200    ARCHIVE  00000  00:00:00 UNUSED   VOL201
  200    ARCHIVE  00000  00:00:00 UNUSED   VOL202
  200    LOG      00000  00:00:00 UNUSED   VOL210
  200    LOG      00000  00:00:00 UNUSED   VOL211
  300    ARCHIVE  00000  00:00:00 UNUSED   VOL300
  300    ARCHIVE  00000  00:00:00 UNUSED   VOL301
  300    ARCHIVE  00000  00:00:00 UNUSED   VOL302
  300    LOG      00000  00:00:00 UNUSED   VOL310
  300    LOG      00000  00:00:00 UNUSED   VOL311

The matching entries in the database parameters file for the initial database setup would be:

Figure 11. Matching Database Parameters for Archiving to Tape

 Archive-media     => TAPE
 Archive-blksize   => 28672
 Archive-series    => 100
 
 Logarch-media     => TAPE
 Logarch-blksize   => 28672
 Logarch-series    => 300

The following is an example database TAPES file for archiving to tape using Incremental Backup. Series 100 consists of a set of dual backup entries for primary backup and secondary backup and three sets of dual Incremental Backup. Each tape belonging to an Incremental Backup within series 100 is grouped together by the subseries prefix. If the database is using logmode L (log archiving), then a log archive would have been performed before each BACKUP and Incremental Backup.

Figure 12. Example TAPES File using Incremental Backup

(1)               100  ARCHIVE  98032  16:37:21 FILLED QU1371
                  100  ARCHIVE  98032  16:46:58 FILLED QU1372
                  100  BACKUP2  98032  16:37:21 FILLED QU1373
                  100  BACKUP2  98032  16:41:08 FILLED QU1374
(2)               100  01INCBK  98033  17:50:01 FILLED QU1375
                  100  01INCBK2 98033  17:50:02 FILLED QU1376
(3)               100  02INCBK  98034  17:30:01 FILLED QU1377
                  100  02INCBK  00000  00:00:00 UNUSED QU1378
                  100  02INCBK2 98034  17:30:02 FILLED QU1379
                  100  02INCBK2 00000  00:00:00 UNUSED QU1380
(4)               100  03INCBK  98035  17:50:10 FILLED QU1381
                  100  03INCBK  98035  17:50:15 FILLED QU1381
                  100  03INCBK  00000  00:00:00 UNUSED QU1382
                  100  03INCBK2 98035  17:50:11 FILLED QU1383
                  100  03INCBK2 98035  17:50:17 FILLED QU1384
                  100  03INCBK2 00000  00:00:00 UNUSED QU1385
(5)               200  ARCHIVE  98036  16:37:21 FILLED QU1386
                  200  ARCHIVE  98036  16:46:58 FILLED QU1387
                  200  BACKUP2  98036  16:37:21 FILLED QU1388
                  200  BACKUP2  98036  16:41:08 FILLED QU1389
(6)               200  01INCBK  98037  17:50:01 FILLED QU1375
                  200  01INCBK2 98037  17:50:02 FILLED QU1376
                  200  02INCBK  98038  17:30:01 FILLED QU1377
                  200  02INCBK  00000  00:00:00 UNUSED QU1378
                  200  02INCBK2 98038  17:30:02 FILLED QU1379
                  200  02INCBK2 00000  00:00:00 UNUSED QU1380
                  200  03INCBK  98039  17:50:10 FILLED QU1381
                  200  03INCBK  98039  17:50:15 FILLED QU1381
                  200  03INCBK  00000  00:00:00 UNUSED QU1382
                  200  03INCBK2 98039  17:50:11 FILLED QU1383
                  200  03INCBK2 98039  17:50:17 FILLED QU1384
                  200  03INCBK2 00000  00:00:00 UNUSED QU1385

(1)-- On Sunday a dual Full Backup was performed using series 100.

(2)-- On Monday, an Incremental Backup was performed using the tapes in series 100 and subseries 01 (01INCBK).

(3)-- On Tuesday, an Incremental Backup was performed using subseries 02 (02INCBK).

(4)-- On Wednesday, two tapes were used for both the primary and secondary Incremental Backup using subseries 03 (03INCBK and 03INCBK2).

(5)-- On Thursday, a new Full Backup was executed using series 200.

(6)-- On Friday, a new set of Incremental Backup.s are executed in series 200 starting with subseries 01 (01INCBK).

Archives To Disk Example

The following is an example database TAPES file for archiving to disk. It specifies that Control Center will rotate three sets of archive files (series 100, 200, 300). It also indicates that logmode L (log archiving) will be used. Each series has one ARCHIVE file, since the entire database must fit on a single FILEDEFed minidisk. Each series also has two LOG files. This essentially allows for only one log archive between full database archives, since the first step of a full database archive under logmode L will be to perform a log archive.
Important:

There are several restrictions and special precautions that apply when archiving to disk rather than tapes. These are discussed in detail in About Archiving to Disk.

Figure 13. Example TAPES File for Archiving to Disk

                                           VOLID/
 SERIES  TYPE     DATE   TIME     STATUS   FILENAME  FILETYPE  FM   CUU   CI
  100    ARCHIVE  00000  00:00:00 UNUSED   ARCHFN1   ARCHFT1   H    500
  100    LOG      00000  00:00:00 UNUSED   LOGFN1    LOGFT1    I    501
  100    LOG      00000  00:00:00 UNUSED   LOGFN2    LOGFT2    I    501
  200    ARCHIVE  00000  00:00:00 UNUSED   ARCHFN2   ARCHFT2   J    502
  200    LOG      00000  00:00:00 UNUSED   LOGFN3    LOGFT3    K    503
  200    LOG      00000  00:00:00 UNUSED   LOGFN4    LOGFT4    K    503
  300    ARCHIVE  00000  00:00:00 UNUSED   ARCHFN3   ARCHFT3   L    504
  300    LOG      00000  00:00:00 UNUSED   LOGFN5    LOGFT5    M    505
  300    LOG      00000  00:00:00 UNUSED   LOGFN6    LOGFT6    M    505 

The matching entries in the database parameters file for the initial database setup would be:

Figure 14. Matching Database Parameters for Archiving to Disk

 Archive-media     => DISK
 Archive-blksize   => 4096
 Archive-series    => 100
 
 Logarch-media     => DISK
 Logarch-blksize   => 4096
 Logarch-series    => 300

Using Scratch Tapes Example

The following is an example database TAPES file for archiving to scratch tapes. This option is currently only available for those installations which use the VMTAPE or DYNAM/T product.

This setup is designed to allow you to stack multiple scratch tapes in a cartridge tape hopper for use by Control Center at night without operator intervention (see Appendix H, Tape Hopper Support). Since Control Center will not be requesting a specific volid for each tape mount, this option eliminates the need for intervention to mount the correct tape.

For Control Center to handle this option properly, the database parameter Scratch-tape-option (in the database parameters file) must be assigned the value Y, and the database TAPES file must be set up in a special way, with dummy placeholder entries for each tape type in each series. Control Center will request scratch tapes for each mount and will add them into the TAPES file automatically, for a possible future recovery. When Control Center rotates through the different series within the TAPES file, any previously added tapes will automatically be removed when the archive begins.
Usage Consideration:Only ARCHIVE tape placeholders are required for this option, even when using logmode L (log archiving). Control Center will automatically request scratch tapes for log archives when there are no pre-assigned volids available, even when this special option is not being used.

Figure 15. Example TAPES File for Archiving to Scratch Tapes

                                           VOLID/
 SERIES  TYPE     DATE   TIME     STATUS   FILENAME  FILETYPE  FM   CUU   CI
  100    ARCHIVE  00000  00:00:00 UNUSED   SCRATCH
  200    ARCHIVE  00000  00:00:00 UNUSED   SCRATCH
  300    ARCHIVE  00000  00:00:00 UNUSED   SCRATCH

The matching entries in the database parameters file for the initial database setup would be:

Figure 16. Matching Database Parameters for Archiving to Scratch Tapes

 Scratch-tape-option => Y
 
 Archive-media     => TAPE
 Archive-blksize   => 28672
 Archive-series    => 100
 
 Logarch-media     => TAPE
 Logarch-blksize   => 28672
 Logarch-series    => 300

Setup Step 11: Define Database ARISPOOL File

Press PF6 (ARISPOOL file) to create the storage pool specifications file. Refer to About the Database Parameters Tool for a complete description of the Database Parameters tool used to create the ARISPOOL file.

About the Storage Pool Specification File

The storage pool specifications file allows you to control the database VM Data Spaces feature at the individual storage pool level. Storage pool specifications for each database managed by the service machine are saved in separate files named database ARISPOOL, where database is the database machine ID, and are kept on the Control Center service machine's 191 A-disk.

Three VMDSS specifications can be specified for storage pools:

  1. Whether data spaces support or the standard database DASD I/O system is to be used (data space support is the default).
  2. The working storage residency priority, for those pools that use data spaces (a residency priority of 3 is the default).
  3. Whether or not striping is used (striping is the default).

These settings can be changed dynamically while the database is running by issuing specific database operator commands. Dynamic changes, however, do not change the settings in the database's storage pool specifications file, the file used at database startup time.

For more detailed information on using VMDSS, refer to the DB2 Server for VSE & VM Performance Tuning Handbook manual.

Setup Step 12: End Control Center Session

Exit the Control Center panel interface using PF3.

Setup Step 13: Migrate SQLMSTR DIRECTRY and DBINIT CONTROL Files

Important:

This step is required only if the managing Control Center service machine does NOT own the code disk.

Control Center control files SQLMSTR DIRECTRY and DBINIT CONTROL are automatically updated with entries for the new database. These files are kept on the Control Center 195 code disk. If the managing service machine owns the code disk, the updated files are automatically migrated to the code disk. However, if the service machine is using a shared code disk, Control Center will be unable to migrate the files and will, instead, return the updated files to your virtual reader. Additional steps are then required to migrate the updated control files to the code disk. These steps are outlined below.
Important:

You should always migrate files SQLMSTR DIRECTRY and DBINIT CONTROL to the code disk after each database setup.

You will need access to a machine that has Control Center Administrator authority on the service machine that owns the code disk. (The machine having Administrator authority is referred to as MSTROWNO; the service machine owning the code disk is referred to as MSTRSRVO.) Depending on your environment, this machine may be different than the one used in previous steps.

Preliminary Steps:

Complete these steps only if the machine used to perform the database setup process (MSTROWN) does not have Control Center Administrator authority on the service machine that owns the code disk.

  1. Receive files SQLMSTR DIRECTRY and DBINIT CONTROL from the virtual reader to the A-disk using the CMS RECEIVE command.
  2. Send files SQLMSTR DIRECTRY and DBINIT CONTROL to MSTROWNO using the CMS SENDFILE command.
  3. Erase files SQLMSTR DIRECTRY and DBINIT CONTROL from the A-disk.
  4. Log off the MSTROWN machine.
  5. Log on to the MSTROWNO machine.

File Migration Steps:

  1. Receive files SQLMSTR DIRECTRY and DBINIT CONTROL from the virtual reader to the A-disk using the CMS RECEIVE command.
  2. Send files SQLMSTR DIRECTRY and DBINIT CONTROL to MSTRSRVO using the CMS SENDFILE command.

    MSTRSRVO will automatically receive the files to the code disk after first making backup copies of the existing files. You should receive these confirmation messages from MSTRSRVO after the files have been received:



    07:48:23  * MSG FROM MSTRSRVO: SQMRDR: SQLMSTR  DIRECTRY D received by MSTRSRVO at VMSYSM1
    07:48:23  * MSG FROM MSTRSRVO: SQMRDR: DBINIT   CONTROL  D received by MSTRSRVO at VMSYSM1
    

  3. Erase files SQLMSTR DIRECTRY and DBINIT CONTROL from the A-disk.
  4. Log off the MSTROWNO machine.
  5. Log back on to the MSTROWN machine to complete the Control File Setup Process.

Setup Step 14: SQLMSTR DIRECTRY Customization

Depending on the naming convention chosen for the database machine name and database name (dbname) or whether your environment includes database machines managed by Control Center on remote nodes, it may be necessary to change the default database machine nickname in file SQLMSTR DIRECTRY. (The default nickname is equal to the database machine name.)

In brief, the steps for manually updating file SQLMSTR DIRECTRY are:

  1. Copy SQLMSTR DIRECTRY from the code disk to the A-disk.
  2. Update using XEDIT.
  3. Migrate the updated file to the code disk by sending it to the service machine that owns the code disk. This must be done from a machine which has Control Center Administrator authority on the service machine that owns the code disk.
    Note:See the previous step for an example on how to migrate a file to the code disk.

SQLMSTR DIRECTRY File Format and Example


Table 4. SQLMSTR DIRECTRY File Format
Field Description
1 Database Machine Name or Database Nickname
2 Database Machine Name or Virtual Machine ID
3 Control Center service machine Name
4 Control Center service machine Node ID
   

Figure 17. Example SQLMSTR Directry File

 SQLDBA1  SQLMACH  MSTRSRV1 VMSYSM1
 SQLDBA2  SQLMACH  MSTRSRV2 WMAVM1
 CPVEND   CPVENDBA SQMSTTS1 WMAVM1
 TOTDBA2  TOTDBA   SQLMSTR  MANVM2
 TOTDBA7  TOTDBA   SQLMSTR  WMAVM7
 SQMSTDBA CPMICDBA SQLMSTR  WMAVM1
 TOTTST7  TOTTST   SQLMSTR  WMAVM1
 ACCTDBA  ACCTDBA  SQLMSTR  WMAVM1
 STARDBA  STARDBA  SQLMSTR  WMAVM1

The first two entries from the example SQLMSTR DIRECTRY file contain databases that each have the same machine name but reside on different nodes. In order to identify each database, we need to specify unique nicknames (SQLDBA1 and SQLDBA2). The first database exists on VMSYSM1 and communicates through the MSTRSRV1 machine. The second database exists on WMAVM1 and communicates through the MSTRSRV2 machine.

You can have one or many Control Center machines on the same node. You can have the same Control Center machine name on different nodes, and one Control Center service machine can support one or more databases.
Important:

If the same database machine name exists on two different nodes, you must always use the nickname to direct communication to the correct database. In the previous example, if a Control Center command was issued to SQLMACH, the results would be unpredictable. If you had previously been communicating with the database on WMAVM1, then Control Center would direct your new command to the same node. If you were previously communicating with a third (different) database and directed a command to SQLMACH, the command cannot be directed to your desired database. The best policy is to always qualify the database name with the node ID or use the established unique nickname.

Setup Step 15: Log Off the MSTROWN Machine

Control files setup is now complete. Log off the MSTROWN machine.


Database Machine Setup

The next set of steps set up the database machine to work with a Control Center service machine.

Setup Step 16: Log On to the Database Machine (SQLMACH)

Log on to the database machine to complete the installation of the new database under Control Center control.

Setup Step 17: Link and Access the Control Center Code Disk

Access the Control Center code disk used by the managing service machine with an available disk access mode (D). If you did not include a LINK statement in the VM directory (Setup Step 2: Redefine the Database Machine (SQLMACH)) you will first need to link to the code disk with an available CUU (547).
Note:SQLMACH must be authorized to access the Control Center code disk in READ mode.

Setup Step 18: Copy and Update DBPROF EXEC

Use these commands to make a backup copy of the existing database machine PROFILE EXEC and to replace it with the DBPROF EXEC from the code disk (547 D).

COPYFILE PROFILE EXEC A PROFILE OEXEC A (REP
COPYFILE DBPROF EXEC D PROFILE EXEC A (REP

The PROFILE EXEC file may need to be modified for any LINK and ACCESS statements required at your installation.
Important:

If you did not include a LINK statement in the VM directory (Setup Step 2: Redefine the Database Machine (SQLMACH)) for the Control Center code disk or use a device address (CUU) other than 547, you will need to modify the PROFILE EXEC.

A partial listing of the PROFILE EXEC is shown in Figure 18.

  • The ACCESS statement for the Control Center code disk is indicated by an (A).
  • If required, a LINK to the Control Center code disk should be inserted immediately before the ACCESS statement.

Figure 18. Partial Listing of the Database Machine PROFILE EXEC (Renamed from DBPROF EXEC)

    /* DBPROF  EXEC  */
    /*   5697-F42 (C) COPYRIGHT IBM CORP. 1990, 2000   */
    /*   Licensed material - Program Property of IBM   */
    trace 'o'
    address COMMAND
 
    'SET AUTOREAD OFF'
 
     /*** try default access of SQLMSTR 195 disk for directory links ***/
     accopts = Read_globalv('SQLMSTR' 'Disk_access_options')
     if accopts > ' ' then accopts = '(' || accopts
 
     'SET CMSTYPE HT'
(A)  address CMS 'ACCESS 547 D' accopts
     'SET CMSTYPE RT'
 
    /********************************************/
    /*  Check to see if a terminal is connected */
    /********************************************/
    termaddr = '
     'EXECIO * CP (STRING QUERY USERS' userid()
                      .
                      .
                      .

Two database disks will be linked by the database machine during normal operation: the database production disk (usually referred to as the 195 disk) and the database service disk (usually referred to as the 193 disk). During most database operations, both of these disks are linked in READ mode. During certain database single user mode operations (coldlogs, adding dbextents, adding dbspaces), the 195 disk will be linked in WRITE mode. These disks are linked by the DBLINK EXEC which is supplied with Control Center and are linked as the 195 (Q filemode) and 193 (V filemode) unless otherwise specified in the database parameters file. It is the responsibility of the installer to handle any DIRMAINT or access requirements of the installation environment which will allow the DBLINK exec to switch between read and write links to these disks. This may require a modification to the DBLINK EXEC file.

Other Disk Links

If the database machine needs access to other local disks, the PROFILE EXEC should be modified to add the required LINK and ACCESS statements. When the DYNAM/T, EPIC or VMTAPE product is used, a link may be required to provide the database with access to code required for tape operation. For example, the DMSTVI module must be accessed when VMTAPE or EPIC is used. The DMSTVI module is required to support multivolume archive tapes.

Setup Step 19: Run DBSTART EXEC

If all of the previous steps were completed successfully, then the database can be started using the database startup parameters defined earlier by entering this command at the CMS command prompt:

DBSTART

The DBSTART process will disconnect the database machine from your console and will start the database initiation process under control of Control Center.


Setup Verification

The following steps will determine whether the database machine and the managing service machine can communicate.

Setup Step 20: Log On to the MSTROWN Machine

Log on to the MSTROWN machine or any machine that has Control Center Administrator authority on the service machine specified on the CONSOLE statement in Setup Step 2; (the managing Control Center service machine).

Setup Step 21: Verify Messages Received

If, during database startup processing, you are logged on to a machine with Control Center Administrator authority, you should receive these messages:



11:41:43  * MSG FROM MSTRSRV: SQMA0025I SQLMACH=> Database .... testing SCIF interface
11:41:50  * MSG FROM MSTRSRV: SQMA0025I SQLMACH=> Database .... is starting
11:42:36  * MSG FROM MSTRSRV: SQMA0045I SQLMACH=> database has been started, logmode
Note:You must be logged on at the time database startup processing on SQLMACH issues the messages for it to appear on your console. Continue with the verification steps even if you do not receive a message.

Setup Step 22: Link and Access the Control Center Code Disk

Link and access the Control Center code disk in READ mode with an available virtual device address (CUU) and access mode (547 D).

Notes:

  1. Depending on your environment, the code disk may already be linked and accessed.
  2. Depending on your environment, the code disk may be owned by a machine other than the managing service machine; (the managing service machine is sharing a code disk).

Setup Step 23: Review the Database Startup File

Enter these commands at the CMS command prompt to request a copy of the database SQLSTART file:

SQM (MSTRSRV
SQM CMS SENDFILE SQLMACH SQLSTART TO MSTROWN

Replace MSTRSRV, SQLMACH and MSTROWN with appropriate machine IDs.

MSTRSRV will send the SQLSTART file (SQLMACH SQLSTART) to your virtual reader where it can be viewed using the CMS PEEK command. Review this file to verify successful database startup.

Shown in Figure 19 is an example database SQLSTART file.

Figure 19. Example Database SQLSTART File



ARI0025I Database testing SCIF interface...
ARI0025I TVITEST: DMSTVS MODULE available
"ACCESS 547 D (NOSAVE" performed, RC=0
ARI0025I DB2
VERSION 6 RELEASE 1 MOD 0
File SQLMACH DBEXTMAP A1 sent to MSTRSRV at VMSYSM1 on 05/25/97 14:24:06
14:24:08  * MSG FROM MSTRSRV : SQMRDR: SQLMACH DBEXTMAP A received
by MSTRSRV at VMSYSM1
DMSLBD441R Enter VOLID information:
DMSLBD441R Enter VOLID information:
DMSLBD441R Enter VOLID information:
DBM0001I OVERRIDE Startup Parameters Request
ARI0717I Start SQLSTART EXEC: 05/25/97 14:24:29 EDT.
ARI0663I FILEDEFS in effect are:
Z        DISK     DMSNAM   LOADLIB  *
ARIARCH  TAP1  SL  00001  VOLID QU1412
ARISQLLD DISK     ARISQLLD LOADLIB  Q1
BDISK    DISK     300
LOGDSK1  DISK     201
LOGDSK2  DISK     202
DDSK1    DISK     200
DDSK2    DISK     204
DDSK3    DISK     220
DDSK4    DISK     221
DDSK5    DISK     222
DDSK7    DISK     224
DDSK9    DISK     240
DDSK12   DISK     243
DDSK13   DISK     244
DDSK14   DISK     245
DDSK15   DISK     225
DDSK10   DISK     241
ARIUSRDD DISK     USERLIB  LOADLIB  *
ARITRAC  TAP2  SL  00001
ARILARC  TAP3  SL  00001
ARI0025I The program ARISQLDS is loaded at 6F8000.
ARI0025I The program ARIXRDS is loaded at 59F000.
ARI0025I The program ARIXSXR is loaded at 932000.
ARI0025I The program ARICMOD is loaded at 988000.
ARI0012I The database manager ignores ARCHPCT = 79
         when LOGMODE = Y or N.
ARI0015I ACCOUNT parameter value is N.
ARI0015I DUMPTYPE parameter value is P.
ARI0015I LOGMODE parameter value is Y.
ARI0015I STARTUP parameter value is W.
ARI0015I SYSMODE parameter value is M.
ARI0015I EXTEND parameter value is N.
ARI0015I CHARNAME parameter value is ENGLISH.
ARI0015I DBNAME parameter value is SQLMACH.
ARI0015I PARMID parameter value is SQLMACH.
ARI0015I TRACDSC parameter value is 00.
ARI0015I TRACRDS parameter value is 0000000.
ARI0015I TRACDBSS parameter value is 00000000000.
ARI0016I CHKINTVL parameter value is 10.
ARI0016I NCSCANS parameter value is 30.
ARI0016I NCUSERS parameter value is 6.
ARI0016I NDIRBUF parameter value is 1000.
ARI0016I NLRBS parameter value is 3022.
 
ARI0016I NLRBU parameter value is 1000.
ARI0016I NPAGBUF parameter value is 400.
ARI0016I SLOGCUSH parameter value is 90.
ARI0016I SOSLEVEL parameter value is 10.
ARI0016I DISPBIAS parameter value is 7.
ARI0283I Log analysis is complete.
ARI0282I LUW UNDO is completed.
ARI0281I LUW REDO is completed.
ARI0060I DB2 initialization complete.
ARI0045I Ready for operator communications.

Setup Step 24: Load the Control Center Packages

Control Center includes a database PACKAGE that improves its ability to perform SQL queries.

  1. Log onto a user ID with Database Administrator authority on the database.
  2. Enter the following commands at the CMS command prompt to load the SQLRX PACKAGE into the database:

    If DBINIT returns an error message: "ERROR: dbmach does not exist in the DBINIT CONTROL file," this indicates that the DBINIT CONTROL file was not set up properly. Refer to Maintaining the DBINIT CONTROL File for details on how to modify this file.


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