Creation and deletion of Dblink in Oracle

Source: Internet
Author: User

What Dblink connections are queried in the database

SELECT * from dba_objects where object_type= ' DATABASE LINK ';

Delete a public emis_productoin connection

Drop public database link emis_production;

Create a public emis_production connection

Create Public database link Emis_production connect to emis_frame identified by Emis_frame using ' (DESCRIPTION = (address_l IST = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.1.101) (PORT = 1521))) (Connect_data = (service_name = testdb))) ';

Remove Emis_production Connection

drop database link emis_production;

Create a emis_production connection

Create DATABASE link emis_production connect to emis_frame identified by Emis_frame using ' (DESCRIPTION = (Address_list = (A ddress = (PROTOCOL = TCP) (HOST = 192.168.1.101) (PORT = 1521))) (Connect_data = (service_name = testdb))) ';

Test is available

SELECT * from [email protected]_production;

Creation and deletion of Dblink in Oracle

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.