emca配置rac環境em db control報: ORA-12514的解決辦法

如:

[oracle@rac01 ~]$ emca -config dbcontrol db -repos create -cluster

STARTED EMCA at Jun 22, 2016 11:31:43 PM

EM Configuration Assistant, Version 11.2.0.3.0 Production

Copyright (c) 2003, 2011, Oracle.  All rights reserved.

Enter the following information:

Database unique name: orcl

Service name:  orcl

Listener port number: 1521

Listener ORACLE_HOME [ /u01/app/11.2.0/grid ]: 

Password for SYS user:  

Password for DBSNMP user:  

Password for SYSMAN user:  

Cluster name: rac-cluster

Email address for notifications (optional): 

Outgoing Mail (SMTP) server for notifications (optional): 

ASM ORACLE_HOME [ /u01/app/11.2.0/grid ]: 

ASM port [ 1521 ]: 

ASM username [ ASMSNMP ]: 

ASM user password:  

Jun 22, 2016 11:34:47 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngineRemotely

WARNING: Error during db connection : ORA-12514: TNS:listener does not currently know of service requested in connect descriptor

-----------------------------------------------------------------

1.默認ASM實例只註冊本地監聽,而非scan監聽

[grid@rac01 ~]$ lsnrctl

LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 23-JUN-2016 22:35:19

Copyright (c) 1991, 2011, Oracle.  All rights reserved.

Welcome to LSNRCTL, type "help" for information.

LSNRCTL> status

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))

STATUS of the LISTENER

------------------------

Alias                     LISTENER

Version                   TNSLSNR for Linux: Version 11.2.0.3.0 - Production

Start Date                09-JUN-2016 09:51:38

Uptime                    14 days 12 hr. 43 min. 42 sec

Trace Level               off

Security                  ON: Local OS Authentication

SNMP                      OFF

Listener Parameter File   /u01/app/11.2.0/grid/network/admin/listener.ora

Listener Log File         /u01/app/11.2.0/grid/network/log/listener.log

Listening Endpoints Summary...

  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))

  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.201)(PORT=1521)))

  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.101)(PORT=1521)))

Services Summary...

Service "+ASM" has 1 instance(s).

  Instance "+ASM1", status READY, has 1 handler(s) for this service...

Service "orcl" has 1 instance(s).

  Instance "orcl1", status READY, has 1 handler(s) for this service...

Service "orclXDB" has 1 instance(s).

  Instance "orcl1", status READY, has 1 handler(s) for this service...

The command completed successfully

LSNRCTL> 

[grid@rac01 ~]$ lsnrctl status LISTENER_SCAN1

LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 23-JUN-2016 22:29:08

Copyright (c) 1991, 2011, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))

STATUS of the LISTENER

------------------------

Alias                     LISTENER_SCAN1

Version                   TNSLSNR for Linux: Version 11.2.0.3.0 - Production

Start Date                14-MAY-2016 06:14:58

Uptime                    40 days 16 hr. 14 min. 10 sec

Trace Level               off

Security                  ON: Local OS Authentication

SNMP                      OFF

Listener Parameter File   /u01/app/11.2.0/grid/network/admin/listener.ora

Listener Log File         /u01/app/11.2.0/grid/log/diag/tnslsnr/rac01/listener_scan1/alert/log.xml

Listening Endpoints Summary...

  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN1)))

  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.100)(PORT=1521)))

Services Summary...

Service "orcl" has 2 instance(s).

  Instance "orcl1", status READY, has 1 handler(s) for this service...

  Instance "orcl2", status READY, has 1 handler(s) for this service...

Service "orclXDB" has 2 instance(s).

  Instance "orcl1", status READY, has 1 handler(s) for this service...

  Instance "orcl2", status READY, has 1 handler(s) for this service...

The command completed successfully

EM默認配置的時候會去找scan監聽.

解決辦法:

sql>alter system set remote_listener='scan:1521' scope=both sid='*'; 

sql>alter system register;

再去配置em,就不再報這個錯誤了.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章