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.

The normal way to start SQL*Net services is lsnrctl start.<br />

The normal d<strong>at</strong>abase start script shipped from <strong>Oracle</strong> is dbstart.<br />

It reads the /etc/or<strong>at</strong>ab file and starts for every instance which is<br />

registered in the or<strong>at</strong>ab file.<br />

7.1.2 Autom<strong>at</strong>ing RMAN backups<br />

In order to autom<strong>at</strong>e <strong>Oracle</strong> RMAN backups, you use the RMAN cmdfile<br />

option. If you specify cmdfile when invoking RMAN, then RMAN executes<br />

the file specified line by line.<br />

We used a kornshell script which gener<strong>at</strong>es and executes RMAN command<br />

files. It is easier to manage a big number of different <strong>Oracle</strong> instances on the<br />

UNIX pl<strong>at</strong>form when all backups are performed the same way. The initial<br />

cre<strong>at</strong>ion of the script is laborious, but you will benefit because subsequent<br />

corrections or modific<strong>at</strong>ions to the backup script need be done only once.<br />

As we started to develop our own script for the backups, we first researched<br />

useful RMAN examples.<br />

In the directory $ORACLE_HOME/rdbms/demo are five different RMAN<br />

examples. None of them uses TDP — but the RMAN commands are useful.<br />

We also found good hints and tips in the <strong>Oracle</strong>8i Recovery Manager User’s<br />

Guide and Reference, A76990-01.<br />

7.1.2.1 How often should backups be done?<br />

This depends on different factors:<br />

Service level agreement with the d<strong>at</strong>a owner<br />

Size of the d<strong>at</strong>abase<br />

Importance of the availability of the d<strong>at</strong>abase<br />

The type of applic<strong>at</strong>ion using the d<strong>at</strong>abase<br />

Because we tried to simul<strong>at</strong>e a production environment with small d<strong>at</strong>abases,<br />

we scheduled inconsistent whole d<strong>at</strong>abase backups between 6:00 and 7:00<br />

in the morning and archivelog backups between 7:00 and 19:00 every hour.<br />

7.1.2.2 Job scheduling by the UNIX crontab program<br />

We used the UNIX crontab program from user root to autom<strong>at</strong>e d<strong>at</strong>abase and<br />

archivelog backups. The reason for using the roots crontab is the<br />

centraliz<strong>at</strong>ion aspect — the more different crontabs th<strong>at</strong> are in use, the more<br />

complic<strong>at</strong>ed it is to find a schedule.<br />

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