Automated operator interface
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:
- 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. 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.- 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
- Online Reorg issues a /STA command on the database, which reschedules any suspended transactions.
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: