How Can I copy Oracle data correctly?

Source: Internet
Author: User

The following articles mainly describe Oracle Data Replication and the specific operation steps of Oracle Data Replication in actual operations. The following is a detailed description of the article, hoping to help you in this regard.

Interval: interval. sysdate + 1 indicates the interval of one day, and sysdate + 1/24 indicates the interval of one hour.

Delay_seconds: the delay time for stopping the cleanup operation when there is no delay event in the delayed queue.

4. Create a replication proxy for the materialized view site. Create a copy proxy user and grant the view receiver permissions. The replication proxy is the user who copies the receiver to connect to the main site.

 
 
  1. disconnect;   
  2. connect system/passwd@SH;   
  3. create user proxy_bjOracle identified by proxy_bjOracle;   
  4. begin   
  5. dbms_repcat_admin.register_user_repgroup(   
  6. user_name=>’proxy_bjOracle,   
  7. privilege_type => ’proxy_snapadmin’,list_of_gnames => NULL);   
  8. end;   
  9. /   
  10. grant select_catalog_role to proxy_bjOracle;  

5. Create a subject group:

 
 
  1. disconnect;   
  2. connect repadmin/repadmin@SH;   
  3. begin   
  4. dbms_repcat.create_master_repgroup(gname=>’sh_rep’);   
  5. end;   
  6. /  

6. Oracle Data Replication: Add a copy object to the subject group:

A) add a table:

 
 
  1. begin   
  2. dbms_repcat.create_master_repobject(   
  3. gname=>’sh_rep’,   
  4. type=>’TABLE’,   
  5. oname=>’ CREDIT_CARD’   
  6. sname=>’SHORACL’   
  7. use_existing_object=>TRUE,   
  8. copy_rows=>TRUE);   
  9. end;  

The above content is an introduction to Oracle Data Replication. I hope you will find some benefits.
 

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.