The correct solution is to use EMCA to install correctly when installing
If you have already installed Enterprise Manager: Please uninstall and reload with the following command
Emca-deconfig Dbcontrol Dbemca-repos Drop
Install the Enterprise Manager process as follows:
Execute command:
emca-config dbcontrol db-repos create-respfile d:\resp.txtD:\resp.txt content: Oracle_hostname=localhostSid=orclport=1521oracle_home=e:\oracle\product\11.2.0\dbhomelistener_oh=e:\oracle\product\11.2.0\dbhomesys_pwd =sys/{sys-password}dbsnmp_pwd=dbsnmp/{password}sysman_pwd=sysman/{password}----------------------------------- -------------------------------------------------------------------------
Note:for Desktop Class Install always pass parameter oracle_hostname as "localhost" to any EMCA command
For the desktop version, please follow the official recommendation.
Remember to back up:/product/11.2.0/dbhome/localhost_orcl/sysman/config/emkey.ora files when the installation is complete.
In addition, it is convenient to use the Emctl tool manually:
In the system environment variable, add:
Oracle_home=\product\11.2.0\dbhome
Oracle_hostname=localhost
Oracle_unqname=ORCL
The above is an official recommended method for resolving Enterprise Manager's inability to start in the Oracle 10g/oracle 11g Windows environment.
Solutions for Oracle 11g R2 Enterprise Manager (EM) fail to start in Windows environment