ORACLE 10G rac故障處理一例
一、問題描述
1.作業系統資訊
$ uname -a
Linux racdb1 2.6.18-53.el5xen #1 SMP Wed Oct 10 16:48:44 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
2.資料庫版本資訊
sys@orcl> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
3.問題現象
當RAC部署完成後,從客戶端反覆連線資料庫時,出現時而能連通,時而斷開連線的錯誤,連線資料庫不穩定!
具體情況如下:
sys@orcl> conn system/system@tnsrac
已連線。
sys@orcl> conn system/system@tnsrac
ERROR:
ORA-12545: 因目標主機或物件不存在,連線失敗
警告: 您不再連線到 ORACLE。
sys@orcl> conn system/system@tnsrac
已連線。
sys@orcl> conn system/system@tnsrac
已連線。
sys@orcl> conn system/system@tnsrac
ERROR:
ORA-12545: 因目標主機或物件不存在,連線失敗
警告: 您不再連線到 ORACLE。
客戶端 tnsnames.ora 配置情況如下:
tnsrac =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.12.21)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.12.22)(PORT = 1521))
(LOAD_BALANCE = yes)
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)
伺服器端hosts檔案內容:
orcl1@racdb1 /home/oracle$ cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
# Public IP - (eth0)
172.16.12.23 racdb1
172.16.12.24 racdb2
# Virtual IP (VIP) - (eth0)
172.16.12.21 racdb1-vip
172.16.12.22 racdb2-vip
# Private IP - (eth1)
10.10.10.1 racdb1-priv
10.10.10.2 racdb2-priv
二、解決方法
1.使用 sqlplus / as sysdba 登陸資料庫檢視local_listener設定情況
sys@orcl> show parameter list
NAME TYPE VALUE
------------------- -------------------- --------------------
local_listener string
remote_listener string LISTENERS_ORCL
2.在伺服器端racdb1,racdb2上分別編輯tnsnames.ora和listener.ora檔案,將兩個檔案中的host主機名字均修改為具體的VIP地址
如將下面部分
LISTENERS_ORCL =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = racdb1-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = racdb2-vip)(PORT = 1521))
)
改為:
LISTENERS_ORCL =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.12.21)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.12.22)(PORT = 1521))
)
3.在racdb1節點的tnsnames.ora增加如下內容
local_listener_rac =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.12.21)(PORT = 1521))
)
4.在racdb2節點的tnsnames.ora增加如下內容
local_listener_rac =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.12.22)(PORT = 1521))
)
4.使用 sqlplus / as sysdba 登陸資料庫修改local_listener引數
alter system set local_listener='local_listener_rac' scope=both;
5.重啟兩節點的例項和監聽
sys@orcl> shutdown immediate;
sys@orcl> startup;
$ lsnrctl stop
$ lsnrctl start
三、測試
system@orcl> conn system/system@tnsrac
已連線。
system@orcl> select instance_name from v$instance;
INSTANCE_NAME
--------------------------------
orcl2
system@orcl> conn system/system@tnsrac
已連線。
system@orcl> select instance_name from v$instance;
INSTANCE_NAME
--------------------------------
orcl1
system@orcl> conn system/system@tnsrac
已連線。
system@orcl> select instance_name from v$instance;
INSTANCE_NAME
--------------------------------
orcl2
system@orcl> conn system/system@tnsrac
已連線。
system@orcl> select instance_name from v$instance;
INSTANCE_NAME
--------------------------------
orcl1
到此,該問題已經處理完成。
1.作業系統資訊
$ uname -a
Linux racdb1 2.6.18-53.el5xen #1 SMP Wed Oct 10 16:48:44 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
2.資料庫版本資訊
sys@orcl> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
3.問題現象
當RAC部署完成後,從客戶端反覆連線資料庫時,出現時而能連通,時而斷開連線的錯誤,連線資料庫不穩定!
具體情況如下:
sys@orcl> conn system/system@tnsrac
已連線。
sys@orcl> conn system/system@tnsrac
ERROR:
ORA-12545: 因目標主機或物件不存在,連線失敗
警告: 您不再連線到 ORACLE。
sys@orcl> conn system/system@tnsrac
已連線。
sys@orcl> conn system/system@tnsrac
已連線。
sys@orcl> conn system/system@tnsrac
ERROR:
ORA-12545: 因目標主機或物件不存在,連線失敗
警告: 您不再連線到 ORACLE。
客戶端 tnsnames.ora 配置情況如下:
tnsrac =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.12.21)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.12.22)(PORT = 1521))
(LOAD_BALANCE = yes)
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)
伺服器端hosts檔案內容:
orcl1@racdb1 /home/oracle$ cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
# Public IP - (eth0)
172.16.12.23 racdb1
172.16.12.24 racdb2
# Virtual IP (VIP) - (eth0)
172.16.12.21 racdb1-vip
172.16.12.22 racdb2-vip
# Private IP - (eth1)
10.10.10.1 racdb1-priv
10.10.10.2 racdb2-priv
二、解決方法
1.使用 sqlplus / as sysdba 登陸資料庫檢視local_listener設定情況
sys@orcl> show parameter list
NAME TYPE VALUE
------------------- -------------------- --------------------
local_listener string
remote_listener string LISTENERS_ORCL
2.在伺服器端racdb1,racdb2上分別編輯tnsnames.ora和listener.ora檔案,將兩個檔案中的host主機名字均修改為具體的VIP地址
如將下面部分
LISTENERS_ORCL =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = racdb1-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = racdb2-vip)(PORT = 1521))
)
改為:
LISTENERS_ORCL =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.12.21)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.12.22)(PORT = 1521))
)
3.在racdb1節點的tnsnames.ora增加如下內容
local_listener_rac =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.12.21)(PORT = 1521))
)
4.在racdb2節點的tnsnames.ora增加如下內容
local_listener_rac =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.12.22)(PORT = 1521))
)
4.使用 sqlplus / as sysdba 登陸資料庫修改local_listener引數
alter system set local_listener='local_listener_rac' scope=both;
5.重啟兩節點的例項和監聽
sys@orcl> shutdown immediate;
sys@orcl> startup;
$ lsnrctl stop
$ lsnrctl start
三、測試
system@orcl> conn system/system@tnsrac
已連線。
system@orcl> select instance_name from v$instance;
INSTANCE_NAME
--------------------------------
orcl2
system@orcl> conn system/system@tnsrac
已連線。
system@orcl> select instance_name from v$instance;
INSTANCE_NAME
--------------------------------
orcl1
system@orcl> conn system/system@tnsrac
已連線。
system@orcl> select instance_name from v$instance;
INSTANCE_NAME
--------------------------------
orcl2
system@orcl> conn system/system@tnsrac
已連線。
system@orcl> select instance_name from v$instance;
INSTANCE_NAME
--------------------------------
orcl1
到此,該問題已經處理完成。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25462274/viewspace-2135863/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 10g RAC故障處理Oracle 10g
- oracle 10g rac 網路故障處理Oracle 10g
- oracle dataguard資料同步故障處理一例Oracle
- 【原創】Oracle RAC故障分析與處理Oracle
- OGG 故障處理一例
- goldengate故障處理一例Go
- 【故障處理】一次RAC故障處理過程
- ORA-00054 故障處理一例
- goldengate故障處理一例(續)Go
- database link故障處理一例Database
- 處理mysql複製故障一例薦MySql
- oracle 10G rac 執行dbca 報錯處理方法Oracle 10g
- Oracle更新Opatch故障處理Oracle
- Oracle 11.2 故障處理 RAC Removed unused HAIP route: **** usb0OracleREMAI
- oracle 10g data guard broker ORA-16607 故障處理案例Oracle 10g
- 【故障處理】DBCA建庫詭異問題處理--rac環境不能建立rac庫
- 記一次一波三折的Oracle RAC故障處理Oracle
- 轉貼老熊_抽絲剝繭分析處理oracle rac crs安裝故障Oracle
- Oracle 11.2.0.4 Dataguard兩則故障處理Oracle
- Oracle DG同步失敗故障處理(二)Oracle
- oracle 10g cluster rac vip始終在節點2的問題處理Oracle 10g
- 【故障】“ORACLE使用者被鎖定”故障處理和分析Oracle
- oracle 10g rac,刪除故障節點並新增新節點Oracle 10g
- 【kingsql分享】RAC節點故障修復一例SQL
- MongoDB故障處理MongoDB
- 故障分析 | Greenplum Segment 故障處理
- RAC 腦裂 處理機制 Oracle RAC Brain SplitOracleAI
- 處理set autotrace故障又一例_ora-942_sp2-0611
- Oracle client安裝the jre is 0故障處理Oracleclient
- 【故障-ORACLE】ORA-00600: [qesmmCValStat4], [3], [1] 故障處理Oracle
- oracle rac修改ip的處理辦法Oracle
- ORACLE RAC spfile異常處理辦法Oracle
- GPON網路故障如何處理?GPON網路故障處理流程
- 【故障處理】ORA-600:[13013],[5001]故障處理
- 【故障處理】ORA- 2730*,status 12故障分析與處理
- Oracle 10g RAC NFSOracle 10gNFS
- Oracle 10g RAC TAFOracle 10g
- ORACLE 從10G 單機 並升級到11G RAC時報錯分析處理Oracle