HP P6000 Replication Solutions Manager Administrator Guide (T3680-96069, June 2012)

Data file #2 for WEBWEBorc2.ora
Data file #3 for WEBWEBorc3.ora
Volume G:
Data file #4 for WEBWEBorc4.ora
Data file #5 for WEBWEBorc5.ora
Volume H:
Archived redo logs only
To capture all data files for the WEB tablespace, a replication manager job would need to create
replicas for E:, F:, and G:. This is because the WEB tablespace has data files located on all three
volumes. The SYSTEM and USER tablespaces would need replicas of both E: and F:, and the TEMP
tablespace would need a replica of E: only.
Constructing replication manager jobs
Once you have created the pre.bat and post.bat files and determined the list of volumes that
need to be replicated, you have enough information to construct the replication manager jobs.
The following sample replication manager job replicates the WEB tablespace described in
“Determining which volumes need to be replicated” (page 70). This sample use the fully allocated
snapshot method. Depending on the storage array, other replication methods may also be available.
See the HP P6000 Replication Solutions Manager User Guide for more information on replication
types and methods.
NOTE: These samples are included for informational purposes only and are not intended to be
used as is.
Sample replication manager job
This sample job was created using the Replicate host volumes, mount to a host template. The number
of volumes to replicate is set to 3 and the Suspend source before replication and Launch backup
after replication check boxes are selected. The comments and validation steps that are typically
seen with this template have been removed for clarity.
// Sample RSM job for WEB tablespace
Launch ( "Server1", "pre.bat", "", WAIT, "0" ) onerror pauseat E1:
DO {
$Rep1 = SnapshotHostVolume ( "\\Server1\E:\", FULLY_ALLOCATED, SAME, NOWAIT )
onerror pauseat E1:
$Rep2 = SnapshotHostVolume ( "\\Server1\F:\", FULLY_ALLOCATED, SAME, NOWAIT )
onerror pauseat E2:
$Rep3 = SnapshotHostVolume ( "\\Server1\G:\", FULLY_ALLOCATED, SAME, NOWAIT )
onerror pauseatE
} ALWAYS {
Launch ( "Server1", "post.bat", "", WAIT, "0" )
}
WaitForStorageVolumesDiscovery ( $Rep1 ) onerror pauseat E4:
WaitForStorageVolumesDiscovery ( $Rep2 ) onerror pauseat E4:
WaitForStorageVolumesDiscovery ( $Rep3 ) onerror pauseat E4:
$HV1 = CreateHostVolume ( "\\Server1\E:\", $Rep1, "Backup-Server" ) onerror pauseat E6:
$HV2 = CreateHostVolume ( "\\Server1\F:\", $Rep2, "Backup-Server" ) onerror pauseat E7:
$HV3 = CreateHostVolume ( "\\Server1\G:\", $Rep3, "Backup-Server" ) onerror pauseat E8:
$MP1 = MountHostVolume ( $HV1, "L:" ) onerror pauseat E10:
$MP2 = MountHostVolume ( $HV2, "M:" ) onerror pauseat E11:
$MP3 = MountHostVolume ( $HV3, "N:" ) onerror pauseat E12:
Launch ( "Backup-Server", "backup.bat", "", WAIT, "0" ) onerror pauseat E12:
Pause ( )
//Unwind section
E12: UnmountHostVolume ( $MP3 ) onerror pauseat E11:
E11: UnmountHostVolume ( $MP2 ) onerror pauseat E10:
E10: UnmountHostVolume ( $MP1 ) onerror pauseat E9:
E8: DeleteHostVolume ( $HV3 ) onerror pauseat E8:
E7: DeleteHostVolume ( $HV2 ) onerror pauseat E7:
E6: DeleteHostVolume ( $HV1 ) onerror pauseat E6:
E4: DeleteStorageVolumes ( $Rep3 ) onerror pauseat E4:
E3: DeleteStorageVolumes ( $Rep2 ) onerror pauseat E3:
Using the replication manager to back up an Oracle database 71