Swapping Primary and Secondary Databases and Continuing FailSafe

This procedure allows you to close down a primary/secondary pair and start them up again, but in a reverse configuration.

Note

  • This procedure must be carried out on the primary.
  • This procedure can only be used when FailSafe logging is active and all users are logged off.

Procedure

  1. Select option 5 on the Miscellaneous menu.
  2. A confirmation prompt is displayed — enter y to automatically execute the following procedure:

    • The primary database is locked.
    • A pre-shutdown Proc called TL-SHUTDOWN is run on the primary. The contents of this Proc are intended to be entirely site-specific, but typically it will request all users to logoff, stops all TIPHs, Despoolers, background servers etc. TL-SHUTDOWN is in the SYSPROG-PL file.
    • Any remaining users are logged off, the primary database is shutdown and reconfigured as a secondary.
    • A pre-startup Proc called PRESTARTUP is run on the new primary. The contents of this Proc are intended to be entirely site-specific, but typically it starts processes which must be run before users can log on, such as application integrity checkers. PRESTARTUP is in the SYSPROG-PL file.
    • The secondary is reconfigured as a primary and unlocked, allowing users to log on.
    • A post-startup Proc called STARTUP is run on the new primary. The contents of this Proc are entirely site-specific, but typically it will start processes to perform other initialisation procedures such as, starting TIPHs and Despoolers. STARTUP is in the SYSPROG-PL file.
  3. After approximately one minute the procedure completes with the message:

        Primary and Secondary roles reversed.
    This system is now the Secondary, please logon to the Primary and run tlmenu from that system.