Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Best way to update data into a table when master table is updated

$a!Oct 3 2016 — edited Oct 5 2016

Hi all,

I have a master table and slave table, both in the same schema. Whenever the data in the master table is inserted/updated, a respective entry in slave table needs to be inserted/updated. Data is updated/inserted in the master table very frequently and so in the slave table. Both are huge tables with millions of data.

What are possible ways and what is the best way(in terms of performance).

I see, triggers/creating scheduler jobs as ways. Jobs though have the con of not having live data in the slave table.

What is the performance issue with triggers?

Is there any better way?

As scenario 2: If the master and slave table are in different schemas/databases(connected through dblink), which might be the better way?

Thanks in advance.

Sail

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 2 2016
Added on Oct 3 2016
27 comments
2,043 views