The creation of advanced Oracle Learning Dblink

Source: Internet
Author: User

The author of this paper simply explains that Oracle create Dblink,dblink is in a database directly to another database operation, it sounds wonderful, it is not difficult to implement, we just need to create a dblink on the database associated to another database on it, gossip less, Directly on the example:

If we are using a database now, we want to operate on the B database, we just need to execute the following statement:

The first B represents the name of the Dblink created on A, the second B represents the user name of the B database, PWD is the password, Host B's Ip,port is the port number of the B data, Service_Name is the instance name of B, and the execution is completed.

Create Public database link B

Connect to B identified by PWD

Using ' (DESCRIPTION =

(Address_list =

(ADDRESS = (PROTOCOL = TCP) (HOST =192.168.0.81) (PORT = 1521))

)

(Connect_data =

(service_name = ORCL)

)

)‘;

After the creation is complete, we can operate the B database on a.

Cases:

SELECT * from [email protected];

All data for the b_table table of B data is queried on a database.

Knowing this we can do what we want to do, you know, hope to help.

This article is from the Oracle Advanced blog, so be sure to keep this source http://shanghc.blog.51cto.com/6834610/1931144

The creation of advanced Oracle Learning Dblink

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.