Spent two or three days to configure Oracle Enterprise Manager, referred to as EM, whether through the DBCA or EMCA commands are always failure, in the search for a lot of information without fruit, after a toss finally configured successfully, and decided to do a summary to help meet the same problems with the small partners:
1. Close the firewall, anti-virus software, disconnect the network. --This is a very important step .
If opening the network may cause IP problems in Oracle, a directory under Oracle's Db_1 directory will be created based on current IP and may encounter problems with EM when the IP changes. If you have already created the folder based on IP, you can change the name of the folder to the machine name.
The folder is named:
The machine name, possibly IP, followed by the database instance name before underlining.
Then open the Tnsnames.ora file under Oracle\product\10.2.0\db_1\network\admin. Change the part of the red line to the machine name.
Tnsnames.ora contents are as follows:
However, a better approach is to remove the EM reconfiguration, because there may be an error in the process, which does not necessarily solve the problem.
2.cmd Open Command prompt, enter emca-deconfig dbcontrol db-repos drop, remove em
3. Check whether the folder mentioned in the first step is still in the directory oracle\product\10.2.0\db_1, if it is still deleted, in the directory oracle\product\10.2.0\db_1\oc4j\ Java EE has a folder named in the same way, deleted.
4. Open the Targets.xml file in the Oracle\product\10.2.0\db_1\sysman\emd directory, leaving the outermost <targets></targets> .
5. Run command emca-deconfig Dbcontrol db-repos Create, reconfigure EM
6. The configuration was successful, and the link to the above underline was opened in the browser.