使用SQL developer连接数据库的时候报ORA_00257,查资料发现是归档日志太多引起的(在此之前进行了很多数据的导入),需要清理归档日志。
第一步:登录到服务器,切换到oracle
[root@localhost ~]# su - oracle
第二步:连接oracle
[oracle@localhost ~]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.3.0 Production on 星期三 1月 13 10:35:48 2016
Copyright (c) 1982, 2011, Oracle. All rights reserved.
SQL> connect /as sysdba
第三步:检查fast_recovery_area的使用情况
SQL> exit
从 Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options 断开
[oracle@localhost ~]$ which rman
/u01/app/oracle/product/11g/db_1/bin/rman
[oracle@localhost ~]$ rman
恢复管理器: Release 11.2.0.3.0 - Production on 星期三 1月 13 10:40:43 2016
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
RMAN> connect target /
已连接到目标数据库: ORCL (DBID=128474545756)
RMAN> delete archivelog until time 'sysdate';
..................
是否确定要删除以上对象 (输入 YES 或 NO)? yes
RMAN> exit