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
When you create EM, the port number of the prompt should be the number of the instance's break, such as 1521, not the port number of EM (for example, 1158)
The port number of EM can be found in this file 10.2.0\db_1\sysman\config\emca.properties
Then, after conducting EM, the interface came out, but reported a mistake:
Java.lang.Exception:Exception in sending Request:: null
Many features are not available, prompting you to log in again.
A workaround was found at the Oracle forum:
http://forums.oracle.com/forums/thread.jspa?threadID=320574&tstart=0&messageID=1374397
Find the following file
10.2.0\db_1\zyknet_orc2\sysman\config\emd.properties
The default for Agenttzregion is GMT, which can be changed to your time zone, for example:
Agenttzregion=asia/chungking
About the time zone list reference: 10.2.0\db_1\sysman\admin\supportedtzs.lst
Then restart oracledbconsole<sid>.