OracleGlodenGate Parameters

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_16566415/article/details/78274164

附带章节中开头的一句话
Parameters play a very important role in the configuration of GoldenGate

参数一般都是在各个进程中使用的,Mgr,Extract,Replicat……
这些进程文件都储存在ogg_home目录下的 dirprm 文件夹中,ogg安装完成后默认有个mgr.prm 文件,这就是管理进程Mgr的配置文件
dirprm文件夹

Mgr

Mgr 进程的重要性就不必说了,它管理其他所有的进程,mgr有如下参数,都比较好理解

  • PORT: 端口号,默认是7809

  • PURGEOLDEXTRACTS :删除extract进程和replicat进程产生的trail文件,默认是读取到下一个trail文件时自动删除当前的trail文件

  • AUTOSTART:配置Mgr进程自动启动Extract 进程和Replicat进程

  • AUTORESTART:如果Extract 进程或者 Replicat进程发生错误,Mgr 自动重启这两个进程

Extract

以下贴出原文的地方水平有限,读原文慢慢体会或许懂点意思,翻译出来的可能变味了。只可意会不可言传,手动滑稽

  • EXTRACT :定义Extract 进程的名字

  • SOURCEISTABLE:initial load 时使用,源端使用table

  • SOURCECATALOG: This defines a default source Oracle container in a multitenant container database. It enables the traditional use of schema.object in TABLE or MAP statements.

  • LOGALLSUPCOLS: This enables the logging of ALL supplementary columns on the source database when using integrated Replicat on the target. The default is LOGALLSUPCOLS.

  • UPDATERECORDFORMAT:When set with the COMPACT option forces the Extract process to combine the before and after images of an UPDATE operation into a single record in the trail. The default uses the FULL option.
    注:update record format

  • RMTTASK:This configures Extract to communicate directly with the Replicat over TCP/IP for
    Direct Load methods during the initial load.
    注:RMT 指的是remote的缩写

  • RMTFILE:在initial load 和 批量处理时,定义哪些文件是要通过Extract传输到目标数据库的,这种情况就是通过文件传输同步数据

  • RMTTRAIL:This configures Extract to write data to a remote trail and is used in the data pump
    Extract parameter file.
    使用trail 文件来传输数据,配合使用pump 进程,常规做法,推荐使用trail 文件

  • RMTHOST:目标数据库的host,很好理解

  • EXTFILE:This defines the name and location for a file used to temporarily store the data changes written to by the Extract process. It is used in conjunction with SPECIALRUN for initial load and batch processing operations.
    定义Extract读取的临时数据文件的名字和存放的位置,在initial load 和 批量进程操操作是配合SPECILARUN 参数

  • MGRPORT:Mgr 的端口号

Replicat

  • REPLICAT:定义Replicat 进程的名字

  • SPECIALRUN:This indicates that Replicat is a one-off process,typically an initial load. It supports the ENDRUNTIME parameter.
    special run
    这个参数表明 Replicat 进程是一个一次性的进程,通常就是 initial load 时使用了。支持下面的RUNTIME 参数

  • RUNTIME:All unprocessed records with timestamps up to the current point in time are processed; otherwise, the Replicat process is terminated.
    runtime

  • SOURCEDEFS:This is declared in association with a source definitions file to provide mapping between tables having a different data structure to the target tables.
    source defs

  • ASSUMETARGETDEFS:This declares that the source tables are identical in structure as the target tables.
    assume target defs
    表明源端数据表和目标端数据表的表结构一直

  • HANDLECOLLISIONS:This directs automatic resolution of duplicate and missing record errors when applying data on the target database. This parameter is generally used only for the initial load. The default is NOHANDLECOLLISIONS.
    handle collisions :处理冲突。通常在initial load 时使用的,意味在目标数据库中自动动解决重复和丢失的错误记录

  • MAP:This defines the mapping between source and target tables. It can be used for column mapping and transformations.
    定义源端数据表和目标端数据表的映射

  • BULKLOAD:This directs the Replicat to use the bulk load method of initial load, writing data directly to the SQL*Loader interface.
    bulk load:批量加载,initial load 批量时使用,直接将数据写入到 sql 工具。

Extract 和 Replicat 都有的参数

  • USERIDALIAS:This specifies an OGG user ID and optional group for database logon credentials held in the credential store.
    alias 别名,指的是登录Oracle 数据库的一个凭证,避免在配置文件中直接写出Oracle 用户(指的是ogg管理员)的真实用户名

  • USERID:Oracle 用户(指的是ogg管理员)的真实用户名

  • PASSWORD: Oracle用户(指的是ogg管理员)的密码

  • TABLE:需要同步的数据表

  • DISCARDFILE:This defines the name and location of the process discarded data file. The maximum file size is 50MB.
    相当于是进程产生的临时数据文件,使用这个参数定义文件的位置和名称。文件最大容量是50MB

上面的参数只是一个简单的说明,想要熟练掌握,还需要做大量的练习,在练习过程中逐渐对这些参数有进步一的更深入了解。

猜你喜欢

转载自blog.csdn.net/qq_16566415/article/details/78274164
今日推荐