04.04.2013 Views

EMC Backup and Recovery for Oracle 11g OLTP Enabled by EMC ...

EMC Backup and Recovery for Oracle 11g OLTP Enabled by EMC ...

EMC Backup and Recovery for Oracle 11g OLTP Enabled by EMC ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix A: Scripts<br />

NetWorker<br />

RMAN backup<br />

script<br />

0200000000000000<br />

naviseccli -h 172.30.226.20 snapview -syncclone -name redo13 -cloneid<br />

0200000000000000<br />

naviseccli -h 172.30.226.20 snapview -syncclone -name redo14 -cloneid<br />

0200000000000000<br />

naviseccli -h 172.30.226.20 snapview -syncclone -name redo15 -cloneid<br />

0200000000000000<br />

naviseccli -h 172.30.226.20 snapview -syncclone -name redo16 -cloneid<br />

0200000000000000<br />

The naviseccli comm<strong>and</strong>s below were used to fracture the proxy clone.<br />

naviseccli -h 172.30.226.20 snapview -consistentfractureclones -<br />

CloneGroupNameCloneId data1 0200000000000000 data2 0200000000000000<br />

data3 0200000000000000 data4 0200000000000000 temp1 0200000000000000<br />

temp2 0200000000000000 temp3 0200000000000000 temp4 0200000000000000<br />

ocr 0200000000000000 voting 0200000000000000 redo1 0200000000000000<br />

redo2 0200000000000000 redo3 0200000000000000 redo4 0200000000000000<br />

redo5 0200000000000000 redo6 0200000000000000 redo7 0200000000000000<br />

redo8 0200000000000000 redo9 0200000000000000 redo10 0200000000000000<br />

redo11 0200000000000000 redo12 0200000000000000 redo13<br />

0200000000000000 redo14 0200000000000000 redo15 0200000000000000<br />

redo16 0200000000000000<br />

naviseccli -h 172.30.226.20 snapview -consistentfractureclones -<br />

CloneGroupNameCloneId fra1 0200000000000000 fra2 0200000000000000<br />

fra3 0200000000000000 fra4 0200000000000000 -o<br />

The RMAN script below is a typical example of one used to generate backups<br />

through the NetWorker console.<br />

This example shows an eight-channel incremental level 0 backup to tape. Each<br />

backup was assigned a tag ID, which was later used as part of the restore process.<br />

RUN {<br />

ALLOCATE CHANNEL CH1 TYPE 'SBT_TAPE';<br />

ALLOCATE CHANNEL CH2 TYPE 'SBT_TAPE';<br />

ALLOCATE CHANNEL CH3 TYPE 'SBT_TAPE';<br />

ALLOCATE CHANNEL CH4 TYPE 'SBT_TAPE';<br />

ALLOCATE CHANNEL CH5 TYPE 'SBT_TAPE';<br />

ALLOCATE CHANNEL CH6 TYPE 'SBT_TAPE';<br />

ALLOCATE CHANNEL CH7 TYPE 'SBT_TAPE';<br />

ALLOCATE CHANNEL CH8 TYPE 'SBT_TAPE';<br />

BACKUP<br />

INCREMENTAL LEVEL 0<br />

FILESPERSET 1<br />

FORMAT '%d_%U'<br />

TAG= 'RUN529'<br />

DATABASE PLUS ARCHIVELOG;<br />

backup controlfilecopy '+FRA/ORCL/control_backup' tag= 'RUN529_CTL';<br />

RELEASE CHANNEL CH1;<br />

RELEASE CHANNEL CH2;<br />

RELEASE CHANNEL CH3;<br />

RELEASE CHANNEL CH4;<br />

RELEASE CHANNEL CH5;<br />

RELEASE CHANNEL CH5;<br />

RELEASE CHANNEL CH7;<br />

RELEASE CHANNEL CH8;<br />

}<br />

<strong>EMC</strong> <strong>Backup</strong> <strong>and</strong> <strong>Recovery</strong> <strong>for</strong> <strong>Oracle</strong> <strong>11g</strong> <strong>OLTP</strong> <strong>Enabled</strong> <strong>by</strong> <strong>EMC</strong> CLARiiON, <strong>EMC</strong> Data Domain, <strong>EMC</strong> NetWorker,<br />

<strong>and</strong> <strong>Oracle</strong> <strong>Recovery</strong> Manager using NFS Proven Solution Guide<br />

79

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!