An Example On How to Use Database Change Notification in the 11g JDBC Driver (Doc ID 454958.1)

Last updated on AUGUST 03, 2016

Applies to:

JDBC - Version 11.1.0.6 and later
Information in this document applies to any platform.
***Checked for relevance on 29-Mar-2013***

Goal

With the introduction of the 11g JDBC driver it now has a new features which supports changes made at the database level to be sent to the JDBC client program. The 11g release 1 (11.1) Oracle JDBC drivers provide support for the Database Change Notification feature of Oracle Database. Using this functionality of the JDBC drivers, multi-tier systems can take advantage of the Database Change Notification feature to maintain a data cache as updated as possible by receiving invalidation events from the JDBC drivers.

The example below is using table registration for it's notification.

This feature works against a 11g database and a 10g release 2 database, other earlier versions of the database cannot be used.

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms