Apparatus and method for replicating changed-data in source database management system to target database management system in real time
First Claim
1. A method of replicating changed-data in a source database management system to a target database management system in real time, the method comprising:
- (a) confirming an existence of a synchronization target log in a source server when log file synchronization is preliminarily prepared;
(b) performing synchronization error processing when the synchronization target log is not found in the source server in step (a), or establishing a synchronization network connection between the source server and a target server through a log synchronization process when the synchronization target log exists in the source server;
(c) transmitting changed-data of a redo log file and an archive log file in a log file format from the source server to the target server;
(d) generating a synchronization network error event through network monitoring when the synchronization network connection to the target server is not established in a state that log replication is preliminarily prepared;
(e) performing the log synchronization process when the synchronization network connection to the target server is established;
(f) when the log synchronization process is normally performed in step (e), analyzing a log synchronization type in the target server and receiving the changed-data to synchronize the changed-data through a replication process when the log synchronization type is a log synchronization file; and
(g) receiving entire changed-data and storing the entire changed-data in a memory when the log synchronization type analyzed in the target server is not the log synchronization file,wherein step (a) comprises;
(a1) setting a real application cluster (RAC) node for an Oracle replication target;
(a2) checking completion of the preliminary preparation for the replication;
(a3) creating a log replication list management table and executing synchronization for entire redo logs when the preliminary preparation for the replication is not completed;
(a4) checking a recovery time-point after the preliminary preparation for the replication is completed or after the synchronization for the entire redo logs is executed; and
(a5) setting a current time-point log file synchronization mode when it is not the recovery time-point, or setting a past time-point log file synchronization mode when the recovery time-point is confirmed, as a result of checking the recovery time-point.
1 Assignment
0 Petitions
Accused Products
Abstract
Provided are an apparatus and a method for replicating changed-data in a source database management system to a target database management system in real time, for minimizing the load on the source DBMS system, reducing costs for DBMS hardware configuration, and facilitating operation and failure recovery. The source server transmits the changed-data from a redo log file or an archive log file in a source DBMS area to a target server in real time, and the target server receives the changed-data transmitted from the source server to temporarily store the changed-data in a local area, and extracts the change data stored in the local area to replicate the extracted changed-data to the target DBMS, thereby implementing the apparatus for replicating the changed-data in the source database management system to the target database management system in real time.
3 Citations
6 Claims
-
1. A method of replicating changed-data in a source database management system to a target database management system in real time, the method comprising:
-
(a) confirming an existence of a synchronization target log in a source server when log file synchronization is preliminarily prepared; (b) performing synchronization error processing when the synchronization target log is not found in the source server in step (a), or establishing a synchronization network connection between the source server and a target server through a log synchronization process when the synchronization target log exists in the source server; (c) transmitting changed-data of a redo log file and an archive log file in a log file format from the source server to the target server; (d) generating a synchronization network error event through network monitoring when the synchronization network connection to the target server is not established in a state that log replication is preliminarily prepared; (e) performing the log synchronization process when the synchronization network connection to the target server is established; (f) when the log synchronization process is normally performed in step (e), analyzing a log synchronization type in the target server and receiving the changed-data to synchronize the changed-data through a replication process when the log synchronization type is a log synchronization file; and (g) receiving entire changed-data and storing the entire changed-data in a memory when the log synchronization type analyzed in the target server is not the log synchronization file, wherein step (a) comprises; (a1) setting a real application cluster (RAC) node for an Oracle replication target; (a2) checking completion of the preliminary preparation for the replication; (a3) creating a log replication list management table and executing synchronization for entire redo logs when the preliminary preparation for the replication is not completed; (a4) checking a recovery time-point after the preliminary preparation for the replication is completed or after the synchronization for the entire redo logs is executed; and (a5) setting a current time-point log file synchronization mode when it is not the recovery time-point, or setting a past time-point log file synchronization mode when the recovery time-point is confirmed, as a result of checking the recovery time-point. - View Dependent Claims (2, 3)
-
-
4. A method of replicating changed-data in a source database management system to a target database management system in real time, the method comprising:
-
(a) confirming an existence of a synchronization target log in a source server when log file synchronization is preliminarily prepared; (b) performing synchronization error processing when the synchronization target log is not found in the source server in step (a), or establishing a synchronization network connection between the source server and a target server through a log synchronization process when the synchronization target log exists in the source server; (c) transmitting changed-data of a redo log file and an archive log file in a log file format from the source server to the target server; (d) generating a synchronization network error event through network monitoring when the synchronization network connection to the target server is not established in a state that log replication is preliminarily prepared; (e) performing the log synchronization process when the synchronization network connection to the target server is established; (f) when the log synchronization process is normally performed in step (e), analyzing a log synchronization type in the target server and receiving the changed-data to synchronize the changed-data through a replication process when the log synchronization type is a log synchronization file; and (g) receiving entire changed-data and storing the entire changed-data in a memory when the log synchronization type analyzed in the target server is not the log synchronization file, wherein step (b) comprises; (b1) confirming whether the synchronization target log is found; (b2) transmitting confidential reporting system (CRS) control monitoring data to the target server and checking a status of the synchronization network when the synchronization target log is not found; (b3) going to step (b1) when a synchronization error does not occur, as a result of checking the status of the synchronization network, or confirming whether there is a retry when the synchronization error occurs, as a result of checking the status of the synchronization network; (b4) reporting the error when there is no retry in step (b3) and finishing the log synchronization, or resetting a synchronization time-point when the retry occurs and going to step (b1); and (b5) entering a log synchronization mode to create a synchronization thread, analyzing the synchronization log type, and executing the synchronization network connection when the synchronization target log is found.
-
-
5. A method of replicating changed-data in a source database management system to a target database management system in real time, the method comprising:
-
(a) confirming an existence of a synchronization target log in a source server when log file synchronization is preliminarily prepared; (b) performing synchronization error processing when the synchronization target log is not found in the source server in step (a), or establishing a synchronization network connection between the source server and a target server through a log synchronization process when the synchronization target log exists in the source server; (c) transmitting changed-data of a redo log file and an archive log file in a log file format from the source server to the target server; (d) generating a synchronization network error event through network monitoring when the synchronization network connection to the target server is not established in a state that log replication is preliminarily prepared; (e) performing the log synchronization process when the synchronization network connection to the target server is established; (f) when the log synchronization process is normally performed in step (e), analyzing a log synchronization type in the target server and receiving the changed-data to synchronize the changed-data through a replication process when the log synchronization type is a log synchronization file; and (g) receiving entire changed-data and storing the entire changed-data in a memory when the log synchronization type analyzed in the target server is not the log synchronization file, wherein step (c) comprises; (c1) confirming whether a log file to be transmitted to the target server is the redo log file; (c2) confirming existence of a changed-data block when the log file to be transmitted to the target server is the redo log file, and transmitting the changed-data block to the target server when the changed-data block exists; (c3) transmitting an event of archive log generation when the transmission of the redo log file is completed; (c4) analyzing an archive log to measure and transmit a changed archive log data block when the log file transmitted to the target server is not the redo log file; (c5) completing the archive log generation after the archive log data block is transmitted; and (c6) after the redo log file and the archive log file are transmitted from the target server, generating an error event when a response message is not received, or generating a success event and finishing the log synchronization when the response message is received.
-
-
6. A method of replicating changed-data in a source database management system to a target database management system in real time, the method comprising:
-
(a) confirming an existence of a synchronization target log in a source server when log file synchronization is preliminarily prepared; (b) performing synchronization error processing when the synchronization target log is not found in the source server in step (a), or establishing a synchronization network connection between the source server and a target server through a log synchronization process when the synchronization target log exists in the source server; (c) transmitting changed-data of a redo log file and an archive log file in a log file format from the source server to the target server; (d) generating a synchronization network error event through network monitoring when the synchronization network connection to the target server is not established in a state that log replication is preliminarily prepared; (e) performing the log synchronization process when the synchronization network connection to the target server is established; (f) when the log synchronization process is normally performed in step (e), analyzing a log synchronization type in the target server and receiving the changed-data to synchronize the changed-data through a replication process when the log synchronization type is a log synchronization file; and (g) receiving entire changed-data and storing the entire changed-data in a memory when the log synchronization type analyzed in the target server is not the log synchronization file, wherein step (d) comprises; (d1) checking a state of preliminary preparation for log synchronization, creating a log replication repository when the preliminary preparation is not completed, checking whether a redo replication initially occurs, and generating a server socket when the redo replication initially occurs; (d2) checking a state of establishing the synchronization network connection, transmitting monitoring data to the source server when the synchronization network connection is not established; and (d3) receiving a response state of the source server, and going to step (d2) when the response state is not an error state, or generating an error event and finishing the log synchronization when the response state is an error state.
-
Specification