The following sections illustrate how to use archecker commands.
You can manually control the stager and applier using the -l command line option. For Extended Parallel Server, manual control is required when you have multiple storage managers that contain logical logs.
The following examples show how to perform a logical restore. In all examples, the name of the schema command file is cmdfile.
The following example is a typical usage:
archecker -bvs -f cmdfile
This command is equivalent to the following command:
archecker -bvs -f cmdfile -lphys,stage,apply
After the physical restore is complete, the archecker utility starts the stager. After the stager has started, the applier is automatically started.
In the following example, the -lphys option performs a physical-only restore:
archecker -bvs -f cmdfile -lphys
In the following example, the -lstage option starts the archecker stager. The stager extracts the logical log records from the storage manager and saves the applicable records to a table.
archecker -bvs -f cmdfile -lstage
The stager should only be started after physical recovery has completed.
In the following example, the -lapply option starts the archecker applier. It looks in the acu_control table for the transaction to recover. The applier should only be started after the stager has been started.
archecker -bvs -f cmdfile -lapply
If you use multiple storage managers, you can perform a table level restore with archecker by configuring archecker on every node.
To perform a table-level restore that involves multiple storage managers:
archecker -DX
archecker -bX -lphys
Do not use the -d option.
archecker -bX -lstage
Do not use the -d option.
archecker -bX -lapply
If you have a fragmented table that resides in separate dbspaces, you can perform a physical table-level restore in parallel by executing multiple archecker commands with different schema command files for each dbspace.
In this example, the table is fragmented across three dbspaces. The corresponding schema command files are named cmdfile1, cmdfile2, cmdfile3. The following commands delete previous restores and then perform physical restores on each dbspace in parallel:
archecker -DX archecker -bvs -f cmdfile1 -lphys archecker -bvs -f cmdfile2 -lphys archecker -bvs -f cmdfile3 -lphys
You cannot perform a logical restore in parallel.
Enterprise Edition Home | Express Edition Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]