当前位置:网站首页>【Oracle实训】-部署号称零停机迁移的OGG
【Oracle实训】-部署号称零停机迁移的OGG
2022-07-26 20:08:00 【IT邦德】
哈喽!大家好,我是【IT邦德】,江湖人称jeames007,10年DBA工作经验
一位上进心十足的【大数据领域博主】!
中国DBA联盟(ACDU)成员,目前从事DBA及程序编程
擅长主流数据Oracle、MySQL、PG 运维开发,备份恢复,安装迁移,性能优化、故障应急处理等。
如果有对【数据库】感兴趣的【小可爱】,欢迎关注【IT邦德】
️️️感谢各位大可爱小可爱!️️️
前言
Golden Gate(简称OGG)提供异构环境下交易数据的实时捕捉、变换、投递️ 1. 何为OGG
OGG是一种基于日志的结构化数据复制软件,
通过捕获源数据库online redo log (在线重做日志)或archive log(归档日志)获得数据变化,
形成tail(队列文件 ),再将这些tail通过网络协议,传输到目标数据库,目标端通过解析,插入至目标端数据库,
从而实现源端与目标端数据同步
1)、对生产系统影响小:实时读取交易日志,以低资源占用实现大交易量数据实时复制;
2)、以交易为单位复制,保证交易一致性:只同步已提交的数据;
3)、高性能,智能的交易重组和操作合并,使用数据库本地接口访问,并行处理体系,灵活的拓扑结构:
支持一对一、一对多、多对一、多对多和双向复制等。

️ 2. 下载OGG
目前 OGG 最新版本为 Oracle GoldenGate 21.3.0.0,Oracle GoldenGate 19.1 普通版(区别于微服务版)目前已下架,
所以我们使用最新版本,下载地址如下:
进入 Oracle 官方网址 http://www.oracle.com
http://www.oracle.com/technetwork/middleware/goldengate/downloads/index.html

参数说明: https://docs.oracle.com/en/middleware/goldengate/core/21.3/reference/index.html

️ 3. 安装OGG
3.1 解压安装包
## 创建软件安装目录
[[email protected] ~]# mkdir -p /ogg
[[email protected] ~]# chown -R oracle:oinstall /ogg
##上传软件到 /ogg 并解压
fbo_ggs_Linux_x64_shiphome.zip
[[email protected] ogg]# pwd
/ogg
[[email protected] ogg]# ll
total 170300
-rw-r--r--. 1 oracle oinstall 174386940 Jul 24 07:59 fbo_ggs_Linux_x64_shiphome.zip
[[email protected] ogg]# unzip fbo_ggs_Linux_x64_shiphome.zip
此处记得在Oracle用户下执行

3.2 配置环境变量
环境变量如下:
export GG_HOME=/ogg
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:$GG_HOME
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
alias ggsci='cd $GG_HOME;ggsci'
[[email protected] ~]$ source .bash_profile

3.3 静默安装
ogg 自12c 以后可以图形化安装,也可以命令行安装。下面修改响应文件采用命令行静默安装。
cd /ogg/fbo_ggs_Linux_x64_Oracle_shiphome/Disk1/response
vi /ogg/fbo_ggs_Linux_x64_Oracle_shiphome/Disk1/response/oggcore.rsp
只修改如下两个地方即可。
INSTALL_OPTION=ORA11g --11g数据库选择ORA11g,12C选择ORA12c
SOFTWARE_LOCATION=/ogg --ogg安装目录

## 使用如下命令静默安装:
/ogg/fbo_ggs_Linux_x64_Oracle_shiphome/Disk1/runInstaller -silent \
-responseFile /ogg/fbo_ggs_Linux_x64_Oracle_shiphome/Disk1/response/oggcore.rsp

OGG安装成功!!!
️ 4. OGG初始化
[[email protected] ~]$ cd /ogg
[[email protected] ~]$./ggsci
GGSCI (MES) 1> create subdirs

OGG目录说明:

边栏推荐
- Redis面试题
- Basic configuration and aggregation of BGP
- 腾讯为什么没能造创造出《原神》这样的游戏
- Leetcode linked list problem - 19. Delete the penultimate node of the linked list (learn the linked list with one question and one article)
- Quick start to connection pooling
- 全球最聪明50家公司公布:中国厂商占据近半,华为名列第一
- Keepalived high availability introduction and configuration details
- Use Baidu PaddlePaddle easydl to complete garbage classification
- [wechat applet] zero basics | applet syntax
- [JVM series] JVM tuning
猜你喜欢

我们从Crypto市场中学到的最艰难一课

每日练习------有一组学员的成绩,将它们按降序排列,要增加一个学员的成绩,将它插入成绩序列,并保持降序

Leetcode linked list problem -- 24. Exchange the nodes in the linked list in pairs (learn the linked list with one question and one article)

LeetCode链表问题——19.删除链表的倒数第N个节点(一题一文学会链表)

Quick start to connection pooling

易基因|宏病毒组测序技术介绍

Go+mysql+redis+vue3 simple chat room, the sixth bullet: use vue3 and element plus to call the interface

Houdini 求中点,点连成线

GOM跟GEE登陆器列表文件加密教程

How to assemble a registry?
随机推荐
[基础服务] [数据库] ClickHouse的安装和配置
Use Baidu PaddlePaddle easydl to complete garbage classification
twenty million two hundred and twenty thousand seven hundred and twenty-six
Numpy中ndarray的常见操作
Buu brush inscription 2
Gartner released the latest market guide for Chinese AI start-ups, and Hongji cyclone was once again rated as a representative enterprise
arm tz硬件支撑
Depthwiseseparableconvolution: depthwise convolution and pointwise convolution
【面试必刷101】动态规划1
培训软件测试能不能就业
Build Prometheus automatic monitoring and alarm system from scratch
Pspice simulation quartz crystal oscillation circuit
每日练习------有一组学员的成绩,将它们按降序排列,要增加一个学员的成绩,将它插入成绩序列,并保持降序
传奇GEE引擎版本如何封挂?通过脚本+引擎封玩家账号教程
传惠普/戴尔/微软/亚马逊考虑将部分硬件生产线转到大陆以外
Leetcode linked list class
人脸识别、指纹识别都弱爆了?五角大楼研发远距离心跳识别
South Korea plans to spend 1 trillion won a year on research and development of semiconductor materials and equipment
TableWidget
How to create a static object variable of its own class?