Microsoft Windows [版本 6.1.7601]
版权所有 © 2009 Microsoft Corporation。保留所有权利。
C:\Users\Administrator>sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on 星期一 1月 13 16:28:14 2020
Copyright © 1982, 2013, Oracle. All rights reserved.
连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> shutdown immediate
ORA-01109: 数据库未打开
已经卸载数据库。
ORACLE 例程已经关闭。
SQL> startup mount
ORACLE 例程已经启动。
Total System Global Area 1.0255E+10 bytes
Fixed Size 2290120 bytes
Variable Size 6710890040 bytes
Database Buffers 3523215360 bytes
Redo Buffers 18817024 bytes
数据库装载完毕。
SQL> recover database
完成介质恢复。
数据库已更改。
SQL> select * from v$recovery_file_dest;
进入oracle的rman模式:rman target /
使用删除语句进行删除:delete archivelog until time ‘sysdate-7’;
其中sysdate-7代表保留近七天的归档日志,如需保留近十天的,则需将sysdate-7修改为sysdate-10即可。