Oracle Recovery Manager Batch

Batch

Public Domain

Batch file to automate the deletion of obsolete entries using recovery manager

Download (right click, save as, rename as appropriate)

Embed

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
REM Set Variable of the Directory for RMAN
set od=C:\oracle\product\10.2.0\db_1\BIN

REM Set Oracle_SID variable
set sid=ORACLE_SID=redacted

set %sid%
REM delete.txt contains DELETE NOPROMPT OBSOLETE RECOVERY WINDOW OF 7 DAYS; exit
%od%\rman target=/ nocatalog @%od%\delete.txt
EXIT