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.

Note<br />

You should assume th<strong>at</strong> import will work only with files th<strong>at</strong> have been<br />

cre<strong>at</strong>ed by the same RDBMS's export utility.<br />

Most other utilities oper<strong>at</strong>e on the physical d<strong>at</strong>a files th<strong>at</strong> RDBMSs use to<br />

store their d<strong>at</strong>abases. Therefore, other utilities cannot normally be used to<br />

back up and restore a single table because:<br />

A single physical d<strong>at</strong>a file may contain d<strong>at</strong>a belonging to several tables.<br />

The d<strong>at</strong>a contained in a single table may be spread across multiple d<strong>at</strong>a<br />

files.<br />

Thus, the only way to gain access to the set of d<strong>at</strong>a contained in a single<br />

table is through the RDBMS itself.<br />

Export utilities are usually slower than most other utilities and should be used<br />

only when you need access to d<strong>at</strong>abase objects or raw devices.<br />

3.2.5 Full d<strong>at</strong>abase backup<br />

Full d<strong>at</strong>abase backups involve making copies of:<br />

D<strong>at</strong>a files used to hold user d<strong>at</strong>a<br />

D<strong>at</strong>a files th<strong>at</strong> hold tables used by the RDBMS itself<br />

RDBMS log files<br />

Any control files and parameter files th<strong>at</strong> the RDBMS uses<br />

Many RDBMSs allow you to perform full d<strong>at</strong>abase backup when the d<strong>at</strong>abase<br />

is either online or offline. However, the technique for full d<strong>at</strong>abase backup<br />

when the d<strong>at</strong>abase is online can be quite different from offline.<br />

To perform offline backup, you can use the oper<strong>at</strong>ing system utilities, RDBMS<br />

utilities, or TSM to back up the d<strong>at</strong>a files th<strong>at</strong> constitute the d<strong>at</strong>abase. To<br />

perform online backup, you need to use an RDBMS utility to cre<strong>at</strong>e d<strong>at</strong>a files<br />

containing a copy of the d<strong>at</strong>abase. You can then use TSM to back up these<br />

d<strong>at</strong>a files along with the parameter files th<strong>at</strong> you use to start up the RDBMS.<br />

The simplest approach to d<strong>at</strong>abase backup is to perform only full, offline<br />

backups <strong>at</strong> regular intervals. This approach is rel<strong>at</strong>ively easy to administer,<br />

and recovery is rel<strong>at</strong>ively straightforward. However, it may not be practical to<br />

take d<strong>at</strong>abases offline for the period of time th<strong>at</strong> is necessary to perform full<br />

backups <strong>at</strong> the frequency you need. You may have to adopt a more flexible<br />

approach.<br />

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