Statement logging in databases
First Claim
1. A method for replicating a data manipulation language (DML) statement, comprising:
- receiving a DML statement for replication;
associating one or more components of said DML statement with corresponding parameters of a stored procedure;
selectively logging information associated with said DML statement when a number of rows affected by said DML statement in a log record reaches a configurable threshold; and
transmitting said stored procedure to a replication server for execution, said stored procedure including one or more executable parameters, said parameters associated with respective components of said DML statement, said execution of said stored procedure causing replication of said DML statement.
2 Assignments
0 Petitions
Accused Products
Abstract
System, method, computer program product embodiments and combinations and sub-combinations thereof for logging of data manipulation language (DML) statements are described herein. An embodiment includes a database engine, a replication agent and a replication server which replicates data from the database engine to one or more replicate databases. The database engine writes parsed query information into a transaction log so that a process of replication agent may read the parsed query information and forward it to the replication server. The database engine writes all log records associated with a statement in a manner that allows the replication server to distinguish if those log records belong to same statement. In another embodiment, replication agent selectively sends SQL statement information to the replication server based on the replication server architecture.
22 Citations
15 Claims
-
1. A method for replicating a data manipulation language (DML) statement, comprising:
-
receiving a DML statement for replication; associating one or more components of said DML statement with corresponding parameters of a stored procedure; selectively logging information associated with said DML statement when a number of rows affected by said DML statement in a log record reaches a configurable threshold; and transmitting said stored procedure to a replication server for execution, said stored procedure including one or more executable parameters, said parameters associated with respective components of said DML statement, said execution of said stored procedure causing replication of said DML statement. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A system for replicating a data manipulation language (DML) statement, comprising:
-
a first module configured to receive a DML statement for replication; a second module configured to associate one or more components of said DML statement with corresponding parameters of a stored procedure; a third module configured to selectively log information associated with said DML statement when a number of rows affected by said DML statement in a log record reaches a configurable threshold; and a fourth module configured to transmit said stored procedure to a replication server for execution, said stored procedure including one or more executable parameters, said parameters associated with respective components of said DML statement, said execution of said stored procedure causing replication of said DML statement. - View Dependent Claims (7, 8, 9, 10)
-
-
11. A computer program product including a non-transitory computer-readable medium having instructions stored thereon that, when executed by a computing device, cause the computing device to perform operations comprising:
-
receiving a DML statement for replication; associating one or more components of said DML statement with corresponding parameters of a stored procedure; selectively logging information associated with said DML statement when a number of rows affected by said DML statement in a log record reaches a configurable threshold; and transmitting said stored procedure to a replication server for execution, said stored procedure including one or more executable parameters, said parameters associated with respective components of said DML statement, said execution of said stored procedure causing replication of said DML statement. - View Dependent Claims (12, 13, 14, 15)
-
Specification