基于 Oracle JDBC 数据库更改通知更新表
Updating tables based on Oracle JDBC Database Change Notification
如何获取更新行的更改通知,例如行 data/row 描述。我能够获取已更新的行 ID。
我需要根据更新 Table1 后作为通知收到的行 ID 将 Table1 与 Table2 同步。我在几个网站上阅读过有关通知的信息,但找不到有关如何根据通知更新 table 的任何信息。请帮忙!!
下面是我在Oracle上找到的一些帮助信息website:
Applications in the middle tier require rapid access to cached copies
of database objects while keeping the cache as current as possible in
relation to the database. Cached data becomes out of date or "stale"
when a transaction modifies the data and commits, thereby putting the
application at risk of accessing incorrect results. If the application
uses Database Change Notification, then Oracle Database can publish a
notification when a change occurs to registered objects with details
on what changed.
In response to the notification, the application can refresh cached
data by fetching it from the back-end database.
查看 Application Developer's Guide you cited 我注意到 "Developing Applications with Database Change Notification" 下的第六段指出:
The notification contains only metadata about the changed rows or objects rather than the changed data itself.
所以似乎没有办法让 Oracle 告诉您 FIELD_X
或 DESCRIPTION
或任何更改。一旦收到更改通知,告诉您 table 和 ROWID,您需要出去获取已更改的数据(如果合适),并更新缓存的副本。
您的里程可能会有所不同。
分享和享受。
如何获取更新行的更改通知,例如行 data/row 描述。我能够获取已更新的行 ID。
我需要根据更新 Table1 后作为通知收到的行 ID 将 Table1 与 Table2 同步。我在几个网站上阅读过有关通知的信息,但找不到有关如何根据通知更新 table 的任何信息。请帮忙!!
下面是我在Oracle上找到的一些帮助信息website:
Applications in the middle tier require rapid access to cached copies of database objects while keeping the cache as current as possible in relation to the database. Cached data becomes out of date or "stale" when a transaction modifies the data and commits, thereby putting the application at risk of accessing incorrect results. If the application uses Database Change Notification, then Oracle Database can publish a notification when a change occurs to registered objects with details on what changed.
In response to the notification, the application can refresh cached data by fetching it from the back-end database.
查看 Application Developer's Guide you cited 我注意到 "Developing Applications with Database Change Notification" 下的第六段指出:
The notification contains only metadata about the changed rows or objects rather than the changed data itself.
所以似乎没有办法让 Oracle 告诉您 FIELD_X
或 DESCRIPTION
或任何更改。一旦收到更改通知,告诉您 table 和 ROWID,您需要出去获取已更改的数据(如果合适),并更新缓存的副本。
您的里程可能会有所不同。
分享和享受。