OracleDBConsole startup error specific service error code 2, oracledbconsoleorcl

Source: Internet
Author: User
Tags lenovo

OracleDBConsole startup error specific service error code 2, oracledbconsoleorcl

The error message is: Windows cannot start OracleDBConsoleorcl on the local computer. For more information, see System Event Logs. If this is a non-Microsoft Service, contact the service provider and refer to service error code 2.

Situation: The computer cannot be started after the computer name or IP address is changed,

The solution is as follows:

1. Start-run cmd

2. Run emctl start dbconsole.

C: \ Documents ents and Settings \ xcl> emctl start dbconsole

Environment variable ORACLE_SID not defined. Please define it.

Tip: The environment variable ORACLE_SID is not defined. Please define it.

3. Set ORACLE_SID = ORCL (orcl is my Instance name and service name)

C: \ Documents ents and Settings \ xcl> set oracle_sid = orcl

4. Run emctl start dbconsole again.

C: \ Documents ents and Settings \ xcl> emctl start dbconsole

.

Prompt: cannot find "D: \ ProgramFilesOracle \ product \ 10.2.0 \ db_1/Solaris/j2ee/OC4J_DBConsole_Lenovo-PC_orcl"

Note: Lenovo-PC is my computer name

Copy the "OC4J_DBConsole_localhost_orcl" folder under the Directory and change the name to "OC4J_DBConsole_Lenovo-PC_orcl ".

5. Run emctl start dbconsole again.

C: \ Documents ents and Settings \ xcl> emctl start dbconsole

EM Configuration issue. E: \ oracle \ product \ 10.2.0 \ db_1/Lenovo-PC_orcl not found.

Prompt: cannot find "E: \ oracle \ product \ 10.2.0 \ db_1/Lenovo-PC_orcl"

Copy the "192.168.1.108 _ orcl" folder under this directory to the same directory and change the name to "Lenovo-PC_orcl ".

6. Run emctl start dbconsole again.

C: \ Documents ents and Settings \ xcl> emctl start dbconsole

Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0

Copyright (c) 1996,200 6 Oracle Corporation. All rights reserved.

Http: // localhost: 1158/em/

Starting Oracle Enterprise Manager 10g Database Control... OracleDBConsoleorcl

The service is starting.

..............................

Startup failed.

Re-create the em file dos and execute emca-config dbcontrol db

Continue or not, y continue

Enter the listening port number, password, etc.

Note that if the oracle client is installed and the ORACLE_HOME path of the database is the client path, change the path to the oracle server path. Otherwise, the reconstruction fails.

After selecting "y" for execution, you may be prompted that a series of ports are in use. If not, query port 1158 and disable it.

Run netstat-aon to check the port 1158 process. In the task manager, shut down the process with pid 9032 and re-execute the preceding reconstruction operation (note that the reconstruction must be performed when the oracle service is enabled, if an error is prompted, check whether the oracle service is enabled)

The re-execution should be successful.

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.