oracle goldengate 参数详解(转MOS:Oracle GoldenGates ample parameter files)

本文主要是介绍oracle goldengate 参数详解(转MOS:Oracle GoldenGates ample parameter files),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

Oracle GoldenGate sample parameter files

 总结:

一直以来对oracle goldengate许多参数比较疑惑,正好在MOS看到这个文章,转载到BLOG,以备参考

 

Objective: This paper provides sample example of Oracle GoldenGate parameter files that can be used to configure Oracle GoldenGate replication setup inline with recommended best practices. The example is generic and can serve as a starting point for a more customized Oracle GoldenGate implementation

Process name: Manager

Description: Manager is GoldenGate's parent process and is responsible for the management of GoldenGate processes, resources, user interface, and the reporting of thresholds and errors.

Manager parameter file (Sample)

 

-- Manager port number

PORT

 

-- As a Manager parameter, PURGEOLDEXTRACTS allows to manage trail

-- files in a centralized fashion and take into account multiple

-- processes.

PURGEOLDEXTRACTS , USECHECKPOINTS, MINKEEPHOURS MINKEEPFILES

 

-- Start one or more Extract and Replicat processes automatically after -- they fail. AUTORESTART provides fault tolerance when something

-- temporary interferes with a process, such as intermittent network

-- outages or programs that interrupt access to transaction logs.

AUTORESTART EXTRACT *, RETRIES , WAITMINUTES , RESETMINUTES

 

--This is to specify a lag threshold that is considered critical,

--and to force a warning message to the error log. Lagreport parameter

--specifies the interval at which manager checks for extract / replicat --lag.

LAGREPORTMINUTES

LAGCRITICALMINUTES

Process name: Extract

Description: The Extract process captures either full data records or transactional data changes, depending on configuration parameters, and then sends the data to a target system to be applied to target tables or processed further by another process, such as a load utility.

 

Extract parameter file (Sample)

 

-- ###################################################################

-- Runcmd: ADD EXTRACT , TRANLOG, BEGIN NOW

-- Runcmd: ADD EXTTRAIL ,

-- EXTRACT , Megabytes

-- Name of the extract process. Limited to 8 charecters.

EXTRACT

 

-- DB environment settings

SETENV (ORACLE_HOME = "" )

SETENV (ORACLE_SID="")

 

-- OGG database user login

USERID password , encryptkey default

 

-- Local trail info

EXTTRAIL

 

-- Prevent data looping. This is generally used in bi-directional

-- configuration

TRANLOGOPTIONS EXCLUDEUSER

 

-- ASM login info  (Oracle only. If db is using ASM)

TRANLOGOPTIONS ASMUSER sys@, ASMPASSWORD , encryptkey default

 

--DBLOGREADER enables Extract to use a read buffer size of up to 4 MB --- in size. A larger buffer may improve the performance of Extract when -- redo rate is high. The db has to be 10.2.0.5 or higher to use

-- this feature. If DBLOGREADER parameter is in place then the above

-- ASMUSER parameter should not be used.

TRANLOGOPTIONS DBLOGREADER, DBLOGREADER BUFSIZE [x], BUFSIZE [y]

 

--DDL replication parameters

DDL INCLUDE ALL, EXCLUDE OBJNAME ". "

DDLOPTIONS ADDTRANDATA

 

--Discard file location.

DISCARDFILE , APPEND Megabytes

 

-- Use the DISCARDROLLOVER parameter to set a schedule for aging discard --files.

DISCARDROLLOVER AT on

 

-- Use the REPORTROLLOVER parameter to force report files to age on a

-- regular schedule, instead of when a process starts

REPORTROLLOVER AT on

 

-- Use the REPORTCOUNT parameter to report a count of transaction

-- records that Extract or Replicat processed since startup

REPORTCOUNT EVERY HOURS, RATE

 

-- Use the FETCHOPTIONS parameter to control certain aspects of the way -- that GoldenGate fetches data

FETCHOPTIONS, USESNAPSHOT, NOUSELATESTVERSION, MISSINGROW REPORT

STATOPTIONS REPORTFETCH

 

-- Warn for long running txns

WARNLONGTRANS H, CHECKINTERVAL m

-- List of tables

Table .

..

 

Pump (Extract) Parameter file (Sample)

 

-- Runcmd: ADD EXTRACT , EXTTRAILSOURCE

-- Path/two character trail id>

-- Runcmd: ADD RMTTRAIL ,

-- EXTRACT , Megabytes

-- Name of the Pump process. Limited to 8 charecters.

EXTRACT

 

-- Oracle environment settings

SETENV (ORACLE_HOME = "" )

SETENV (ORACLE_SID="")

 

-- In passthru mode GoldenGate pump process cascades captured data from -- source to target without logging in to the source database

Passthru

 

-- Remote host and remort manager port to write trail

RMTHOST , MGRPORT

 

-- Remote trail info

RMTTRAIL

 

--Discard file location.

DISCARDFILE , APPEND Megabytes

 

-- Use the DISCARDROLLOVER parameter to set a schedule for aging discard --files.

DISCARDROLLOVER AT on

 

-- Use the REPORTROLLOVER parameter to force report files to age on a

-- Regular schedule, instead of when a process starts

REPORTROLLOVER AT on

 

-- Use the REPORTCOUNT parameter to report a count of transaction

-- Records that Extract or Replicat processed since startup

REPORTCOUNT EVERY HOURS, RATE

 

-- List of tables

Table .

 

Process name: Replicat

Description: The Replicat process reads data extracted by the Extract process and applies it to target tables or prepares it for use by another application, such as a load application.

Replicat parameter file

###################################################################

-- Runcmd: ADD REPLICAT , EXTTRAIL

-- Name of the replicat process. Limited to 8 charecters.

REPLICAT

 

-- Oracle environment settings

SETENV (ORACLE_HOME = "" )

SETENV (ORACLE_SID= "")

SETENV (NLS_LANG = ="")

 

-- OGG database user login

USERID password , encryptkey default

 

 

--Discard file location.

DISCARDFILE , APPEND Megabytes

 

--DDL replication parameters

DDL INCLUDE ALL, EXCLUDE OBJNAME "."

DDLOPTIONS REPORT

 

-- The following parameter speeds up replicat processing rate. The

-- parameter alters the replicat oracle session to not wait for commits -- to be persisted to the redo.

SQLEXEC "ALTER SESSION SET COMMIT_WRITE = NOWAIT"

 

-- Use the BATCHSQL parameter to increase the performance of Replicat. -- BATCHSQL causes Replicat to organize similar SQL statements into arrays and apply -- them at an accelerated rate.

BATCHSQL

 

-- Use the DISCARDROLLOVER parameter to set a schedule for aging discard --files.

DISCARDROLLOVER AT on

 

-- Use the REPORTROLLOVER parameter to force report files to age on a

-- regular schedule, instead of when a process starts

REPORTROLLOVER AT on

 

-- Use the REPORTCOUNT parameter to report a count of transaction

-- records that Extract or Replicat processed since startup

REPORTCOUNT EVERY HOURS, RATE

 

 

-- List of tables (MAP statements)

MAP .

..

..

 

GLOBALS file

The GLOBALS file stores parameters that relate to the GoldenGate instance as a whole, as opposed to runtime parameters for a specific process.

 

Globals parameter file

 

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

MGRSERVNAME

 

-- Specifies a default checkpoint table

CHECKPOINTTABLE

 

-- Specifies the name of the schema that contains the database objects that support DDL

-- synchronization for Oracle

GGSCHEMA

 

-- Specifies a non-default name for the DDL history table that supports DDL

-- synchronization for Oracle.

DDLTABLE

 

-- Specifies a non-default name for the DDL marker table that supports DDL

-- synchronization for Oracle

MARKERTABLE

 

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26442936/viewspace-764374/,如需转载,请注明出处,否则将追究法律责任。

上一篇: Oracle goldengate 11g 错误汇总
下一篇: Oracle goldengate 初始化数据的方法(转MOS:ID 1276058.1)
user_pic_default.png
请登录后发表评论 登录
全部评论
<%=items[i].createtime%>

<%=items[i].content%>

<%if(items[i].items.items.length) { %>
<%for(var j=0;j
<%=items[i].items.items[j].createtime%> 回复

<%=items[i].items.items[j].username%>   回复   <%=items[i].items.items[j].tousername%>: <%=items[i].items.items[j].content%>

<%}%> <%if(items[i].items.total > 5) { %>
还有<%=items[i].items.total-5%>条评论 ) data-count=1 data-flag=true>点击查看
<%}%>
<%}%> <%}%>
lovehewenyu
专家姓名:何文玉
10年老鸟,Oracle,Mysql,EMC 存储,NBU备份

注册时间:2012-02-03

  • 博文量
    268
  • 访问量
    1297543

最新文章

  • Oracle 12.2 RAC on Linux Best Practice Documentation
  • [转载 mos] Oracle RAC 不同版本不同平台官档收集记录
  • Linux下共享VG改变活动状态
  • powermt 命令简介(转载)
  • Linux/Unix系统中主机HBA无法发现LUN,路径显示错误,LUN相关错误
  • gc current request 引起长期锁表的故障
  • 如何在RAC环境中配置SNAPSHOT CONTROLFILE?
  • AWR不能自动生成快照解决方法?
  • expdp sample 应用一例
  • mysql主从复制(冷备)

转载于:http://blog.itpub.net/26442936/viewspace-764374/

这篇关于oracle goldengate 参数详解(转MOS:Oracle GoldenGates ample parameter files)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/395419

相关文章

Oracle登录时忘记用户名或密码该如何解决

《Oracle登录时忘记用户名或密码该如何解决》:本文主要介绍如何在Oracle12c中忘记用户名和密码时找回或重置用户账户信息,文中通过代码介绍的非常详细,对同样遇到这个问题的同学具有一定的参... 目录一、忘记账户:二、忘记密码:三、详细情况情况 1:1.1. 登录到数据库1.2. 查看当前用户信息1.

linux本机进程间通信之UDS详解

《linux本机进程间通信之UDS详解》文章介绍了Unix域套接字(UDS)的使用方法,这是一种在同一台主机上不同进程间通信的方式,UDS支持三种套接字类型:SOCK_STREAM、SOCK_DGRA... 目录基础概念本机进程间通信socket实现AF_INET数据收发示意图AF_Unix数据收发流程图A

Go 1.23中Timer无buffer的实现方式详解

《Go1.23中Timer无buffer的实现方式详解》在Go1.23中,Timer的实现通常是通过time包提供的time.Timer类型来实现的,本文主要介绍了Go1.23中Timer无buff... 目录Timer 的基本实现无缓冲区的实现自定义无缓冲 Timer 实现更复杂的 Timer 实现总结在

Vue中动态权限到按钮的完整实现方案详解

《Vue中动态权限到按钮的完整实现方案详解》这篇文章主要为大家详细介绍了Vue如何在现有方案的基础上加入对路由的增、删、改、查权限控制,感兴趣的小伙伴可以跟随小编一起学习一下... 目录一、数据库设计扩展1.1 修改路由表(routes)1.2 修改角色与路由权限表(role_routes)二、后端接口设计

解读docker运行时-itd参数是什么意思

《解读docker运行时-itd参数是什么意思》在Docker中,-itd参数组合用于在后台运行一个交互式容器,同时保持标准输入和分配伪终端,这种方式适合需要在后台运行容器并保持交互能力的场景... 目录docker运行时-itd参数是什么意思1. -i(或 --interactive)2. -t(或 --

MySQL 日期时间格式化函数 DATE_FORMAT() 的使用示例详解

《MySQL日期时间格式化函数DATE_FORMAT()的使用示例详解》`DATE_FORMAT()`是MySQL中用于格式化日期时间的函数,本文详细介绍了其语法、格式化字符串的含义以及常见日期... 目录一、DATE_FORMAT()语法二、格式化字符串详解三、常见日期时间格式组合四、业务场景五、总结一、

Qt实现发送HTTP请求的示例详解

《Qt实现发送HTTP请求的示例详解》这篇文章主要为大家详细介绍了如何通过Qt实现发送HTTP请求,文中的示例代码讲解详细,具有一定的借鉴价值,感兴趣的小伙伴可以跟随小编一起学习一下... 目录1、添加network模块2、包含改头文件3、创建网络访问管理器4、创建接口5、创建网络请求对象6、创建一个回复对

Apache伪静态(Rewrite).htaccess文件详解与配置技巧

《Apache伪静态(Rewrite).htaccess文件详解与配置技巧》Apache伪静态(Rewrite).htaccess是一个纯文本文件,它里面存放着Apache服务器配置相关的指令,主要的... 一、.htAccess的基本作用.htaccess是一个纯文本文件,它里面存放着Apache服务器

Java中有什么工具可以进行代码反编译详解

《Java中有什么工具可以进行代码反编译详解》:本文主要介绍Java中有什么工具可以进行代码反编译的相关资,料,包括JD-GUI、CFR、Procyon、Fernflower、Javap、Byte... 目录1.JD-GUI2.CFR3.Procyon Decompiler4.Fernflower5.Jav

golang panic 函数用法示例详解

《golangpanic函数用法示例详解》在Go语言中,panic用于触发不可恢复的错误,终止函数执行并逐层向上触发defer,最终若未被recover捕获,程序会崩溃,recover用于在def... 目录1. panic 的作用2. 基本用法3. recover 的使用规则4. 错误处理建议5. 常见错