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!

CDC using Triggers

user1014019Dec 20 2017 — edited Dec 20 2017

Hi,

I need to implement Change Data Capture using Triggers.

I have the below emp table in source and my target table is emp_target.

CREATE TABLE EMP(EMPNO NUMBER PRIMARY KEY,

                                     ENAME VARCHAR2(10),

                                     SAL NUMBER,

                                     COMM NUMBER,

                                     DEPTNO NUMBER);

and my Target Table is EMP_TARGET as shown below

CREATE TABLE EMP_TARGET(EMP_SURRG NUMBER PRIMARY KEY,

                                                       EMPNO NUMBER,

                                                       ENAME VARCHAR2(10),

                                                       SAL NUMBER,

                                                       COMM NUMBER,

                                                       DEPTNO NUMBER);

Appreciate your help in creating a trigger in implementing CDC using triggers.

Regards,

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 17 2018
Added on Dec 20 2017
21 comments
1,994 views