Re-install the EM process after the Oracle installation is complete

Source: Internet
Author: User
Tags metabase


Start oracle11g emctl start Dbconsole report the following error

environment variable oracle_unqname not defined. Please set Oracle_unqname to Da

Enter Export ORACLE_UNQNAME=ORCL (instance name) at this time

Re-enter EMCTL start Dbconsole report the following error

Oc4j Configuration issue. /ORACLE/PRODUCT/11.1.0/DB_1/OC4J/J2EE/OC4J_DBCONSOLE_WEISHANLAKE.LAKES_ORCL not found.

At this point the workaround is as follows

1, first delete the EM database command Emca-repos drop


2. Re-establish the EM database command Emca-repos Create


3. Database Control command for the metabase Emca-config Dbcontrol db

Started successfully after configuration


Here are some common commands for EM


Create an EM repository

Emca-repos Create

Rebuilding an EM database

Emca-repos recreate

Delete an EM repository

Emca-repos Drop

Metabase Control for the configuration database

Emca-config Dbcontrol DB

To delete a database control configuration

Emca-deconfig Dbcontrol DB

Reconfigure the port for DB control, the default port at 1158

Emca-reconfig ports

Emca-reconfig Ports-dbcontrol_http_port 1160

Emca-reconfig Ports-agent_port 3940

Start the EM console service after setting the ORACLE_SID environment variable first

Emctl Start Dbconsole

Stop the EM console service after setting the ORACLE_SID environment variable first

Emctl Stop Dbconsole

Check the status of the EM console service after setting the ORACLE_SID environment variable first

Emctl Status Dbconsole


Steps to configure Dbconsole

Emca-repos Create

Emca-config Dbcontrol DB

Emctl Start Dbconsole

Steps to reconfigure Dbconsole

Emca-repos Drop

Emca-repos Create

Emca-config Dbcontrol DB

Emctl Start Dbconsole


Re-install the EM process after the Oracle installation is complete

Related Article

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.