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 noti
fi
cation
. Adds a command for e-mail noti
fi
cation of the job instance status.
See
SetNoti
fi
cationPolicy
.
•
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 //
11
// Put the database in ’hot backup’ mode.
12 SetOracleModeUsingRepository ($repository, TSBACKUP) onerror pauseat E2:
13 //
14 DO {
15 // Replicate the items in the repository.
16 SnapshotOracleUsingRepository ($repository, FULLY_ALLOCATED, SAME, ORACLE_TABLESPACE,
NOWAIT) onerror pauseat E2:
17 //
18 } ALWAYS {
19 // Put the database back into normal mode.
244
Jobs
Содержание 418800-B21 - StorageWorks Modular Smart Array 70 Storage Enclosure
Страница 16: ...Tables 1 Document conventions 18 16 ...
Страница 20: ...20 About this guide ...
Страница 56: ...56 Replication Solutions Manager ...
Страница 160: ...160 Host volumes ...
Страница 384: ...384 Managed sets ...
Страница 402: ...402 Oracle ...
Страница 412: ...412 Storage systems ...
Страница 444: ...444 Virtual disks ...
Страница 456: ...456 CLUI ...