Synchronous update of database A and database B Tables

Source: Internet
Author: User


First, configure the listener and client so that database A is the client, database B is the server, and B opens the listener for its own IP address,
A opens the customer connection channel for Bip. Www.2cto.com
Aip: 192.168.18.47
B ip Address: 192.168.18.87

Test connection:
Www.2cto.com

B. Create a table with scott

A can see the table created on B.

Grant scott the permission to establish a connection during local Login
Scott establishes a connection

Migrate data

Create a stored procedure
Create procedure pro_insert_t1
As
Begin
Insert into t1 select * from t1 @ db87 where id not in (select id from t1 );
Commit;
End;
/

Create a job to make the stored procedure run on time
One minute

Success
Add data to B and check the changes in A in one minute.

Check table t1 in database A

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.