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
建立EM時,提示的連接埠號碼,應為執行個體的斷口號,比如1521,不是EM的連接埠號碼(比如1158)
EM的連接埠號碼在這個檔案中可以查到10.2.0\db_1\sysman\config\emca.properties
然後,進行em後,介面出來了,但報了一個錯:
java.lang.Exception: Exception in sending Request :: null
很多功能不能用,提示重新登入.
在Oracle論壇上查到瞭解決辦法:
http://forums.oracle.com/forums/thread.jspa?threadID=320574&tstart=0&messageID=1374397
找到下面的檔案
10.2.0\db_1\ZYKNET_ORC2\sysman\config\emd.properties
其中的agentTZRegion預設是GMT,改為你所在的時區即可,例如:
agentTZRegion=Asia/Chungking
關於時區的列表參考:10.2.0\db_1\sysman\admin\supportedtzs.lst
然後,重啟OracleDBConsole<SID>