Oracle listener hang live

1. normal startup database:

[oracle@db ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Sat Aug 24 12:09:04 2019

Copyright (c) 1982, 2013, Oracle. All rights reserved.

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area 964546560 bytes
Fixed Size 2259080 bytes
Variable Size 570427256 bytes
Database Buffers 385875968 bytes
Redo Buffers 5984256 bytes
Database mounted.
Database opened.
SQL> select status from v$instance;

STATUS
------------
OPEN

2. Then use TOAD database found no connection to TNS services, it should be it is not open

3. Turn on the monitor has been found stuck final report TNS wrong

[oracle@db ~]$ lsnrctl start

LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 24-AUG-2019 12:11:44

Copyright (c) 1991, 2013, Oracle. All rights reserved.

Starting /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Log messages written to /u01/app/oracle/diag/tnslsnr/db/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=db)(PORT=1521)))

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12535: TNS:operation timed out
TNS-12560: TNS:protocol adapter error
TNS-00505: Operation timed out

Whether performing lsnrctl stop, lsnrctl reload, lsnrctl stop has been stuck the last error, do last reconfiguration, the strange thing is listening in to delete the original has been stuck on that step, the final pop-up error

It makes me very incredible, versatile restart reconstruction are out of order. . . Restart the database is the same, listening to delete the file or rebuild a kind, Caomin very sad. . .

Check the monitor log size, this database has been in an idle state, and normally monitor the log should be minimal, but did not miss any details, nothing found results:

[oracle@db trace]$ pwd
/u01/app/oracle/diag/tnslsnr/db/listener/trace
[oracle@db trace]$ ls
listener.log
[oracle@db trace]$ du -h
3.0M .
[oracle@db trace]$

Carefully read before found a key point:

Why is not shown here the host name or IP, is it a mapping between host name host IP error, the result was, IP already is 192.168.43.20, but the HOSTS file is not synchronized.

After the change:

  

Normal start listening

[oracle@db ~]$ lsnrctl status

LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 24-AUG-2019 12:28:24

Copyright (c) 1991, 2013, Oracle. All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=db)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date 24-AUG-2019 12:28:16
Uptime 0 days 0 hr. 0 min. 7 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/db/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=db)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
The listener supports no services
The command completed successfully
[oracle@db ~]$ clear
[oracle@db ~]$ lsnrctl status

LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 24-AUG-2019 12:28:47

Copyright (c) 1991, 2013, Oracle. All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=db)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date 24-AUG-2019 12:28:16
Uptime 0 days 0 hr. 0 min. 31 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/db/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=db)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@db ~]$

 Toad normal connection:

 

Guess you like

Origin www.cnblogs.com/guipeng/p/11404233.html