# US 2017/0255529 A1 · Smart data replication recoverer

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0255529 A1
- Document ID: US20170255529A1
- Status: Published application
- Kind: A1
- Application number: 15/582,976
- Filed: 2017-05-01
- Published: 2017-09-07
- Earliest claimed: 2016-03-02
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Pravin K. Kedia; Nirmal Kumar
- Web page: https://patentgrep.com/patent/US20170255529A1

## CPC

- G06F 11/1474: in transactions (updating of structured data in databases G06F16/23)
- G06F 11/1451: {by selection of backup contents}
- G06F 11/1464: {for networked environments}
- G06F 11/1469: {Backup restoration techniques}
- G06F 11/1471: involving logging of persistent data for recovery
- G06F 11/2094: {Redundant storage or storage space (G06F11/2056 takes precedence)}
- G06F 11/2097: {maintaining the standby controller/processing unit updated (initialisation or re-synchronisation thereof G06F11/1658 and subgroups)}
- G06F 16/2379: {Updates performed during online database operations; commit processing}
- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F 16/9562: {Bookmark management}
- G06F 2201/80: Database-specific techniques
- G06F 2201/84: Using snapshots, i.e. a logical point-in-time copy of the data
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A processor-implemented method for selective data replication recovery in a heterogeneous environment is provided, including a source agent, a target agent, and data replication recoverer (DRR) agent. The method includes receiving, by a DRR agent, one or more committed transaction records from a source agent, which is configured to receive the one or more committed transaction records from a source database. The DRR agent creates data and metadata records from the received one or more committed transaction records, and saves the data and the metadata records in a data replication repository. In response to receiving a request to recover a target database, the DRR agent selectively recovers target database using either one or more individual transactions or a bookmark.

## Claims

### Claim 1

A processor-implemented method for data replication recovery in a heterogeneous environment comprising:
receiving, by a data replication recoverer (DRR) agent, one or more committed transaction records from a source agent, wherein the source agent is configured to receive the one or more committed transaction records from a source database;
creating, by the DRR agent, data and metadata records from the received one or more committed transaction records, and saving the data and the metadata records in a data replication repository; and
in response to receiving a request to recover a target database, selectively recovering, by the DRR agent, the target database wherein the target database is recovered using either one or more individual transactions or a bookmark.

### Claim 2 (depends on 1)

The method of claim 1, wherein the source database differs from at least one of the one or more target databases in architecture, wherein the architecture includes relational and non-relational.

### Claim 3 (depends on 1)

The method of claim 1, wherein the bookmark records a stable save point in the metadata, and wherein the bookmark comprises a first log position corresponding to a last committed transaction on the target database, a second log position corresponding to an earliest open transaction on the source database, and a third log position corresponding to a last applied transaction on the target database.

### Claim 4 (depends on 1)

The method of claim 1, wherein each of the one or more target databases is associated with one dedicated data repository.

### Claim 5 (depends on 1)

The method of claim 1, wherein the metadata comprises a transaction identifier, a timestamp associated with a transaction, transaction statistics wherein the transaction statistics include a number of operations performed on the source database, and a number of rows processed on the source database.

### Claim 6 (depends on 1)

The method of claim 1, wherein selectively recovering the target database further comprises:
locating the selected bookmark within the data replication repository associated with the target database;
locating an earliest log position entry recorded in the bookmark and a last log position entry recorded in the bookmark in the metadata within the data replication repository associated with the target database;
creating a plurality of database operations to reverse the transactions recorded within the earliest log position entry and the last log position entry in the selected bookmark;
sending, by the DRR agent, the plurality of created database operations to a target agent on the target database, wherein the target agent executes the plurality of created database operations on the target database;
based on the created database operations completing on the target database, notifying the DRR agent, by the target agent; and
in response to receiving the notification, the DRR agent marking the data and metadata in the data replication repository as being recovered.

### Claim 7 (depends on 1)

The method of claim 1, wherein the data replication repository includes the metadata, the data records created from the received one or more transaction records, and the bookmark.
