grid監聽故障,本地地址不能連線
SQL*Plus: Release 12.2.0.1.0
Red Hat Enterprise Linux Server release 6.8 (Santiago)
資料庫監聽存在問題,tnsping資料庫固定10.95.10.5不能連線資料庫。
10.95.10.5 db03
192.95.10.5 db03-priv
10.95.10.6 db03-vip
故障現象:
tnsping 10.95.10.5
TNS Ping Utility for Linux: Version 12.2.0.1.0 - Production on 31-MAY-2018 14:09:16
Copyright (c) 1997, 2016, Oracle. All rights reserved.
Used parameter files:
/u01/soft/network/admin/sqlnet.ora
Used EZCONNECT adapter to resolve the alias
Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTOCOL=TCP)(HOST=10.95.10.5)(PORT=1521)))
TNS-12541: TNS:no listener
資料庫為叢集環境:
grid 檢視資料庫監聽:
[grid@db03 ~]$ lsnrctl status
LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 31-MAY-2018 14:06:19
Copyright (c) 1991, 2016, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 12.2.0.1.0 - Production
Start Date 31-MAY-2018 13:25:42
Uptime 0 days 0 hr. 40 min. 36 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/soft/network/admin/listener.ora
Listener Log File /u01/app/grid/diag/tnslsnr/db03/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.95.10.6)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM3", status READY, has 1 handler(s) for this service...
Service "+ASM_DATA" has 1 instance(s).
Instance "+ASM3", status READY, has 1 handler(s) for this service...
Service "wsjr" has 1 instance(s).
Instance "wsjr3", status READY, has 1 handler(s) for this service...
Service "wsjrXDB" has 1 instance(s).
Instance "wsjr3", status READY, has 1 handler(s) for this service...
The command completed successfully
oracle 檢視資料庫監聽:
[oracle@db03 ~]$ lsnrctl status
LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 31-MAY-2018 14:10:14
Copyright (c) 1991, 2016, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
檢查/etc/hosts:
[oracle@db03 ~]$ cat /etc/hosts
127.0.0.1 localhost.localdomain localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost.localdomain localhost.localdomain localhost6 localhost6.localdomain6 db03
10.95.10.1 db01
192.95.10.1 db01-priv
10.95.10.3 db02
192.95.10.3 db02-priv
10.95.10.5 db03
192.95.10.5 db03-priv
10.95.10.7 db04
192.95.10.7 db04-priv
10.95.10.10 scan
10.95.10.2 db01-vip
10.95.10.4 db02-vip
10.95.10.6 db03-vip
10.95.10.8 db04-vip
測試主機ping:
oracle@db03 ~]$ ping db03
PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.017 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=2 ttl=64 time=0.028 ms
故障解決方案:
1,刪除hosts檔案 第二行 主機名稱:
127.0.0.1 localhost.localdomain localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost.localdomain localhost.localdomain localhost6 localhost6.localdomain6 db03 《《======刪除db03!!
2,使用grid使用者重啟監聽程式
lsnrctl stop
lsnrctl start
3,故障解決
[grid@db03 ~]$ lsnrctl status
LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 31-MAY-2018 14:14:10
Copyright (c) 1991, 2016, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 12.2.0.1.0 - Production
Start Date 31-MAY-2018 14:14:01
Uptime 0 days 0 hr. 0 min. 8 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/soft/network/admin/listener.ora
Listener Log File /u01/app/grid/diag/tnslsnr/db03/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.95.10.5)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.95.10.6)(PORT=1521)))
Services Summary...
Service "wsjr" has 1 instance(s).
Instance "wsjr3", status READY, has 1 handler(s) for this service...
Service "wsjrXDB" has 1 instance(s).
Instance "wsjr3", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@db03 ~]$ lsnrctl status
LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 31-MAY-2018 14:14:32
Copyright (c) 1991, 2016, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 12.2.0.1.0 - Production
Start Date 31-MAY-2018 14:14:01
Uptime 0 days 0 hr. 0 min. 30 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/soft/network/admin/listener.ora
Listener Log File /u01/app/grid/diag/tnslsnr/db03/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.95.10.5)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.95.10.6)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM3", status READY, has 1 handler(s) for this service...
Service "+ASM_DATA" has 1 instance(s).
Instance "+ASM3", status READY, has 1 handler(s) for this service...
Service "wsjr" has 1 instance(s).
Instance "wsjr3", status READY, has 1 handler(s) for this service...
Service "wsjrXDB" has 1 instance(s).
Instance "wsjr3", status READY, has 1 handler(s) for this service...
The command completed successfully
Red Hat Enterprise Linux Server release 6.8 (Santiago)
資料庫監聽存在問題,tnsping資料庫固定10.95.10.5不能連線資料庫。
10.95.10.5 db03
192.95.10.5 db03-priv
10.95.10.6 db03-vip
故障現象:
tnsping 10.95.10.5
TNS Ping Utility for Linux: Version 12.2.0.1.0 - Production on 31-MAY-2018 14:09:16
Copyright (c) 1997, 2016, Oracle. All rights reserved.
Used parameter files:
/u01/soft/network/admin/sqlnet.ora
Used EZCONNECT adapter to resolve the alias
Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTOCOL=TCP)(HOST=10.95.10.5)(PORT=1521)))
TNS-12541: TNS:no listener
資料庫為叢集環境:
grid 檢視資料庫監聽:
[grid@db03 ~]$ lsnrctl status
LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 31-MAY-2018 14:06:19
Copyright (c) 1991, 2016, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 12.2.0.1.0 - Production
Start Date 31-MAY-2018 13:25:42
Uptime 0 days 0 hr. 40 min. 36 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/soft/network/admin/listener.ora
Listener Log File /u01/app/grid/diag/tnslsnr/db03/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.95.10.6)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM3", status READY, has 1 handler(s) for this service...
Service "+ASM_DATA" has 1 instance(s).
Instance "+ASM3", status READY, has 1 handler(s) for this service...
Service "wsjr" has 1 instance(s).
Instance "wsjr3", status READY, has 1 handler(s) for this service...
Service "wsjrXDB" has 1 instance(s).
Instance "wsjr3", status READY, has 1 handler(s) for this service...
The command completed successfully
oracle 檢視資料庫監聽:
[oracle@db03 ~]$ lsnrctl status
LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 31-MAY-2018 14:10:14
Copyright (c) 1991, 2016, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
檢查/etc/hosts:
[oracle@db03 ~]$ cat /etc/hosts
127.0.0.1 localhost.localdomain localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost.localdomain localhost.localdomain localhost6 localhost6.localdomain6 db03
10.95.10.1 db01
192.95.10.1 db01-priv
10.95.10.3 db02
192.95.10.3 db02-priv
10.95.10.5 db03
192.95.10.5 db03-priv
10.95.10.7 db04
192.95.10.7 db04-priv
10.95.10.10 scan
10.95.10.2 db01-vip
10.95.10.4 db02-vip
10.95.10.6 db03-vip
10.95.10.8 db04-vip
測試主機ping:
oracle@db03 ~]$ ping db03
PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.017 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=2 ttl=64 time=0.028 ms
故障解決方案:
1,刪除hosts檔案 第二行 主機名稱:
127.0.0.1 localhost.localdomain localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost.localdomain localhost.localdomain localhost6 localhost6.localdomain6 db03 《《======刪除db03!!
2,使用grid使用者重啟監聽程式
lsnrctl stop
lsnrctl start
3,故障解決
[grid@db03 ~]$ lsnrctl status
LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 31-MAY-2018 14:14:10
Copyright (c) 1991, 2016, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 12.2.0.1.0 - Production
Start Date 31-MAY-2018 14:14:01
Uptime 0 days 0 hr. 0 min. 8 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/soft/network/admin/listener.ora
Listener Log File /u01/app/grid/diag/tnslsnr/db03/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.95.10.5)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.95.10.6)(PORT=1521)))
Services Summary...
Service "wsjr" has 1 instance(s).
Instance "wsjr3", status READY, has 1 handler(s) for this service...
Service "wsjrXDB" has 1 instance(s).
Instance "wsjr3", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@db03 ~]$ lsnrctl status
LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 31-MAY-2018 14:14:32
Copyright (c) 1991, 2016, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 12.2.0.1.0 - Production
Start Date 31-MAY-2018 14:14:01
Uptime 0 days 0 hr. 0 min. 30 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/soft/network/admin/listener.ora
Listener Log File /u01/app/grid/diag/tnslsnr/db03/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.95.10.5)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.95.10.6)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM3", status READY, has 1 handler(s) for this service...
Service "+ASM_DATA" has 1 instance(s).
Instance "+ASM3", status READY, has 1 handler(s) for this service...
Service "wsjr" has 1 instance(s).
Instance "wsjr3", status READY, has 1 handler(s) for this service...
Service "wsjrXDB" has 1 instance(s).
Instance "wsjr3", status READY, has 1 handler(s) for this service...
The command completed successfully
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20747382/viewspace-2155410/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Libevent應用 (五) 連線監聽器,接收tcp連線TCP
- 資料庫監聽夯故障分析資料庫
- 【LISTENER】Oracle通過監聽連線緩慢分析Oracle
- rac監聽不能動態註冊
- Oracle 修改預設監聽埠故障分析Oracle
- java本地連線遠端Hbase可是返回zookeeper的地址是localhostJavalocalhost
- 使用Swoole的Websocket監聽使用者連線狀態Web
- 【經典】連線oracle的總結(關於tnsname和監聽)Oracle
- kettle連線本地MYSQLMySql
- 成為MySQL DBA後,再看ORACLE資料庫(二、監聽與連線)MySqlOracle資料庫
- netty服務端監聽客戶端連線加入和斷開事件Netty服務端客戶端事件
- 【JS】在連續性監聽事件中,監聽當前狀態是否變化JS事件
- 指定無線網路卡監聽通道
- 如何用ip地址連線共享印表機 用ip地址連線共享印表機的方法
- 【ASK_ORACLE】Oracle 12.2 Bug導致網路卡出現故障後RAC庫未向TCP註冊本地VIP監聽OracleTCP
- 監聽 watch props物件屬性監聽 或深度監聽物件
- 1.6.3.3. 本地連線和安全的遠端連線
- 記錄一次一次監聽無法連線的錯誤
- 【LISTENER】Oracle分析連線監聽情況,判斷客戶端IP分佈Oracle客戶端
- Servlet監聽器統計線上人數Servlet
- PL/Plus本地連線oracle配置Oracle
- 本地SSH方式連線例項
- vnc連線本地,vnc連線本地用的什麼軟體?3款好用推薦VNC
- Druid MySQL 連線池本地實踐UIMySql
- 本地無法連線Mysql的原因MySql
- windows 處理bat連線本地mysqlWindowsBATMySql
- ORACLE rac資料庫監聽與應用TNS連線串配置與ORA12519Oracle資料庫
- win10系統本地連線在哪 win10系統開啟本地連線的方法Win10
- 資料庫連線異常故障報告資料庫
- 不能連線資料庫如何解決資料庫
- VirtualBox 本地網路連線無線狀態下連線虛擬機器虛擬機
- 解決使用SSH連線Linux伺服器時連線失敗的故障Linux伺服器
- watch監聽
- oracle 設定監聽白名單,並且怎麼設定白名單地址Oracle
- win10怎麼開啟本地連線 win10系統開啟本地連線的方法Win10
- 檢視無線網路卡是否支援監聽模式模式
- Remix-Ethereum IDE連線本地詳解REMIDE
- 允許本地Sql Server 遠端連線SQLServer