监听是静态注册的,EM创建好后,emctl status dbconsole 显示em 正在运行,无法连接到实例,重建em,仍然得不到解决,
查看/oracle/app/cfgtoollogs/emca/test/emca_2016_12_16_09_05_13.log 提示如下:
Dec 16, 2016 9:05:32 AM oracle.sysman.emcp.ParamsManager getHost
CONFIG: Host having instnces running for database test :Oracle
Dec 16, 2016 9:05:32 AM oracle.sysman.emcp.ParamsManager setParam
CONFIG: Setting param: REP_DB_RUNNING_HOST value: Oracle
Dec 16, 2016 9:05:32 AM oracle.sysman.emcp.ParamsManager getRepDbPort
CONFIG: Listener Port: 1521
Dec 16, 2016 9:05:32 AM oracle.sysman.emcp.util.GeneralUtil isLocalConnectionReq
uired
CONFIG: isLocalConnectionRequired: true
Dec 16, 2016 9:05:32 AM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
CONFIG: isLocalConnectionRequired: true. Connecting to database instance locally
.
Dec 16, 2016 9:05:32 AM oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
CONFIG: SQLEngine connecting with SID: ORCL, oracleHome: /oracle/app/product/11.
2.0, and user: SYSMAN
Dec 16, 2016 9:05:32 AM oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
CONFIG: SQLEngine created successfully and connected
Dec 16, 2016 9:05:32 AM oracle.sysman.emcp.ParamsManager checkListenerStatusForD
BControl
CONFIG: ORA-12541:TNS: 锟睫硷拷锟斤拷锟斤拷锟?
oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-12541: TNS:
锟睫硷拷锟斤拷锟斤拷锟?
tnsping正常,监听状态正常,PL/SQL development 可以连接
运行emca 具体步骤省略...... 重建监听后,重新监听 EM正常连接