当前位置:网站首页>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;
边栏推荐
- 【网络设计】ConvNeXt:A ConvNet for the 2020s
- Realize the scheduled backup of MySQL database in Linux environment through simple script (mysqldump command backup)
- Spring, summer, autumn and winter with Miss Zhang (3)
- [DL] introduction and understanding of tensor
- ROS教程(Xavier)
- 【目标检测】KL-Loss:Bounding Box Regression with Uncertainty for Accurate Object Detection
- 虚假新闻检测论文阅读(五):A Semi-supervised Learning Method for Fake News Detection in Social Media
- 虚假新闻检测论文阅读(四):A novel self-learning semi-supervised deep learning network to detect fake news on...
- 迁移学习——Transitive Transfer Learning
- [clustmaps] visitor statistics
猜你喜欢

DataX installation

ASM piling: after learning ASM tree API, you don't have to be afraid of hook anymore

Interesting talk about performance optimization thread pool: is the more threads open, the better?

虚假新闻检测论文阅读(一):Fake News Detection using Semi-Supervised Graph Convolutional Network

【Transformer】AdaViT: Adaptive Tokens for Efficient Vision Transformer
![[semantic segmentation] full attention network for semantic segmentation](/img/5b/e5143701d60bc16a1ec620b03edbb3.png)
[semantic segmentation] full attention network for semantic segmentation

【综述】图像分类网络

迁移学习——Robust Visual Domain Adaptation with Low-Rank Reconstruction

深入理解MMAP原理,让大厂都爱不释手的技术

Transformer回顾+理解
随机推荐
【语义分割】SETR_Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformer
【语义分割】语义分割综述
[convolution kernel design] scaling up your kernels to 31x31: revising large kernel design in CNN
【目标检测】Generalized Focal Loss V1
Ribbon学习笔记二
微信小程序源码获取(附工具的下载)
虚假新闻检测论文阅读(五):A Semi-supervised Learning Method for Fake News Detection in Social Media
【Clustrmaps】访客统计
GAN:生成对抗网络 Generative Adversarial Networks
引入Spacy模块出错—OSError: [E941] Can‘t find model ‘en‘.
并发编程学习笔记 之 工具类Semaphore(信号量)
【Attention】Visual Attention Network
Flutter 绘制技巧探索:一起画箭头(技巧拓展)
Exploration of flutter drawing skills: draw arrows together (skill development)
Detailed explanation of atomic operation class atomicinteger in learning notes of concurrent programming
[competition website] collect machine learning / deep learning competition website (continuously updated)
【目标检测】KL-Loss:Bounding Box Regression with Uncertainty for Accurate Object Detection
迁移学习—— Transfer Feature Learning with Joint Distribution Adaptation
[database] database course design - vaccination database
A preliminary study on fastjason's autotype