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.

When you use the RMAN command to delete a backup piece, the<br />

corresponding object on TSM storage needs to be inactiv<strong>at</strong>ed. If this does not<br />

happen, then an inconsistency has been introduced between <strong>Oracle</strong> RMAN<br />

and TSM. Common to all computing, whenever you keep inform<strong>at</strong>ion about<br />

an object in two loc<strong>at</strong>ions, situ<strong>at</strong>ions can arise th<strong>at</strong> cause inconsistency<br />

between the two loc<strong>at</strong>ions.<br />

There are two types of inconsistent st<strong>at</strong>es th<strong>at</strong> you find. Firstly, if <strong>Oracle</strong><br />

RMAN has entries for backup pieces in the control file or recovery c<strong>at</strong>alog,<br />

and the corresponding backup piece does not exist on TSM storage. The<br />

second is the reverse situ<strong>at</strong>ion, where the TSM server has active backup<br />

pieces in its storage, but there is no corresponding entry in RMAN.<br />

B.5.1 RMAN references a non-existent TSM object<br />

For this situ<strong>at</strong>ion, you can use the RMAN crosscheck command. To simul<strong>at</strong>e<br />

this type of a problem, we took an RMAN backup, then used the TSM server<br />

command delete filespace to delete the TSM objects without removing the<br />

RMAN references to these objects.<br />

With RMAN and TSM in this inconsistent st<strong>at</strong>e, we did the following to<br />

synchronize them. All of these steps are done from RMAN.<br />

1. alloc<strong>at</strong>e channel for maintenance type ‘sbt_tape’;<br />

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

RMAN-03022: compiling command: alloc<strong>at</strong>e<br />

RMAN-03023: executing command: alloc<strong>at</strong>e<br />

RMAN-08030: alloc<strong>at</strong>ed channel: delete_02<br />

RMAN-08500: channel delete_02: sid=14 devtype=SBT_TAPE<br />

RMAN-08526: channel delete_02: MMS Version 2.1.10.0<br />

2. crosscheck backup;<br />

RMAN> crosscheck backup;<br />

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

RMAN-03023: executing command: XCHECK<br />

RMAN-08074: crosschecked backup piece: found to be 'EXPIRED'<br />

RMAN-08517: backup piece handle=STARTER/426340296/12/1 recid=12 stamp=426340296<br />

RMAN-03023: executing command: partial resync<br />

RMAN-08003: starting partial resync of recovery c<strong>at</strong>alog<br />

RMAN-08005: partial resync complete<br />

206 <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!