Does tnsping prove that the Oracle database is available ?, Tnspingoracle
Listener is a server-based network service of Oracle. It is mainly used to listen for connection requests from clients to database servers. Oracle officially defines it as: A process that listens for incoming client connection requests and manages network traffic to the database.
The local service name is a type of network configuration for the Oracle client, as well as the Oracle Names Server.
The client can use a listener to interact with the database server. If we use tnsping for testing and return normal results, does it mean the database is available? The answer is no.
1. The following listeners are started normally:
2. Close the database at this time:
3. Run tnsping from the client, and the connection is normal.
We can see that tnsping only verifies the channel between the client and the listening port of the database server, but does not mean that the database service is available, because the client interacts with the Oracle server through the Oracle server process, and the private memory space is PGA, sometimes we perform O & M checks. tnsping cannot represent that the Oracle database is available, you can use sqlplus to actually execute a statement (select sysdate from dual.
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.