ITPub博客

首页 > 数据库 > Oracle > (f)--闪回恢复区-- 报错ORA-00257: archiver error. Connect internal&nbsp

(f)--闪回恢复区-- 报错ORA-00257: archiver error. Connect internal&nbsp

原创 Oracle 作者:maohaiqing0304 时间:2013-04-20 09:31:06 0 删除 编辑
 
conn test/test

ORA-00257: archiver error. Connect internal only, until freed 
alert.log:ORA-19815: WARNING: db_recovery_file_dest_size of 524288000 bytes is 100.00% used, and has 0 remaining bytes available.

之后shutdown immediate等了好久  之后就ctrl C ;shutdown abort之后再启动数据库就只能到mount 在open的时候都会自动关掉

SQL> conn / as sysdba

已连接到空闲例程。

SQL> startup mount

ORACLE 例程已经启动。

Total System Global Area  535662592 bytes

Fixed Size                  1375792 bytes

Variable Size             331350480 bytes

Database Buffers          197132288 bytes

Redo Buffers                5804032 bytes

数据库装载完毕。

 

SQL> flashback database to timestamp(sysdate-1);

flashback database to timestamp(sysdate-1)

*

第 1 行出现错误:

ORA-38726: 未启用闪回数据库事件记录。

 

SQL> alter database open resetlogs;

alter database open resetlogs

*

第 1 行出现错误:

ORA-01139: RESETLOGS 选项仅在不完全数据库恢复后有效

 

SQL> alter database open;

alter database open

*

第 1 行出现错误:

ORA-03113: 通信通道的文件结尾

进程 ID: 6124

会话 ID: 9 序列号: 3

 

SQL> startup mount

ORA-24324: 未初始化服务句柄

ORA-01041: 内部错误, hostdef 扩展名不存在

SQL> exit

从 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options 断开

C:\Documents and Settings\Administrator>sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on 星期二 4月 16 13:47:12 2013

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

已连接到空闲例程。


SQL> startup mount;

ORACLE 例程已经启动。

Total System Global Area  535662592 bytes

Fixed Size                  1375792 bytes

Variable Size             331350480 bytes

Database Buffers          197132288 bytes

Redo Buffers                5804032 bytes

数据库装载完毕。

SQL> recover database ;

ORA-00283: recovery session canceled due to errors

ORA-00264: no recovery required

 

SQL> select * from v$log;

GROUP#    THREAD#  SEQUENCE#  BYTES  BLOCKSIZE  MEMBERS ARC STATUS  FIRST_CHANGE# FIRST_TIME  NEXT_CHANGE# NEXT_TIME

---------- ---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- -------------- ------------ --------------

 1          1          1   52428800        512          1 NO     INACTIVE            6213520530 15-4月 -13       6213563034 15-4月 -13

 3          1          3   52428800        512          1 NO     CURRENT             6213589400 16-4月 -13       2.8147E+14

 2          1          2   52428800        512          1 NO     INACTIVE            6213563034 15-4月 -13       6213589400 16-4月 -13

 

SQL> recover database until time '2013-04-06 12:01:02'

ORA-00283: recovery session canceled due to errors

ORA-19907: recovery time or SCN does not belong to recovered incarnation

 

SQL> alter database flashback on;

alter database flashback on

第 1 行出现错误:

ORA-38706: 无法启用 FLASHBACK DATABASE 事件记录。

ORA-38708: 没有足够的空间可用于第一个闪回数据库日志文件

 

SQL> ALTER SYSTEM SET DB_RECOVERY_FILE_DEST_SIZE=7G scope=both;

系统已更改。

 

SQL> alter database flashback on;

数据库已更改。

 

SQL>  flashback database to timestamp(sysdate-1);

 flashback database to timestamp(sysdate-1)
*
第 1 行出现错误:

ORA-38729: 执行 FLASHBACK 的闪回数据库日志数据不足。

 

SQL>  flashback database to timestamp(sysdate-1/1440);

闪回完成。

 

SQL> alter database open resetlogs; 

数据库已更改。

SQL> conn test/test

已连接。

回想:
之前考虑不做实验把这个设置成ALTER SYSTEM SET DB_RECOVERY_FILE_DEST_SIZE=500M scope=both;
alter database FLASHBACK off;
当时忽略了archivelog在闪回区里
导致在后期的闪回区空间不足 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/28602568/viewspace-758925/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
.

注册时间:2013-03-13

  • 博文量
    117
  • 访问量
    2626246