Tnsping is a command-line utility used to test connectivity to a database using Oracle Net. It is similar to the ping command but is specifically designed for Oracle databases. Tnsping can be used to troubleshoot connectivity issues and to verify that a database is up and running.
To use tnsping, you must specify the Oracle Net connect identifier (TNS alias) of the database that you want to test. You can also specify other options, such as the number of times to ping the database and the timeout value. For example, the following command will ping the database with the TNS alias “my_database” five times with a timeout of 10 seconds: