Oracle Database Link

Source: Internet
Author: User

 

Oracle Net can be used for communication between databases: a user session of a database can execute SQL statements for another database.

This can be done through the database link.

 

 

Create database link sync

Connect to store identified by admin123 using 'db244 ';

 

 

Sync is the name of the created link, store is the user name of another database, admin123 is the user password of another database, and db244 is the Oracle Net configured locally pointing to another database;

Select * from users @ sync;

Users is a table in another database.

A user's session starts a session for a remote database. you can log on transparently using the store identity and run the query there. The result is returned to the local database and then returned to the user.

 

 

As long as the link mode has the appropriate permissions, you can use the link to execute any SQL statement. For example, delete, modify, and DDL statements.

From qm4050

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.