How to connect to a specified database using the tnsnames. ora file of the oracle database

Source: Internet
Author: User

How to connect to the specified database using the tnsnames. ora file of the oracle database for the given server name, user name and password, for example: server name 192.168.0.20, user name and password
All are w_basketboy. The method to connect to the database is: Enable tnsnames. add the Code 20 = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.0.20) (PORT = 1521) in the ora file ))) (CONNECT_DATA = (SERVICE_NAME = orcl) where 20 is the name of the database, and 192.168.0.20 is the name of the server. Generally, the port is 1521 and will not change.

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.