Database is supported on windows and some people using Windows As Production and RMAN need to be configured to ensure backup for Database in such failure or something to do this follow the below steps :-
- Create first text file called backup and change the format to "bat", inside the file add the following lines :-
c:
cd $ORACLE_HOME/bin
rman cmd=E:/RMAN/Scripts/backup.rman
- Create 3 folders in E for example :-
- backup
- Archivelog
- Controlfile
- Create second file name it Backup.rman and add the Rman Script like below
connect target /
run
{
allocate channel d1 type disk;
crosscheck archivelog all;
delete noprompt expired archivelog all;
crosscheck backup;
delete noprompt expired backup;
backup AS COMPRESSED BACKUPSET tag Full_database_open format 'E:\Backup\db_%t_%s_p%p.bkp' database;
sql 'alter system archive log current';
sql 'alter system archive log current';
backup AS COMPRESSED BACKUPSET archivelog all format 'E:\Archivelog\al_%t_%s_p%p.arch' delete all input;
delete noprompt obsolete redundancy = 1;
backup AS COMPRESSED BACKUPSET current controlfile tag =cf1 format 'E:\Controlfile\cf_%t_%s_p%p.dbf';
crosscheck archivelog all;
delete noprompt expired archivelog all;
crosscheck backup;
delete noprompt expired backup;
}
Follow the screen now :-
- Add Task Name and Description :-
- Add The Time for this Task in this tab
- Another Screen :-
- In This Screen Add Bat File in our case backup.bat