时间:2021-07-01 10:21:17 帮助过:18人阅读
[oracle@orcl oracle]$ vim del_archive.log
#!/bin/bash
export ORACLE_SID=oggmaster --实例名
/u01/app/oracle/product/11.2.0/dbhome_1/bin/rman log=/var/log/archive_orcl.log <<EOF
connect target /
crosscheck archivelog all;
delete NOPROMPT expired archivelog all;
delete noprompt archivelog all completed before 'sysdate-10'; --保留10天的归档
exit;
EOF
[oracle@orcl oracle]$
Oracle数据库删除归档
标签:prompt app arc 保留 red oracle数据库 exit home 实例名