Reputation: 328608
I need to run a method in Java every time a specific table of an Oracle DB is updated (any sorts of updates, including record additions, deletions and modifications).
What is the most efficient way do "poll" a table for changes from Java that has good performance and does not put too much pressure on the DB?
Unfortunately I have many constraints:
Upvotes: 5
Views: 5288
Reputation: 4653
Starting from oracle 11g you can use Oracle Change Notification with plain JDBC driver Link
Upvotes: 5