IP Library Granted Patent US 11,422,970
Granted Patent B2
US 11,422,970 · App. 16/871,242 · Granted Aug 23, 2022

Handling of data archiving events in a replication system

Inventors: Michael Haberkorn (Bad Schoenborn, DE); Peter Haehner (Wiesloch, DE)
Assignee: SAP SE
G06F16/113G06F16/2379G06F16/273G06Q10/10
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,422,970
App. No.
16/871,242
Filed
May 11, 2020
Granted
Aug 23, 2022
Kind
B2
Art Unit
2153
USPC
707/615
Abstract

Systems and methods include detection of deletion of a record of a database table due to a database transaction, creation of a log entry including one or more key field values of the record of the database table, an identifier of a user associated with the database transaction, and an indicator of a delete operation, determination of whether the identifier identifies an archiving user, and, in a case that the identifier identifies an archiving user, change the indicator to an indicator of an archive operation to create a changed log entry.

Claims (54)

1. A system comprising:

a memory storing processor-executable program code;

a processing unit to execute the processor-executable program code to cause the system to:

detect deletion of a record of a database table due to a database transaction;

create a log entry including one or more key field values of the record of the database table, an identifier of a user associated with the database transaction, and an indicator of a delete operation;

store the log entry in a subscriber logging table associated with a subscriber;

reconstruct the record based on the one or more key field values of the log entry;

determine that the log entry includes the indicator of the delete operation;

in response to the determination that the log entry includes the indicator of the delete operation, determine whether archived records are to be deleted in a target system associated with the subscriber; and

if it is determined that archived records are to be deleted in the target system, transmit the reconstructed record and a deletion indicator to the subscriber.

2. A system according to claim 1 , wherein the log entry is stored in a master logging table, the processor-executable process steps further to cause the system to:

determine the user associated with the database transaction.

3. A system according to claim 2 , the processor-executable program code further to cause the system to:

prior to creation of the log entry, determine whether archive operations are to be logged and,

create the log entry if it is determined that archive operations are to be logged.

4. A system according to claim 1 , the processor-executable program code further to cause the system to:

prior to creation of the log entry, determine whether archive operations are to be logged; and

create the log entry if it is determined that archive operations are to be logged.

5. A system according to claim 1 , wherein, in a case that archived records are to be maintained in the target system, the reconstructed record is returned in association with the indicator of an archive operation or update operation.

6. A computer-implemented method comprising:

detecting deletion of a record of a database table due to a database transaction;

creating a log entry including one or more key field values of the record of the database table, an identifier of a user associated with the database transaction, and an indicator of a delete operation;

storing the log entry in a subscriber logging table associated with a subscriber;

reconstructing the record based on the one or more key field values of the log entry;

determining that the log entry includes the indicator of the delete operation;

in response to determining that the log entry includes the indicator of the delete operation, determining whether archived records are to be deleted in a target system associated with the subscriber; and

if it is determined that archived records are to be deleted in the target system, transmitting the reconstructed record and a deletion indicator to the subscriber.

7. A method according to claim 6 , wherein the log entry is stored in a master logging table, the method further comprising:

determining the user associated with the database transaction..

8. A method according to claim 7 , the method further comprising:

prior to creation of the log entry, determining whether archive operations are to be logged and,

creating the log entry if it is determined that archive operations are to be logged.

9. A method according to claim 6 , the method further comprising:

prior to creation of the log entry, determining whether archive operations are to be logged; and

creating the log entry if it is determined that archive operations are to be logged.

10. A method according to claim 6 , wherein, in a case that archived records are to be maintained in the target system, the reconstructed record is returned in association with the indicator of an archive operation or an update operation.

11. A system comprising:

a source database system storing a database table, the source database system to:

detect deletion of a record of the database table due to a database transaction;

create a log entry including one or more key field values of the record of the database table, an identifier of a user associated with the database transaction, and an indicator of a delete operation;

store the log entry in a subscriber logging table associated with a subscriber;

reconstruct the record based on the one or more key field values of the log entry;

determine that the log entry includes the indicator of the delete operation;

in response to the determination that the log entry includes the indicator of the delete operation, determine whether archived records are to be deleted in a target system associated with the subscriber; and

if it is determined that archived records are to be deleted in the target system, transmit the reconstructed record and a deletion indicator to the subscriber.

12. A system according to claim 11 , wherein the log entry is stored in a master logging table, the source database system to:

determine the user associated with the database transaction.

13. A system according to claim 12 , the source database system to:

prior to creation of the log entry, determine whether archive operations are to be logged and,

create the log entry if it is determined that archive operations are to be logged.

14. A system according to claim 11 , the source database system to:

prior to creation of the log entry, determine whether archive operations are to be logged; and

create the log entry if it is determined that archive operations are to be logged.

15. A system according to claim 11 , wherein, in a case that archived records are to be maintained in the target system, the reconstructed record is returned in association with the indicator of an archive operation or update operation.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 11, 2020
From: HABERKORN, MICHAEL; HAEHNER, PETER
To: SAP SE
Reel/Frame 052622/0661 →
Continuity (1)
Related Publication 20210349849A1 · Nov 11, 2021