24
Apr
07

My RMAN tip of the week #1

How to run an RMAN script with windows scheduler?

Create a .rcv file and run it in a batch file.

 Let’s consider we got the following in a script called 10gbackup.rcv

 backup database plus archivelog not backed up 1 times;

we can then call the .rcv file in a batch file called scheduler.bat with the following line

set oracle_sid=MYDBSID

rman target / cmdfile D:\my\script\location\10gbackup.rcv log d:\my\log\location\somelogfilename.log

All that’s left to do is schedule it the normal way.

This is useful in the event where DBCONSOLE service is not working and the backup is scheduled using Oracle Enterprise Manager. When this service fails, then the backups stop working.

It’s always goot to have a fail safe.

Advertisements

1 Response to “My RMAN tip of the week #1”


  1. September 23, 2014 at 2:30 am

    Hi to every one, the contents existing at this website are truly
    awesome for people knowledge, well, keep up the nice work fellows.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: