GoldenGate DB11gr2配置手册

  1. 源端数据库配置

1.1源端数据库打开Archive Log:

SQL>shutdown immediate;

SQL>startup mount;

SQL>alter database archivelog;

SQL>alter database open;

SQL>archive log list;

1.2源端数据库打开数据库级最小附加日志及force logging:

SQL>SELECT supplemental_log_data_min, force_logging FROM v$database;

SQL>alter database add supplemental log data;

SQL>alter database force logging;

切换日志以使附加日志生效:

SQL>ALTER SYSTEM switch logfile;

1.3 Enabling Oracle GoldenGate in the Database:

SQL> show parameter enable_goldengate_replication

SQL> alter system set enable_goldengate_replication = true scope=both;

  1. 在源端创建用户并授权

2.1在源端数据库创建GoldenGate用户:

SQL> create user ogg identified by ogg;

SQL>GRANT DBA to ogg;

SQL> BEGIN 
  dbms_goldengate_auth.grant_admin_privilege 
  ( 
    grantee => 'ogg', 
    privilege_type => 'CAPTURE', 
    grant_select_privileges => TRUE 
  ); 
END; 
/

3. 静默安装OGG

./runInstaller -silent -responseFile 
/u01/app/oracle/ogg/fbo_ggs_AIX_ppc_shiphome/Disk1/response/oggcore.rsp

响应文件实例:

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

## Copyright(c) Oracle Corporation
2017. All rights reserved.     ##

##                                                               
##

## Specify values for the variables
listed below to customize     ##

## your installation.                                             ##

##                                                               
##

## Each variable is associated with
a comment. The comment        ##

## can help to populate the
variables with the appropriate        ##

## values.                                                       
##

##                                                               
##

## IMPORTANT NOTE: This file should
be secured to have read       ##

## permission only by the oracle
user or an administrator who     ##

## own this installation to protect
any sensitive input values.   ##

##                                                               
##

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

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

# Do not change the following
system generated value.

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

oracle.install.responseFileVersion=/oracle/install/rspfmt_ogginstall_response_schema_v12_1_2

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

##                                                                           
##

## Oracle GoldenGate installation
option and details                         
##

##                                                                           
##

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

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

# Specify the installation option.

# Specify ORA12c for installing
Oracle GoldenGate for Oracle Database 12c and

#         ORA11g for installing Oracle
GoldenGate for Oracle Database 11g

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

INSTALL_OPTION=ORA11g

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

# Specify a location to install
Oracle GoldenGate

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

SOFTWARE_LOCATION=/u01/app/oracle/ogg122

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

# Specify true to start the manager
after installation.

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

START_MANAGER=FALSE

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

# Specify a free port within the
valid range for the manager process.

# Required only if START_MANAGER is
true.

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

MANAGER_PORT=7809

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

# Specify the location of the
Oracle Database.

# Required only if START_MANAGER is
true.

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

DATABASE_LOCATION=/u01/app/oracle/product/11.2.0/dbhome_1

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

##                                                                            ##

## Specify details to Create
inventory for Oracle installs                   
##

## Required only for the first
Oracle product install on a system.           
##

##                                                     
                      ##

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

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

# Specify the location which holds
the install inventory files.

# This is an optional parameter if
installing on

# Windows based Operating System.

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

INVENTORY_LOCATION=/home/oracle/gg/inventory

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

# Unix group to be set for the
inventory directory.

# This parameter is not applicable
if installing on

# Windows based Operating System.

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

UNIX_GROUP_NAME=oracle

4. 源端配置OGG进程

4.1配置OGG extract进程exthr

GGSCI> edit
param exthr

extract exthr

userid ogg@orcl, password
ogg

exttrail ./dirdat/tm

table hr.*;

4.2在mgr中添加extract进程

GGSCI> add extract
exthr,tranlog,begin now

GGSCI> add exttrail
./dirdat/tm,extract exthr,megabytes 10

GGSCI>info extract exthr

4.3在OGG中添加表级附加日志

GGSCI>dblogin
userid ogg password ogg

GGSCI> add
trandata hr.*

4.5配置OGG datapump进程pumhr

GGSCI> edit param pumhr

extract pumhr

passthru

rmthost 192.168.56.102,
mgrport 7909

rmttrail ./dirdat/pn

table hr.*;

4.6在mgr中添加datapump进程pumhr

GGSCI> add extract pumhr,exttrailsource ./dirdat/tm

GGSCI> add
rmttrail ./dirdat/pn,extract pumhr,megabytes 10

5.目标数据库端配置

5.1目标数据库参数配置

SQL>alter system set enable_goldengate_replication = true scope=both;

5.2创建数据库用户并授权

SQL> create
user ogg identified by ogg;

SQL>GRANT DBA
to ogg;

SQL>BEGIN

dbms_goldengate_auth.grant_admin_privilege

(

grantee => 'ogg',

privilege_type => 'APPLY',

grant_select_privileges => TRUE

);

END;

/

6.目标端配置OGG进程

6.1配置OGG replicat进程rephr

GGSCI>edit param rephr

Replicat rephr

UserID ogg@orcl, password
ogg

AssumeTargetDefs

ddl include all

DiscardFile
dirrpt/rhr.dsc, Append

Map hr.*, Target hr.*;

6.2 配置checkpoint表

GGSCI>edit param ./GLOBALS

输入信息

CHECKPOINTTABLE ogg.ggs_checkpoint

GGSCI> dblogin userid ogg,password ogg;

GGSCI>add CHECKPOINTTABLE ogg.ggs_checkpoint

GGSCI>exit

6.3在mgr中添加replicat进程rephr

GGSCI> add
replicat rephr, exttrail ./dirdat/pn

6.4 OGG 常用命令

info + 进程名 查看进程运行状态

stats+ 进程名 查看进程统计信息

edit param +进程 编辑配置文件

start/stop + 进程名 开启/停止进程

view report + 进程名 查看报告日志信息

info xxx,showch

GoldenGate DB11gr2配置手册的更多相关文章

  1. Varnish缓存服务器的搭建配置手册

    Varnish缓存服务器的搭建配置手册 1.Varnish官方环境依赖提示 Installing Varnish Cache is as simple as enabling our package ...

  2. Ubuntu_10.04下Hadoop-0.20.2集群配置手册

    Ubuntu_10.04下Hadoop-0.20.2集群配置手册 一.软硬件环境的准备 下面的文章来自hadoopor.com,我先交待一下我自己的环境: 两台机器,每台机器上面两个虚机(vmware ...

  3. nginx1.9.4 +php 5.5.29+yii2.0配置手册

    nginx1.9.4 +php 5.5.29+yii2.0配置手册 目录 一.    php5.5.29安装配置    2 二.    nginx1.9.4安装配置    2 三.    yii2.0 ...

  4. QC邮件转发工具Mail Direct安装配置手册

    QC邮件转发工具Mail Direct安装配置手册 2010-06-11 10:00:56| 分类: 软件测试 | 标签: |举报 |字号大中小 订阅 QC邮件转发工具安装配置手册 由于公司没有独立的 ...

  5. Goldengate双向复制配置

    一.Goldengate双向复制配置 1.1.在进行如下配置之前,先在源数据库source system(原来的目标数据库)端 添加辅助的redolog配置: SQL>alter databas ...

  6. Nginx+Tomcat+MemCached 集群配置手册

    系统实施文档 Nginx+Tomcat+MemCached 集群配置手册 目    录 第1章   概述 1.1   目标 互联网的快速发展带来了互联网系统的高负载和高可用性, 这要求我们在设计系统架 ...

  7. Git 安装配置手册

    Git 安装配置手册 首先我们要了解 Git 是类似于 SVN 用来管理项目的 首先要先下载 Git ,这个东西相当于一个核,是该功能的核心 下载地址(<https://gitforwindow ...

  8. 网站 HTTP 升级 HTTPS 完全配置手册

    网站 HTTP 升级 HTTPS 完全配置手册 今天,所有使用Google Chrome稳定版的用户迎来了v68正式版首个版本的发布,详细版本号为v68.0.3440.75,上一个正式版v67.0.3 ...

  9. 泛微云桥e-birdge之金蝶云之家集成配置手册

    最近在配置金蝶云之家与泛微ecology的打通,没有看官方文档,直接配置,一直配置不通,看了官方文档后知道了少配置参数了,转载一下,省得四处去找了. 泛微云桥e-birdge之金蝶云之家集成配置手册 ...

随机推荐

  1. vue-learning:19 - js - filters

    filters 基本使用 仅限在插值{{}}和v-bind指令中使用 管道符|分隔 链式调用 传入参数 全局注册和局部注册 纯函数性质(不能使用this) 基本使用 我们看下之前用计算属性实现的例子, ...

  2. Qt configure 参数说明(中文)

    Qt configure 在编译QT前,可加各种参数来定制自己想要的QT库.这对需要裁减QT库的朋友来说非常重要.对于如何编译QT,可以参考:http://hi.baidu.com/agassi%5F ...

  3. seek方法补充

    seek 默认模式是从文件的开始移动光标,一共有0.1.2三种模式 f=open('seek.txt','r',encoding='utf-8') print(f.tell()) f.seek(10, ...

  4. dWebpack编译速度优化实战

    当你的应用的规模还很小时,你可能不会在乎Webpack的编译速度,无论使用3.X还是4.X版本,它都足够快,或者说至少没让你等得不耐烦.但随着业务的增多,嗖嗖嗖一下项目就有上百个组件了,也是件很简单的 ...

  5. 假期汇总表handler中涉及的基础知识

    1,stringBuffer 的常用方法,append () 方法, public StringBuffer append(boolean b) 追加内容到当前StringBuffer对象的末尾 ,我 ...

  6. monorepo仓库管理方式探秘

    前言 随着功能和业务量级的飙升,前端代码量级也越来越大,管理运维的成本也进一步增加. 代码仓库的运营管理挑战也浮出水面. 主流方案有两种:一是multirepo式的分散式的独立仓库,二是monorep ...

  7. c++简单实现循环队列

    栈的数据结构是先进后出,而队列的数据结构就是 一个出口一个入口入口只能入队,出口只能出队 实现的代码如下: /* 循环静态队列实现 2017年8月5日07:50:58 */ #ifndef __QUE ...

  8. 电信NBIOT平台的CA证书上传-消息订阅回调地址检测503错误

    在NBIOT北向开发过程中,遇到消息订阅回调地址检测503错误,经过论坛查询与文档查阅一直都没有解决问题,大多人都说是RESTful地址格式问题,但其实不是.最终发现是我们在电信平台创建应用时,上传C ...

  9. 大白话抽象工厂模式(Abstract Factory Pattern)

    实例分析 大白话工厂方法模式(Factory Method)一文中,我们讲解了日产4S店工厂规模的扩大,创建了针对不同车型的工厂,减少了工厂的工作内容,提高了效率.下面我们继续以4S店的故事讨论抽象工 ...

  10. 「2018-12-02模拟赛」T2 种树 解题报告

    2.种树(tree.pas/cpp/in/out) 问题描述: Fanvree 很聪明,解决难题时他总会把问题简单化. 例如,他就整天喜欢把图转化为树.但是他不会缩环,那他怎么转化呢? 这是一个有 n ...