Bidirectional Transactional Replicaton Setup
RE-XB-1 Creating a publication
Creating a replication publication account
Preliminaries
Virtuoso supports bidirectional transactional replication via mechanism of updateable subscriptions.
- Every table has only one publisher.
- Subscribers can update replicated tables on their side and then submit data back to publisher. Publisher performs conflict resolution and either accepts or rejects that data.
- It is assumed that all the tables in publication with updateable subscriptions option have primary keys and that primary key columns are never modified.
Example publication account setup
- Login to the Conductor UI using the dba account.
- Go to the "Replication" tab, then go to the "Transactional" tab and then go the "Publications" sub-tab.
- Press the "Create" button.
- Enter publication name, check the "Updateable" checkbox and press the "Create" button.
Equivalent SQL commands to above
- Connect to the Virtuoso server via ISQL utility as DBA user.
- Create publication "repldemo" with log file "repldemo.log"
SQL> repl_publish('repldemo', 'repldemo.log', 1);
| View the source | Action |
|---|---|
| 1. re_xb_1.sql | Set the initial state |
OpenLink Home
Technical Support