今天在客戶碰到一問題
/etc/hosts文件配置為
引用
#public network
#virtual ip address
#private network used for rac
listener
引用
LISTENER_HISDB
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = hisdb
(ADDRESS = (PROTOCOL = TCP)(HOST =
)
)
SID_LIST_LISTENER_HISDB
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /oracle/products/rdbms)
(PROGRAM = extproc)
)
)
SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER_HISDB
INBOUND_CONNECT_TIMEOUT_ =
PREFER_LEAST_LOADED_NODE_LISTENER_LISTENER_HISDB
主機上監聽狀態顯示
引用
oracle
LSNRCTL for IBM/AIX RISC System/
Copyright (c)
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for IBM/AIX RISC System/
Start Date
Uptime
Trace Level off
Security ON: Local OS Authentication
SNMP ON
Listener Parameter File /oracle/products/rdbms/network/admin/listener
Listener Log File /oracle/products/rdbms/network/log/listener
Listening Endpoints Summary
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hisdb
Services Summary
Service
Instance
Service
Instance
Service
Instance
Instance
Service
Instance
Instance
Service
Instance
Instance
Service
Instance
Instance
Service
Instance
Instance
The command completed successfully
引用
oracle
LSNRCTL for IBM/AIX RISC System/
Copyright (c)
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=
Services Summary
Service
Instance
Handler(s):
LOCAL SERVER
Service
Instance
Handler(s):
LOCAL SERVER
Service
Instance
Handler(s):
REMOTE SERVER
(ADDRESS=(PROTOCOL=TCP)(HOST=hisdb
Instance
Handler(s):
LOCAL SERVER
REMOTE SERVER
(ADDRESS=(PROTOCOL=TCP)(HOST=hisdb
Service
Instance
Handler(s):
DISPATCHER <machine: hisdb
(ADDRESS=(PROTOCOL=tcp)(HOST=hisdb
Instance
Handler(s):
DISPATCHER <machine: hisdb
(ADDRESS=(PROTOCOL=tcp)(HOST=hisdb
Service
Instance
Handler(s):
REMOTE SERVER
(ADDRESS=(PROTOCOL=TCP)(HOST=hisdb
Instance
Handler(s):
LOCAL SERVER
REMOTE SERVER
(ADDRESS=(PROTOCOL=TCP)(HOST=hisdb
Service
Instance
Handler(s):
REMOTE SERVER
(ADDRESS=(PROTOCOL=TCP)(HOST=hisdb
Instance
Handler(s):
LOCAL SERVER
REMOTE SERVER
(ADDRESS=(PROTOCOL=TCP)(HOST=hisdb
Service
Instance
Handler(s):
REMOTE SERVER
(ADDRESS=(PROTOCOL=TCP)(HOST=hisdb
Instance
Handler(s):
LOCAL SERVER
REMOTE SERVER
(ADDRESS=(PROTOCOL=TCP)(HOST=hisdb
The command completed successfully
監聽進程顯示為
引用
oracle
oracle
oracle
rac狀態顯示為
引用
oracle
Name Type Target State Host
ora
ora
ora
ora
ora
ora
ora
ora
ora
ora
ora
ora
ora
ora
ora
ora
本地客戶端tnsnames
引用
RAC
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST =
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
(INSTANCE_NAME = orcl
)
)
奇怪的事情發生了
引用
C:\Documents and Settings\Administrator>tnsping rac
TNS Ping Utility for
Copyright (c)
已使用的參數文件:
D:\oracle\product\
已使用 TNSNAMES 適配器來解析別名
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =
(INSTANCE_NAME = orcl
OK (
From:http://tw.wingwit.com/Article/program/Oracle/201311/18794.html