Automated operator interface


The Online Reorg function uses an automated operator interface (AOI) at the beginning of the reorganization and during the data set name swapping task.

Online Reorg uses internal logic to communicate with IMS.

Online Reorg issues a /DIS DB dbdName command to check the status of the database. Online Reorg analyzes the response of the /DIS DB command. The AOI proceeds as follows, based on the status of the database:

  • STOPPED,NOTOPEN
    If the database is stopped and not open, Online Reorg does not need to issue any commands. The database can enter the reorganization phase.
  • Any other status
    Online Reorg issues a /BMCPAU command to quiesce the database.

If the database is in any status other than STOPPED,NOTOPEN, the following process occurs:

  1. The AOI replaces the first two /DBR commands in the online reorganization process with the /BMCPAU command.
    This command establishes a sync point instead of taking the database offline. Online Reorg sets a quiesce bit in the IMS control blocks of the database. This bit tells the scheduler to stop scheduling transactions that contain the database in its PSB.
  2. Online Reorg waits five seconds and scans all transactions to see whether any active transactions are accessing the database.
    If active transactions exist, Online Reorg waits another five seconds and checks again. This cycle repeats until the transaction activity for the database has quiesced or 30 attempts to quiesce have failed.

    Warning

    Note

    If Online Reorg fails to obtain a sync point, the function automatically switches to /DBR processing.

  3. When all transaction activity has finished and no active transactions are using the database, the CRF component takes one of the following actions (based on whether the sync point occurred before or after the copy phase):
    • Turns on Database Log Capture
    • Turns off Database Log Capture and turns on Database Change Capture
  4. Online Reorg issues a /STA command on the database, which reschedules any suspended transactions.
Warning

Note

If SNAPSHOT is being used, Online Reorg sets a single sync point at the beginning of the reorganization. In this case, only Database Change Capture is turned on. /BMCPAU is not used with SNAPSHOT, so Online Reorg issues a /DBR command to establish the sync point.

If necessary, the AOI issues a /DBR command. Online Reorg waits five seconds, issues a /DIS DB command, and checks the response. If any database does not have STOPPED,NOTOPEN status, Online Reorg issues another /DIS DB command. This cycle repeats until the database is stopped or 30 attempts have failed. If any databases are not stopped after 30 attempts, messages BMC90465 and BMC90466 are issued to request operator intervention.

This section contains the following topics:

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC AMI Online Reorg for IMS 5.1