设为首页 加入收藏

TOP

Oracle GoldenGate常用参数详解(一)
2017-09-19 14:34:59 】 浏览:9724
Tags:Oracle GoldenGate 常用 参数 详解

介绍


所有的GoldenGate进程均有参数文件
    Manager
    Extract
    Replicat
    Utilities


所有参数均有缺省配置
    实际应用只需对小部分参数进行配置


所有参数文件均放在 ./dirprm目录下
    缺省通过进程名进行查找


一、全局参数


MGRSERVNAME        Specifies the name of the Manager process when it is installed as a Windows service.


CHECKPOINTTABLE    Specifies a default checkpoint table.


GGSCHEMA            Specifies the name of the schema that contains the database objects that support DDL synchronization for Oracle.


DDLTABLE            Specifies a non-default name for the DDL history table that supports DDL synchronization for Oracle.


MARKERTABLE        Specifies a non-default name for the DDL marker table that supports DDL synchronization for Oracle.


OUTPUTFILEUMASK    Specifies a umask that can be used by Oracle GoldenGate processes to create trail files and discard files.


SYSLOG              Filters the types of Oracle GoldenGate messages that are written to the system logs.


UNLOCKEDTRAILFILES    Workaround for problems with trail files that remain locked by Collector if there is a network outage that affects the target system.


二、Manager进程相关参数


1、常用参数:


PORT            制定GoldenGate的mgr进程使用哪个 TCP/IP端口侦听请求.
                示例:PORT 7809


DYNAMICPORTLIST 指定GoldenGate可以使用那些端口接受extract发送过来的数据.
                示例:DYNAMICPORTLIST 7840-7850
         
AUTOSTART      指定在mgr启动时自动启动那些进程.
                示例:AUTOSTART ER *
                    AUTOSTART extract extsz
 
AUTORESTART    指定在mgr可以定时重启那些进程。可以在网络中断等故障恢复后自动重起,避免人工干预.
                示例:AUTORESTART ER *, WAITMINUTES 5, RETRIES 3  --每隔5分钟尝试启动一次,尝试3次
             
LAGREPORT      指定在ggserr.log中报告延迟的时间间隔.
                示例:LAGREPORTHOURS 1      --每隔一小时检查一次传输延迟情况
               
LAGCRITICAL    指定认为超过此时间即为严重错误的延迟最大值,如果延迟达到此时间值则会在ggserr.log里面写入一条error信息
                示例:LAGCRITICALMINUTES 45  --传输延时超过45分钟将写入警告日志


LAGINFO        指定一个延迟时限,如果延迟达到此时间值则会在ggserr.log里面写入一条info信息
                示例:LAGINFOMINUTES 30      --传输延时超过30分钟将写入错误日志               


PURGEOLDEXTRACTS 定义自动删除过时的队列以节省硬盘空间。
                一般按照两个规则来删除:首先,要满足检查点要求,没有使用过的队列不能删除,保证无数据丢失;其次,可以保留一定的天数。只有当已经使用过且超过设定的天数后的队列会被自动删除。示例:purgeoldextracts /backup/goldengate/dirdat/*,usecheckpoints, minkeepdays 7


2、完整示例:


源端Manager配置参数示例:


GGSCI> view params mgr


PORT 7839                        --通信端口7839。 源端和目标端需要保持一致。
DYNAMICPORTLIST  7840-7914        --动态端口列表的范围从7840到7914。当制定端口被占用或者出现通信故障,管理进程将会从列表中选择下一个端口尝试连接,避免通信端口的单点故障。
AUTORESTART EXTRACT *, RETRIES 5, WA

首页 上一页 1 2 3 4 5 6 7 下一页 尾页 1/10/10
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇Oracle RMAN 自动恢复 下一篇MySQL ODBC 驱动安装

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目