How Can Database Change Notifications Not Created With PL/SQL Be Removed?

(Doc ID 971412.1)

Last updated on JULY 05, 2017

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 10.2 to 11.2]
Oracle Data Provider for .NET - Version to [Release 10.2 to 11.2]
Information in this document applies to any platform.
***Checked for relevance on 14th Dec 2016***


You have an application that creates database change notifications via the OCI API or a higher level API that exposes this functionality such as ODP.Net.  It does not create the notifications via PL/SQL, either through a stored procedure or PL/SQL block.

This application exits without cleaning up those notifications, typically via a fatal error as any controlled shutdown should remove any notifications.  Or it may be that the application is still in development and the code to remove the notifications has a bug, or hasn't been added yet.

This leaves orphaned notifications in the database, which cannot be removed because they can only be removed within the same session in which they were created.  Neither can they be removed with the PL/SQL function DBMS_CQ_NOTIFICATION.DEREGISTER(); this throws the error:

ORA-29970: Specified registration id does not exist.


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