简体   繁体   English

Teradata 中的变更数据捕获

[英]Change Data Capture in Teradata

I want to capture INSERT, UPDATE, DELETE activities that are applied to a Teradata table;我想捕获应用于 Teradata 表的 INSERT、UPDATE、DELETE 活动; Something similar to how it works in SQL Server.类似于它在 SQL 服务器中的工作方式。

I went through the Teradata docs and it seems it does not have built-in support for this feature.我浏览了 Teradata 文档,似乎它没有对这个功能的内置支持。

Can someone help me here?有人可以在这里帮助我吗?

Your research is correct.你的研究是正确的。 Unlike some other databases, Teradata does not externalize a transaction log (that might be mined for change data capture).与其他一些数据库不同,Teradata 不会外部化事务日志(可能会被挖掘以捕获变更数据)。

You may be able to define triggers to capture change activity and log it to another table or tables.您可以定义触发器来捕获更改活动并将其记录到另一个或多个表中。

As Fred said, there is intentionally no CDC on Teradata RDBMS.正如 Fred 所说,Teradata RDBMS 上故意没有 CDC。 Depending on what you want to achieve, TEMPORAL with TRANSACTION TIME will be the solution.根据您想要实现的目标,带有 TRANSACTION TIME 的 TEMPORAL 将是解决方案。 With this you can answer the question about all DML between two dates or since a specific date (as well Timestamp).有了这个,您可以回答有关两个日期之间或自特定日期(以及时间戳)以来的所有 DML 的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM