HP StorageWorks 70 HP StorageWorks Replication Solutions Manager 4.0.1 job com - Page 73
Replicate Oracle tablespaces template
View all HP StorageWorks 70 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 73 highlights
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 // 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. HP StorageWorks Replication Solutions Manager 4.0.1 73