Vivek Agarwal’s Portal/Java Blog

An IBM Gold Consultant’s weblog about IBM, Lotus, WebSphere, J2EE, IT Processes, and other IT technologies

Oracle database does not start up automatically!

Posted by Vivek Agarwal on July 24, 2008

Today I had to go in to configure multi-master replication between two Oracle databases as our Oracle replication expert was out at a client site. Well, to set up replication, I had to first connect to the database instances, and I found that one of the two instances was not starting up automatically even though the Windows service for that instance was started. I remembered that this was a problem that I had to run into a couple of years back but it took me a bit to figure out the core issue and resolve it. So I figured, I might as blog about it in case I run into it again a few years down the road and need to resolve the issue again.

First things first, I connected to the Oracle instance as a sysdba, and verified that I could start the instance up manually.

C:\Documents and Settings\Administrator>sqlplus "sys/sys_pwd@portal51 as sysdba"

SQL*Plus: Release - Production on Thu Jul 24 21:34:39 2008

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area  236003236 bytes
Fixed Size                   454564 bytes
Variable Size             209715200 bytes
Database Buffers           25165824 bytes
Redo Buffers                 667648 bytes
Database mounted.
Database opened.
SQL> exit
Disconnected from Oracle9i Enterprise Edition Release - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release - Production

Once I started up the instance, I connected as a regular user and verified that I could connect. I then restarted the database instance Windows service, and found that once again the instance started up in idle mode. So, obviously something else was needed to have the instance start up automatically in the active mode. That turned out to be fairly straightforward. I opened up the registry editor, navigated to ‘HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME0’, and found that the value of ‘ORA_PORTAL51_AUTOSTART’ (where PORTAL51 was our database SID) was FALSE. I changed that to TRUE, restarted the database instance, and sure enough the instance started up automatically!

PS: In case you are wondering, you did read it right. Yes, setting up multi-master Oracle replication does count as one of my skills – I had to pick it up many years when I could not get supposedly experienced Oracle DBAs to set it up in a timely enough fashion for my taste! 🙂

6 Responses to “Oracle database does not start up automatically!”

  1. Pramod said

    Thanks for the info.. found it useful to have a check on this !

  2. Mike said

    I too have this problem but the value is set to TRUE. Any ideas?

  3. ANKUR said


  4. Frank said

    I also have this problem but the value is set to TRUE. Please help

  5. Peter said

    This solution helped me with my problem. Thanks

  6. Frank said

    Great! I had similar problem and the the value from the registry file was set to YES. I was able to resolve the issue by redo the SID auto start by running the following command, assuming your SID is orcl:

    >oradim –edit –sid orcl –startmode auto

Sorry, the comment form is closed at this time.

%d bloggers like this: