Home >> Oracle Toad >> Error code 2 starting OracleDbConsole service (SOLVED)

PostHeaderIcon Error code 2 starting OracleDbConsole service (SOLVED)

Error code 2 starting OracleDbConsole service ("Windows could not start OracleDbConsoleorcl on Local Computer. If this is a non-Microsoft service, contact the service vendor, and refer the service specific error code 2")

Problem:-

Hi everyone,
I installed Oracle DB 10g, Developer suite 10g, everything was working well, but suddenly process OracleDbConsoleorcl didn't start anymore, I try manually but it always shows this message:

"Windows could not start OracleDbConsoleorcl on Local Computer. If this is a non-Microsoft service, contact the service vendor, and refer the service specific error code 2"

Suddenly, I found the following fact:
If you install oracle 10g when the machine is in an active network, you must start the DB Console in the same network (you cannot start if your network connection is inactive). Reversely, if you install 10g when your machine is off network, you must start the DB console with disconnecting your machine from network. Otherwise, you just get the that damning service error 2 thing. But after you start the console, you can use in any state (with or without network connections).


Question:-

But is there any configuration file that i could change in order to start the dbconsole in any condition? (in network and not).

Solution:-
Finally, I got the solution for this issue as mention below:

The solution is simple.

a. In the directory ORACLE_HOME\oc4j\j2ee there is a directory OC4J_DBConsole_localhost_orcl or OC4J_DBConsole_HOSTNAME_orcl.
b. Right click on OC4J_DBConsole_?????_orcl, select copy.
c.
Type CTRL+v, this will create a new copy of the directory.
d.
Right click on the new directory, click rename, change the ????? to localhost. So you have two directory
OC4J_DBConsole_localhost_orcl
OC4J_DBConsole_HOSTNAME_orcl
Then it will works fine.

 

Last Updated (Tuesday, 27 December 2011 05:10)

 
Web Programming