ORA-00257: archiver error. Connect internal only, until freed 错误的处理方法 .

转载 2011年10月18日 14:10:37
 

archive log 日志已满
ORA-00257: archiver error. Connect internal only, until freed 错误的处理方法

 

1. 用sys用户登录
  sqlplus sys/pass@tt as sysdba

 

2. 看看archiv log所在位置
SQL> show parameter log_archive_dest;
NAME                                     TYPE        VALUE
------------------------------------ ----------- ------------------------------
log_archive_dest                   string
log_archive_dest_1               string
log_archive_dest_10             string

 

3. 一般VALUE为空时,可以用archive log list;检查一下归档目录和log sequence
SQL> archive log list;
Database log mode                 Archive Mode
Automatic archival                   Enabled
Archive destination                  USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence     360
Next log sequence to archive  360
Current log sequence              362

 

4. 检查flash recovery area的使用情况,可以看见archivelog已经很大了,达到96.62
SQL> select * from V$FLASH_RECOVERY_AREA_USAGE;

FILE_TYPE    PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES
------------ ------------------ ------------------------- ---------------
CONTROLFILE                 .13                        0               1
ONLINELOG                  2.93                        0               3
ARCHIVELOG                96.62                       0              141
BACKUPPIECE                   0                         0               0
IMAGECOPY                      0                         0               0
FLASHBACKLOG                0                         0               0

 

5. 计算flash recovery area已经占用的空间
SQL> select sum(percent_space_used)*3/100 from v$flash_recovery_area_usage;

SUM(PERCENT_SPACE_USED)*3/100
-----------------------------
                       2.9904
                      
6. 找到recovery目录, show parameter recover
SQL> show parameter recover;
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
db_recovery_file_dest                string           /u01/app/oracle/flash_recovery_area
db_recovery_file_dest_size        big integer   5G
recovery_parallelism                   integer         0

                      
7 上述结果告诉我们,归档位置用的是默认值,放在flash_recovery_area下(db_recovery_file_dest目录=/u01/app/oracle/flash_recovery_area)
[root@sha3 10.2.0]# echo $ORACLE_BASE
/u01/app/oracle

 

[root@sha3 10.2.0]# cd $ORACLE_BASE/flash_recovery_area/tt/archivelog
转移或清除对应的归档日志, 删除一些不用的日期目录的文件,注意保留最后几个文件(比如360以后的)

 

---------------------------------------------------------------------------------------
注意:
在删除归档日志后,必须用RMAN维护控制文件,否则空间显示仍然不释放。
---------------------------------------------------------------------------------------

8. rman target sys/pass
[root@sha3 oracle]# rman target sys/pass

Recovery Manager: Release 10.2.0.4.0 - Production on Tue Jan 20 01:41:26 2009

Copyright (c) 1982, 2007, Oracle.  All rights reserved.

connected to target database: tt (DBID=4147983671)

 

9. 检查一些无用的archivelog
RMAN> crosscheck archivelog all;

 

10. 删除过期的归档
RMAN> delete expired archivelog all;

delete archivelog until time 'sysdate-1' ; 删除截止到前一天的所有archivelog

 

11. 再次查询,发现使用率正常,已经降到23.03
SQL> select * from V$FLASH_RECOVERY_AREA_USAGE;

FILE_TYPE    PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES
------------ ------------------ ------------------------- ---------------
CONTROLFILE                 .13                         0               1
ONLINELOG                  2.93                         0               3
ARCHIVELOG                23.03                         0              36
BACKUPPIECE                   0                         0               0
IMAGECOPY                     0                         0               0
FLASHBACKLOG                  0                         0               0

 

 

 

 

其它有用的Command:
----------------------------------

如果archive log模式下不能正常startup,则先恢复成noarchive log,startup成功后,再shutdown;
shutdown immediate;
startup mount;
alter database noarchivelog;
alter database open;
shutdown immediate;

再次startup以archive log模式
shutdown immediate;
startup mount;
show parameter log_archive_dest; 
alter database archivelog;
archive log list;                
alter database open;

如果还不行,则删除一些archlog log
SQL> select group#,sequence# from v$log;

    GROUP# SEQUENCE#
---------- ----------
         1         62
         3         64
         2         63

原来是日志组一的一个日志不能归档
SQL> alter database clear unarchived logfile group 1;
alter database open;

最后,也可以指定位置Arch Log, 请按照如下配置
select name from v$datafile;
alter system set log_archive_dest='/opt/app/oracle/oradata/usagedb/arch' scope=spfile

或者修改大小
SQL> alter system set db_recovery_file_dest_size=3G scope=both;

 

From  http://blog.csdn.net/panys/article/details/3838846

ORA-00257: archiver error. Connect internal only. until freed

1,plsq登录报错ORA-00257: archiver error. Connect internalonly. until freed 2,后台alert日志报错:[oracle@powerlo...
  • mchdba
  • mchdba
  • 2015-04-28 10:33:06
  • 3428

关于ORA-00257: archiver error. Connect internal only, until freed 错误的处理方法

产生原因:出现ORA-00257错误(空间不足错误),通过查找资料,绝大部分说这是由于归档日志太多,占用了全部的硬盘剩余空间导致的,通过简单删除日志或加大存储空间就能够解决。 解决办法: 1,Se...
  • cw370008359
  • cw370008359
  • 2016-03-31 10:14:59
  • 12458

ORA-00257: archiver error. Connect internal only, until freed.处理办法(亲测可行)

今日登录本机oracle数据库时突然报错: SQL> conn henry/hu0456@orcl11g64b ERROR: ORA-00257: archiver error. Connect...
  • hufeng719
  • hufeng719
  • 2017-04-08 17:51:06
  • 388

删除归档日志_ORA-00257:archiver error.Connect internal only, until freed的问题

删除归档日志_ORA-00257:archiver error.Connect internal only, until freed的问题   ORA-00257: archiver er...
  • zhongguomao
  • zhongguomao
  • 2016-04-22 12:18:13
  • 446

ORA-00257 错误的处理方法

  • 2018年04月17日 14:22
  • 5KB
  • 下载

ORA-00257: archiver error. Connect internal only, until freed 错误 解决办法

archive log 日志已满 ORA-00257: archiver error. Connect internal only, until freed 错误的处理方法 1. 用sys用户登录...
  • ningguixin
  • ningguixin
  • 2012-07-31 15:37:28
  • 700

ORA-00257: archiver error.Connect internalonly, until freed 后续之 delete force

前言--现象描述远程plsq登录报错“ORA-00257: archiver error.Connect internalonly, until freed alert后台日志报错:Errors in...
  • mchdba
  • mchdba
  • 2015-05-14 20:21:27
  • 2359

oracle中报错Connect internal only, until freed

此问题属于归档日志满了 有两种方法可以解决,第一种是删除归档日志,第二种是增大闪回日志文件的最大大小 SQL> select * from V$FLASH_RECOVERY_AREA_USAGE; ...
  • wwww1988600
  • wwww1988600
  • 2013-11-18 09:39:39
  • 8322

归档日志满以后引起的错误 Caused by: java.sql.SQLException: ORA-00257:

归档日志满以后引起的错误今天在目录服务程序中出现Caused by: java.sql.SQLException: ORA-00257: archiver error. Connect interna...
  • kfanning
  • kfanning
  • 2010-04-13 15:41:00
  • 2107

ORA-00257: archiver error. Connect internal only, until freed 问题解决

在用PLSQL连接数据库时,出现ORA-00257: archiver error. Connect internal only, until freed。通过信息提示,可以发现,数据库服务器的归档日...
  • zhengsj
  • zhengsj
  • 2009-10-12 09:01:00
  • 1025
收藏助手
不良信息举报
您举报文章:ORA-00257: archiver error. Connect internal only, until freed 错误的处理方法 .
举报原因:
原因补充:

(最多只允许输入30个字)