×

Database replication across different database platforms

  • US 7,702,698 B1
  • Filed: 03/01/2005
  • Issued: 04/20/2010
  • Est. Priority Date: 03/01/2005
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method of replicating updates made to a first database in a second database, the method comprising:

  • reading a generated log of the updates, from a first position to a second position, related to the first database, wherein the log of the updates is a binary log and the first database is associated with a mysqlbinlog utility, wherein the mysqlbinlog utility is used to read the log of the updates;

    parsing the log of the updates into a file comprising Structure Query Language (SQL) statements;

    storing metadata related to the file comprising the SQL statements in a third database, wherein the metadata includes a processing status of the file and a file name associated with the file, wherein the first database is different from the third database;

    transforming the file comprising the SQL statements into a SQL loader format of the second database, based in part upon the stored metadata in the third database, wherein the stored metadata is updated according to the processing status of the file;

    processing the transformed file as an input to the second database to make at least one update to the second database; and

    reading the generated log of the updates, from a third position to a fourth position, related to the first database, for transforming the log of the updates as input to the second database, wherein information included in the log of the updates between the third position and the fourth position was generated after information included in the log of the updates between the first position and the second position, and information included between the third position and the fourth position is for updating at least one update of the second database, wherein the updates recorded in the binary log having log positions that are greater than stored log position are parsed into the SQL statements;

    waiting a predetermined amount of time to repeat the transforming of the file and the processing of the transformed file for updating, wherein multiple files each comprising SQL statements are generated and tracked using the third database, wherein the third database is controlled by a third server, wherein the first database is controlled by a first server and the second database is controlled by a second server, and wherein the log of the updates is stored in a local memory of the first server and the transformed file is stored in a local memory of the second server, wherein the transforming of the file includes a transformation of data stored as dates and a transformation of table names.

View all claims
  • 9 Assignments
Timeline View
Assignment View
    ×
    ×