Does tnsping prove that the Oracle database is available ?, Tnspingoracle

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.