
OC4J Configuration issue… OC4J_DBConsole_ not found.
I am trying to start EM on my newly created database, while starting EM, getting failed with OC4J Configuration issue… while diagnosed there is no OC4J_DBConsole_prod directory exist in ORACLE_HOME. Means this may be the case where Database Control not configured while database created OR misconfigured.
Error log
[oracle@prod ~]$ emctl start dbconsole OC4J Configuration issue. /home/oracle/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/OC4J_DBConsole_prod.localdomain_orcl not found.
Solution is to Configure EM with the help of following “Enterprise Manager Configuration Assistant” (i.e. emca) utility from Oracle user: Before that:
- Ensure environment variable properly set like below.
- Ensure your listener properly configured and started.
- Ensure password file is created. (Optional)
- You need SYS,SYSMAN & DBSNMP password.
- Ensure your /etc/hosts file mentioned below two lines.
[oracle@prod ~]$ cat /etc/hosts 127.0.0.1 localhost.localdomain localhost 192.168.17.146 prod.localdomain prod
Environment Variable:
[oracle@prod ~]$ export ORACLE_SID=orcl [oracle@prod ~]$ export ORACLE_UNQNAME=orcl [oracle@prod ~]$ export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1/ [oracle@prod ~]$ export PATH=$PATH:/home/oracle/app/oracle/product/11.2.0/dbhome_1/bin/
Config database control repos:
[oracle@prod ~]$ emca -config dbcontrol db -repos create STARTED EMCA at Apr 4, 2015 4:02:34 AM EM Configuration Assistant, Version 11.2.0.0.2 Production Copyright (c) 2003, 2005, Oracle. All rights reserved. Enter the following information:
Provide relevant information like below, orcl is my instance and 1521 is default listener port:
Database SID: orcl Listener port number: 1521 Listener ORACLE_HOME [ /home/oracle/app/oracle/product/11.2.0/dbhome_1 ]: Password for SYS user: Password for DBSNMP user: Password for SYSMAN user: Email address for notifications (optional): Outgoing Mail (SMTP) server for notifications (optional): ----------------------------------------------------------------- You have specified the following settings Database ORACLE_HOME ................ /home/oracle/app/oracle/product/11.2.0/dbhome_1 Local hostname ................ prod.localdomain Listener ORACLE_HOME ................ /home/oracle/app/oracle/product/11.2.0/dbhome_1 Listener port number ................ 1521 Database SID ................ orcl Email address for notifications ............... Outgoing Mail (SMTP) server for notifications ............... ----------------------------------------------------------------- Do you wish to continue? [yes(Y)/no(N)]: Y .... Enterprise Manager configuration completed successfully FINISHED EMCA at Apr 4, 2015 4:10:55 AM
To access your Enterprise Manager, Browse URL: https://localhost.localdomain:5500/em, like below and Confirm security Exception.
Provide Login credentials of SYS users:
Enterprise Manager Instance Dashbord for ORCL, Now you are free to continue your work.
Cheers!! EM configured successfully.
Stay Tune. 🙂
You are outstanding and helped me a lot. Thanks once again.