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;
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