标签:nbsp 查看 time rac complete arch arc completed exe
测试站上500G硬盘突然没有空间了,经过检查oracle归档日志占了不到300G,经过排除安装一下步骤删除归档日志
一、查看是否开启归档日志
查看是否开启归档 SQL> archive log list; Database log mode Archive Mode Automatic archival Enabled Archive destination /arch Oldest online log sequence 1564 Next log sequence to archive 1566 Current log sequence 1566
二、删除数据库归档文件。
cd /arch 执行下面命令删除7天以前的归档日志: find . -xdev -mtime +7 -name "*.dbf" -exec rm -f {} \; 等同于 DELETE ARCHIVELOG ALL COMPLETED BEFORE ‘SYSDATE-7‘;
三、执行rman逻辑上删除过期日志
rman RMAN> connect target / >crosscheck archivelog all; >delete expired archivelog all; >quit
标签:nbsp 查看 time rac complete arch arc completed exe
原文地址:https://www.cnblogs.com/zhaojingyu/p/10932269.html