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.