When use emca to recreate EM repository meet error"The following ports are already in use: [EM agent
Hi,
When we use emca as following to recreate EM repository in our testbed
# su - oracle
$ sqlplus / as sysdba
SQL> DEFINE EM_REPOS_USER=SYSMAN @?/sysman/admin/emdrep/sql/core/latest/admin/admin_drop_repos_user.sql SYSMAN
SQL> DEFINE EM_REPOS_USER=SYSMAN @?/sysman/admin/emdrep/sql/core/latest/admin/admin_drop_synonyms.sql
SQL> DROP ROLE MGMT_USER;
SQL> DROP USER SYSMAN CASCADE;
SQL> DROP USER MGMT_VIEW CASCADE;
SQL> exit
$ emca -config dbcontrol db -repos recreate -cluster -silent -DB_UNIQUE_NAME nls72 -SERVICE_NAME nls72 -ORACLE_HOME /u01/app/oracle/product/11.2.0/dbhome_1 -LISTENER_OH /u02/app/11.2.0/grid -PORT 1521 -SYS_PWD **** -SYSMAN_PWD **** -DBSNMP_PWD ****-CLUSTER_NAME db-cluster -ASM_OH /u02/app/11.2.0/grid -ASM_PORT 1521 -ASM_USER_NAME ASMSNMP -ASM_USER_PWD **** -ASM_USER_ROLE SYSDBA