oracle 10g重建em db control.
1.drop configuration files and repository run :
emca -deconfig dbcontrol db -repos drop
2. logon sqlplus as user sys or system, 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;
3.create configuration files and repository run
emca -config dbcontrol db -repos create
創(chuàng)建em時(shí),提示的端口號(hào),應(yīng)為實(shí)例的斷口號(hào),比如1521,不是em的端口號(hào)(比如1158)
em的端口號(hào)在這個(gè)文件中可以查到10.2.0\db_1\sysman\config\emca.properties
然后,進(jìn)行em后,界面出來(lái)了,但報(bào)了一個(gè)錯(cuò):
java.lang.exception: exception in sending request :: null
很多功能不能用,提示重新登錄.
在oracle論壇上查到了解決辦法:
找到下面的文件
10.2.0\db_1\zyknet_orc2\sysman\config\emd.properties
其中的agenttzregion缺省是gmt,改為你所在的時(shí)區(qū)即可,例如:
agenttzregion=asia/chungking
關(guān)于時(shí)區(qū)的列表參考:10.2.0\db_1\sysman\admin\supportedtzs.lst
然后,重啟oracledbconsole<sid>