golendgate(30)--Mapping columns(列映射)
Using table-level column mapping(表级别的列映射)
对于goldengate的列映射,主要是分为两类,一类是同结构的数据库的映射,另一类是不同结构的数据库的映射;同类结构,如:oracle-oracle,mysql-mysql等;不同类型,如:oracle-mysql,db2-sql server等。
对于同结构的数据库,goldengate的要求是:
For source and target structures to be identical, they must:
● be of the same database type, i.e. all Oracle.
源端与目标端具有相同的数据库类型,如:都是oracle
● have the same character set and locale.
源端与目标端具有相同的字符集
● contain the same number of columns.
源端与目标端具有列数量
● have identical column names (including case, white spaces, and quotes if applicable).
源端与目标端具有相同的列字段(包括字母大小写,空格,引号等)
● have identical data types.
源端与目标端具有相同的数据类型
● have identical column lengths.
源端与目标端具有相同的列长度
● have the same column length semantics for character columns (bytes versus
characters).
源端与目标端具有相同的字符与字节长度
● define all of the columns in the same order.
源端与目标端具有相同的列的循序
对于不同结构的数据库,goldengate的要求是:
When using COLMAP for source and target tables that are not identical in structure, youmust:
● generate data definitions for the source tables, the target tables, or both, depending onthe Oracle GoldenGate configuration and the databases that are being used.
源端和目的端需要生成数据库定义文件
● transfer the definitions file to the system where they will be used.
源端和目的端互相转换数据库定义文件
● use the SOURCEDEFS parameter to identify the definitions file for Replicat on a targetsystem or use the TARGETDEFS parameter to identify the definitions file for Extract or adata pump on a source system or intermediary system.
SOURCEDEFS参数在目的端replicat进程中定义,TARGETDEFS 参数在源端extract,pump进程中定义.
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21266384/viewspace-757736/
,如需转载,请注明出处,否则将追究法律责任。