当前位置:网站首页>【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目录说明:

边栏推荐
- Buu brush inscription 3
- How to check whether the pytorch you are using is a GPU version
- Svn uses fragmented ideas
- Installation and configuration of [basic services] [database] Clickhouse
- [experiment sharing] CCIE BGP routing black hole experiment]
- LeetCode_ Backtracking_ Medium_ 216. Combined sum III
- 2022 pole technology communication - anmou technology opens a new chapter of commercialization
- serializable接口的作用是什么?
- 从零开始搭建etcd分布式存储系统+Web管理界面
- LCP 11. Statistics of expected number
猜你喜欢

传奇GEE引擎版本如何封挂?通过脚本+引擎封玩家账号教程

Depthwiseseparableconvolution: depthwise convolution and pointwise convolution

Houdini 求中点,点连成线

QT基础第一天 (1)QT,GUI(图形用户接口)开发
![[interview brush 101] dynamic planning 1](/img/aa/cf9326d0a4363e96f4e2f1c6079c13.png)
[interview brush 101] dynamic planning 1

What is the function of the serializable interface?

7-year-old boy playing chess too fast? The robot actually broke its finger

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

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

Group convolution
随机推荐
opencv dnn部署onnx模型
QT基础第一天 (1)QT,GUI(图形用户接口)开发
Opencv DNN deployment onnx model
Message queue -- the problem introduced: repeated consumption & sequential consumption & distributed transactions
Auto. JS rotation Icon
Leetcode's question brushing -- List summary
Swiftui 4's new function of real-time access to click location.Ontapgeture {location in} (tutorial with source code)
GOM跟GEE登陆器列表文件加密教程
韩国计划每年砸1万亿韩元,研发半导体材料及设备
Buu brush inscription 4
leetcode 数组类
serializable接口的作用是什么?
ST表、带权并查集
What is the function of the serializable interface?
Why can ThreadLocal achieve thread isolation?
每日练习------有一组学员的成绩,将它们按降序排列,要增加一个学员的成绩,将它插入成绩序列,并保持降序
Leetcode linked list problem -- 24. Exchange the nodes in the linked list in pairs (learn the linked list with one question and one article)
Quick start to connection pooling
08_ UE4 advanced_ Start end pause menu UI
如何查看你使用的pytorch是否为GPU版本