当前位置:网站首页>Zhangxiaobai teaches you how to use Ogg to synchronize Oracle 19C data with MySQL 5.7 (1)
Zhangxiaobai teaches you how to use Ogg to synchronize Oracle 19C data with MySQL 5.7 (1)
2022-06-10 16:20:00 【Hua Weiyun】
( One ) sketch
OGG yes Oracle GoldenGate For short , It can do Oracle Real time data synchronization to heterogeneous databases .
Use OGG complete Oracle To MySQL Synchronization of , The principle is as follows :

Therefore, using OGG complete Oracle To MySQL Data synchronization for requires the following steps :
( One ) stay Oracle End installation OGG for Oracle
( Two ) Source end OGG To configure
(1)OGG Source side related Oracle To configure ( establish c##ogg user 、 Build a test table test_ogg wait )
(2)OGG Source side table level completion log trandata To configure
(3)OGG Source side management process MGR To configure ( Listen on local port 7809)
(4)OGG Source side extraction process extorcl To configure ( from Oracle Database tables extract data into data files )
(5)OGG Source side transport process pumysql To configure ( Send the extracted data file to OGG Destination )
(6)OGG Source end heterogeneity mapping file defgen Generate
( 3、 ... and ) stay MySQL End installation OGG for MySQL
( Four ) Destination OGG To configure
(1)OGG The end MySQL To configure
(2)OGG Destination management process MGR To configure ( Listen on local port 7810)
(3)OGG Destination checkpoint log table checkpoint To configure
(4)OGG Destination playback thread r_tab1 To configure ( Write the extracted data file to MySQL Database table )
( Two ) stay Oracle End installation OGG 21 for Oracle
open https://www.oracle.com/middleware/technologies/goldengate-downloads.html
Search for Oracle GoldenGate 21.3.0.0.0 for Oracle on Linux x86-64
download OGG for Oracle Installation package 213000_fbo_ggs_Linux_x64_Oracle_shiphome.zip

With Oracle The user login :
modify .bashrc, Add the following
export JAVA_HOME=$HOME/jdk1.8.0_141export PATH=$JAVA_HOME/bin:$PATHexport TNS_ADMIN=$ORACLE_HOME/network/adminexport OGG_HOME=/opt/ogg/source_endpointexport LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/amd64:$JAVA_HOME/jre/lib/amd64/server:$JAVA_HOME/jre/lib/amd64/libjsig.so:$JAVA_HOME/jre/lib/amd64/server/libjvm.so:$OGG_HOME/lib:$LD_LIBRARY_PATH:$ORACLE_HOME/lib:/usr/libexport PATH=$OGG_HOME:$PATH:$ORACLE_HOME/binSwitch to root user
su - root
useradd ogg -g oinstall
passwd ogg

mkdir -p /opt/ogg
chown -R ogg /opt/ogg
mkdir -p /home/oracle/oradata/OGG/ORCLCDB
mkdir -p /home/oracle/oradata/OGG/tablespace
chown -R oracle:oinstall /home/oracle/oradata/OGG

Switch to ogg user :
take ogg Installation package 213000_fbo_ggs_Linux_x64_Oracle_shiphome.zip to /home/ogg Next :

unzip -d ~ 213000_fbo_ggs_Linux_x64_Oracle_shiphome.zip

cd fbo_ggs_Linux_x64_Oracle_shiphome/Disk1/response/
edit oggcore.rsp
Update the following lines :
INSTALL_OPTION=ORA19CSOFTWARE_LOCATION=/opt/ogg/source_endpoint
cd ..
./runInstaller -silent -nowait -responseFile /home/ogg/fbo_ggs_Linux_x64_Oracle_shiphome/Disk1/response/oggcore.rsp

newspaper /u01/app/oracle/oraInventory No permission to write ... Checked the , Not really. , Then add permissions .

again :
Switch to ogg user :
cd fbo_ggs_Linux_x64_Oracle_shiphome/Disk1/
./runInstaller -silent -nowait -responseFile /home/ogg/fbo_ggs_Linux_x64_Oracle_shiphome/Disk1/response/oggcore.rsp

( To be continued )
边栏推荐
- Nanomq newsletter 2022-05 | release of V0.8.0, new webhook extension interface and connection authentication API
- kubernetes 二进制安装(v1.20.16)(五)验证 master 部署
- How does the wireless communication module help the intelligent UAV build the "Internet of things in the air"?
- The ultimate buff of smart grid - guanghetong module runs through the whole process of "generation, transmission, transformation, distribution and utilization"
- 使用特定大小、分辨率或背景色保存图窗
- Sorting of MapReduce cases
- Middle office: Data middle office, business middle office, technology middle office, application middle office, AI middle office
- PV operation daily question - orange apple question (advanced version variant)
- 姿态估计之2D人体姿态估计 - Distribution Aware Coordinate Representation for Human Pose Estimation【转-修改】
- Save a window with a specific size, resolution, or background color
猜你喜欢
![Jerry's ble IO port interrupt and flip [chapter]](/img/e6/bd5bb99ba79ca8daaee844689cd57f.png)
Jerry's ble IO port interrupt and flip [chapter]

Use of hardware instruments

RK3308 按键Key与LED灯

直播预告 | 解构OLAP!新型多维分析架构范式全公开!Apache Doris 将带来五个重磅议题!

我用 MATLAB 复刻了抖音爆火小游戏 苹果蛇

2D human pose estimation for pose estimation - simdr: is 2D Heatmap representation even necessity for human pose estimation?

Opencv 4 handwriting recognition: perfect self built training set

SQL language

2290. Minimum Obstacle Removal to Reach Corner

Anba cv2fs/cv22fs obtained ASIL C chip function safety certification, surpassing the level of similar chips in the market
随机推荐
作用域和闭包
PV operation daily question 1 - single wooden bridge problem (variant 1)
PV operation daily question - orange apple question (advanced version variant)
2D human pose estimation for pose estimation - simdr: is 2D Heatmap representation even necessity for human pose estimation?
Common methods and selection principles of test cases
MapReduce之分区案例的代码实现
袋鼠云数栈基于CBO在Spark SQL优化上的探索
Fortex Fangda releases the electronic trading ecosystem to share and win-win with customers
[today in history] June 10: Apple II came out; Microsoft acquires gecad; The scientific and technological pioneer who invented the word "software engineering" was born
Add Anaconda's bin directory to path
Guanghetong cooperates with China Mobile, HP, MediaTek and Intel to build 5g fully connected PC pan terminal products
Application scenario introduction of nixie tube driver chip + voice chip, wt588e02b-24ss
Join operation cases in the reduce phase of MapReduce
【MySQL基础】
I used Matlab to reproduce the trembling sonic boom Fire Games Apple snake
2D pose estimation for pose estimation - (openpose) realtime multi person 2D pose estimation using part affinity fields
MapReduce之排序及序列化案例的代码实现
LocalDate与Date相互转换
Thinking and precipitation after docking with hundreds of third-party APIs
Aggregate sum of MapReduce cases