Reconfig OEM11g DBConsole Manually for Oracle Database
Recreate the repository to reset the OC4J Application Server(11g)
Prepare yourself
|
Error :OC4J Configuration issue. /oracle11/product/11.2.0.3/oc4j/j2ee/OC4J_DBConsole_SCORPIO00B_prim1124 not found. |
(prim1124) /oracle11/product/11.2.0.3/bin $cd $ORACLE_HOME/bin (prim1124) /oracle11/product/11.2.0.3/bin $./emctl start dbconsole Environment variable ORACLE_UNQNAME not defined. Please set ORACLE_UNQNAME to database unique name. (prim1124) /oracle11/product/11.2.0.3/bin $env |grep ORA ORACLE_BASE=/oracle11 ORACLE_HOME=/oracle11/product/11.2.0.3 ORACLE_SID=prim1124 PS1=($ORACLE_SID) $PWD $ (prim1124) /oracle11/product/11.2.0.3/bin $export ORACLE_UNQNAME=prim1124 (prim1124) /oracle11/product/11.2.0.3/bin $ (prim1124) /oracle11/product/11.2.0.3/bin $./emctl start dbconsole OC4J Configuration issue. /oracle11/product/11.2.0.3/oc4j/j2ee/OC4J_DBConsole_SCORPIO00B_prim1124 not found. (prim1124) /oracle11/product/11.2.0.3/bin $./emctl status dbconsole OC4J Configuration issue. /oracle11/product/11.2.0.3/oc4j/j2ee/OC4J_DBConsole_SCORPIO00B_prim1124 not found. (prim1124) /oracle11/product/11.2.0.3/bin $sqlplus sysman/oracleSQL*Plus: Release 11.2.0.3.0 Production on Tue Feb25 10:16:05 2012Copyright (c) 1982, 2011, Oracle. All rights reserved.Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL> conn system/oracle Connected. SQL> exit (prim1124) /oracle11/product/11.2.0.3/bin $emca -repos create STARTED EMCA at Feb 25, 2012 10:19:00 AM Do you wish to continue? [yes(Y)/no(N)]: yes STARTED EMCA at Feb 25, 2012 10:21:24 AM Enter the following information: You have specified the following settings Database ORACLE_HOME ……………. /oracle11/product/11.2.0.3 Local hostname ……………. SCORPIO00B —————————————————————– Feb 25, 2012 10:21:46 AM oracle.sysman.emcp.EMConfig perform Database connection through listener failed. Fix the error and run EM Configuration Assistant again. Some of the possible reasons may be: 1) Listener port 1523 provided is incorrect. Provide the correct port. Refer to the log file at /oracle11/cfgtoollogs/emca/prim1124/emca_2012_02_25_10_21_24.log for more details. ***If Your Database is DR or RAC then You have 1 virtual IP and 2public IP so You have to use Virtual IPĀ such as ORACLE_HOSTNAME=SCORPIO00 *** (prim1124) /oracle11/product/11.2.0.3/bin $emca -config dbcontrol db -repos recreate STARTED EMCA at Feb 25, 2012 10:23:00 AM Enter the following information: You have specified the following settings Database ORACLE_HOME ……………. /oracle11/product/11.2.0.3 Local hostname ……………. SCORPIO00B —————————————————————– WARNING: ORA-12541: TNS:no listener Feb 25, 2012 10:23:19 AM oracle.sysman.emcp.EMConfig perform Database connection through listener failed. Fix the error and run EM Configuration Assistant again. Some of the possible reasons may be: 1) Listener port 1523 provided is incorrect. Provide the correct port. Refer to the log file at /oracle11/cfgtoollogs/emca/prim1124/emca_2012_02_25_10_22_59.log for more details. LSNRCTL for Solaris: Version 11.2.0.3.0 – Production on Feb 25, 2012 10:23:56 Copyright (c) 1991, 2011, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=SCORPIO00)(PORT=1523))) STARTED EMCA at Feb 25, 2012 10:24:18 AM Enter the following information: You have specified the following settings Database ORACLE_HOME ……………. /oracle11/product/11.2.0.3 Local hostname ……………. SCORPIO00 —————————————————————– Management Repository has been placed in secure mode wherein Enterprise Manager data will be encrypted. The encryption key has been placed in the file: /oracle11/product/11.2.0.3/SCORPIO00_prim1124/sysman/config/emkey.ora. Ensure this file is backed up as the encrypted data will become unusable if this file is lost. *********************************************************** (prim1124) /oracle11/product/11.2.0.3/bin $cp /oracle11/product/11.2.0.3/SCORPIO00_prim1124/sysman/config/emkey.ora /oracle11/product/11.2.0.3/SCORPIO00_prim1124/sysman/config/emkey.ora_bak then try to connect with the browser. |