A reader, January 23, 2018 - 4:00 am UTC
How about a column level DEFAULTS ?
Rajeshwaran, Jeyabal, January 23, 2018 - 6:54 am UTC
Target Table:
Name Null? Type
------------ ----- ---------------------------
ID NUMBER
NAME VARCHAR2(128)
REC_DATE TIMESTAMP(6)
REC_DATE_WTZ TIMESTAMP(6) WITH TIME ZONE
won't that be good to have SYSTIMESTAMP defaulted at this column REC_DATE in the target database?
rather than making calls to "sqlexec" on the replicate parameter files to manipulate this field?
April 06, 2018 - 3:48 am UTC
Yes, using column level defaults work as well in the solution.
A reader, March 28, 2025 - 9:54 am UTC
As long as the DEFAULT is defined as DEFAULT ON NULL, as GG will explicitly INSERT NULL, which a DEFAULT will not override, only DEFAULT ON NULL will override the INSERT of NULL value.