Resolving OC4J Configuration issue

[oracle@node1 ~]$ emctl start console
OC4J Configuration issue. /u01/app/11.2.0/grid/sysman/j2ee not found.

We need to reconfigure db console:

[oracle@node1 ~]$ emca -config dbcontrol db

STARTED EMCA at Sep 1, 2015 5:10:09 AM
EM Configuration Assistant, Version 11.2.0.3.0 Production
Copyright (c) 2003, 2011, Oracle. All rights reserved.

Enter the following information:
Database SID: mydb    <– input your oracle SID here
Database Control is already configured for the database mydb
You have chosen to configure Database Control for managing the database mydb
This will remove the existing configuration and the default settings and perform a fresh configuration
Do you wish to continue? [yes(Y)/no(N)]: y    <– input y to continue
Listener ORACLE_HOME [ /u01/app/oracle/product/11.2.0/dbhome_1 ]:
Password for SYS user:       <– input your sys password
Password for DBSNMP user:     <– input your dbsnmp password
Password for SYSMAN user:      <– input your sysman password
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
—————————————————————–

You have specified the following settings

Database ORACLE_HOME ……………. /u01/app/oracle/product/11.2.0/dbhome_1

Local hostname ……………. node1.oracle.com
Listener ORACLE_HOME ……………. /u01/app/oracle/product/11.2.0/dbhome_1
Listener port number ……………. 1521
Database SID ……………. mydb
Email address for notifications ……………
Outgoing Mail (SMTP) server for notifications ……………

—————————————————————–
Do you wish to continue? [yes(Y)/no(N)]: y
Sep 1, 2015 5:10:39 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/mydb/emca_2015_09_01_05_10_08.log.
Sep 1, 2015 5:10:40 AM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) …
Sep 1, 2015 5:10:45 AM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) …
Sep 1, 2015 5:12:19 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
Sep 1, 2015 5:12:20 AM oracle.sysman.emcp.ParamsManager getLocalListener
WARNING: Error retrieving listener for node1.oracle.com
Sep 1, 2015 5:12:27 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) …
Sep 1, 2015 5:12:35 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Database Control secured successfully.
Sep 1, 2015 5:12:35 AM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) …
Sep 1, 2015 5:14:45 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Sep 1, 2015 5:14:45 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is https://node1.oracle.com:5500/em <<<<<<<<<<<
Sep 1, 2015 5:14:48 AM oracle.sysman.emcp.EMDBPostConfig invoke
WARNING:
************************ WARNING ************************

Management Repository has been placed in secure mode wherein Enterprise Manager data will be encrypted. The encryption key has been placed in the file: /u01/app/oracle/product/11.2.0/dbhome_1/node1_mydb/sysman/config/emkey.ora. Ensure this file is backed up as the encrypted data will become unusable if this file is lost.

***********************************************************
Enterprise Manager configuration completed successfully
FINISHED EMCA at Sep 1, 2015 5:14:48 AM

We can see that dbconsole is running now:

[oracle@node1 ~]$ emctl status dbconsole  
Oracle Enterprise Manager 11g Database Control Release 11.2.0.3.0
Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
https://node1.oracle.com:5500/em/console/aboutApplication
Oracle Enterprise Manager 11g is running.
——————————————————————
Logs are generated in directory /u01/app/oracle/product/11.2.0/dbhome_1/node1_mydb/sysman/log
[oracle@node1 ~]$
[oracle@node1 ~]$ netstat -an | grep 5500
tcp 0 0 :::5500 :::* LISTEN

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s