24.12.2012 Views

Backing Up Oracle - Computing at Cornell

Backing Up Oracle - Computing at Cornell

Backing Up Oracle - Computing at Cornell

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

11.3.3 Crosscheck utility<br />

To list backups of archive logs between SCN 633200 until SCN 633300:<br />

RMAN> list backup of archivelog from scn 633200 until scn 633300;<br />

RMAN-03022: compiling command: list<br />

List of Backup Sets<br />

Key Recid Stamp LV Set Stamp Set Count Completion Time<br />

------- ---------- ---------- -- ---------- ---------- ----------------------<br />

3206 29 426005887 0 426005876 35 02-APR-01<br />

List of Backup Pieces<br />

Key Pc# Cp# St<strong>at</strong>us Completion Time Piece Name<br />

------- --- --- ----------- ---------------------- ------------------------<br />

3208 1 1 AVAILABLE 02-APR-01 BEACH/LOGS/426005876/35/1<br />

List of Archived Logs Included<br />

Thrd Seq Low SCN Next SCN Low Time Next Time<br />

---- ------- ---------- ---------- --------------- ---------------<br />

1 54 633190 633209 02-APR-01 02-APR-01<br />

The crosscheck utility verifies whether backups still exist on disk or TSM.<br />

RMAN does not delete backup entries th<strong>at</strong> it could not find, but instead marks<br />

them as expired. If the backup was erroneously marked expired because for<br />

example, TSM was unavailable or misconfigured, crosscheck will mark it<br />

available the next time it is run if the backup still exists.<br />

Like the list utility discussed in Section 11.3.2.3, “List backup of certain<br />

objects” on page 182, you can crosscheck certain objects. See the <strong>Oracle</strong> 8i<br />

Recovery Manager User Guide and Reference (A76990-1), for the complete<br />

syntax of the crosscheck utility.<br />

Here is a sample script to crosscheck all backup entries in the recovery<br />

c<strong>at</strong>alog or control file:<br />

alloc<strong>at</strong>e channel for maintenance type 'sbt_tape';<br />

crosscheck backup;<br />

exit;<br />

If you find th<strong>at</strong> the crosscheck expires any backup pieces, you can then run<br />

the command delete expired backup; to remove the entries from RMAN.<br />

184 <strong>Backing</strong> <strong>Up</strong> <strong>Oracle</strong> using Tivoli Storage Management

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

Saved successfully!

Ooh no, something went wrong!