Copy or Move the ACF2 database from one catalog to another in a shared environment
book
Article ID: 257670
calendar_today
Updated On:
Products
ACF2 - z/OSACF2ACF2 - MISC
Issue/Introduction
This document outlines how to copy or move the ACF2 database from one catalog to another in a shared environment.
Sites running ACF2 in a shared database environment should ensure that the ACF2 databases are in their own User Catalog (USERCAT). The USERCAT should not contain any other data sets. In addition, the USERCAT should not be on the same device as any of the ACF2 databases.
Resolution
The following steps can be followed to copy/move the ACF2 databases to a new catalog/volume.
Make a copy of the ACFBKUP* job which can be found in the ACF2 installation CAX1PROC library. Name the copied job ACFBKUP2. Make changes to the ACFBKUP2 JCL copy to:
Delete the alternate backup databases.
Redefine the alternate backup databases on the new catalog.
Copies the primary (currently active) backup databases to the redefined alternate backup databases.
Make another copy of the ACFBKUP* Name the copied job ACFBKUP3. Make changes to the ACFBKUP3 JCL copy to:
Delete the primary databases.
Redefine the primary databases on the new catalog.
Copies the primary (currently active) backup database to the redefined primary databases.
Run the ACF backup command, which is defined in the GSO BACKUP record. This command backs up the primary (active) database to the primary backup database.
F ACF2,BACKUP
Run the ACFBKUP2 job to define/copy the alternate backup database to the new catalog.
Switch from the primary databases to the alternate backup databases on all LPARs that share the ACF2 database by a. stopping and starting ACF2 or b. by issuing the SWITCH** command. Use the SWITCH** command only when increasing the ACF2 database size, not the ACF2 database record size.
To stop and restart ACF2:
P ACF2 S ACF2,PARM='DDSN(ALT)'
ALT Specifies the alternate database name, as defined in the ACFFDR @DDSN macro.
To run the SWITCH** command:
F ACF2,SWITCH(ALT)
Run the ACFBKUP3 job to define/copy the primary databases to the new catalog.
Switch from the alternate backup databases to the primary databases on all LPARs that share the ACF2 database by a. stopping and starting ACF2 or b. by issuing the SWITCH** command. Use the SWITCH** command only when increasing the ACF2 database size, not the ACF2 database record size.
To stop and restart ACF2:
P ACF2 S ACF2,PARM='DDSN(PRIMARY)'
PRIMARY Specifies the primary database name, as defined in the ACFFDR @DDSN macro.
To run the SWITCH** command:
F ACF2,SWITCH(PRIMARY)
Additional Information
* NOTE: For details on the ACFBKUP job see ACF2 documentation section: Database Recovery sub-section: ‘ACFBKUP Procedure’.
** NOTE: For details on the SWITCH command see ACF2 documentation section: Console Operator Commands Summary sub-section: ‘Switch Databases’.