Solved

Error code 2 starting OracleDbConsole service

Posted on 2014-09-02
4
7,441 Views
Last Modified: 2014-09-06
I have oracle 11g running on windows server 2008, I am able to connect to the db with SQL Developer and from the command prompt sqlplus. All the other services are running except for OracleDbConsoleorcl. I have tried to start the service from both from the command line and from the manage computer guy. Below is the error I get. I have also tried changing who starts the service from system to administrator but that did not work.


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

I have tried editing the hosts file and adding the FQDN and the ip address as well as the localhost and loop back ip address. I have also tried copying the folders in the following two directories.

OC4J_DBConsole_localhost_orcl
OC4J_DBConsole_HOSTNAME_orcl

We are an educational institution and the administration cannot or will not pay for oracle support, so I am paying for this out of my pocket. The professor that took care of oracle before me retired and I missed a staff meeting where I was elected to maintain the server. We have several adjuncts that use it through out the semester. It was running and configured correctly in May but we have had several power outages during the summer. Any help will be greatly appreciated. I can send log files tomorrow during the day.
0
Comment
Question by:Charles Gabor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 40300063
There are versions of Oracle that are free:  Oracle Express Edition as long as you can meet the system and size requirements.

Also, Oracle is very good about working with Educational institutions.  I would reach out to them about your situation and they might work with you to put some $$$ back in your pocket!

That said, this seems to be due to a network change on the system.

Do you need dbConsole?  I rarely ever use it but I'm an old command line guy.

The following thread seems to talk about how to work with the network change on the server:
https://community.oracle.com/thread/311223?tstart=0
0
 

Author Comment

by:Charles Gabor
ID: 40300989
We are using Oracle 11g free from Oracle, I will try to see if I can get some technical support at a discount rate that the administration will pay for. In the mean time I have attached the emoms.log file. It looks like it might be a password expire problem. I am very new to dbs so I need the console. I can connect using sqlplus but really do not know the commands very well. For me taking care of the db is a collateral job not one I am getting paid for. I tried all the methods in the article you referenced nothing worked.

I guess my question is how do I change a password in sqlplus and what account am I changing the password for?
emoms.log
0
 
LVL 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 40301030
Connect through sqlplus and issue:
select username, account_status, expiry_date from dba_users;

Going from memory I believe you are looking at the SYSMAN user.

If SYSMAN has Expired, you should probably change the profile to not have service accounts automatically expire.  The online docs talk about user profiles and how to set them up.


You can change the sysman password but it looks like it is a pain to do because OEM stores it inside the config files.

Unless you have a lot of historical data in the repository that you need to reference, I would probably just drop and recreate dbConsole.

emca -deconfig dbcontrol db -repos drop
emca -config dbcontrol db -repos create
0
 

Author Closing Comment

by:Charles Gabor
ID: 40307774
This worked great, thank you very much for your help. I am slowly learning how to manage oracle but it is a painful process. Thank you again.
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently I was talking with Tim Sharp, one of my colleagues from our Technical Account Manager team about MongoDB’s scalability. While doing some quick training with some of the Percona team, Tim brought something to my attention...
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
This video shows how to recover a database from a user managed backup
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question