Oracle creates a database connection Dblink

Source: Internet
Author: User

  1. --The second method: direct configuration
  2. --If you create a global dblink, you must use the SYSTM or SYS user to add public before database .
  3. Create/ * public */Database link DBLINK1
  4. Connect to Dbusername identified by Dbpassword
  5.   Using ' (DESCRIPTION = (Address_list = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.0.1) (PORT = 1521))) (Connect_data = (SERV  Ice_name = ORCL)) ';
  6. --Database parameter Global_name=True requires that the database link name is the same as the remote database name. The database global name can be isolated with the following command
  7. --select * from Global_name;
  8. Query data:
  9. Querying, deleting, and inserting data is the same as manipulating the local database, except that the table name needs to be written as a "table name @dblink Server".

    • Select xxx from table name @ database link name;
    • Example:::::

Oracle creates a database connection Dblink

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.