Skip to Main Content

Breadcrumb

May 4th

Question and Answer

Chris Saxon

Thanks for the question, stan.

Asked: July 13, 2017 - 7:48 pm UTC

Last updated: July 18, 2017 - 9:42 am UTC

Version: 12c

Viewed 1000+ times

You Asked


I have schema access to database A and have DBA access to database B. I have the same schema in both databases. How do I synchronize every changes that occur in A to happen in B on a daily basis.

and Chris said...

There's many techniques you could use. Which depends a lot on what exactly you plan to with the data in database B and the access you have to A. Assuming that either you want it read only or to overwrite any changes made in B with those from A you could look into:

- Create database B as a snapshot standby of database A

https://oracle-base.com/articles/11g/data-guard-setup-11gr2#snapshot_standby

- Datapump export/import

https://oracle-base.com/articles/10g/oracle-data-pump-10g

- Create materialized views in B selecting from ("Advanced Replication", deprecated in 12c)

http://docs.oracle.com/database/121/REPLN/toc.htm

- Use Oracle GoldenGate to send the changes

http://www.oracle.com/technetwork/database/multitenant/learn-more/ogg-multitenant-2408073.pdf

- PDB Cloning (if you're using Multitenant)

http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/12c/r1/pdb/pdb_clone/pdb_clone.html

Rating

  (1 rating)

Is this answer out of date? If it is, please let us know via a Comment

Comments

Stanley uba, July 17, 2017 - 3:47 pm UTC

Database A is the production and database B is basically a new testing environment that I am trying to set up. I have full access in Database B but not full access to Database A. I dont mind having database A overwriting B.
Chris Saxon
July 18, 2017 - 9:42 am UTC

And how big is the schema in A? If this is "small" you could look into data pump.

More to Explore

Data Pump

All of the database utilities including Data Pump are explained in the Utilities guide.