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.

7.2.3 Crosscheck utility<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, for example,<br />

because TSM was unavailable or misconfigured, the crosscheck utility will<br />

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

Like the list utility discussed in 7.2.2.3, “List backup of certain objects” on<br />

page 98, you can run the crosscheck utility on certain objects. See the<br />

<strong>Oracle</strong>8i Recovery Manager User Guide and Reference, A76990-1, for the<br />

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

parms 'ENV=(DSMO_NODE=sol_oracle,DSMO_AVG_SIZE=256,<br />

DSMI_ORC_CONFIG=/opt/tivoli/tsm/client/oracle/bin/dsm.opt,<br />

DSMI_LOG=/usr/local/oracle/log)';<br />

crosscheck backup;<br />

exit;<br />

7.3 Autom<strong>at</strong>ic deletion of old backups<br />

<strong>Oracle</strong> provides a sample UNIX shell script to delete obsolete backups. The<br />

example is in $ORACLE_HOME/rdbms/demo/rman1.sh. You can customize<br />

the script to your needs.<br />

Next we show a very simplified sample script to delete backups made under<br />

TSM. It maintains copies th<strong>at</strong> were cre<strong>at</strong>ed within the last three days, and <strong>at</strong><br />

least three copies. (Please note th<strong>at</strong> gre<strong>at</strong> care should be taken to ensure<br />

th<strong>at</strong> any deletion of backups is planned and tested before implement<strong>at</strong>ion in a<br />

production environment.)<br />

Chapter 7. Day-to-day monitoring of <strong>Oracle</strong> backups on UNIX 101

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

Saved successfully!

Ooh no, something went wrong!