当前位置:网站首页>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;
边栏推荐
- Reporting service 2016 custom authentication
- Detailed explanation of MySQL statistical function count
- Windos下安装pyspider报错:Please specify --curl-dir=/path/to/built/libcurl解决办法
- 研究生新生培训第二周:卷积神经网络基础
- Exploration of flutter drawing skills: draw arrows together (skill development)
- mysql在查询字符串类型的时候带单引号和不带的区别和原因
- mysql 的show profiles 使用。
- 迁移学习——Transitive Transfer Learning
- Semaphore (semaphore) for learning notes of concurrent programming
- 迁移学习——Robust Visual Domain Adaptation with Low-Rank Reconstruction
猜你喜欢

【Transformer】AdaViT: Adaptive Vision Transformers for Efficient Image Recognition

yum本地源制作

迁移学习—— Transfer Feature Learning with Joint Distribution Adaptation

【Attention】Visual Attention Network

The third week of postgraduate freshman training: resnet+resnext

【Transformer】ACMix:On the Integration of Self-Attention and Convolution

nacos外置数据库的配置与使用
![[target detection] KL loss: bounding box progression with uncertainty for accurate object detection](/img/8c/1a561fab040730ae29901a04b70ac4.png)
[target detection] KL loss: bounding box progression with uncertainty for accurate object detection

迁移学习——Transfer Joint Matching for Unsupervised Domain Adaptation

These process knowledge you must know
随机推荐
【CV】请问卷积核(滤波器)3*3、5*5、7*7、11*11 都是具体什么数?
Realize the scheduled backup of MySQL database in Linux environment through simple script (mysqldump command backup)
【Attention】Visual Attention Network
并发编程学习笔记 之 工具类Semaphore(信号量)
迁移学习——Robust Visual Domain Adaptation with Low-Rank Reconstruction
【Clustrmaps】访客统计
nacos外置数据库的配置与使用
Isaccessible() method: use reflection techniques to improve your performance several times
【目标检测】Generalized Focal Loss V1
NLP领域的AM模型
并发编程学习笔记 之 原子操作类AtomicReference、AtomicStampedReference详解
Nifi changed UTC time to CST time
神经网络相关知识回顾(PyTorch篇)
Personal learning website
Spring, summer, autumn and winter with Miss Zhang (4)
Semaphore (semaphore) for learning notes of concurrent programming
Are you sure you know the interaction problem of activity?
Analysis on the principle of flow
clion+opencv+aruco+cmake配置
虚假新闻检测论文阅读(一):Fake News Detection using Semi-Supervised Graph Convolutional Network