schedule rman backup in windows

How to Schedule rman backup in windows

———-

–rman.cmd need to schedule only this which call another script.

set oracle_sid=orcl
rman target sys/passwd nocatalog cmdfile=’c:\oracle\rman\dbrman.cmd’ log=’c:\oracle\rman\bk_log.log’

—————

–dbrman.cmd

run
{
allocate channel d1 type disk;
backup
tag whole_database_open
format ‘c:\oracle\arch\db_%t_%s_p%p’
database;
sql ‘alter system archive log current’;
sql ‘alter system archive log current’;
backup archivelog all
format ‘c:\oracle\arch\al_%t_%s_p%p’
delete all input;
delete noprompt obsolete;
backup current controlfile
tag =cf1
format ‘c:\oracle\arstarch\cf_%t_%s_p%p’;
}

 

Advertisements

About Sher khan

Senior Oracle DBA, Oracle 10g , Oracle 11g OCE ,Oracle 12C and Oracle 11g OPN certified Specialist, OCP Certified in Oracle 9i,10g , 11g and 12C. I am working in Oracle technology since 2004. Currently working in U.A.E Email: sher487@hotmail.com
This entry was posted in rman. Bookmark the permalink.

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