Solved

Error code 2 starting OracleDbConsole service

Posted on 2014-09-02
4
5,903 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
  • 2
  • 2
4 Comments
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
Comment Utility
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
Comment Utility
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 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

771 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now