欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

无法正常启动数据库

程序员文章站 2022-07-13 12:35:55
...

 

 

 无法正常启动数据库,先用mount 状态启动,清除非归档日志。

alter database clear unarchived logfile group 3;

 

 

SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.

Total System Global Area  603979776 bytes
Fixed Size                  2022664 bytes
Variable Size             125829880 bytes
Database Buffers          473956352 bytes
Redo Buffers                2170880 bytes
Database mounted.
ORA-16038: log 3 sequence# 43 cannot be archived
ORA-19809: limit exceeded for recovery files
ORA-00312: online log 3 thread 1: '/opt/oracle/oradata/orcl/redo03.log'

 

 

 

 

SQL> startup mount
ORACLE instance started.

Total System Global Area  603979776 bytes
Fixed Size                  2022664 bytes
Variable Size             125829880 bytes
Database Buffers          473956352 bytes
Redo Buffers                2170880 bytes
Database mounted.
SQL> 

 

 

 

SQL> alter database clear unarchived logfile group 3;

Database altered.

SQL> alter database open;

Database altered.

SQL>