ETL:使用物化视图日志跟踪数据更改
我正在设计 ETL,源数据库和目标数据库为 oracle 标准版。 出于 ETL 目的,我需要每次都获取更改的数据。客户端不希望在源对象中进行任何更改。 使用 dblink 在源数据库上创建物化视图日志来跟踪已识别表上的插入/更新/删除是否可行。 感谢和问候
I am into designing ETL with source and target database as oracle Standard Edition.
For ETL purpose I need to get the changed data everytime.Client does not want any changes to be made in source objects.
Is it feasible to create Materialized view log on source database using dblink to track Inser/Update/Delete on the identified tables.
Thanks and Regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不这么认为——必须在与源对象相同的数据库中创建物化视图日志。如果数据库链接不可用,您的物化视图日志将不完整或不准确,或者更糟糕的是,将阻止针对源表的 DML。
我建议改为:
接受 FULL 与
快速刷新物化视图;或
实现基于流的复制
拥有您自己的相关表格的副本,
然后您可以根据其实施物化视图日志。
I do not believe so -- a materialized view log must be created in the same database as the source object. If the database link were unavailable, your materialized view log would then be incomplete or inaccurate, or worse yet, would be blocking DML against the source table.
I'd recommend instead either:
Accepting the overhead of a FULL vs
FAST refreshable materialized view; or
Implementing Streams-based replication
to have your own copy of the table(s) in question,
against which you then implement materialized view logs.