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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 監聽狀態正常,但是資料庫不能連線,提示沒有監聽....資料庫
- rac 本地監聽問題導致資料斷斷續續連線
- Libevent應用 (五) 連線監聽器,接收tcp連線TCP
- 遠端通過監聽連線報ORA-01034故障處理一例
- 【LISTENER】Oracle通過監聽連線緩慢分析Oracle
- 本地連線沒有有效的ip配置的故障解決
- 資料庫監聽夯故障分析資料庫
- rac的vip和監聽莫名故障
- 網路裝置重啟造成rac監聽故障連線資料庫報ora-12170:TNS:連線超時的錯誤資料庫
- rac監聽不能動態註冊
- Oracle 修改預設監聽埠故障分析Oracle
- Oracle RAC Database 11.1.0.6監聽故障案例OracleDatabase
- java本地連線遠端Hbase可是返回zookeeper的地址是localhostJavalocalhost
- 本地連線時,通過localhost不能登陸到指定的埠localhost
- 使用Swoole的Websocket監聽使用者連線狀態Web
- 【故障處理】【LISTENER】主機名修改為IP地址後LISTENER無法監聽到例項
- kettle連線本地MYSQLMySql
- oracle 11.2.0.3.6升級故障---監聽報錯Oracle
- 【經典】連線oracle的總結(關於tnsname和監聽)Oracle
- 連線Oracle 10g時ORA-12514: TNS: 監聽程式不能解析在連線描述符中給出的SIDOracle 10g
- plsql連線故障小結SQL
- Oracle 10g 兩個監聽程式的故障Oracle 10g
- 怎樣用好本地連線
- 轉 監聽器連線常見的問題及其解決方法
- 安裝OMA之後,不能識別監聽器
- 監聽Session事件不能編譯,大家幫忙看看Session事件編譯
- 關於監聽不能啟動的解決方法
- 1.6.3.3. 本地連線和安全的遠端連線
- 指定無線網路卡監聽通道
- 成為MySQL DBA後,再看ORACLE資料庫(二、監聽與連線)MySqlOracle資料庫
- cacti更換IP地址後有的監控主機snmp連線不上
- PL/Plus本地連線oracle配置Oracle
- mysql修改本地主機連線MySql
- 本地SSH方式連線例項
- 資料庫連線不能建立.資料庫
- 如何用ip地址連線共享印表機 用ip地址連線共享印表機的方法
- 【JS】在連續性監聽事件中,監聽當前狀態是否變化JS事件
- vnc連線本地,vnc連線本地用的什麼軟體?3款好用推薦VNC