Patent ID: 7529783

Claim:
A log-shipping data replication method, comprising: embedding a Last in Flush (LIF) in a first log data and a Last Written Log Page LWLP in a heartbeat message, wherein the LIF and the LWFP indicate that the first log data is flushed from a database log buffer to a database log disk at the primary server; concurrently flushing the first log data from the database log buffer to the database log disk at a primary server and transmitting the first log data from the primary server to a standby server coupled to the primary server; transmitting the heartbeat message to the standby server; receiving the first log data in a standby server database log buffer; setting a Last Written Log Page Position (LWLPP) and a Last-In-Flush-Log-Position (LIFLP) to a start of the first log data in the standby server database log buffer; finding the LIF in the first log data in the standby server database log buffer; setting the LIFLP to the LIF in the standby server database log buffer; receiving the heartbeat message at the standby server; replaying the first log data indicated by the LWLLP and the LIFLP at the standby server database log buffer; and flushing the first log data indicated by the LWLLP and the LIFLP to a standby server database disk.