Oracle ora_rowscn 获取增量
Oracle ora_rowscn to get delta
ora_rowscn
作为 oracle 的定义,
You cannot use this pseudocolumn in a query to a view
所以我可以在我的 ETL 作业中使用 ora_rowscn 列从 oracle table 获取增量和更新数据吗?
不幸的是,即使您使用 ROWDEPENDENCIES,您也很难依赖 SCN - 用于复制目的。在某些情况下,SCN 可能会更改或在 COMMIT 时生成。
ORA_ROWSCN伪列
For each row, ORA_ROWSCN returns the conservative upper bound system
change number (SCN) of the most recent change to the row. This
pseudocolumn is useful for determining approximately when a row was
last updated. It is not absolutely precise, because Oracle tracks SCNs
by transaction committed for the block in which the row resides.
搜索 "delayed block clean out"
ora_rowscn
作为 oracle 的定义,
You cannot use this pseudocolumn in a query to a view
所以我可以在我的 ETL 作业中使用 ora_rowscn 列从 oracle table 获取增量和更新数据吗?
不幸的是,即使您使用 ROWDEPENDENCIES,您也很难依赖 SCN - 用于复制目的。在某些情况下,SCN 可能会更改或在 COMMIT 时生成。
ORA_ROWSCN伪列
For each row, ORA_ROWSCN returns the conservative upper bound system change number (SCN) of the most recent change to the row. This pseudocolumn is useful for determining approximately when a row was last updated. It is not absolutely precise, because Oracle tracks SCNs by transaction committed for the block in which the row resides.
搜索 "delayed block clean out"