You are on page 1of 3

Change Data Capture

degw998@dagesi01$ cat emp.txt


hari|1000|101|aa
ram|2000|102|bb
raj|4000|103|cc
degw998@dagesi01$ cat dept.txt
hari|1200|101|aa
raj|4000|103|cc
jack|3000|104|dd

Note: based on key and change values of i/p the o/p will come ….and
in addition to the output columns one new on change _code column
will be populated in output.

For copy the code will be—0

For inserted the code will be—1


For deleted the code will be----2

For edited the code will be----3


1)Beforesequential file data

2)After sequential file data

Output of change capture

You might also like