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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix A: Scripts<br />

<strong>Oracle</strong> RMAN<br />

restore script<br />

The restore process consisted of first allocating eight channels, then restoring the<br />

controlfile, mounting the database, <strong>and</strong> per<strong>for</strong>ming the restore database comm<strong>and</strong><br />

using the tag ID assigned earlier. Below is a sample restore script.<br />

RUN<br />

{<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 />

restore controlfile from tag'RUN529_CTL';<br />

alter database mount;<br />

restore DATABASE from tag'RUN529';<br />

RELEASE CHANNEL CH1;<br />

RELEASE CHANNEL CH2;<br />

RELEASE CHANNEL CH3;<br />

RELEASE CHANNEL CH4;<br />

RELEASE CHANNEL CH5;<br />

RELEASE CHANNEL CH6;<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 />

80

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

Saved successfully!

Ooh no, something went wrong!