Oracle's Dblink overview

Source: Internet
Author: User
Tags commit table name

Creation of--dblink:

Create Public database link Ccare_test
Connect to Ccare identified by Ccare
Using ' (DESCRIPTION =
(address = (PROTOCOL = TCP) (HOST = 10.221.3.130) (PORT = 1521))
(Connect_data =
(SERVER = dedicated)
(Service_Name =ora11g)
)
)';

--the configuration is consistent with the Tnsnames.ora

The use of--dblink
SELECT * FROM Rec_con@db_link_aaa_blldb

Dblink shutdown:
COMMIT;--DML operation requires a commit before it can be closed;
Execute immediate ' alter session close database link Db_link_aaa_blldb ';

--database Link's deletion
Drop Public Database link billingdb

Attention points are as follows:

Dblink is closed manually when not in use, but Oracle automatically opens when used

Dblink can not be added in parallel;

Dblink can only build one, to other users after the authorization, under different users, the table name before adding a user name can access to other users of the table;

This column more highlights: http://www.bianceng.cnhttp://www.bianceng.cn/database/Oracle/

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.