Systems and methods for database notification interface to efficiently identify events and changed data
First Claim
1. A method for managing a change notification of a table in a database, the method comprising:
- (a) receiving, by a database manager executing on a device, a request to register an application to be notified when a first table of a plurality of tables in a database is changed, the request comprising a schema name, a table name, a notification type and an application bit as input;
(b) establishing, by the database manager, a notification table comprising copies of fields included in one or more entries of the first table and one or more additional fields for managing a notification, an additional field of the one or more additional fields comprising a bit-mask identifying one or more applications registered for notification of one or more tables, the notification table further comprising an update identifier including information corresponding to a particular update event corresponding to an update made to at least one entry of the first table and a transaction sequence field including a sequence of bits to record a sequence of update events occurring in a single transaction that caused the update made to at least one entry of the first table;
(c) establishing, by the database manager, a trigger on the first table to invoke a trigger procedure to copy a changed row of the first table to the notification table; and
(d) creating, by the database manager, a rule to notify the registered application when a new row is inserted into the notification table.
7 Assignments
0 Petitions
Accused Products
Abstract
Systems and methods for providing notifications of changes made in a database table to a remote application is presented. The system and methods manage change notification of a table in a database by notifying an application registered to receive notifications of changes made to a database table. A database manager executing on a device may receive a request to register an application to be notified when a first table of a plurality of tables in a database is changed. The database manager may establish a notification table comprising fields of the first table and one or more additional fields for managing notification. The database manager may establish a trigger on the first table to invoke a trigger procedure to copy a changed row of the first table to the notification table. The database manager may create a rule for the notification table to notify registered applications when a new row is inserted into the notification table.
72 Citations
18 Claims
-
1. A method for managing a change notification of a table in a database, the method comprising:
-
(a) receiving, by a database manager executing on a device, a request to register an application to be notified when a first table of a plurality of tables in a database is changed, the request comprising a schema name, a table name, a notification type and an application bit as input; (b) establishing, by the database manager, a notification table comprising copies of fields included in one or more entries of the first table and one or more additional fields for managing a notification, an additional field of the one or more additional fields comprising a bit-mask identifying one or more applications registered for notification of one or more tables, the notification table further comprising an update identifier including information corresponding to a particular update event corresponding to an update made to at least one entry of the first table and a transaction sequence field including a sequence of bits to record a sequence of update events occurring in a single transaction that caused the update made to at least one entry of the first table; (c) establishing, by the database manager, a trigger on the first table to invoke a trigger procedure to copy a changed row of the first table to the notification table; and (d) creating, by the database manager, a rule to notify the registered application when a new row is inserted into the notification table. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A system for managing a change notification of a table in a database, the system comprising:
-
a database manager executing on a device including one or more hardware processors, the database manager managing a plurality of tables in a database; an application registrar receives a request to register an application to be notified when a first table of the plurality of tables is changed, wherein the request comprises a schema name, a table name, a notification type and an application bit as input; a notifier establishes a notification table comprising copies of fields included in one or more entries of the first table and one or more additional fields for managing a notification, an additional field of the one or more additional fields comprising a bit-mask identifying one or more applications registered for notification of one or more tables, the notification table further comprising an update identifier including information corresponding to a particular update event corresponding to an update made to at least one entry of the first table and a transaction sequence field including a sequence of bits to record a sequence of update events occurring in a single transaction that caused the update made to at least one entry of the first table, and wherein the database manager establishes a trigger on the first table to invoke a trigger procedure to copy a changed row of the first table to the notification table and creates a rule for the notifier to notify the registered application when a new row is inserted into the notification table. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
-
Specification