In linux, emca re-build EM in oracle. If you change the machine name, you can re-create EM. Generally, you do not need to re-configure emca to re-create EM [oracle @ dev ~]. $ Cd/u01/app/oracle/product/11.2.0/dbhome_1/bin www.2cto.com recreate an EM database emca-repos recreate delete an EM database emca-repos drop create an EM database emca-repos when you create a Database to configure the Database Controlemca-config dbcontrol db, you may change the port number after you reconfigure EM, note that the port number is/u01/app/oracle/product/11.2.0/dbhome_1/sysman/config/emca according to the configuration file. propertiesDBCONTROL_HTTP_PORT_MIN = 5500DBCONTROL_HTTP_PORT_MAX = 5519DBCONTROL_HTTP_PORT_DEFAULT = 1158 www.2cto.com 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 may have been assigned the port number you want to configure. You can check the log and it will automatically assign you one (you can delete the occupied directory, 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 reconfigure the host name used by EM, is the domain name corresponding to your host name, in the/etc/hosts file, front. For others, set the ORACLE_SID environment variable first, or set ORACLE_UNQNAME = ORCL (database instance name) view the EM console service status emctl status dbconsole start EM console service emctl start dbconsole stop EM console service emctl stop dbconsole www.2cto.com if the following error occurs, you can reconfigure EM, or copy the previous EM folder and change it to localhost. localdomain is the domain name corresponding to the machine name [oracle @ dev bin] $ emctl status dbconsolesolaris Configuration issue. /u01/app/oracle/product/11.2.0/dbhome_1/productname/j2ee/OC4J_DBConsole_localhost.localdomain_orcl not found. can be copied (dev is the name of the previous machine) /u01/app/oracle/product/11.2.0/dbhome_1/productname/j2ee/users/u01/app/oracle/product/11.2.0/dbhome_1/Solaris/j2ee/OC4J_DBConsole_dev_orcl/u01/ app/oracle/product/11.2.0/dbhome_1/Solaris/j2ee/OC4J_DBConsole_localhost.localdomain_orcl/u01/app/oracle/product/11.2.0/dbhome_1/localhost. localdomain_orclcp-target directory of the rf Source directory