Failed to start the oracle service OracleDBConsoleorcl
Today, I want to access oracle's em service, but I can't get in. Baidu told me that it did not start the OracleDBConsoleorcl service, entered the service, right-clicked to start it, and prompted an error. Baidu has been working for a long time. The final solution is as follows:
1:cmd command line to run emctl start dbconsole
The result is Environment variable ORACLE_SID not defined. Please define it.
2: continue to run set ORACLE_SID=orcl. No error should be reported this time, which means the setting is successful.
3: continue to run emctl start dbconsole
The error is: OC4J Configuration issue. D:\ oracle\ product\ 10.2.0\ db_1/oc4j/j2ee/OC4J_DBConsole_172.17.17.12_orcl not found.
Indicates that this folder does not exist. Go to the corresponding directory, find a similar folder, copy one, and rename it to
OC4J_DBConsole_172.17.17.12_orcl .
4: continue running emctl start dbconsole
The error is: EM Configuration issue. D:\ oracle\ product\ 10.2.0\ db_1/172.17.17.12_orcl not found.
Go to the corresponding directory, find a similar folder, copy, paste, and modify the folder name to 172.17.17.12_orcl.
5: if you continue to run emctl start dbconsole, there should be no error, just go to the service and start the service.
Note: if you have any more questions, modify the hosts file as follows:
127.0.0.1 your computer name
Later, this problem occurred in the test because the installation of oracle was connected to the network, and then the ip was automatically obtained and replaced with ip. As a result, the corresponding ip folder could not be found and the service failed to start.