Overview:
Oracle
Recovery Manager (RMAN) provides a comprehensive foundation for efficiently
backing up and recovering the Oracle databases, it provides a common interface, via command line
and Enterprise Manager, for backup tasks across different host operating systems, automates
administration of your backup strategies.
Prerequisites:
Prerequisites:
- Database should be in archive log mode.
- We need to have super user credentials.
Steps to schedule Rman backup:
- Create Rman scripts
Open
textpad
Set
ORACLE_SID=<DB_Name>
D:\oracle\11204\product\11.2.0\dbhome_1\BIN\rman.exe
target / cmdfile= ‘F:\Backup_scripts\dbname_rman_target.sql’ log=’F:\Backup_scripts\dbname_target_backup.log’
Save
and exit
{
Allocate
channel c1 device type disk;
Allocate
channel c2 device type disk;
Allocate
channel c3 device type disk;
Crosscheck
backup;
Crosscheck
archivelog all;
Delete
noprompt expired backup;
Delete
noprompt expired archivelog all;
Backup
as compressed backupset database;
Backup
as compressed backupset archivelog all;
Delete
noprompt backup completed before ‘sysdate-3’;
Delete
noprompt archivelog all completed before ‘sysdate-2’;
Backup
current controlfile;
}
- Open the task scheduler from start menu then right click and click on create new Task.
- Give name and description of Backup in General Tab.
- Click on trigger tab then click on new to schedule.
- Now click on action tab then new.
- On this screen browse and supply Rman script name and location then click ok.
- Now go to condition tab and check the conditions.
Check
setting tab and click OK
- Once click ok, it will prompt for password, provide Administrator password and click ok
- Backup has been schedule now.
Conclusion:
BY
Name: Mirza Hidayathullah Baig
Designation: Senior Database Engineer
Organization: Netsoftmate IT Solutions.
Email: info@netsoftmate.com
Hi Mirza,
ReplyDeleteThank you for the tutorial. I'd like to know, if the environment setting and backup script are placed on one file which is the dbname_rman_target.sql?
Thank you.
Regards,
Violet.
Thank brother,
Deleteviolet, you need to save two files one file with anyname.cmd this file need to contains the following data
============================
Set ORACLE_SID=prod
D:\OraHome\app\product\11.2.0\dbhome_1\BIN\rman.exe target / cmdfile= 'D:\rman.sql' log='D:\dbname_target_backup.log'
====================================
second file you need to put your database RMAN Backup script as mentioned bellow.
=============
RUN {
ALLOCATE CHANNEL c1 DEVICE TYPE disk;
ALLOCATE CHANNEL c2 DEVICE TYPE disk;
ALLOCATE CHANNEL c3 DEVICE TYPE disk;
ALLOCATE CHANNEL c4 DEVICE TYPE disk;
CONFIGURE DEVICE TYPE DISK PARALLELISM 4 BACKUP TYPE TO BACKUPSET;
BACKUP
FULL
FORMAT '%d_%U'
DATABASE
INCLUDE CURRENT CONTROLFILE
PLUS ARCHIVELOG
;
RELEASE CHANNEL c1;
RELEASE CHANNEL c2;
RELEASE CHANNEL c3;
RELEASE CHANNEL c4;
}
=======================
save the file with anyname.sql and schedule it
thanks
Zahid
Netsoftmate Technical Blog : Schedule Rman Backup On Windows Operating System >>>>> Download Now
Delete>>>>> Download Full
Netsoftmate Technical Blog : Schedule Rman Backup On Windows Operating System >>>>> Download LINK
>>>>> Download Now
Netsoftmate Technical Blog : Schedule Rman Backup On Windows Operating System >>>>> Download Full
>>>>> Download LINK gD
Are you looking up for the best Real estate script mall in Chennai? As a Digital marketer and a graduate in computer science after many analysis, my choice would be Real estate script mall
ReplyDeleteThanks for sharing great informational content.
ReplyDeletewrite for us travel
write for us travel
Netsoftmate Technical Blog : Schedule Rman Backup On Windows Operating System >>>>> Download Now
ReplyDelete>>>>> Download Full
Netsoftmate Technical Blog : Schedule Rman Backup On Windows Operating System >>>>> Download LINK
>>>>> Download Now
Netsoftmate Technical Blog : Schedule Rman Backup On Windows Operating System >>>>> Download Full
>>>>> Download LINK