The role of TNS in Oracle

Source: Internet
Author: User

What is TNS?

TNS is part of Oracle NET, a tool dedicated to managing and configuring Oracle Database and client connections, and in most cases the client and database must be configured for TNS, but in rare cases, you can connect to an Oracle database without having to configure TNS. For example, through JDBC. If you connect to Oracle through TNS, the client must install the Oracle clients program.

When to use TNS

As mentioned above, the non-JDBC and other ways to connect to Oracle need to use TNS, in addition to the local database client connection data when the host string is the local specified service name, not the database SID, this needs to be noted. Client software that needs to specify TNS has PL/SQL, sql*plus

Above said in the non-JDBC and other connection mode with TNS, so in other words, JDBC and other ways to directly connect data without the configuration of TNS, such client tools such as SQL Developer. These clients are using some development voice such as Java and other JDBC way to connect the database, so do not configure TNS to operate.

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.