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

推荐订阅源

S
Securelist
C
Cybersecurity and Infrastructure Security Agency CISA
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
Security Affairs
Hacker News: Ask HN
Hacker News: Ask HN
L
Lohrmann on Cybersecurity
PCI Perspectives
PCI Perspectives
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Cyber Attacks, Cyber Crime and Cyber Security
Recent Commits to openclaw:main
Recent Commits to openclaw:main
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
MyScale Blog
MyScale Blog
月光博客
月光博客
W
WeLiveSecurity
T
Threat Research - Cisco Blogs
Martin Fowler
Martin Fowler
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Recorded Future
Recorded Future
The GitHub Blog
The GitHub Blog
Webroot Blog
Webroot Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
TaoSecurity Blog
TaoSecurity Blog
P
Proofpoint News Feed
Google DeepMind News
Google DeepMind News
F
Full Disclosure
U
Unit 42
Jina AI
Jina AI
博客园 - 司徒正美
阮一峰的网络日志
阮一峰的网络日志
L
LINUX DO - 最新话题
宝玉的分享
宝玉的分享
大猫的无限游戏
大猫的无限游戏
The Hacker News
The Hacker News
The Last Watchdog
The Last Watchdog
T
Troy Hunt's Blog
腾讯CDC
T
Threatpost
H
Hacker News: Front Page
P
Palo Alto Networks Blog
博客园 - 聂微东
Last Week in AI
Last Week in AI
有赞技术团队
有赞技术团队
Help Net Security
Help Net Security
L
LINUX DO - 热门话题
N
News and Events Feed by Topic
人人都是产品经理
人人都是产品经理
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Spread Privacy
Spread Privacy

博客园 - 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)],