重建EM步骤
1.删除一个EM资料库
   emca -repos drop
2.创建一个EM资料库
   emca -repos create
3.配置数据库的 Database Control
   emca -config dbcontrol db
4.查看端口配置文件:
   $ORACLE_HOME/install/portlist.ini

删除安全连接https:
emctl unsecure dbconsole
emctl unsecure agent

1. Logon SQLPLUS as user SYS and drop the sysman account and mangement objects:


a. drop user sysman cascade;
b. drop role MGMT_USER;
c. drop user MGMT_VIEW cascade;
d. drop public synonym MGMT_TARGET_BLACKOUTS;
e. drop public synonym SETEMVIEWUSERCONTEXT;

2. Manually remove the following folders:

/oracle/product/10.2.0/db_1/hzhrmisa_per_hzhrms
/oracle/product/10.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_hzhrmisa_per_hzhrms
/oracle/product/10.2.0/db_1/cfgtoollogs/emca/hzhrms/*


3.Set the ORACLE_HOME and ORACLE_SID 

From ORACLE_HOME/bin issue the following command: 

emca -config dbcontrol db -repos create

and give the necessary parameters.
At the end you will get an URL which can be used to access the DBConsole.
If it fails, please upload all the files from /oracle/product/10.2.0/db_1/cfgtoollogs/emca/hzhrms
directory.
If database control is created and not able to access the URL, send the following:
* zip and upload all files from /oracle/product/10.2.0/db_1/hzhrmisa_per_hzhrms/sysman/log
* emd.properties and emoms.properties file from /oracle/product/10.2.0/db_1/hzhrmisa_per_hzhrms/sysman/config

转自:http://hi.baidu.com/gss99999/blog/item/4bd07b330379d2fe1a4cff90.html