11grac连接asm实例报错ora-12514
959512Nov 25 2012 — edited Nov 25 2012在做112034 rac环境下的ogg复制的时候,需要远程通过监听连接asm实例,已经注册asm
[oracle@grid1 admin]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 25-NOV-2012 16:32:29
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Start Date 25-NOV-2012 15:33:19
Uptime 0 days 0 hr. 59 min. 9 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/app/grid/product/11.2.0/network/admin/listener.ora
Listener Log File /oracle/app/oracle/diag/tnslsnr/grid1/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.21)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.121)(PORT=1521)))
Services Summary...
Service "+ASM" has 2 instance(s).
Instance "+ASM", status UNKNOWN, has 1 handler(s) for this service...
Instance "+ASM1", status READY, has 1 handler(s) for this service...
Service "racdb" has 1 instance(s).
Instance "racdb1", status READY, has 1 handler(s) for this service...
Service "racdbXDB" has 1 instance(s).
Instance "racdb1", status READY, has 1 handler(s) for this service...
The command completed successfully
然后client 通过别名进行连接
tnsname
DBASM1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = grid1-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = grid2-vip)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = +ASM)
)
)
DBASM =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = scan-ip.fxz.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = +ASM)
)
)
--------------------------------------------------------------------------------
[oracle@grid1 admin]$ sqlplus sys/111111@dbasm as sysasm
SQL*Plus: Release 11.2.0.3.0 Production on Sun Nov 25 16:34:37 2012
Copyright (c) 1982, 2011, Oracle. All rights reserved.
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
-------------------------------------------------------------------------------
[oracle@grid1 admin]$ sqlplus sys/111111@dbasm1 as sysasm
SQL*Plus: Release 11.2.0.3.0 Production on Sun Nov 25 16:35:08 2012
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
直接通过scan ip连接的时候就会报错误 ora-12514
但是分别写主机vip地址时就正常连接。
想不通为什么,11g 所有对监听的请求不是都通过scan 来跳转到local的么?