Although it's a bad practice, Oracle allows the columns to be named arbitrarily using the double-quote syntax. With this, the names can include keywords, lowercase or unicode characters.

A similar problem occurs when replicating to non-Oracle targets - some of the valid names in Oracle are keywords in other database systems and thus can fail APPLY of changes, too.


Syntax:

set *.APPLY_COLUMN_NAMES_MAP coumn1=newcolumn1[,column2=newcolumn2[,...]]

 

Example:

set *.APPLY_COLUMN_NAMES_MAP COMMENT=COMMENT_COLUMN

APPLY process requires a restart to implement this mapping.

 

After restart, APPLY process log will show column mapping details as follow.

013/05/03 05:34:37 INFO> Column translate: [COMMENT]=>[COMMENT_COLUMN]