Oracle Dblink Creation

Source: Internet
Author: User

1 environment

Locally (win7) the database where the DB1 is logged on through SQL developer, and then Dblink is created on the DB1, allowing direct access to the corresponding table on DB2

DB1 machine: 10.196.9.72 "China intranet"

Tns:zh_testapp2= of DB1 (description= (address= (protocol=tcp) (host=10.196.9.72) (port=1521)) (Connect_data= (SERVICE_ Name=ebs) (Instance_name=ebs)))

DB2 machine: 103.46.128.47 "public network"

TNS:LISTENER_ORCL = (DESCRIPTION = (Address_list = (ADDRESS = (PROTOCOL = TCP) (HOST = 103.46.128.47) (PORT = 29380)) (DB2)) (CO Nnect_data = (service_name = ORCL)))

Note: Because the local (Win7) is located in the DB1 intranet, so can log in DB1, and DB2 in the public network, so can also be directly logged on by the local client

2 Network

Note: The following operations are performed under the local (Win7) command window

1) Check the network problems to see if you can ping

cmd------Ping ip

2) Check to see if the DB2 firewall is not off

CMD-----tnsping IP Port

Oracle Dblink Creation

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.