Running Online Consistent Copy jobs
Running Online Consistent Copy can include the following tasks:
- Starting Online Consistent Copy as a batch job
- Displaying the status of an Online Consistent Copy job
- Restarting a failed Online Consistent Copy job
- Terminating an Online Consistent Copy job
- Cleaning up the BMCUTIL and BMCSYNC tables
To run an Online Consistent Copy job, you must have the proper authorizations. Refer to Authorization-requirements for details.
Starting a job
An Online Consistent Copy job runs as a batch job. You start the job by submitting it for execution. Ensure that all target spaces have an acceptable initial status before you start an Online Consistent Copy job.
Displaying the status of jobs
You can determine the status of Online Consistent Copy jobs that are currently running or that have failed by issuing an SQL SELECT statement on the BMCUTIL table.
Use the following statement as an example where BMC.BMCUTIL is the BMCUTIL table name:
WHERE DBNAME='databaseName' AND
SPNAME='tableSpaceName'
If you installed the BMC AMI Change Manager for Db2 product with Online Consistent Copy, you can issue the BMCUTIL command in
to display the status of current BMC utility jobs. See the BMC AMI Catalog Manager for Db2 for more information about the BMCUTIL command.
Restarting a job that failed
If an Online Consistent Copy job fails, you should clean up the BMCUTIL and BMCSYNC tables and restart the job from the beginning, if needed.
See Cleaning up the BMCUTIL and BMCSYNC tables for more information.
Terminating a job during execution
If immediate termination of Online Consistent Copy is required, cancel the job by using the MVS or TSO CANCEL command. Then, use one of the methods described in Cleaning up the BMCUTIL and BMCSYNC tables to clean up the BMCUTIL and BMCSYNC tables.
Cleaning up the BMCUTIL and BMCSYNC tables
If an Online Consistent Copy job fails, you must clean up the BMCUTIL and BMCSYNC tables before running any more BMC utilities against the space.
You can use the following method to clean up the BMCUTIL and BMCSYNC tables:
- If you have installed
version 3.4, fix lib 3606 or greater, you can issue the BMCUTIL TERM command from
. See the BMC AMI Catalog Manager for Db2for more information.
Related topic