Golden Gate used for transforming column during replication

Golden Gate used for transforming column during replication

Like ETL tool, you can also transform the data during the replication process in the golden gate by using internal function.

Example:

You can transform the monthly salary into an annual salary amount. You can do with the Replicat MAP and COLMAP parameters as shown below:

Its moving data from HR.employees to hr.staff with using column transformation function:

@COMPUTE function for the calculation

Map HR.EMPLOYEES, Target HR.STAFF,
COLMAP (USEDEFAULTS,
WAGES = @COMPUTE(SALARY * 12));

@STRCAT function for the concatenate the strings

Map HR.EMPLOYEES, Target HR.STAFF,
COLMAP (USEDEFAULTS,
WAGES = @COMPUTE(SALARY * 12)
FULL_NAME = @STRCAT(LAST_NAME,",",FIRST_NAME));

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s