Use this command to create a copy (mirrored volume) of a database volume. Mirroring the database increases database availability and provides a safeguard against media failure. You can have as many as two copies of a database volume. After each database volume copy is defined, the server attempts to synchronize the volume copy with the database.
All database volumes reside on a random access volume. Volume copies must have at least the same capacity as the original volume and should be defined on separate physical devices. Any additional space on the volume copy is not used.
This command generates a background process that you can cancel with the CANCEL PROCESS command. If a DEFINE DBCOPY process is canceled, the volume copy is created. However, synchronization processing is canceled, leaving the volume in a stale state. To display information on background processes, use the QUERY PROCESS command.
Privilege Class
To issue this command, you must have system privilege or unrestricted storage privilege.
Syntax
>>-DEFine DBCopy--volume_name--copy_volume_name----------------><
Parameters
Enter this name as either a the fully qualified path or a name relative to the server's current working directory. For example, if the file name is mainvol, enter the path name as:
/usr/adsmserv/bin/mainvol
Examples
Task
Create a database volume copy named DB.2 for the database volume named DB.1.
Related Commands
Table 47. Commands Related to DEFINE DBCOPY
Command | Description |
---|---|
CANCEL PROCESS | Cancels a background server process. |
DEFINE DBVOLUME | Assigns a volume to be used for database storage. |
DELETE DBVOLUME | Deletes a volume from the database. |
QUERY DBVOLUME | Displays information database volumes. |
QUERY PROCESS | Displays information about background processes. |