欢迎投稿

今日深度:

ORA-00265:要求实例恢复,无法设置ARCHIVELOG模式解决

ORA-00265:要求实例恢复,无法设置ARCHIVELOG模式解决办法


解决了这个问题,方法如下:
从 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options 断开

C:\Documents and Settings\yc>sqlplus sys/abcd as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on 星期一 12月 3 22:56:52 2007

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


连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> shutdown immediate
ORA-01109: 数据库未打开 /前面我已将数据库关闭


已经卸载数据库。
ORACLE 例程已经关闭。
SQL> startup mount /以mount方式启动数据库
ORACLE 例程已经启动。

Total System Global Area 167772160 bytes
Fixed Size 1247876 bytes
Variable Size 83887484 bytes
Database Buffers 75497472 bytes
Redo Buffers 7139328 bytes
数据库装载完毕。
SQL> alter database archivelog;
alter database archivelog
*
第 1 行出现错误:
ORA-00265: 要求实例恢复, 无法设置 ARCHIVELOG 模式 /和你报了同样的错误


SQL> alter system switch logfile;
alter system switch logfile /通过该命令强制日志切换,因数据库没有打开,他报了错
*
第 1 行出现错误:
ORA-01109: 数据库未打开


SQL> alter database open;

数据库已更改。 /数据库将没有打开,我让数据库打开

SQL> alter system switch logfile;

系统已更改。 /通过该命令强制日志切换


SQL> shutdown immediate
数据库已经关闭。
已经卸载数据库。 /再关掉数据库
ORACLE 例程已经关闭。
SQL> startup mount
ORACLE 例程已经启动。 /再以mount方式启动数据库

Total System Global Area 167772160 bytes
Fixed Size 1247876 bytes
Variable Size 83887484 bytes
Database Buffers 75497472 bytes
Redo Buffers 7139328 bytes
数据库装载完毕。
SQL> alter database archivelog; /修改归档模式为archivelog

数据库已更改。 /哈哈,成功了。

SQL> select recid,stamp from v$archived_log;

RECID STAMP
---------- ----------
1 634384622
2 634386018
3 634386215
4 634386437
5 634387218
6 634402892
7 634465470
8 634488731
9 634550076
10 634575678
11 634637644

RECID STAMP
---------- ----------
12 635413954
13 635436756
14 635500984
15 635535929
16 635590620
17 635619227
18 635633070
19 635675979
20 635697830
21 635761549
22 635781236

RECID STAMP
---------- ----------
23 635850922
24 635887029
25 635958660
26 637320679
27 637323796
28 637338885
29 637402275
30 637495528
31 637575555
32 637577252
33 637580252

RECID STAMP
---------- ----------
34 637580996
35 637599701
36 637664527
37 637670690
38 637671651
39 637689198
40 637750905
41 637791070
42 637837603
43 637921704
44 637947144

RECID STAMP
---------- ----------
45 638009274
46 638050399
47 638095123
48 638122233
49 638184343
50 638264391
51 638294712
52 638375998
53 638439881
54 638463028
55 638881506

RECID STAMP
---------- ----------
56 638888860
57 638992887
58 639044570
59 639074298
60 639074625
61 639134252
62 639218803
63 639312049
64 639393897
65 639589385
66 639650529

RECID STAMP
---------- ----------
67 639699249
68 639720021
69 639738078
70 639917004

已选择70行。/看日志是不是增加了

SQL> alter database open;

数据库已更改。

SQL> archive log list;
数据库日志模式 存档模式
自动存档 启用
存档终点 USE_DB_RECOVERY_FILE_DEST
最早的联机日志序列 102
下一个存档日志序列 104
当前日志序列 104

www.htsjk.Com true http://www.htsjk.com/oracle/22137.html NewsArticle ORA-00265:要求实例恢复,无法设置ARCHIVELOG模式解决办法 解决了这个问题,方法如下: 从 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining options 断开...
评论暂时关闭