当前位置:网站首页>Zhangxiaobai teaches you how to use Ogg to synchronize Oracle 19C data with MySQL 5.7 (2)
Zhangxiaobai teaches you how to use Ogg to synchronize Oracle 19C data with MySQL 5.7 (2)
2022-06-10 16:20:00 【Hua Weiyun】
( 3、 ... and ) stay MySQL End installation OGG for MySQL
uninstall CentOS Self contained mariadb:
rpm -qa | grep mariadb

rpm -e --nodeps mariadb-server-5.5.68-1.el7.x86_64 mariadb-5.5.68-1.el7.x86_64 mariadb-libs-5.5.68-1.el7.x86_64

install MySQL:
cd /usr/local
wget https://cdn.mysql.com/Downloads/MySQL-5.7/mysql-5.7.37-el7-x86_64.tar.gz

decompression :
tar -zxvf mysql-*.gz

mv mysql-5.7.37-el7-x86_64 mysql
Set the permissions :
chown -R mysql:mysql /usr/local/mysql
chmod -R 755 /usr/local/mysql
mkdir -p /data/mysql/data
mkdir -p /data/mysql/logs
mkdir -p /data/mysql/tmp
chown -R mysql:mysql /data/mysql

edit /etc/my.cnf file :

The contents are as follows :
[client]port = 3306socket = /data/mysql/tmp/mysql.sock[mysqld]user = mysqlbasedir = /usr/local/mysql datadir = /data/mysql/data port = 3306 socket = /data/mysql/tmp/mysql.sockpid-file = /data/mysql/tmp/mysqld.pidtmpdir = /data/mysql/tmp skip_name_resolve = 1symbolic-links=0max_connections = 2000group_concat_max_len = 1024000sql_mode = NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTIONlower_case_table_names = 1log_timestamps=SYSTEMcharacter-set-server = utf8interactive_timeout = 1800 wait_timeout = 1800max_allowed_packet = 32Mbinlog_cache_size = 4Msort_buffer_size = 2Mread_buffer_size = 4Mjoin_buffer_size = 4Mtmp_table_size = 96Mmax_heap_table_size = 96Mmax_length_for_sort_data = 8096#logsserver-id = 1003306log-error = /data/mysql/logs/error.logslow_query_log = 1slow_query_log_file = /data/mysql/logs/slow.loglong_query_time = 3log-bin = /data/mysql/logs/binlogbinlog_format = rowexpire_logs_days = 15log_bin_trust_function_creators = 1relay-log = /data/mysql/logs/relay-binrelay-log-recovery = 1 relay_log_purge = 1 #innodb innodb_file_per_table = 1innodb_log_buffer_size = 16Minnodb_log_file_size = 256Minnodb_log_files_in_group = 2innodb_io_capacity = 2000innodb_io_capacity_max = 4000innodb_flush_neighbors = 0innodb_flush_method = O_DIRECTinnodb_autoinc_lock_mode = 2innodb_read_io_threads = 8innodb_write_io_threads = 8innodb_buffer_pool_size = 2Gtake mysql Set to linux service :
cd /usr/local/mysql/support-files
cp mysql.server /etc/init.d/mysql
edit /etc/init.d/mysql file :
Set the following two lines :
basedir=/usr/local/mysql
datadir=/data/mysql/data

chkconfig --add mysql
chkconfig --list

Edit environment variables :
echo "PATH=$PATH:/usr/local/mysql/bin " >> /etc/profile
source /etc/profile

rpm -qa|grep libaio
without , You need to install :yum install libaio-devel.x86_64

/usr/local/mysql/bin/mysqld --initialize --user=mysql --basedir=/usr/local/mysql --datadir=/data/mysql/data
more /data/mysql/logs/error.log | grep password

restart MySQL:
service stop mysql
service start mysql
Have to use
systemctl restart mysql
systemctl status mysql

Sign in :
mysql -u root -p
Enter the previous password :BOc:CUr?S0aj

modify root password :
alter user 'root'@'localhost' identified by 'zhanghui';
flush privileges;
quit Exit the command line .
ln -s /usr/local/mysql/bin/mysql /usr/bin/mysql

Use new password zhanghui Sign in :
mysql -u root -p
create user 'ogg'@'%' identified by 'ogg';
grant all on *.* to 'ogg'@'%';

open https://www.oracle.com/middleware/technologies/goldengate-downloads.html
find Oracle GoldenGate 21.3.0.0.0 for MySQL-compatible Databases on Linux x86-64 download :

Use root Sign in
Create destination ogg user :ogg2
useradd ogg2
passwd ogg2
su - ogg2

Switch to ogg2 user :su - ogg2
take ogg for mysql Installation package to /home/ogg2 Next :

unzip -d ~ ./213000_ggs_Linux_x64_MySQL_64bit.zip

Switch to root user
mkdir /opt/ogg/target_endpoint
chown -R ogg2 /opt/ogg/target_endpoint

Switch back to the ogg2 user :
tar -xvf ggs_Linux_x64_MySQL_64bit.tar -C /opt/ogg/target_endpoint

edit ~/.bashrc file :
export JAVA_HOME=$HOME/jdk1.8.0_141export PATH=$JAVA_HOME/bin:$PATHexport OGG_HOME=/opt/ogg/target_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:$HOME/libsexport PATH=$OGG_HOME:$PATHsource ~/.bashrc Make it effective .

( To be continued )
边栏推荐
- Sorting of MapReduce cases
- 【第七节 函数的作用】
- 服务器运维环境安全体系(下篇)
- sm59远程连接,如果提示没有host,则在服务器上加上host,然后重启sap_SAP刘梦
- Matlab learning notes (3) advanced operation of MATLAB matrix
- Nanomq newsletter 2022-05 | release of V0.8.0, new webhook extension interface and connection authentication API
- LocalDate与Date相互转换
- Two methods of modifying PIP download source
- Google x open source grabbing manipulator can find the target part at a glance without manual marking [turn]
- Query convert quickview is a grayed out solution (turn)_ SAP LIUMENG
猜你喜欢

姿态估计之2D人体姿态估计 - SimDR: Is 2D Heatmap Representation Even Necessary for Human Pose Estimation?

Middle office: Data middle office, business middle office, technology middle office, application middle office, AI middle office

Sorting of MapReduce cases

leetcode:730. 统计不同回文子序列【由点及面区间dp + 三维dp + 对角线遍历】

2290. Minimum Obstacle Removal to Reach Corner

Fortex Fangda releases the electronic trading ecosystem to share and win-win with customers

Detailed explanation of RGB color space, hue, saturation, brightness and HSV color space

硬件仪器的使用

智能家居(3)智能交互的竞品分析

统一认证中心 Oauth2 认证坑
随机推荐
姿态估计之2D人体姿态估计 - Human Pose Regression with Residual Log-likelihood Estimation(RLE)[仅链接]
Anba cv2fs/cv22fs obtained ASIL C chip function safety certification, surpassing the level of similar chips in the market
Guanghetong cooperates with China Mobile, HP, MediaTek and Intel to build 5g fully connected PC pan terminal products
When visual studio 2019 is installed, vs installer cannot download files. The progress bar is 0. It shows the solutions to network problems
Aperçu en direct | déconstruire OLAP! Le nouveau paradigme de l'architecture d'analyse multidimensionnelle est entièrement ouvert! Apache Doris va apporter cinq gros problèmes!
我用 MATLAB 复刻了抖音爆火小游戏 苹果蛇
LocalDate与Date相互转换
Server operation and maintenance environment security system (Part 2)
2D human pose estimation for pose estimation - simdr: is 2D Heatmap representation even necessity for human pose estimation?
Driver development and abnormal analysis of "technical dry goods" industrial touch screen (serial)
Rk3308 key and LED light
Save a window with a specific size, resolution, or background color
Nanomq newsletter 2022-05 | release of V0.8.0, new webhook extension interface and connection authentication API
Exploration of kangaroo cloud data stack on spark SQL optimization based on CBO
Rk3308-- firmware compilation
排序与分页
Google X开源抓取机械臂,无需人工标注就能一眼找到目标零件[转]
【无标题】
How does the wireless communication module help the intelligent UAV build the "Internet of things in the air"?
【無標題】
