当前位置:网站首页>Flink connector Oracle CDC synchronizes data to MySQL in real time (oracle12c)
Flink connector Oracle CDC synchronizes data to MySQL in real time (oracle12c)
2022-07-29 06:05:00 【Denny Hui】
Continue with a document 《Flink connector Oracle CDC Synchronize data in real time to MySQL(Oracle19c)》 What I said last time is Oracle19c Configuration mode of version . In the process of data synchronization, there is a delay in reading data , The following configuration is required :
'debezium.log.mining.strategy'='online_catalog',
'debezium.log.mining.continuous.mine'='true'
But Oracle19c Cancel the configuration of this component . Change the back Oracle12c edition ,CDC The configuration of is slightly different .
The difference lies in creating users and authorizations , Need to make some adjustments, otherwise in Flink Call in DBMS_LOGMNR.START_LOGMNR When “ The user doesn't exist ” The problem of .
Error report - ORA-01435: user does not exist ORA-06512: at
“SYS.DBMS_LOGMNR”, line 72 ORA-06512: at line 3
01435. 00000 - “user does not exist”
*Cause:
*Action:
12c The configuration is as follows :
--create C##family user on CDB
CREATE USER C##family IDENTIFIED BY family DEFAULT TABLESPACE LOGMINER_TBS QUOTA UNLIMITED ON LOGMINER_TBS ACCOUNT UNLOCK;
-- allow access to all PDBs to the C##family user
ALTER USER C##family SET CONTAINER_DATA=ALL CONTAINER=CURRENT
-- grant needed permissions
GRANT DBA to C##family ;
GRANT CREATE SESSION TO C##family ;
GRANT CREATE TABLE TO C##family ;
GRANT EXECUTE_CATALOG_ROLE TO C##family ;
GRANT EXECUTE ON DBMS_LOGMNR TO C##family ;
GRANT SELECT ON V_$DATABASE TO C##family ;
GRANT SELECT ON V_$LOGMNR_CONTENTS TO C##family ;
GRANT SELECT ON V_$ARCHIVED_LOG TO C##family ;
GRANT SELECT ON V_$LOG TO C##family ;
GRANT SELECT ON V_$LOGFILE TO C##family ;
GRANT RESOURCE, CONNECT TO C##family ;
12c There are many pits , There are the following questions :
- When you create a user, you will be prompted ” Space does not exist “,12c and 19c Dissimilarity ,12c Of CDB and PDB To create table spaces separately ;
stay PDB Create a table space in :
View current container :show con_name -- View current container ;
Switch container to PDB:alter session set container=ORCLSPDB; -- Convert container to PDB
Switch PDB To the container :alter session set container=CDB$ROOT; -- Convert container to CDB
Be careful : The filename cannot be with CDB The same as in China , It doesn't matter if it's in a different directory . - Oracle After restart, it can't be connected , As a result of 12 It's starting to introduce CDB and PDB, It will only be opened by default when restarting CDB,PDB Is still in the mount, Manual opening required :
show pdbs; // Query all of the database PDB
alter pluggable database orclpdb open; // Modify pluggable libraries orclpdb open
There is a one-step command :alter pluggable database all open;– Directly open all PDB
Post some orders :
Delete users and table spaces :
SQL> drop user jack cascade;
SQL> drop tablespace school including contents and datafiles;
边栏推荐
- A preliminary study on fastjason's autotype
- 研究生新生培训第三周:ResNet+ResNeXt
- 【卷积核设计】Scaling Up Your Kernels to 31x31: Revisiting Large Kernel Design in CNNs
- Exploration of flutter drawing skills: draw arrows together (skill development)
- 初探fastJson的AutoType
- IDEA中设置自动build-改动代码,不用重启工程,刷新页面即可
- Lock lock of concurrent programming learning notes and its implementation basic usage of reentrantlock, reentrantreadwritelock and stampedlock
- asyncawait和promise的区别
- 虚假新闻检测论文阅读(二):Semi-Supervised Learning and Graph Neural Networks for Fake News Detection
- PyTorch基础知识(可入门)
猜你喜欢
Realize the scheduled backup of MySQL database in Linux environment through simple script (mysqldump command backup)
【Attention】Visual Attention Network
ASM piling: after learning ASM tree API, you don't have to be afraid of hook anymore
ABSA1: Attentional Encoder Network for Targeted Sentiment Classification
Semaphore (semaphore) for learning notes of concurrent programming
虚假新闻检测论文阅读(四):A novel self-learning semi-supervised deep learning network to detect fake news on...
研究生新生培训第一周:深度学习和pytorch基础
并发编程学习笔记 之 Lock锁及其实现类ReentrantLock、ReentrantReadWriteLock和StampedLock的基本用法
Is flutter being quietly abandoned? On the future of flutter
Briefly talk about the difference between pendingintent and intent
随机推荐
【目标检测】KL-Loss:Bounding Box Regression with Uncertainty for Accurate Object Detection
IDEA中设置自动build-改动代码,不用重启工程,刷新页面即可
Interesting talk about performance optimization thread pool: is the more threads open, the better?
Rsync+inotyfy realize real-time synchronization of single data monitoring
【Transformer】AdaViT: Adaptive Tokens for Efficient Vision Transformer
These process knowledge you must know
第2周学习:卷积神经网络基础
研究生新生培训第一周:深度学习和pytorch基础
Flink connector Oracle CDC synchronizes data to MySQL in real time (oracle19c)
Centos7 silently installs Oracle
Spring, summer, autumn and winter with Miss Zhang (5)
MySql统计函数COUNT详解
关于Flow的原理解析
Use of xtrabackup
The differences and reasons between MySQL with and without quotation marks when querying string types
【pycharm】pycharm远程连接服务器
并发编程学习笔记 之 ReentrantLock实现原理的探究
[DL] build convolutional neural network for regression prediction (detailed tutorial of data + code)
[DL] introduction and understanding of tensor
Detailed explanation of tool classes countdownlatch and cyclicbarrier of concurrent programming learning notes