Replicate Oracle Tablespaces (Template) - HP 418800-B21 - StorageWorks Modular Smart Array 70 Storage Enclosure User Manual

Hp storageworks replication solutions manager 4.0.1 user guide (t3680-96308, june 2008)
Hide thumbs Also See for 418800-B21 - StorageWorks Modular Smart Array 70 Storage Enclosure:
Table of Contents

Advertisement

Replicate Oracle tablespaces (template)

Template summary
A.
Create a repository that contains the desired database components.
B.
Quiesce the Oracle database by putting it in 'hot backup' mode.
C.
Replicate the tablespace(s).
D.
Put the database back into normal operating mode.
E.
Pause.
F.
Delete the storage volume(s).
G.
Delete the repository.
Template options
Use snapclone instead of snapshot. Generates a template that uses snapclone replication.
Include e-mail notification. Adds a command for e-mail notification of the job instance status.
See SetNotificationPolicy.
Keep replicas. Generates a template that does not include a pause and rollback section for
deleting the replicas.
Example
This template was generated to replicate Oracle tablespaces, with no template options selected.
Line Task
1
// Replicate Oracle tablespace(s).
2
//
3
// Assign some variables that will be used in this job.
4
$source_database_unc = SetVariable(%source_database_unc%)
5
//
6
// Create a repository of the desired components.
7
$repository = CreateOracleRepository ($source_database_unc) onerror pauseat E1:
8
// Add the desired tablespaces.
9
AddOracleTablespacesToRepository($repository, %unc_tablespace_names%) onerror pauseat E2:
10
//
1 1
// Put the database in 'hot backup' mode.
12
SetOracleModeUsingRepository ($repository, TSBACKUP) onerror pauseat E2:
13
//
14
DO {
15
// Replicate the items in the repository.
SnapshotOracleUsingRepository ($repository, FULLY_ALLOCATED, SAME, ORACLE_TABLESPACE,
16
NOWAIT) onerror pauseat E2:
17
//
18
} ALWAYS {
19
// Put the database back into normal mode.
244
Jobs

Advertisement

Table of Contents
loading

Table of Contents