Database Install/Upgrade/Opatch (MOSC)

MOSC Banner

When use emca to recreate EM repository meet error"The following ports are already in use: [EM agent

edited Dec 3, 2015 8:08PM in Database Install/Upgrade/Opatch (MOSC) 2 commentsAnswered ✓

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

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center