Emca reconstruction EM in Oracle in Linux

Source: Internet
Author: User
If you change the machine name, you can recreate EM. If you do not need to recreate EM, you can reconfigure emca to recreate EM [Oracle @ dev ~]. $ Cdu01apporacleproduct11.2.0

If you change the machine name, you can recreate EM. If you do not need to recreate EM, you can reconfigure emca to recreate EM [Oracle @ dev ~]. $ Cd/u01/app/oracle/product/11.2.0/

If you change the machine name, you can re-configure EM.

Emca reconstruction EM

[Oracle @ dev ~] $ Cd/u01/app/oracle/product/11.2.0/dbhome_1/bin

Rebuilding an EM Database

Emca-repos recreate

Delete An EM Database

Emca-repos drop

Create an EM Database
Emca-repos create

Configure Database Control for the Database
Emca-config dbcontrol db

After you reconfigure EM, the port number may change. Check the command prompt.

The port number is based on the configuration file.

/U01/app/oracle/product/11.2.0/dbhome_1/sysman/config/emca. properties

DBCONTROL_HTTP_PORT_MIN = 5500
DBCONTROL_HTTP_PORT_MAX = 5519

DBCONTROL_HTTP_PORT_DEFAULT = 1158

Configure the EM port number

Emca-reconfig ports-dbcontrol_http_port 1158

Configure the proxy port number

Emca-reconfig ports-agent_port 3938

The configured file is in

/U01/app/oracle/product/11.2.0/dbhome_1/install/portlist. ini

Maybe the port number you want to configure has been allocated. You can check the log and it will automatically allocate one to you,

(The occupied directory can be deleted and not tested)

/U01/app/oracle/product/11.2.0/dbhome_1/productname/j2ee/OC4J_DBConsole_dev_orcl

/U01/app/oracle/product/11.2.0/dbhome_1/dev_orcl

Re-configure the host name used by EM, which is the domain name corresponding to your host name, in the/etc/hosts file.

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.