OS:LINUX
DB:ORACLE 10G RAC
CLIENT:WINDOWS
最近新裝了RAC,在客戶端使用sqlplus連接的時候偶爾報ora-12535
C:\Documents and Settings\w6000039>sqlplus system/xxxxxxx@azdb
SQL*Plus: Release 9.2.0.1.0 - Production on 星期二 11月 22 21:57:55 2011
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
ERROR:
ORA-12535: TNS:作業逾時
E:\Oracle\product\92010\Client_1\network\admin\sqlnet.ora
使用 TNSNAMES 介面程式來解析別名
Attempting to contact (DESCRIPTION= (ADDRESS = (PROTOCOL = TCP)(HOST = 10.134.14
5.115)(PORT = 1521)) (ADDRESS = (PROTOCOL = TCP)(HOST = 10.134.145.116)(PORT = 1
521)) (LOAD_BALANCE = yes) (CONNECT_DATA= (SERVER = DEDICATED) (SERVICE_NAME = a
zdb) (FAILOVER_MODE = (TYPE = SELECT) (METHOD = BASIC))))
OK (20 msec)
,經常baidu,google.看到有人直接設置local_listener解決該問題的:
原來的設置:
node1:
SQL> show parameter list
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
local_listener string LISTENER_AZDB1
remote_listener string LISTENERS_AZDB
node2:
SQL> show parameter list
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
local_listener string LISTENER_AZDB2
remote_listener string LISTENERS_AZDB
執行:
alter system set local_listener='(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.24.42.117)(PORT=1529)))' sid='azdb1';
alter system set local_listener='(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.24.42.118)(PORT=1529)))' sid='azdb2';
直接設置連接描述而不使用TNSNAMES.ORA里的設置。
阅读(3275) | 评论(0) | 转发(0) |