OEM Start Error oc4j Configuration issue. NotFound

Source: Internet
Author: User

The newly installed Oracle 11g RAC failed to start as follows:

$ emctl Start Dbconsole

Oc4j Configuration issue. /u01/app/oracle/product/11.2.0/db_1/oc4j/j2ee/oc4j_dbconsole_bjgedb02_bjgedb not found


System Hp-unix 11i

Oracle version 11.2.0


The repair process is as follows:

$ emca-config Dbcontrol db


STARTED EMCA at June, 4:04:47 PM

EM Configuration Assistant, Version 11.2.0.3.0 Production

Copyright (c) 2003, Oracle. All rights reserved.


Enter the following information:

Database Sid:gedb

June, 4:04:54 PM oracle.sysman.emcp.DatabaseChecks Checkdbavailabilityimpl

Warning:ora-01034:oracle Not available


June, 4:04:54 PM oracle.sysman.emcp.DatabaseChecks throwdbunavailableexception

SEVERE:

Database instance is unavailable. Fix the ORA error thrown and run EM Configuration Assistant again.


Some of the possible reasons may:


1) Database May is not is up.

2) Database is started setting environment variable oracle_home with trailing '/'. Reset oracle_home and bounce the database.


For eg. Database is started setting environment variable oracle_home=/scratch/db/. Reset oracle_home=/scratch/db and bounce the database.


$ emca-config Dbcontrol db


STARTED EMCA at June, 4:05:05 PM

EM Configuration Assistant, Version 11.2.0.3.0 Production

Copyright (c) 2003, Oracle. All rights reserved.


Enter the following information:

Database SID:GEDB1

Database Control is already configured for the database gedb1

You are chosen to configure database Control for managing the database GEDB1

This would remove the existing configuration and the default settings and perform a fresh configuration

wish to continue? [Yes (Y)/no (N)]: Y

Listener Oracle_home [/u01/app/oracle/product/11.2.0/db_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):

ASM Oracle_home [/u01/app/oracle/product/11.2.0/db_1]: $ echo $ORACLE _home

Invalid Oracle_home.

ASM Oracle_home [/u01/app/oracle/product/11.2.0/db_1]:/u01/app/11.2.0/grid

ASM SID [+asm]:

ASM Port [1521]:

ASM username [ASMSNMP]:

ASM User password:

-----------------------------------------------------------------


You have specified the following settings


Database oracle_home ..../u01/app/oracle/product/11.2.0/db_1.-----


The Local hostname ... bjgedb01, ... and so on.

Listener oracle_home ..../u01/app/oracle/product/11.2.0/db_1.-----

Listener port number ....... ..... 1521

Database SID ..... gedb1 ....???

e-mail address for notifications .......

Outgoing Mail (SMTP) server for notifications ..... .....

ASM oracle_home .../u01/app/11.2.0/grid, ..., and so on.

ASM SID ..... +asm.----

ASM port ....... ..... 1521

ASM user Role ....... ..... SYSDBA

ASM username ....... ..... Asmsnmp


-----------------------------------------------------------------

wish to continue? [Yes (Y)/no (N)]: Y

June, 4:06:35 PM Oracle.sysman.emcp.EMConfig perform

Info:this operation is being logged at/u01/app/oracle/cfgtoollogs/emca/gedb/emca_2015_06_10_16_05_04.log.

June, 4:06:37 PM Oracle.sysman.emcp.util.PortManager isportinuse

Warning:specified Port 5540 is already on use.

June, 4:06:37 PM Oracle.sysman.emcp.util.PortManager isportinuse

Warning:specified Port 5520 is already on use.

June, 4:06:37 PM Oracle.sysman.emcp.util.PortManager isportinuse

Warning:specified Port 1158 is already on use.

June, 4:06:37 PM oracle.sysman.emcp.util.DBControlUtil stopoms

Info:stopping Database Control (This is a while) ...

June, 4:06:55 PM oracle.sysman.emcp.EMReposConfig uploadconfigdatatorepository

Info:uploading configuration data to EM repository (this could take a while) ...

June, 4:09:30 PM oracle.sysman.emcp.EMReposConfig invoke

info:uploaded Configuration Data successfully

June, 4:09:31 PM Oracle.sysman.emcp.ParamsManager Getlocallistener

Warning:error Retrieving listener for BJGEDB01

June, 4:09:45 PM oracle.sysman.emcp.util.DBControlUtil securedbconsole

Info:securing Database Control (This is a while) ...

June, 4:09:56 PM oracle.sysman.emcp.util.DBControlUtil securedbconsole

Info:database Control secured successfully.

June, 4:09:56 PM oracle.sysman.emcp.util.DBControlUtil startoms

Info:starting Database Control (This is a while) ...

June, 4:10:34 PM oracle.sysman.emcp.EMDBPostConfig performconfiguration

Info:database Control started successfully

June, 4:10:34 PM oracle.sysman.emcp.EMDBPostConfig performconfiguration

INFO: >>>>>>>>>>> The Database Control URL is https://bjgedb01:1158/em <<< <<<<<<<<

June, 4:10:38 PM oracle.sysman.emcp.EMDBPostConfig invoke

WARNING:

WARNING ************************


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


***********************************************************

Enterprise Manager Configuration completed successfully

Finished EMCA at June, 4:10:38 PM

$

$

$ emctl Start Dbconsole

Oracle Enterprise Manager 11g Database Control Release 11.2.0.4.0

Copyright (c) 1996, Oracle Corporation. All rights reserved.

Https://bjgedb01:1158/em/console/aboutApplication

-an instance of Oracle Enterprise Manager 11g Database Control is already running.


This article is from the "DBA Sky" blog, so be sure to keep this source http://kevinora.blog.51cto.com/9406404/1660468

OEM Start Error oc4j Configuration issue. NotFound

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.