惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

有赞技术团队
有赞技术团队
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
P
Palo Alto Networks Blog
C
Cisco Blogs
The Hacker News
The Hacker News
T
Threatpost
S
Schneier on Security
K
Kaspersky official blog
Spread Privacy
Spread Privacy
博客园_首页
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
NISL@THU
NISL@THU
量子位
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Google DeepMind News
Google DeepMind News
Security Latest
Security Latest
博客园 - 司徒正美
云风的 BLOG
云风的 BLOG
博客园 - 叶小钗
H
Hackread – Cybersecurity News, Data Breaches, AI and More
N
News and Events Feed by Topic
爱范儿
爱范儿
P
Proofpoint News Feed
C
CERT Recently Published Vulnerability Notes
Project Zero
Project Zero
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Cisco Talos Blog
Cisco Talos Blog
GbyAI
GbyAI
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Apple Machine Learning Research
Apple Machine Learning Research
T
Tenable Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
V
Vulnerabilities – Threatpost
Forbes - Security
Forbes - Security
博客园 - 三生石上(FineUI控件)
C
Cyber Attacks, Cyber Crime and Cyber Security
N
News and Events Feed by Topic
V
V2EX
Webroot Blog
Webroot Blog
The Register - Security
The Register - Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
阮一峰的网络日志
阮一峰的网络日志
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Blog — PlanetScale
Blog — PlanetScale
M
MIT News - Artificial intelligence
Scott Helme
Scott Helme
Simon Willison's Weblog
Simon Willison's Weblog
L
LangChain Blog
W
WeLiveSecurity
Cloudbric
Cloudbric

博客园 - margiex

OGG的一些常用网址 ogg初始化抽取的快速配置方法一: 将存量数据落地为标准trail 利用GoldenGate 21实现mysql8远程DDL同步 GoldenGate 21c发布 OGG配置文件中参数化的运用 GoldenGate基于中间队列文件的初始化 一次linux中毒,挖矿病毒 goldengate新版本中查看日志读取点 GoldenGate在MySQL 集群中的应用 Oracle GoldenGate现在支持从 PostgreSQL 捕获数据 GoldenGate 2020.7 发布新特性 - 19.1.0.0.200714 GoldenGate如何修改抽取进程的读取点? 使用AutoHotKey提升工作效率 InnoDB和NDB,MySQL群集和InnoDB群集之间有什么区别? GoldenGate 19.1实时文本文件加载攻略 windows 10 excel 打开超连接提示 组织策略阻止... 验证ogg同步数据库表无主键表且目标表包含隐藏字段 配置ogg从Oracle到PostgreSQL的同步复制json数据 pi
ogg同步Oracle数据库用户验证
margiex · 2020-11-27 · via 博客园 - margiex

近期碰上一个需求,希望能同步Oracle 数据库的用户,而不仅是数据库表里的业务用户,因为有的应用与DB用户名有关。


经测试,使用如下配置参数,可实现表数据同步及DB用户的同步。
ddl include mapped include objtype user include optype grant
ddloptions report
exttrail ./dirdat/e1
table scott.*;


上述参数除了同步表的数据,也可以同步新建的用户、alter, grant, revoke等操作的同步。
即如果A库的用户有新增,则可以在同步的B库上使用新增用户登录,如果有修改密码或授权等操作,在B库上也可以实现完整的复制。
如果有其它操作或对象(如存储过程或触发器等)需要同步,也可以在ddl 语句中进行配置,详细参数可参考官方文档。

以下是本测试中的日志:

2020-11-27 12:25:55  INFO    OGG-00487  DDL operation included [include optype grant], optype [GRANT], objtype [ROLE PRIVILEGE], objowner "", objname "".
2020-11-27 12:25:56  INFO    OGG-00497  Writing DDL operation to extract trail file.
2020-11-27 12:26:01  INFO    OGG-01021  Command received from GGSCI: STATS   total.
2020-11-27 12:26:21  INFO    OGG-01487  DDL found, operation [revoke dba from u1 (size 18)], start SCN [3399312], commit SCN [3399319] instance [ (1)], DDL seqno [0], marker seqno [0].
2020-11-27 12:26:21  INFO    OGG-00488  DDL operation excluded [not included by any filter], optype [REVOKE], objtype [ROLE PRIVILEGE], objowner "", objname "".
2020-11-27 12:26:23  INFO    OGG-01021  Command received from GGSCI: STATS   total.
2020-11-27 12:27:00  INFO    OGG-01487  DDL found, operation [alter user u1 account lock (size 26)],