Ora 01033 ошибка как исправить

You are here means you are facing “ora-01033 oracle initialization or shutdown in progress” error while trying to login into the Oracle database. A few days ago I faced the same issue and here are the steps that I have followed to troubleshoot which helped me login into the database successfully.

This article will help you understand the error message, possible causes, and their solutions. So without wasting time, let’s start digging into the error message.

What does “ora-01033 oracle initialization or shutdown in progress” error mean?

The error message is very clear and explains that the Oracle initialization or shutdown process is in progress, hence we cannot perform any other action on the database till initialization/shutdown is in progress. After completion of either initialization or shutdown, you will be able to perform the required action on the database.

There are following five reasons that may result in the error message and the steps you need to follow in order to fix the error.

1. The database is in the middle of starting or shutdown process

Reason:

If you have just started or shut down the database and executed a new command then you may end up receiving “ora-01033 oracle initialization or shutdown in progress” error message as already some process is going on and you are trying to execute a new command.

Solution:

Wait for the process to complete. Sometimes starting or shutdown down the database may take some time due to system performance or some processes are used in another application. If you still facing the same error after some time, then check out the below point.

2. An issue with the database services

Reason:

There may be some issues with the database services. Either database services are stopped or getting issues while starting. Many users have observed that they faced an issue while starting the database service due to updated security settings. Due to security settings, users may face port or access-related issues.

Solution:

Restart the database services. Check if database services are up and running. There is a possibility of the database service got hung and in that case, restarting the Oracle services will solve the issue. Here are the steps to do so.

  • Got to search bar, type Services and select Services app.
  • Restart Oracle Service and then Oracle Listener Service as shown below.

Oracle Service and Oracle Listener Service

3. Forced shutdown or incomplete shutdown of database

Reason:

When you execute a command to shut down the database, database software internally executes some stepwise procedures to shut down the database. And it may take a few minutes. If you forcefully close the database service or shut down the system due to a power cut issue in between the database shutdown process then it may result in a complete shutdown of the database. Which can cause the above error message while login into the database again.

Solution:

Shut down and start the database. If there is any issue during the shutdown and startup process then try shutting down the database forcefully and start again using the below steps.

  • Open command prompt and log in as sysdba using the following command
    sqlplus / as sysdba
  • Enter the following command to forcefully shutdown database
    shutdown abort;
  • Execute the below command to startup the database again
    startup;

Force shut down Oracle database and restart

Now try to login into the database and you should be able to log in without any error message. If you are still getting the error then try the next step.

4. The database is not mounted or opened

Reason:

If the database is not mounted properly, while starting the database then it can result in the error message “ora-01033 oracle initialization or shutdown in progress“. If the database is mounted then it’s available for the database administrators only. Normal users can’t access a database that is mounted but not opened.

Solution:

Try to mount and open the database using the following steps and it should fix the error.

If the database is mounted but not open then you may end up getting the error as well. To check whether the database is MOUNTED or OPEN or neither of those, you can execute points #4 and #6 to understand the current status.

Check Database Status

Note: If STATUS is MOUNTED then it means the database is mounted but not opened.

  1. Open command prompt and log in to database as sysdba.
    sqlplus / as sysdba
  2. Forcefully shutdown database.
    shutdown abort;
  3. Mount the database.
    startup mount;
  4. Check whether the database is mounted or not.
    select status, database_status from v$instance;
  5. Open the database.
    alter database open;
  6. Check whether the database is open or not.
    select status, database_status from v$instance;

how to fix ora-01033 oracle initialization or shutdown in progress error

5. Corrupted database files

Some intentional or unintentional invalid activity may damage some database files. If DBF, CTL, or ORA files are corrupted then it can cause the error “ora-01033 oracle initialization or shutdown in progress”.

If all the above steps do not work and you are still getting the same error message, then uninstall the database software and install it again. Before uninstalling the DB, make sure you take a backup of the data.

Create a new database instance and try to import the previous database files if you have taken the backup of the running instance.

Note: It’s highly recommended to take a backup of the database from time to time. If you come across such issues where it cannot be resolved, then restoring the DB to a previous stage is easy or else you will end up losing all the data.

Final thoughts:

We hope you are able to get rid of the “ora-01033 oracle initialization or shutdown in progress” error using the above steps. Let us know in the comments which steps helped you fix the error. If you are still having challenges, do mention them in the comment section and we would be happy to help you.

Read also:

How to use Column Mode Editing in Notepad++

I had installed Oracle 11g on windows 07,everything was working fine.But today it is giving me an error saaying ORA-01033: ORACLE initialization or shutdown in progress . I followed the steps mentioned in the different communities but unable to solve the error. After connecting as sqlplus sys/sys as sysdba. and executing below statement,i got following error. How to solve this error?

SQL> recover database;
ORA-00283: recovery session canceled due to errors
ORA-01110: data file 9: 'C:\APP\MKHATAL\ORADATA\ORCL\VELODBDATA.DBF'
ORA-01157: cannot identify/lock data file 9 - see DBWR trace file
ORA-01110: data file 9: 'C:\APP\MKHATAL\ORADATA\ORCL\VELODBDATA.DBF'

Thanks in advance!!

asked Jun 27, 2013 at 7:26

mahesh's user avatar

2

First, check your ALERT.LOG file typically located in D:\app\oracle\diag\rdbms\DBNAME\SID\trace\.

The latest entries in your ALERT.LOG should give you an indication on what is going on. Is the database starting? Shutting down?

Should the database be stuck in the shutdown process, you can try to kill the oracle.exe process and then restart the database via Windows Service.

Often, when the database seems to hang on startup, it is actually applying REDO to get a consistent state, so pay close attention on what the ALERT.LOG tells you.

answered Jun 27, 2013 at 7:45

Simon's user avatar

SimonSimon

4,2502 gold badges24 silver badges34 bronze badges

1

There’s more info needed to be able to solve similar issues. Questions like these are interesting to get answered:

  • To what level can you start the database ? None, nomount, mount or
    open (exclude the last one in this case)
  • What does the ALERT.LOG file show ? This from the moment the first
    issue is suspected to be around
  • An obvious question is just : what happened ? What action were you
    doing when you saw the first error message ?
  • Can you shutdown the database ? If yes, which methods : normal,
    immediate or abort only ? Know that stopping the database with ABORT
    option may make problems bigger as they are already.
  • Did you try rebooting the server ? This is particularly an issue on
    Windows, which is your case.
  • Depending on how you stopped the database, do you have a cold backup
    ?
  • Depending on RMAN still working : can you take a backup ? The RECOVERY you were trying is not bad, but it could be interesting to know what is happening on OS level with that file; Is it there ? If yes, is it locked or not ? Does the OS think it’s a valid file ?

answered Dec 7, 2014 at 17:55

tvCa's user avatar

tvCatvCa

7966 silver badges13 bronze badges

Summary: in this tutorial, you will learn how to fix the ORACLE initialization or shutdown in progress error when you connect to the Oracle Database.

Sometimes, you may encounter the following error when you connect to an Oracle pluggable database in Oracle Database 12c:

An error was encountered performing the requested operation:

ORA-01033: ORACLE initialization or shutdown in progress
01033. 00000 - "ORACLE initialization or shutdown in progress"
*Cause: An attempt was made to log on while Oracle is being started up
or shutdown.
*Action: Wait a few minutes. Then retry the operation.
Vendor code 1033Code language: SQL (Structured Query Language) (sql)

To fix this issue, you use the follwing steps:

First, launch the SQL*Plus program and login to the database instance as a SYSDBA user:

Enter user-name: ot@pdborcl as sysdba
Enter password: <password>
Code language: SQL (Structured Query Language) (sql)

This statement connected to the PDBORCL database using the OT user.

Second, issue the following statement to check the status of the current instance:

SQL> select status, database_status from v$instance;

STATUS       DATABASE_STATUS
------------ -----------------
MOUNTED      ACTIVECode language: SQL (Structured Query Language) (sql)

The output showed that the instance status is mounted.

Third, change the state of the Oracle Database instance to OPEN:

SQL> alter database open;

Database altered.Code language: SQL (Structured Query Language) (sql)

For more information on the Oracle Database stages, check it out the Startup Oracle Database instance tutorial.

Finally, double check the database status by using the following statement:

select status, database_status from v$instance;

STATUS       DATABASE_STATUS
------------ -----------------
OPEN         ACTIVECode language: SQL (Structured Query Language) (sql)

The instance status is open and available to all users for normal operations.

Now, you should be able to connect to the OT pluggable database without any issue.

Was this tutorial helpful?

Yesterday I installed Oracle 12c Enterprise edition on my laptop. When I tried to connect to DB via SQLPLUS i got the below error

C:\Users\USER>sqlplus

SQL*Plus: Release 12.1.0.2.0 Production on Sun Feb 28 14:12:46 2016

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

Enter user-name: userdb
Enter password:
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
Process ID: 0
Session ID: 0 Serial number: 0

I tried all the tricks mentioned on internet but couldn’t get rid of this error.

I also tried below

SQL> shutdown immediate;
ORA-01109: database not open


Database dismounted.
ORACLE instance shut down.
SQL> startup;
ORACLE instance started.

Total System Global Area 1543503872 bytes
Fixed Size                  3045984 bytes
Variable Size             989857184 bytes
Database Buffers          536870912 bytes
Redo Buffers               13729792 bytes
Database mounted.
ORA-01157: cannot identify/lock data file 10 - see DBWR trace file
ORA-01110: data file 10:
'C:\ORACLEDB12C\APP\USERNAME\ORADATA\ORCL\PDBORCL\EXAMPLE01.DBF'

also tried below but still getting error’s

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

Total System Global Area 1543503872 bytes
Fixed Size                  3045984 bytes
Variable Size             989857184 bytes
Database Buffers          536870912 bytes
Redo Buffers               13729792 bytes
SQL> alter database mount;

Database altered.

SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-01157: cannot identify/lock data file 10 - see DBWR trace file
ORA-01110: data file 10:
'C:\ORACLEDB12C\APP\USERNAME\ORADATA\ORCL\PDBORCL\EXAMPLE01.DBF'


SQL> recover database;
ORA-00283: recovery session canceled due to errors
ORA-01110: data file 10:
'C:\ORACLEDB12C\APP\USERNAME\ORADATA\ORCL\PDBORCL\EXAMPLE01.DBF'
ORA-01157: cannot identify/lock data file 10 - see DBWR trace file
ORA-01110: data file 10:
'C:\ORACLEDB12C\APP\USERNAME\ORADATA\ORCL\PDBORCL\EXAMPLE01.DBF'

Can someone help here? thanks!

asked Feb 28, 2016 at 19:41

Sarang's user avatar

2

I’ve had the same problem and just want to share my solution with you, if anybody else gets the ORA-01033: ORACLE initialization or shutdown in progress
Error in Oracle 12c Database. My database showed me the error everytime i tried to connect to a user of a sample schema (for ex. hr).

The following worked for me:

SQLPlus> connect sys as sysdba
SQLPlus> alter pluggable database all open; 

answered Apr 1, 2016 at 13:02

Nicola's user avatar

NicolaNicola

3851 gold badge5 silver badges15 bronze badges

0

The only solution to this issue is :
drop the database datafile which you are getting in error , for your case «data file 10» .

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

SQL> alter database open;
Database altered.

It worked for me.

answered Apr 19 at 6:28

Soumyaranjan Dalai's user avatar

I had the same error and i solve it.
In fact the problem that you got is due to a changement in the destination of one or few datafiles.
In your case is the datafile 10.In fact the error is:

SQL> recover database;
ORA-00283: recovery session canceled due to errors
ORA-01110: data file 10:
**strong text**'C:\ORACLEDB12C\APP\USERNAME\ORADATA\ORCL\PDBORCL\EXAMPLE01.DBF'**strong text**
ORA-01157: cannot identify/lock data file 10 - see DBWR trace file
ORA-01110: data file 10:
'C:\ORACLEDB12C\APP\USERNAME\ORADATA\ORCL\PDBORCL\EXAMPLE01.DBF' 

The solution is to search this datafile in your hard drive an make it in the same directory used by oracle which is in your case : C:\ORACLEDB12C\APP\USERNAME\ORADATA\ORCL\PDBORCL\EXAMPLE01.DBF

Mention that you should do this for all datafile that you have changed its directories.I wish this will be helpful.

OznOg's user avatar

OznOg

4,4402 gold badges26 silver badges35 bronze badges

answered Oct 29, 2017 at 15:13

explorateur's user avatar

When you login into Oracle Database and it throws following error message:

ORA-01033: ORACLE initialization or shutdown in progress, then follow the below mentioned steps to solve this issue.

The following video is a practical demonstration to resolve ORA-01033: ORACLE initialization or shutdown in progress error.

As a DBA, you must know that Shutdown, Shutdown Immediate or Startup commands that are issued by database administrator with SYSDBA privileges.

If your database shutdown is in progress then wait for some time until the database is shutdown and start your database with Startup command.

C:\>sqlplus system/system
SQL*Plus: Release 11.2.0.2.0 Production on Tue Nov 18 12:21:40 2013
Copyright (c) 1982, 2010, Oracle.  All rights reserved.
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
Process ID: 0
Session ID: 0 Serial number: 0

To check the status of instance and database, login with SYSDBA privileges and follow the steps.

C:\>sqlplus
SQL*Plus: Release 11.2.0.2.0 Production on Tue Nov 18 12:22:30 2013
Copyright (c) 1982, 2010, Oracle.  All rights reserved.
Enter user-name: / as sysdba
Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 – Production
SQL> select status, database_status from v$instance;
STATUS       DATABASE_STATUS
------------ -----------------
STARTED      ACTIVE

SQL> select open_mode from v$database;
select open_mode from v$database
                      *
ERROR at line 1:
ORA-01507: database not mounted

Here we can see the instance is started but database is not mounted.

Now mount the database, if this succeeds then there is no problem.

SQL> alter database mount;
Database altered.
SQL> select status, database_status from v$instance;
STATUS       DATABASE_STATUS
------------ -----------------
MOUNTED      ACTIVE
SQL> select open_mode from v$database;
OPEN_MODE
----------
MOUNTED

Database is mounted successfully but when you try to connect, you still get the same ORA-01033 error:

SQL> exit
Disconnected from Oracle Database 11g Express Edition Release 11.2.0.2.0 – Production
C:\>sqlplus system/system
SQL*Plus: Release 11.2.0.2.0 Production on Tue Nov 18 12:25:55 2013
Copyright (c) 1982, 2010, Oracle.  All rights reserved.
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
Process ID: 0
Session ID: 0 Serial number: 0

When you open the database, you must ensure that database is opened in read write mode. Open your database with SYSDBA privileges and open the database.

Enter user-name: / as sysdba
SQL*Plus: Release 11.2.0.2.0 Production on Tue Nov 19 12:25:55 2013
Copyright (c) 1982, 2010, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
SQL> alter database open;
Database altered.
SQL> select status, database_status from v$instance;
STATUS       DATABASE_STATUS
------------ -----------------
OPEN         ACTIVE
SQL> select open_mode from v$database;
OPEN_MODE
----------
READ WRITE

Now the database is opened in read write mode and your database is up. You can login with your user and can use your database.

Понравилась статья? Поделить с друзьями:
  • Ora 01031 insufficient privileges ошибка
  • Ospp vbs ошибка 2147217394
  • Ora 01013 описание ошибки
  • Ora 01012 not logged on ошибка
  • Ose exe ошибка