Monday, June 10, 2013

RMAN to clean up archivelog and backup

RMAN=/usr2/app/oracle/production/11g/bin/rman $RMAN nocatalog target / < <EOF
crosscheck backup;
crosscheck archivelog all;
delete noprompt expired archivelog all;
delete noprompt expired backup;
delete noprompt obsolete;
EOF


delete noprompt archivelog all;
delete noprompt backup;
 

No comments:

Post a Comment