Note:
1. Script will take only disk based backup
2. It will not backup archive log files
################RMAN Backup Scripts for Non-Rac Database####################
run
{
allocate channel d1 type disk MAXPIECESIZE 5G;
allocate channel d2 type disk MAXPIECESIZE 5G;
backup
full
tag full_db
format '/home/oravis/rman_backup/datafile/db_%t_%s_p%p'
(database);
release channel d1;
release channel d2;
BACKUP CURRENT CONTROLFILE FORMAT '/home/oravis/rman_backup/controlfile/CTL%s_%t_%p';
SQL 'ALTER SYSTEM ARCHIVE LOG CURRENT';
}
################END of the Backup####################
1. Script will take only disk based backup
2. It will not backup archive log files
################RMAN Backup Scripts for Non-Rac Database####################
run
{
allocate channel d1 type disk MAXPIECESIZE 5G;
allocate channel d2 type disk MAXPIECESIZE 5G;
backup
full
tag full_db
format '/home/oravis/rman_backup/datafile/db_%t_%s_p%p'
(database);
release channel d1;
release channel d2;
BACKUP CURRENT CONTROLFILE FORMAT '/home/oravis/rman_backup/controlfile/CTL%s_%t_%p';
SQL 'ALTER SYSTEM ARCHIVE LOG CURRENT';
}
################END of the Backup####################
Post a Comment