Berkeley DB Reference Version 5.3.33

Enabling Replication in the SQL Layer

New Pragmas

Replication can now be enabled and configured in the SQL layer using pragmas. The pragmas replication_local_site, replication_initial_master, and replication_remote_site can be used to configure the replication group. Note that when the BDB SQL replicated application is initially started, a specific master site must be explicitly designated. After configuring the replication group, start replication using PRAGMA replication=ON.

To display replication statistics in the dbsql shell, use:

dbsql> .stat :rep

New Pragmas

For more details on the replication pragmas see Replication PRAGMAs in the Berkeley DB Getting Started with the SQL APIs guide.