简体   繁体   English

如何解决 ORA-011033:正在进行 ORACLE 初始化或关闭

[英]How to resolve ORA-011033: ORACLE initialization or shutdown in progress

当尝试通过 TOAD(Quest Software)或任何其他方式( Oracle Enterprise Manager )连接到ORACLE用户时,我收到此错误:

ORA-011033: ORACLE initialization or shutdown in progress

After some googling, I found the advice to do the following, and it worked:经过一番谷歌搜索后,我找到了执行以下操作的建议,并且奏效了:

SQL> startup mount

ORACLE Instance started

SQL> recover database 

Media recovery complete

SQL> alter database open;

Database altered

Here is my solution to this issue:这是我对这个问题的解决方案:

SQL> Startup mount
ORA-01081: cannot start already-running ORACLE - shut it down first
SQL> shutdown abort
ORACLE instance shut down.
SQL>
SQL> startup mount
ORACLE instance started.

Total System Global Area 1904054272 bytes
Fixed Size                  2404024 bytes
Variable Size             570425672 bytes
Database Buffers         1325400064 bytes
Redo Buffers                5824512 bytes
Database mounted.
SQL> Show parameter control_files

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
control_files                        string      C:\APP\USER\ORADATA\ORACLEDB\C
                                                 ONTROL01.CTL, C:\APP\USER\FAST
                                                 _RECOVERY_AREA\ORACLEDB\CONTRO
                                                 L02.CTL
SQL> select a.member,a.group#,b.status from v$logfile a ,v$log b where a.group#=
b.group# and b.status='CURRENT'
  2
SQL> select a.member,a.group#,b.status from v$logfile a ,v$log b where a.group#=
b.group# and b.status='CURRENT';

MEMBER
--------------------------------------------------------------------------------

    GROUP# STATUS
---------- ----------------
C:\APP\USER\ORADATA\ORACLEDB\REDO03.LOG
         3 CURRENT


SQL> shutdown abort
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.

Total System Global Area 1904054272 bytes
Fixed Size                  2404024 bytes
Variable Size             570425672 bytes
Database Buffers         1325400064 bytes
Redo Buffers                5824512 bytes
Database mounted.
SQL> recover database using backup controlfile until cancel;
ORA-00279: change 4234808 generated at 01/21/2014 18:31:05 needed for thread 1
ORA-00289: suggestion :
C:\APP\USER\FAST_RECOVERY_AREA\ORACLEDB\ARCHIVELOG\2014_01_22\O1_MF_1_108_%U_.AR

C
ORA-00280: change 4234808 for thread 1 is in sequence #108


Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
C:\APP\USER\ORADATA\ORACLEDB\REDO03.LOG
Log applied.
Media recovery complete.
SQL> alter database open resetlogs;

Database altered.

And it worked:它起作用了:

在此处输入图片说明

I had a similar problem when I had installed the 12c database as per Oracle's tutorial .当我按照Oracle 的教程安装 12c 数据库时,我遇到了类似的问题。 The instruction instructs reader to create a PLUGGABLE DATABASE (pdb).该指令指示读者创建一个可插拔数据库(pdb)。

The problem问题

sqlplus hr/hr@pdborcl would result in ORACLE initialization or shutdown in progress . sqlplus hr/hr@pdborcl将导致ORACLE initialization or shutdown in progress

The solution解决方案

    1. Login as SYSDBA to the dabase :SYSDBA身份登录数据库

       sqlplus SYS/Oracle_1@pdborcl AS SYSDBA
    1. Alter database :更改数据库

       alter pluggable database pdborcl open read write;
    1. Login again :再次登录

       sqlplus hr/hr@pdborcl

That worked for me那对我有用

Some documentation here一些文档在这里

This error can also occur in the normal situation when a database is starting or stopping.在数据库启动或停止时的正常情况下,也会发生此错误。 Normally on startup you can wait until the startup completes, then connect as usual.通常在启动时,您可以等到启动完成,然后照常连接。 If the error persists, the service (on a Windows box) may be started without the database being started.如果错误仍然存​​在,则服务(在 Windows 机器上)可能会在没有启动数据库的情况下启动。 This may be due to startup issues, or because the service is not configured to automatically start the database.这可能是由于启动问题,或者因为该服务未配置为自动启动数据库。 In this case you will have to connect as sysdba and physically start the database using the "startup" command.在这种情况下,您必须以 sysdba 身份连接并使用“启动”命令物理启动数据库。

I used a combination of the answers from rohancragg, Mukul Goel, and NullSoulException from above.我结合了 rohancragg、Mukul Goel 和上面的 NullSoulException 的答案。 However I had an additional error:但是我有一个额外的错误:

ORA-01157: cannot identify/lock data file string - see DBWR trace file ORA-01157: 无法识别/锁定数据文件字符串 - 请参阅 DBWR 跟踪文件

To which I found the answer here: http://nimishgarg.blogspot.com/2014/01/ora-01157-cannot-identifylock-data-file.html我在这里找到了答案: http : //nimishgarg.blogspot.com/2014/01/ora-01157-cannot-identifylock-data-file.html

Incase the above post gets deleted I am including the commands here as well.如果上面的帖子被删除,我也在这里包含了命令。

C:\>sqlplus sys/sys as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Tue Apr 30 19:07:16 2013
Copyright (c) 1982, 2011, Oracle.  All rights reserved.
Connected to an idle instance.

SQL> startup
ORACLE instance started.
Total System Global Area  778387456 bytes
Fixed Size                  1384856 bytes
Variable Size             520097384 bytes
Database Buffers          251658240 bytes
Redo Buffers                5246976 bytes
Database mounted.
ORA-01157: cannot identify/lock data file 11 – see DBWR trace file
ORA-01110: data file 16: 'E:\oracle\app\nimish.garg\oradata\orcl\test_ts.dbf'

SQL> select NAME from v$datafile where file#=16;
NAME
--------------------------------------------------------------------------------
E:\ORACLE\APP\NIMISH.GARG\ORADATA\ORCL\TEST_TS.DBF

SQL> alter database datafile 16 OFFLINE DROP;
Database altered.

SQL> alter database open;
Database altered.

Thanks everyone you saved my day!谢谢大家,你们拯救了我的一天!

Fissh

The issue can also be due to lack of hard drive space.该问题也可能是由于硬盘空间不足造成的。 The installation will succeed but on startup, oracle won't be able to create the required files and will fail with the same above error message.安装会成功,但在启动时,oracle 将无法创建所需的文件,并且会失败并显示与上述相同的错误消息。

I hope this will help somebody, I solved the problem like this我希望这会帮助某人,我解决了这样的问题

There was a problem because the database was not open.出现问题,因为数据库未打开。 Command startup opens the database.命令启动打开数据库。

This you can solve with command alter database open in some case with alter database open resetlogs在某些情况下,您可以使用命令alter database open解决此问题,使用alter database open resetlogs

$ sqlplus / sysdba

SQL> startup
ORACLE instance started.

Total System Global Area 1073741824 bytes
Fixed Size          8628936 bytes
Variable Size         624952632 bytes
Database Buffers      436207616 bytes
Redo Buffers            3952640 bytes
Database mounted.
Database opened.

SQL> conn user/pass123
Connected.

I faced the same problem.我遇到了同样的问题。 I restarted the oracle service for that DB instance and the error is gone.我重新启动了该数据库实例的 oracle 服务,错误消失了。

对我有用的是我没有设置 local_listener,要查看本地侦听器是否设置为 login to sqlplus / as sysdba ,请确保数据库已打开并运行以下命令show parameter local_listener ,如果值为空,那么您必须使用以下 SQL 命令设置 local_listener ALTER SYSTEM SET LOCAL_LISTENER='<LISTENER_NAME_GOES_HERE>'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM