Taking a single-master snapshot (dosnapshot) v7
For SMR only: The dosnapshot
command performs snapshot synchronization on the specified subscription in a single-master replication system.
Synopsis
-dosnapshot subname -repsvrfile subsvrfile [ -verboseSnapshotOutput { true | false } ]
See Performing snapshot replication for more information.
Parameters
subname
The name of the subscription for which to take the snapshot.
subsvrfile
The file containing the subscription server login information.
-verboseSnapshotOutput
Set this option to true
if you want to display the output from the snapshot. Set this option to false
if you don't want to display the snapshot output. The default is true
.
Examples
This example performs snapshot replication on subscription dept_emp_sub
.
$ java -jar edb-repcli.jar -dosnapshot dept_emp_sub \ > -repsvrfile ~/subsvrfile.prop Performing snapshot... Source database connectivity info... conn =jdbc:oracle:thin:@192.168.2.6:1521:xe user =pubuser password=****** Target database connectivity info... conn =jdbc:edb://192.168.2.7:5444/subdb user =subuser password=****** Connecting with source Oracle database server... Connecting with target EnterpriseDB database server... Importing redwood schema EDB... Table List: 'DEPT','EMP' Loading Table Data in 8 MB batches... Disabling FK constraints & triggers on edb.dept before truncate... Truncating table DEPT before data load... Disabling indexes on edb.dept before data load... Loading Table: DEPT ... [DEPT] Migrated 4 rows. [DEPT] Table Data Load Summary: Total Time(s): 0.182 Total Rows: 4 Disabling FK constraints & triggers on edb.emp before truncate... Truncating table EMP before data load... Disabling indexes on edb.emp before data load... Loading Table: EMP ... [EMP] Migrated 14 rows. [EMP] Table Data Load Summary: Total Time(s): 0.178 Total Rows: 14 Enabling FK constraints & triggers on edb.dept... Enabling indexes on edb.dept after data load... Enabling FK constraints & triggers on edb.emp... Enabling indexes on edb.emp after data load... Performing ANALYZE on EnterpriseDB database... Data Load Summary: Total Time (sec): 1.866 Total Rows: 18 Total Size(MB): 0.0 Schema EDB imported successfully. Migration process completed successfully. Migration logs have been saved to /var/log/xdb-rep/build57l ******************** Migration Summary ******************** Tables: 2 out of 2 Constraints: 4 out of 4 Total objects: 6 Successful count: 6 Failure count: 0 ************************************************************* Snapshot taken successfully.
- On this page
- Synopsis
- Parameters
- Examples