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.

To use this command file with the script named backup_offline_beach, we just<br />

add the name of the script when calling the AUTORMAN.CMD file.<br />

autorman backup_offline_beach<br />

Windows will then replace each occurrence of %1 in the AUTORMAN.CMD<br />

file with backup_offline_beach. Here is an example of this:<br />

C:\oracle\admin\scripts>autorman backup_offline_beach<br />

C:\oracle\admin\scripts>set ORACLE_SID=BEACH<br />

C:\oracle\admin\scripts>rman target internal/manager@beach<br />

rcvc<strong>at</strong> rman/rman@rio cmdfile=c:\oracle\admin\scripts\backup_offline_beach<br />

log=c:\oracle\admin\scripts\backup_offline_beach.log<br />

Using this AUTORMAN.CMD file, we can now easily schedule RMAN scripts<br />

using TSM scheduling without cre<strong>at</strong>ing a separ<strong>at</strong>e command file for each<br />

backup.<br />

11.2.1 Scheduling TDP for <strong>Oracle</strong> backups<br />

In order to use the TSM scheduling services, you must perform configur<strong>at</strong>ion<br />

on both the TSM server and the TSM client.<br />

11.2.1.1 TSM server steps for scheduling<br />

On the TSM server you need to perform two commands:<br />

1. DEFINE SCHEDULE<br />

With this command, you must specify the domain where the TDP for <strong>Oracle</strong><br />

backup node belongs, ACTION=COMMAND, and OBJECT=. The other options regarding time and frequency can be tailored<br />

to your environment. See the TSM server product document<strong>at</strong>ion for details,<br />

or type HELP DEFINE SCHEDULE <strong>at</strong> the TSM administr<strong>at</strong>ive prompt.<br />

Note<br />

Do NOT define the schedule with ACTION=INCREMENTAL. This would<br />

cause a full incremental backup of the entire machine using the<br />

backup-archive client, but would do it using the TDP for <strong>Oracle</strong> nodename.<br />

This will show how to schedule the c:\oracle\admin\scripts\autorman.cmd<br />

command th<strong>at</strong> we discussed in the preceding section.<br />

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