cat $ORACLE_HOME/sidlist
FAB1STB
APPSTB
---------------------------------------------
#!/bin/sh
export ORACLE_HOME=/ora104/10.2
for SID in `cat $ORACLE_HOME/sidlist`
do
export ORACLE_SID=${SID}
$ORACLE_HOME/bin/rman <connect target /
crosscheck archivelog all;
delete noprompt expired archivelog all;
delete noprompt archivelog until time 'sysdate-1';
exit;
EOF
done
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/789833/viewspace-1036696/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/789833/viewspace-1036696/