How to maintain created date and updated date for a record using Oracle GoldenGate (Doc ID 1450299.1)

Last updated on FEBRUARY 06, 2017

Applies to:

Oracle GoldenGate - Version 10.0.0.0 to 11.2.1.0.3 [Release 10.0.0 to 11.2]
Information in this document applies to any platform.

Goal

There are two columns, ogg_create_date and ogg_update_date, added to a target table. Whenever an insert operation occurs the created date should be updated with current date  and when an update operation occurs updated date column should be updated with the current date while created_date should remain unchanged.

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms