The DB link is not connected

Source: Internet
Author: User

Both sides of the database, not in one place. are all Oracle.

Tried many times, sometimes prompting the connection to refuse, sometimes not connected. Later changed the Dblink creation script, as follows, only succeeded.

--Create Database link
Create DATABASE link XLINK
Connect to xx --the user name connected to the other database

Identified by xx--Password

Using ' (DESCRIPTION =
(Source_route = yes)
(ADDRESS = (PROTOCOL = TCP) (HOST = x.x.x.x) (PORT = 1521)) ----The IP of the other database, and the port
(ADDRESS = (PROTOCOL = TCP) (HOST = x.x.x.x) (PORT = 1521)) -----The IP and port of the local database
(Connect_data =
(service_name = ORCL) ---Local database name
)
)‘;

The DB link is not connected

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.