RMAN ScriptRMAN Archive Log Backup |
RMAN Archive Log backup and delete
None.
# Resync the catalogue resync catalog; # Backup the database run { allocate channel 'dev0' type 'SBT_TAPE'; allocate channel 'dev1' type 'SBT_TAPE';
sql 'alter system archive log current'; backup filesperset 50 archivelog all format '%d_%t_%s_%p.arch'; backup filesperset 50 format '%d_%t_%s_%p.arch' archivelog all delete input ; # Use this line if you want a time based delete # archivelog until time 'sysdate-2' delete input release channel dev0; release channel dev1; }
Return to Index of SQL Scripts
Home
|
Company Profile
|
Services
|
Contact Us
|
SQL scripts and tips
|
Quiz
|