PL/SQL How to view current connection information and how to specify an IP address

Source: Internet
Author: User

1, through PL/SQL to connect to other databases can be implemented by the service name by adding IP and left slash:

2, sometimes our IP and left slash can not lose the other database, because it is configured in a file. Where is this file?

In the Network/admin/tnsnames.ora file under this path, we can see

Can see the configuration file has been equipped with the remote address and port, as well as the service name, when we log in, the database select PLATFORM1, in fact, choose this set of configuration.

3, through the Sqlplus connection remote database is the following wording

Scott/[email Protected]:1521/platform

Here, Scott is the username, Tiger is the password, 172.16.10.76 and 1521 are the IP and port number of the target database, and platform is the service name.

PL/SQL How to view current connection information and how to specify an IP address

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.