Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

This example shows a one-to-many replication where the source is Oracle and replicating real time to both Oracle and MySQL targets. 

This replication is going to use Swingbench as an Order-Entry simulation system replicating from Oracle to MySQL and Oracle to Oracle. Swingbench can be found here: http://www.dominicgiles.com/swingbench.html

This replication will use the Dbvisit LOAD function to create and load all the data into the target databases and ensure the data is completely in sync before the replication is started. 

Click here for prerequisite checklist.

Some data types cannot be replicated from Oracle to MySQL. Please see supported data types.

For the Swingbench tables, the following columns will be excluded from the replication because these data types cannot be replicated from Oracle to MySQL:

REPOE.PRODUCT_INFORMATION.WARRANTY_PERIOD   INTERVAL YEAR TO MONTH
REPOE.ORDER_ITEMS.CONDITION                 CONDITION IS A MYSQL KEYWORD
REPOE.ORDERS.ORDER_DATE                     TIMESTAMP(6) WITH LOCAL TIME ZONE

These tables can be replicated to Oracle, but for consistency in this example, they will also be excluded from the Oracle to Oracle replication as well.

Setup Wizard Example

This example shows an Oracle-to-MySQL and Oracle-to-Oracle one-to-many replication using the following information.

Server/DatabaseName
Source databaseXE (Oracle)
TNS alias for source databasettorcl_src
Source serversource (Linux)
  
Target database 1Oracle
Target servertarget (Linux)
TNS alias for target databasettorcl_trg
  
Target database 2MySQL
Target servertarget (Linux)
  
Name of the replication (ddcfile)repoe_2

Throughout the wizard, defaults are shown in [brackets]. Just press enter to accept them. The replication name in this example is "repoe_2".

Setup Swingbench

The command line version of Swingbench is used in this example. Please follow the instruction to download and configure swingbench here.

Ensure Swingbench is configured and has an initial data setup loaded in the source database before continuing to the next step.

Start the setup wizard

First of all start the Dbvisit Replicate command line console:

[oracle@source ~]$ ./dbvrep
Initializing.....done
Dbvisit Replicate 
Copyright (C) Dbvisit Software Limited. All rights reserved.
No DDC file loaded.
Run "setup wizard" to start the configuration wizard or try "help" to see all
commands available.
dbvrep>

Then start the setup wizard and follow the instructions. Most of the defaults can be chosen. Choose Oracle as the first database to be setup:

dbvrep> setup wizard                                                                                                            
This wizard configures Dbvisit Replicate.

The setup wizard creates configuration scripts, which need to be run after the wizard ends. No changes to the databases are
made before that.

The progress is saved every time a list of databases, replications, etc. is shown. It will be re-read if wizard is restarted
and the same DDC name and script path is selected.
Run the wizard now? [yes]                                                                                                       
Accept end-user license agreement? (view/yes/no) [view] yes                                                                     

Before starting the actual configuration, some basic information is needed. The DDC name and script path determines where all
files created by the wizard go (and where to reread them if wizard is rerun) and the license key determines which options are
available for this configuration.
(DDC_NAME) - Please enter a name for this replication (suggestion: use the name of the source database): [] repoe_2             
(LICENSE_KEY) - Please enter your license key: [(trial)]                                                                        
Which Replicate edition do you want to trial (LTD/XTD/MAX): [MAX]                                                               
<tory for location of configuration scripts on this machine: [/u01/app/oracle/repoe_2]                                          

Network configuration files were detected on this system in these locations:
/u01/app/oracle/product/11.2.0/xe/network/admin
(TNS_ADMIN) - Please enter TNS configuration directory for this machine: [/u01/app/oracle/product/11.2.0/xe/network/admin]      
Step 1 - Describe databases
========================================
The first step is to describe databases used in the replication. There are usually two of them (source and target).
Store SYSDBA and DBA passwords? Passwords only required during setup and initialization? (yes/no) [yes]                         
Let's configure the database, describing it's type, connectivity, user names etc.
What type of database is this? (Oracle/MySQL/SQL Server/Oracle AWS RDS/CSV/Hadoop): [Oracle]                                    
Please enter database TNS alias: [] ttorcl_src                                                                                  
Please enter SYSDBA user name: [SYS]                                                                                            
Please enter password for this user: [change_on_install] 
Please enter user with DBA role: [SYSTEM]                                                                                       
Please enter password for this user: [manager] 

Connecting to database ttorcl_src as SYSTEM to query list of tablespaces and to detect ASM (by looking whether any redo logs or
archived logs are stored in ASM).
Enter the Dbvisit Replicate owner (this user will be created by this script): [dbvrep]                                          
Please enter password for this user: [dbvpasswd] 

Permanent tablespaces detected on the database: REPOE_DATA, USERS.
Please enter default permanent tablespace for this user: [REPOE_DATA]                                                           

Temporary tablespaces detected on the database: TEMP.
Please enter default temporary tablespace for this user: [TEMP]                                                                 

Following databases are now configured:
1: Oracle ttorcl_src, SYS/***, SYSTEM/***, dbvrep/***, REPOE_DATA/TEMP, dbvrep/, ASM:NO, TZ: +00:00

Now we are going to add another database. This will be the first of the target database, and it will be Oracle:

Enter the number of the database to modify it, or "add", or "done": [add]                                                       
Let's configure the database, describing it's type, connectivity, user names etc.
What type of database is this? (Oracle/MySQL/SQL Server/Oracle AWS RDS/CSV/Hadoop): [Oracle]                                    
Please enter database TNS alias: [] ttorcl_trg                                                                                  
Please enter SYSDBA user name: [SYS]                                                                                            
Please enter password for this user: [change_on_install] 
Please enter user with DBA role: [SYSTEM]                                                                                       
Please enter password for this user: [manager] 

Connecting to database ttorcl_trg as SYSTEM to query list of tablespaces and to detect ASM (by looking whether any redo logs or
archived logs are stored in ASM).
WARN-1877: This database is not in Archivelog mode; set it before starting Replicate scripts if this is a source database.
Enter the Dbvisit Replicate owner (this user will be created by this script): [dbvrep]                                          
Please enter password for this user: [dbvpasswd] 

Permanent tablespaces detected on the database: REPOE_DATA, USERS.
Please enter default permanent tablespace for this user: [REPOE_DATA]                                                           

Temporary tablespaces detected on the database: TEMP.
Please enter default temporary tablespace for this user: [TEMP]                                                                 

Following databases are now configured:
1: Oracle ttorcl_src, SYS/***, SYSTEM/***, dbvrep/***, REPOE_DATA/TEMP, dbvrep/, ASM:NO, TZ: +00:00
2: Oracle ttorcl_trg, SYS/***, SYSTEM/***, dbvrep/***, REPOE_DATA/TEMP, dbvrep/, ASM:NO, TZ: +00:00

Now we are going to add the third database. This will be one of the target databases and it will be MySQL:

Enter the number of the database to modify it, or "add", or "done": [done] add                                                  
Let's configure the database, describing it's type, connectivity, user names etc.
What type of database is this? (Oracle/MySQL/SQL Server/Oracle AWS RDS/CSV/Hadoop): [Oracle] MySQL                              
Please enter database hostname: [localhost] target                                                                              
Please enter user name of an administrator: [root]                                                                              
Please enter password for this user: [] ****
Enter the user to log into apply database: [root]                                                                               
Please enter password for this user: [password] ****
Enter the database (schema) to use for Dbvisit Replicate internal data (will be created in the script): [dbvrep]                

Now all three databases are configured:

Following databases are now configured:
1: Oracle ttorcl_src, SYS/***, SYSTEM/***, dbvrep/***, REPOE_DATA/TEMP, dbvrep/, ASM:NO, TZ: +00:00
2: Oracle ttorcl_trg, SYS/***, SYSTEM/***, dbvrep/***, REPOE_DATA/TEMP, dbvrep/, ASM:NO, TZ: +00:00
3: MySQL host=target, root/***, root/***, root/***, /, dbvrep/, ASM:n/a, TZ: 
Enter the number of the database to modify it, or "add", or "done": [done] 

We now setup the replication pairs. There will be two pairs. Lets start with the first pair. This is Oracle → Oracle. Here we also specify how we want the data instantiation (initial load) to be done. We are going to use the Dbvisit Replicate LOAD feature to automatically create the tables on the target and load the data prior to replication:

Step 2 - Replication pairs
========================================
The second step is to set source and targets for each replication pair.
Let's configure the replication pair, selecting source and target.
Following databases are described:
1: ttorcl_src (Oracle)  
2: ttorcl_trg (Oracle)  
3: host=target (MySQL) (cannot be source, is not Oracle) 
Select source database: [1]                                                                                                     
Select target database: [2]                                                                                                     
Will DDL replication be enabled? [yes]                                                                                          
Use fetcher to offload the mining to a different server? (yes/no) [no]                                                          
Would you like to encrypt the data across the network (yes or no) [no]                                                          
Would you like to compress the data across the network (yes or no) [no]                                                         
How long do you want to set the network timeouts. Recommended range between 60-300 seconds [60]                                 
Lock and copy the data initially one-by-one or at a single SCN?
one-by-one : Lock tables one by one and capture SCN
single-scn : One SCN for all tables
ddl-only   : Only DDL script for target objects
resetlogs  : Use SCN from last resetlogs operation (standby activation, rman incomplete recovery)
no-lock    : Do not lock tables. Captures previous SCN of oldest active transaction. Requires pre-requisite running of
pre-all.sh script
(one-by-one/single-scn/ddl-only/resetlogs/no-lock) [single-scn] 

What data instantiation script to create?
dp_networklink : Data Pump with network link. No export datafile is created (APPLY.sh)
dp_exp         : Data Pump with export datafile. Creates an export datafile (APPLY.sh)
exp            : Pre-datapump exp/imp with export datafile (APPLY.sh)
ddl_file       : DDL file created (APPLY.sql)
ddl_run        : DDL is automatically executed on target
load           : All replicated data is created and loaded automatically 
none                                                                                                                            (dp_networklink/dp_exp/exp/ddl_file/ddl_run/load/none) [dp_networklink] load
Do you want to (re-)create the tables on target or keep them (they are already created)? (create/keep) [keep] create            

Following replication pairs are now configured:
1: ttorcl_src (Oracle) ==> ttorcl_trg (Oracle), DDL: yes, fetcher: no, process suffix: (no suffix), compression: no,
encryption: no, network timeout: 60, prepare type: single-scn, data load: load_create

Now we will configure the second replication pair (Oracle → MySQL). Here we also specify how we want the data instantiation (initial load) to be done. We are going to use the Dbvisit Replicate LOAD feature to automatically create the tables on the target and load the data prior to replication:

Enter number of replication pair to modify it, or "add", or "done": [done] add                                                  
Let's configure the replication pair, selecting source and target.
Following databases are described:
1: ttorcl_src (Oracle)  
2: ttorcl_trg (Oracle)  
3: host=target (MySQL) (cannot be source, is not Oracle) 
Select source database: [1]                                                                                                     
Select target database: [2] 3                                                                                                   
Will limited DDL replication be enabled? [yes]                                                                                  
Use fetcher to offload the mining to a different server? (yes/no) [no]                                                          
Would you like to encrypt the data across the network (yes or no) [no]                                                          
Would you like to compress the data across the network (yes or no) [no]                                                         
How long do you want to set the network timeouts. Recommended range between 60-300 seconds [60]                                 
Lock and copy the data initially one-by-one or at a single SCN?
one-by-one : Lock tables one by one and capture SCN
single-scn : One SCN for all tables
ddl-only   : Only DDL script for target objects
resetlogs  : Use SCN from last resetlogs operation (standby activation, rman incomplete recovery)
no-lock    : Do not lock tables. Captures previous SCN of oldest active transaction. Requires pre-requisite running of
pre-all.sh script                                                                                                               
(one-by-one/single-scn/ddl-only/resetlogs/no-lock) [single-scn] ddl-only

What data instantiation script to create?
ddl_file       : DDL file created (APPLY.sql)
ddl_run        : DDL is automatically executed on target
load           : All replicated data is created and loaded automatically 
none                                                                                                                            
(ddl_file/ddl_run/load/none) [ddl_file] load
Do you want to (re-)create the tables on target or keep them (they are already created)? (create/keep) [keep] create            

Following replication pairs are now configured:
1: ttorcl_src (Oracle) ==> ttorcl_trg (Oracle), DDL: yes, fetcher: no, process suffix: (no suffix), compression: no,
encryption: no, network timeout: 60, prepare type: single-scn, data load: load_create
2: ttorcl_src (Oracle) ==> host=target (MySQL), DDL: yes, fetcher: no, process suffix: 1, compression: no, encryption: no,
network timeout: 60, prepare type: single-scn, data load: load_create
Enter number of replication pair to modify it, or "add", or "done": [done]                                                      

Now we specify which tables to be replicated for each replication pair. In this example we are going to replicate the whole swingbench schema which is called REPOE:

Step 3 - Replicated tables
========================================
The third step is to choose the schemas and tables to be replicated. If the databases are reachable, the tables are checked for
existence, datatype support, etc., schemas are queried for tables. Note that all messages are merely hints/warnings and may be
ignored if issues are rectified before the scripts are actually executed.

Following tables are defined for replication pairs:
1: ttorcl_src (Oracle) ==> ttorcl_trg (Oracle), DDL: yes, suffix: (no suffix), prepare: single-scn
  No tables defined.
2: ttorcl_src (Oracle) ==> host=target (MySQL), DDL: yes, suffix: 1, prepare: single-scn
  No tables defined.
Enter number of replication pair to modify it, or "done": [1]                                                                   

Please enter list of all individual tables to be replicated. Enter schema name(s) only to replicate all tables in that schema.
Use comma or space to delimit the entries.
Enter the tables and schemas: [] REPOE                                                                                          
Selected schemas: REPOE
Add more tables or schemas? (YES/NO) [NO]                                                                                       

To replicate changes of PL/SQL objects in schema(s), please enter the schemas to be replicated. Note that specifying any entry
will cause additional privileges to be granted to dbvrep. Enter through a comma or space-delimited list.
Enter the list of schemas (PL/SQL): []                                                                                          

You can also specify some advanced options:
1. Exclude some tables from schema-level replication
2. Rename schemas or tables.
3. Specify filtering conditions.
4. (Tables only) Configure Change Data Capture; this does not maintain a copy of the source table, but logs all operations as
separate entries. This is useful for ETL or as an audit trail. This usually requires adding of new columns (timestamps, old/new
values etc.) to the target table.
Specify rename name or filter condition for any of the specified schemas (YES/NO): [no]                                         
(PREPARE_SCHEMA_EXCEPTIONS) - Specify tables to exclude from PREPARE SCHEMA, if any: []                                         

Following tables are defined for replication pairs:
1: ttorcl_src (Oracle) ==> ttorcl_trg (Oracle), DDL: yes, suffix: (no suffix), prepare: single-scn
  REPOE(tables)
2: ttorcl_src (Oracle) ==> host=target (MySQL), DDL: yes, suffix: 1, prepare: single-scn
  No tables defined.

We now specify the tables to be replicated for the second replication pair (Oracle → MySQL). This will be the same as the first pair, but note that it can be different.

 Enter number of replication pair to modify it, or "done": [2]                                                                   

Please enter list of all individual tables to be replicated. Enter schema name(s) only to replicate all tables in that schema.
Use comma or space to delimit the entries.
Enter the tables and schemas: [] REPOE                                                                                          
Selected schemas: REPOE
Add more tables or schemas? (YES/NO) [NO]                                                                                       

You can also specify some advanced options:
1. Exclude some tables from schema-level replication
2. Rename schemas or tables.
3. Specify filtering conditions.
4. (Tables only) Configure Change Data Capture; this does not maintain a copy of the source table, but logs all operations as
separate entries. This is useful for ETL or as an audit trail. This usually requires adding of new columns (timestamps, old/new
values etc.) to the target table.
Specify rename name or filter condition for any of the specified schemas (YES/NO): [no]                                         
(PREPARE_SCHEMA_EXCEPTIONS) - Specify tables to exclude from PREPARE SCHEMA, if any: []                                         

Following tables are defined for replication pairs:
1: ttorcl_src (Oracle) ==> ttorcl_trg (Oracle), DDL: yes, suffix: (no suffix), prepare: single-scn
  REPOE(tables)
2: ttorcl_src (Oracle) ==> host=target (MySQL), DDL: yes, suffix: 1, prepare: single-scn
  REPOE(tables)
Enter number of replication pair to modify it, or "done": [done]                                                                

Specify the servers names where the MINE, APPLY1 and APPLY processes will run. In this example the target Oracle and MySQL databases are on the same server. Also note that the MINE and MINE1 process will share the same process so that there will just be a MINE process and not a MINE1 process:

Step 4 - Process configuration
========================================
The fourth step is to configure the replication processes for each replication.

Following processes are defined:
1: MINE on ttorcl_src
  Not configured.
2: APPLY on ttorcl_trg
  Not configured.
3: MINE1 on ttorcl_src
  Not configured.
4: APPLY1 on host=target
  Not configured.
Enter number of process to modify it, or "done": [1]                                                                            
Fully qualified name of the server for the process (usually co-located with the database, unless mine is offloaded using        fetcher): [source]                                                                                                       
Server type (Windows/Linux/Unix): [Linux]                                                                                       
Enable email notifications about problems (yes/no)? [no]                                                                        
Enable SNMP traps/notifications about problems (yes/no)? [no]                                                                   
Directory with DDC file and default where to create log files etc. (recommended: same as global setting, if possible)?          [/u01/app/oracle/repoe_2]                                                                                              

Following settings were pre-filled with defaults or your reloaded settings:
----------------------------------------
[MINE_REMOTE_INTERFACE]: Network remote interface: source:7901 
[MINE_DATABASE]: Database TNS: ttorcl_src 
[TNS_ADMIN]: tnsnames.ora path: /u01/app/oracle/product/11.2.0/xe/network/admin 
[MINE_PLOG]: Filemask for generated plogs: /u01/app/oracle/repoe_2/mine/%S.%E (%S is sequence, %T thread, %F original filename
(stripped extension), %P process type, %N process name, %E default extension)
[LOG_FILE]: General log file: /u01/app/oracle/repoe_2/log/dbvrep_%N_%D.%E 
[LOG_FILE_TRACE]: Error traces: /u01/app/oracle/repoe_2/log/trace/dbvrep_%N_%D_%I_%U.%E 

Checking that these settings are valid...
Do you want change any of the settings? [no]                                                                                    

Following processes are defined:
1: MINE on ttorcl_src
  Host: source, SMTP: no, SNMP: no
2: APPLY on ttorcl_trg
  Not configured.
3: MINE1 on ttorcl_src
  Not configured.
4: APPLY1 on host=target
  Not configured.
Enter number of process to modify it, or "done": [2]                                                                            
Fully qualified name of the server for the process (usually co-located with the database, unless mine is offloaded using        fetcher): [target]                                                                                                       
Server type (Windows/Linux/Unix): [Linux]                                                                                       
Enable email notifications about problems (yes/no)? [no]                                                                        
Enable SNMP traps/notifications about problems (yes/no)? [no]                                                                   
Directory with DDC file and default where to create log files etc. (recommended: same as global setting, if possible)?          [/u01/app/oracle/repoe_2]                                                                                              

Following settings were pre-filled with defaults or your reloaded settings:
----------------------------------------
[APPLY_REMOTE_INTERFACE]: Network remote interface: target:7902 
[APPLY_DATABASE]: Database TNS: ttorcl_trg 
[TNS_ADMIN]: tnsnames.ora path: /u01/app/oracle/product/11.2.0/xe/network/admin 
[APPLY_STAGING_DIR]: Directory for received plogs: /u01/app/oracle/repoe_2/apply 
[LOG_FILE]: General log file: /u01/app/oracle/repoe_2/log/dbvrep_%N_%D.%E 
[LOG_FILE_TRACE]: Error traces: /u01/app/oracle/repoe_2/log/trace/dbvrep_%N_%D_%I_%U.%E 

Checking that these settings are valid...
Do you want change any of the settings? [no]                                                                                    

Following processes are defined:
1: MINE on ttorcl_src
  Host: source, SMTP: no, SNMP: no
2: APPLY on ttorcl_trg
  Host: target, SMTP: no, SNMP: no
3: MINE1 on ttorcl_src
  Not configured.
4: APPLY1 on host=target
  Not configured.
Enter number of process to modify it, or "done": [3]                                                                            
This database is source for already configured replication mine processes: MINE
<r this process (recommended)? Enter mine process name or leave blank to not reuse. [] MINE                                     

Following processes are defined:
1: MINE on ttorcl_src
  Host: source, SMTP: no, SNMP: no
2: APPLY on ttorcl_trg
  Host: target, SMTP: no, SNMP: no
3: MINE1 on ttorcl_src
  Not used, work done by MINE.
4: APPLY1 on host=target
  Not configured.
Enter number of process to modify it, or "done": [4]                                                                            
Fully qualified name of the server for the process (usually co-located with the database, unless mine is offloaded using        fetcher): [target]                                                                                                       
Server type (Windows/Linux/Unix): [] Linux                                                                                      
Enable email notifications about problems (yes/no)? [no]                                                                        
Enable SNMP traps/notifications about problems (yes/no)? [no]                                                                   
Directory with DDC file and default where to create log files etc. (recommended: same as global setting, if possible)?          [/u01/app/oracle/repoe_2]                                                                                              

Following settings were pre-filled with defaults or your reloaded settings:
----------------------------------------
[APPLY_REMOTE_INTERFACE]: Network remote interface: target:7904 
[APPLY_DATABASE]: Database MySQL connection string: database=dbvrep;host=target 
[TNS_ADMIN]: tnsnames.ora path: /u01/app/oracle/product/11.2.0/xe/network/admin 
[APPLY_SCHEMA]: Dbvisit Replicate database (schema): dbvrep 
[APPLY_STAGING_DIR]: Directory for received plogs: /u01/app/oracle/repoe_2/apply1 
[LOG_FILE]: General log file: /u01/app/oracle/repoe_2/log/dbvrep_%N_%D.%E 
[LOG_FILE_TRACE]: Error traces: /u01/app/oracle/repoe_2/log/trace/dbvrep_%N_%D_%I_%U.%E 

Checking that these settings are valid...
Do you want change any of the settings? [no]                                                                                    

Following processes are defined:
1: MINE on ttorcl_src
  Host: source, SMTP: no, SNMP: no
2: APPLY on ttorcl_trg
  Host: target, SMTP: no, SNMP: no
3: MINE1 on ttorcl_src
  Not used, work done by MINE.
4: APPLY1 on host=target
  Host: target, SMTP: no, SNMP: no

The setup wizard has now been completed. The next step is for the wizard to create all the scripts to initialize the replication. Exit out of the wizard:

Enter number of process to modify it, or "done": [done]                                                                         
Created file /u01/app/oracle/repoe_2/repoe_2-APPLY.ddc.
Created file /u01/app/oracle/repoe_2/repoe_2-APPLY1.ddc.
Created file /u01/app/oracle/repoe_2/repoe_2-MINE.ddc.
Created file /u01/app/oracle/repoe_2/config/repoe_2-setup.dbvrep.
Created file /u01/app/oracle/repoe_2/config/repoe_2-dbsetup_ttorcl_src_dbvrep.sql.
Created file /u01/app/oracle/repoe_2/config/repoe_2-dbsetup_ttorcl_trg_dbvrep.sql.
Created file /u01/app/oracle/repoe_2/config/repoe_2-dbsetup_database_dbvrep_host_target_root.sql.
Created file /u01/app/oracle/repoe_2/config/repoe_2-grants_ttorcl_src_dbvrep.sql.
Created file /u01/app/oracle/repoe_2/config/repoe_2-grants_ttorcl_trg_dbvrep.sql.
Created file /u01/app/oracle/repoe_2/config/repoe_2-grants_database_dbvrep_host_target_root.sql.
Created file /u01/app/oracle/repoe_2/config/repoe_2-onetime.ddc.
Created file /u01/app/oracle/repoe_2/start-console.sh.
Created file /u01/app/oracle/repoe_2/repoe_2-run-source.sh.
Created file /u01/app/oracle/repoe_2/repoe_2-run-target.sh.
Created file /u01/app/oracle/repoe_2/Nextsteps.txt.
Created file /u01/app/oracle/repoe_2/repoe_2-all.sh.
==============================================================================================================================

Dbvisit Replicate wizard completed
Script /u01/app/oracle/repoe_2/repoe_2-all.sh created. This runs all the above created scripts. Please exit out of dbvrep,
review and run script as current user to setup and start Dbvisit Replicate.
==============================================================================================================================
Optionally, the script can be invoked now by this wizard.
Run this script now? (yes/no) [NO]                                                                                              
dbvrep> exit

Excluding columns

Edit the .dbvrep file and add the columns to be excluded:

cd /u01/app/oracle/repoe_2/config
vi repoe_2-setup.dbvrep

Add the following EXCLUDE COLUMNS twice to the script. Add these lines before both occurrences of "#prepare script for instantiation":

EXCLUDE COLUMN REPOE.PRODUCT_INFORMATION.WARRANTY_PERIOD
EXCLUDE COLUMN REPOE.ORDER_ITEMS.CONDITION
EXCLUDE COLUMN REPOE.ORDERS.ORDER_DATE

Save the file and quit the vi editor. 

Initialize the Replication and loading the initial data

Run the "repoe_2-all.sh" script to initialize the replication. This will also create the tables on the target database.

cd /u01/app/oracle/repoe_2
./repoe_2-all.sh
Setting up Dbvisit Replicate configuration
Configure database ttorcl_src...
This check fails if the DBID is not the expected one...


Ok, check passed.
Configure database ttorcl_trg...
This check fails if the DBID is not the expected one...


Ok, check passed.
Configure database database=dbvrep
Object grants for database ttorcl_src...
Object grants for database ttorcl_trg...
Object grants for database database=dbvrep
Setting up the configuration
Initializing......done
WARN-1850: No DDC DB available, dictionary table does not exist.
DDC loaded from database (0 variables).
Dbvisit Replicate version 2.7.20_unreleased.5939
Copyright (C) Dbvisit Software Limited.  All rights reserved.
DDC file /u01/app/oracle/repoe_2/config/repoe_2-onetime.ddc loaded.
MINE: Cannot determine Dbvisit Replicate dictionary version. (no
dictionary exists)
APPLY: Cannot determine Dbvisit Replicate dictionary version. (no
dictionary exists)
dbvrep> #clear the no-DDC-DB-available warning
dbvrep> process clear previous warnings
dbvrep> set ON_WARNING SKIP
Variable ON_WARNING set to SKIP for process *.
dbvrep> set ON_ERROR EXIT
Variable ON_ERROR set to EXIT for process *.
dbvrep> 
dbvrep> # Configuring default processes
dbvrep> choose process MINE
Process type MINE set to: MINE.
dbvrep> choose process APPLY
Process type APPLY set to: APPLY.
dbvrep> PROCESS SWITCH_REDOLOG
dbvrep> PROCESS SETUP MINE DROP DICTIONARY
0 dictionary objects dropped.
dbvrep> PROCESS SETUP MINE CREATE DICTIONARY
dbvrep> PROCESS SETUP MINE LOAD DICTIONARY
Oldest active transaction SCN: 8171438 (no active transaction)
Supplemental logging on database set.
Loading dictionary table DBRSCOL$
Loading dictionary table DBRSIND$
Loading dictionary table DBRSOBJ$
Loading dictionary table DBRSTAB$
Loading dictionary table DBRSUSER$
Loading dictionary table DBRSV_$DATABASE
dbvrep> PROCESS SETUP APPLY DROP DICTIONARY
0 dictionary objects dropped.
dbvrep> PROCESS SETUP APPLY CREATE DICTIONARY
dbvrep> PROCESS SETUP APPLY LOAD DICTIONARY
dbvrep> PROCESS PREPARE_DP SETUP CLEAR
dbvrep> PROCESS SETUP PAIR MINE AND APPLY
Applier SCN set (start=8171446, current=8171446).
dbvrep> SET APPLY.INSTANTIATE_SCN NOW
Variable INSTANTIATE_SCN set to NOW for process APPLY.
dbvrep> EXCLUDE CREATE TABLE %.DBMS_TABCOMP_TEMP_UNCMP #Ignore tables
created by Compression Advisor
Exclude rule created.
dbvrep> EXCLUDE CREATE TABLE %.DBMS_TABCOMP_TEMP_CMP #Ignore tables
created by Compression Advisor
Exclude rule created.
dbvrep> EXCLUDE CREATE TABLE %.SCHEDULER$_% #Ignore tables created by
Oracle scheduler (also used by schema/full expdp/impdp)
Exclude rule created.
dbvrep> EXCLUDE CREATE TABLE %.CMP1$% #Ignore tables created by
Compression Advisor since 11.2.0.4
Exclude rule created.
dbvrep> EXCLUDE CREATE TABLE %.CMP2$% #Ignore tables created by
Compression Advisor since 11.2.0.4
Exclude rule created.
dbvrep> EXCLUDE CREATE TABLE %.CMP3$% #Ignore tables created by
Compression Advisor since 11.2.0.4
Exclude rule created.
dbvrep> EXCLUDE CREATE TABLE %.CMP4$% #Ignore tables created by
Compression Advisor since 11.2.0.4
Exclude rule created.
dbvrep> memory_set IGNORE_APPLY_DDL_DIFFERENCES YES
Variable IGNORE_APPLY_DDL_DIFFERENCES set to YES for process *.
dbvrep> SET PREPARE_SCHEMA_EXCEPTIONS none
Variable PREPARE_SCHEMA_EXCEPTIONS set to none for process *.
dbvrep> PROCESS SUPPLEMENTAL LOGGING SCHEMA "REPOE" ENABLE PRIMARY KEY
dbvrep> PROCESS SWITCH_REDOLOG
dbvrep> PROCESS WAIT_SCN_FLIP
Waited 3 seconds until scn_to_timestamp changed.
dbvrep> #single-scn instantiation: lock all tables and schemas
dbvrep> PROCESS LOCK SCHEMAS "REPOE"
Locking all schemas.
...locked 13 of 13 tables from REPOE schema.
Lock done.
dbvrep> #single-scn instantiation: unlock all tables and schemas, but
keep the SCN
dbvrep> PROCESS LOCK RELEASE LOCKS
dbvrep> 
dbvrep> #prepare the tables (we use OFFLINE as neither MINE nor APPLY
is running; with OFFLINE we won't wait on network timeout)
dbvrep> PREPARE OFFLINE SCHEMA "REPOE"
Table REPOE.ADDRESSES instantiated at SCN 8172880
Table REPOE.AVI02 instantiated at SCN 8172880
Table REPOE.CARD_DETAILS instantiated at SCN 8172880
Table REPOE.CUSTOMERS is special: has system-generated column names. 
Table REPOE.CUSTOMERS instantiated at SCN 8172880
Column SYS_NC00017$ is special: virtual column. Excluding.
Column SYS_NC00017$ is special: hidden column. Excluding.
Column SYS_NC00017$ is special: system-generated column. Excluding.
Column SYS_NC00017$ is special: virtual column. Excluding.
Column SYS_NC00018$ is special: virtual column. Excluding.
Column SYS_NC00018$ is special: hidden column. Excluding.
Column SYS_NC00018$ is special: system-generated column. Excluding.
Column SYS_NC00018$ is special: virtual column. Excluding.
Table REPOE.INVENTORIES instantiated at SCN 8172880
Table REPOE.LOGON instantiated at SCN 8172880
Table REPOE.ORDERENTRY_METADATA instantiated at SCN 8172880
Table REPOE.ORDERS instantiated at SCN 8172880
Table REPOE.ORDER_ITEMS instantiated at SCN 8172880
Table REPOE.PRODUCT_DESCRIPTIONS instantiated at SCN 8172880
Table REPOE.PRODUCT_INFORMATION instantiated at SCN 8172880
Table REPOE.SALES instantiated at SCN 8172880
Table REPOE.WAREHOUSES instantiated at SCN 8172880
dbvrep> 
dbvrep> #single-scn instantiation: unlock all tables and schemas,
forget the SCN (so it does not affect any further PREPARE statements)
dbvrep> PROCESS LOCK CLEAR SCN
dbvrep> PROCESS SWITCH_REDOLOG
dbvrep> EXCLUDE COLUMN REPOE.PRODUCT_INFORMATION.WARRANTY_PERIOD
dbvrep> EXCLUDE COLUMN REPOE.ORDER_ITEMS.CONDITION
dbvrep> EXCLUDE COLUMN REPOE.ORDERS.ORDER_DATE
dbvrep> #prepare script for instantiation
dbvrep> DDL DROP REPLICATE "REPOE"
dbvrep> DDL CREATE_FROM_DICT REPLICATE "REPOE"
dbvrep> PROCESS LOAD_REQUEST SCHEMA "REPOE" AT INSTANTIATE SCN
Table REPOE.ADDRESSES will be loaded using SCN 8172880.
Table REPOE.AVI02 will be loaded using SCN 8172880.
Table REPOE.CARD_DETAILS will be loaded using SCN 8172880.
Table REPOE.CUSTOMERS will be loaded using SCN 8172880.
Table REPOE.INVENTORIES will be loaded using SCN 8172880.
Table REPOE.LOGON will be loaded using SCN 8172880.
Table REPOE.ORDERENTRY_METADATA will be loaded using SCN 8172880.
Table REPOE.ORDERS will be loaded using SCN 8172880.
Table REPOE.ORDER_ITEMS will be loaded using SCN 8172880.
Table REPOE.PRODUCT_DESCRIPTIONS will be loaded using SCN 8172880.
Table REPOE.PRODUCT_INFORMATION will be loaded using SCN 8172880.
Table REPOE.SALES will be loaded using SCN 8172880.
Table REPOE.WAREHOUSES will be loaded using SCN 8172880.
dbvrep> 
dbvrep> # Configuring non-default processes
dbvrep> choose process MINE
Process type MINE set to: MINE.
dbvrep> choose process APPLY1
Process type APPLY set to: APPLY1.
dbvrep> PROCESS SWITCH_REDOLOG
dbvrep> PROCESS SETUP APPLY DROP DICTIONARY
0 dictionary objects dropped.
dbvrep> PROCESS SETUP APPLY CREATE DICTIONARY
dbvrep> PROCESS SETUP APPLY LOAD DICTIONARY
dbvrep> PROCESS SETUP PAIR MINE AND APPLY
Applier SCN set (start=8171446, current=8171446).
dbvrep> SET APPLY1.INSTANTIATE_SCN NOW
Variable INSTANTIATE_SCN set to NOW for process APPLY1.
dbvrep> EXCLUDE CREATE TABLE %.DBMS_TABCOMP_TEMP_UNCMP #Ignore tables
created by Compression Advisor
Exclude rule created.
dbvrep> EXCLUDE CREATE TABLE %.DBMS_TABCOMP_TEMP_CMP #Ignore tables
created by Compression Advisor
Exclude rule created.
dbvrep> EXCLUDE CREATE TABLE %.SCHEDULER$_% #Ignore tables created by
Oracle scheduler (also used by schema/full expdp/impdp)
Exclude rule created.
dbvrep> EXCLUDE CREATE TABLE %.CMP1$% #Ignore tables created by
Compression Advisor since 11.2.0.4
Exclude rule created.
dbvrep> EXCLUDE CREATE TABLE %.CMP2$% #Ignore tables created by
Compression Advisor since 11.2.0.4
Exclude rule created.
dbvrep> EXCLUDE CREATE TABLE %.CMP3$% #Ignore tables created by
Compression Advisor since 11.2.0.4
Exclude rule created.
dbvrep> EXCLUDE CREATE TABLE %.CMP4$% #Ignore tables created by
Compression Advisor since 11.2.0.4
Exclude rule created.
dbvrep> memory_set IGNORE_APPLY_DDL_DIFFERENCES YES
Variable IGNORE_APPLY_DDL_DIFFERENCES set to YES for process *.
dbvrep> SET PREPARE_SCHEMA_EXCEPTIONS none
Variable PREPARE_SCHEMA_EXCEPTIONS set to none for process *.
dbvrep> PROCESS SUPPLEMENTAL LOGGING SCHEMA "REPOE" ENABLE PRIMARY KEY
dbvrep> PROCESS SWITCH_REDOLOG
dbvrep> PROCESS WAIT_SCN_FLIP
Waited 2 seconds until scn_to_timestamp changed.
dbvrep> #single-scn instantiation: lock all tables and schemas
dbvrep> PROCESS LOCK SCHEMAS "REPOE"
Locking all schemas.
...locked 13 of 13 tables from REPOE schema.
Lock done.
dbvrep> #single-scn instantiation: unlock all tables and schemas, but
keep the SCN
dbvrep> PROCESS LOCK RELEASE LOCKS
dbvrep> 
dbvrep> #prepare the tables (we use OFFLINE as neither MINE nor APPLY
is running; with OFFLINE we won't wait on network timeout)
dbvrep> PREPARE OFFLINE SCHEMA "REPOE"
Table REPOE.ADDRESSES instantiated at SCN 8173046
Table REPOE.AVI02 instantiated at SCN 8173046
Table REPOE.CARD_DETAILS instantiated at SCN 8173046
Table REPOE.CUSTOMERS is special: has system-generated column names. 
Table REPOE.CUSTOMERS instantiated at SCN 8173046
Column SYS_NC00017$ is special: virtual column. Excluding.
Column SYS_NC00017$ is special: hidden column. Excluding.
Column SYS_NC00017$ is special: system-generated column. Excluding.
Column SYS_NC00017$ is special: virtual column. Excluding.
Column SYS_NC00018$ is special: virtual column. Excluding.
Column SYS_NC00018$ is special: hidden column. Excluding.
Column SYS_NC00018$ is special: system-generated column. Excluding.
Column SYS_NC00018$ is special: virtual column. Excluding.
Table REPOE.INVENTORIES instantiated at SCN 8173046
Table REPOE.LOGON instantiated at SCN 8173046
Table REPOE.ORDERENTRY_METADATA instantiated at SCN 8173046
Table REPOE.ORDERS instantiated at SCN 8173046
Table REPOE.ORDER_ITEMS instantiated at SCN 8173046
Table REPOE.PRODUCT_DESCRIPTIONS instantiated at SCN 8173046
Table REPOE.PRODUCT_INFORMATION instantiated at SCN 8173046
Table REPOE.SALES instantiated at SCN 8173046
Table REPOE.WAREHOUSES instantiated at SCN 8173046
dbvrep> 
dbvrep> #single-scn instantiation: unlock all tables and schemas,
forget the SCN (so it does not affect any further PREPARE statements)
dbvrep> PROCESS LOCK CLEAR SCN
dbvrep> PROCESS SWITCH_REDOLOG
dbvrep> 
dbvrep> EXCLUDE COLUMN REPOE.PRODUCT_INFORMATION.WARRANTY_PERIOD
dbvrep> EXCLUDE COLUMN REPOE.ORDER_ITEMS.CONDITION
dbvrep> EXCLUDE COLUMN REPOE.ORDERS.ORDER_DATE
dbvrep> #prepare script for instantiation
dbvrep> DDL DROP REPLICATE "REPOE"
dbvrep> DDL CREATE_FROM_DICT REPLICATE "REPOE"
dbvrep> PROCESS LOAD_REQUEST SCHEMA "REPOE" AT INSTANTIATE SCN
Table REPOE.ADDRESSES will be loaded using SCN 8173046.
Table REPOE.AVI02 will be loaded using SCN 8173046.
Table REPOE.CARD_DETAILS will be loaded using SCN 8173046.
Table REPOE.CUSTOMERS will be loaded using SCN 8173046.
Table REPOE.INVENTORIES will be loaded using SCN 8173046.
Table REPOE.LOGON will be loaded using SCN 8173046.
Table REPOE.ORDERENTRY_METADATA will be loaded using SCN 8173046.
Table REPOE.ORDERS will be loaded using SCN 8173046.
Table REPOE.ORDER_ITEMS will be loaded using SCN 8173046.
Table REPOE.PRODUCT_DESCRIPTIONS will be loaded using SCN 8173046.
Table REPOE.PRODUCT_INFORMATION will be loaded using SCN 8173046.
Table REPOE.SALES will be loaded using SCN 8173046.
Table REPOE.WAREHOUSES will be loaded using SCN 8173046.
dbvrep> create ddcdb from ddcfile
DDC loaded into database (410 variables).
dbvrep> set ON_WARNING SKIP
Variable ON_WARNING set to SKIP for process *.
dbvrep> set ON_ERROR SKIP
Variable ON_ERROR set to SKIP for process *.
OK-0: Completed successfully.
Some apply tables were (re)created by the .dbvrep script; now we run the grant scripts again.
Object grants for database ttorcl_src...
Object grants for database ttorcl_trg...
Object grants for database database=dbvrep
These steps are required after the repoe_2-all.sh script runs:

1) Create the necessary directory(ies) on the servers:
target: /u01/app/oracle/repoe_2

2) Copy the DDC files to the server(s) where the processes will run:
target: /u01/app/oracle/repoe_2/repoe_2-APPLY.ddc
target: /u01/app/oracle/repoe_2/repoe_2-APPLY1.ddc
source: /u01/app/oracle/repoe_2/repoe_2-MINE.ddc

3) Review that path to dbvrep executable is correct in the run scripts:
/u01/app/oracle/repoe_2/repoe_2-run-source.sh
/u01/app/oracle/repoe_2/repoe_2-run-target.sh

4) Copy the run script to the server(s) where the processes will run:
source: /u01/app/oracle/repoe_2/repoe_2-run-source.sh
target: /u01/app/oracle/repoe_2/repoe_2-run-target.sh

5) Ensure firewall is open for listen interfaces 0.0.0.0:7902, 0.0.0.0:7904, 0.0.0.0:7901 used by the processes.

6) Ensure firewall is open for remote access to mysql (usually port 3306) on target.

7) Make sure the data on apply are in sync as of time when setup was run.

8) Start the replication processes on all servers:
source: /u01/app/oracle/repoe_2/repoe_2-run-source.sh
target: /u01/app/oracle/repoe_2/repoe_2-run-target.sh

9) Start the console to monitor the progress:
/u01/app/oracle/repoe_2/start-console.sh

The above list is stored in /u01/app/oracle/repoe_2/Nextsteps.txt.

As per the instructions above:

1. On the target server (called target in this example) create the following directory:

mkdir /u01/app/oracle/repoe_2

2. Copy the DDC files to the server(s) where the processes will run:

scp /u01/app/oracle/repoe_2/repoe_2-APPLY.ddc oracle@target:/u01/app/oracle/repoe_2/repoe_2-APPLY.ddc
scp /u01/app/oracle/repoe_2/repoe_2-APPLY1.ddc oracle@target:/u01/app/oracle/repoe_2/repoe_2-APPLY1.ddc

3. Copy the run script to the server(s) where the processes will run:

scp /u01/app/oracle/repoe_2/repoe_2-run-target.sh oracle@target:/u01/app/oracle/repoe_2/repoe_2-run-target.sh

4. Start the replication process on the source server:

./repoe_2-run-source.sh
Initializing......done
DDC loaded from database (410 variables).
Dbvisit Replicate version 2.7
Copyright (C) Dbvisit Software Limited.  All rights reserved.
DDC file /u01/app/oracle/repoe_2/repoe_2-MINE.ddc loaded.
Starting process MINE...Created directory /u01/app/oracle/repoe_2/ddc_backup
Created directory /u01/app/oracle/repoe_2/log/trace/
Created directory /u01/app/oracle/repoe_2/mine/
started

5. Start the replication on the target server. Note that two replication processes will start. APPLY and APPLY1:

 ./repoe_2-run-target.sh 
Initializing......done
DDC loaded from database (411 variables).
Dbvisit Replicate version 2.7
Copyright (C) Dbvisit Software Limited. All rights reserved.
DDC file /u01/app/oracle/repoe_2/repoe_2-APPLY.ddc loaded.
Starting process APPLY...Created directory /u01/app/oracle/repoe_2/ddc_backup
Created directory /u01/app/oracle/repoe_2/log/
Created directory /u01/app/oracle/repoe_2/log/trace/
Created directory /u01/app/oracle/repoe_2/apply
started
Initializing......done
DDC loaded from database (411 variables).
Dbvisit Replicate version 2.7
Copyright (C) Dbvisit Software Limited. All rights reserved.
DDC file /u01/app/oracle/repoe_2/repoe_2-APPLY1.ddc loaded.
Starting process APPLY1...Created directory /u01/app/oracle/repoe_2/apply1
started
6. On the source server, start the console to view the replication. The replication console will show two pairs of replication processes. MINE→APPLY1 and MINE->APPLY. Note that the LOAD function will be started to unload the data from source and load it into both targets.

 

./start-console.sh
\ Dbvisit Replicate 2.7(MAX edition) - Evaluation License expires in 30 days
MINE IS running. Currently at plog 353 (LOAD table REPOE.CARD_DETAILS at 8127336) and SCN 8127335 (02/11/2016 08:32:05).
APPLY IS running. Currently at plog 353 (LOAD table REPOE.ADDRESSES at 8127336) and SCN 8127331 (02/11/2016 08:32:05).
APPLY1 IS running. Currently at plog 353 and SCN 8127331 (02/11/2016 08:32:05).
Progress of replication repoe_2:MINE->APPLY1: total/this execution
-------------------------------------------------------------------------------------------------------------------------------
REPOE.ADDRESSES:              ---%  Mine:924172/924172   Unrecov:0/0         Applied:0/0         Conflicts:0/0       Last:--/--
REPOE.CARD_DETAILS:           ---%  Mine:680000/680000   Unrecov:0/0         Applied:0/0         Conflicts:0/0       Last:--/--
-------------------------------------------------------------------------------------------------------------------------------
2 tables listed.
Progress of replication repoe_2:MINE->APPLY: total/this execution
-------------------------------------------------------------------------------------------------------------------------------
REPOE.ADDRESSES:              ---%  Mine:924172/924172   Unrecov:0/0         Applied:0/0         Conflicts:0/0       Last:--/--
REPOE.CARD_DETAILS:           ---%  Mine:682000/682000   Unrecov:0/0         Applied:0/0         Conflicts:0/0       Last:--/--
-------------------------------------------------------------------------------------------------------------------------------
2 tables listed.

7. After the load has been completed, the console will look as follows:

/ Dbvisit Replicate 2.7(MAX edition) - Evaluation License expires in 30 days
MINE IS running. Currently at plog 371 and SCN 8220129 (02/11/2016 12:55:51).
APPLY IS running. Currently at plog 371 and SCN 8220069 (02/11/2016 12:55:43).
APPLY1 IS running. Currently at plog 371 and SCN 8220061 (02/11/2016 12:55:41).
Progress of replication repoe_2:MINE->APPLY1: total/this execution
--------------------------------------------------------------------------------------------------------------------------------------------
REPOE.CUSTOMERS:               50%  Mine:1322470/1322470 Unrecov:0/0         Applied:661235/661235 Conflicts:0/0     Last:11/02/2016 11:26:48/OK
REPOE.ADDRESSES:               50%  Mine:1848344/1848344 Unrecov:0/0         Applied:924172/924172 Conflicts:0/0     Last:11/02/2016 11:09:37/OK
REPOE.CARD_DETAILS:            50%  Mine:1822470/1822470 Unrecov:0/0         Applied:911235/911235 Conflicts:0/0     Last:11/02/2016 11:18:59/OK
REPOE.WAREHOUSES:              50%  Mine:2000/2000       Unrecov:0/0         Applied:1000/1000   Conflicts:0/0       Last:11/02/2016 12:51:44/OK
REPOE.ORDER_ITEMS:             50%  Mine:6568134/6568134 Unrecov:0/0         Applied:3284067/3284067 Conflicts:0/0   Last:11/02/2016 12:51:42/OK
REPOE.ORDERS:                  50%  Mine:2288506/2288506 Unrecov:0/0         Applied:1144253/1144253 Conflicts:0/0   Last:11/02/2016 12:14:30/OK
REPOE.INVENTORIES:             50%  Mine:1800262/1800262 Unrecov:0/0         Applied:900131/900131 Conflicts:0/0     Last:11/02/2016 11:35:59/OK
REPOE.PRODUCT_INFORMATION:     50%  Mine:2000/2000       Unrecov:0/0         Applied:1000/1000   Conflicts:0/0       Last:11/02/2016 12:51:44/OK
REPOE.LOGON:                   50%  Mine:4744924/4744924 Unrecov:0/0         Applied:2372462/2372462 Conflicts:0/0   Last:11/02/2016 12:00:25/OK
REPOE.PRODUCT_DESCRIPTIONS:    50%  Mine:2000/2000       Unrecov:0/0         Applied:1000/1000   Conflicts:0/0       Last:11/02/2016 12:51:43/OK
REPOE.ORDERENTRY_METADATA:     50%  Mine:8/8             Unrecov:0/0         Applied:4/4         Conflicts:0/0       Last:11/02/2016 12:00:26/OK
--------------------------------------------------------------------------------------------------------------------------------------------
11 tables listed.
Progress of replication repoe_2:MINE->APPLY: total/this execution
--------------------------------------------------------------------------------------------------------------------------------------------
REPOE.CUSTOMERS:               50%  Mine:1322470/1322470 Unrecov:0/0         Applied:661235/661235 Conflicts:0/0     Last:11/02/2016 10:59:10/OK
REPOE.ADDRESSES:               50%  Mine:1848344/1848344 Unrecov:0/0         Applied:924172/924172 Conflicts:0/0     Last:11/02/2016 10:48:19/OK
REPOE.CARD_DETAILS:            50%  Mine:1822470/1822470 Unrecov:0/0         Applied:911235/911235 Conflicts:0/0     Last:11/02/2016 10:54:27/OK
REPOE.WAREHOUSES:              50%  Mine:2000/2000       Unrecov:0/0         Applied:1000/1000   Conflicts:0/0       Last:11/02/2016 11:34:31/OK
REPOE.ORDER_ITEMS:             50%  Mine:6568134/6568134 Unrecov:0/0         Applied:3284067/3284067 Conflicts:0/0   Last:11/02/2016 11:34:29/OK
REPOE.ORDERS:                  50%  Mine:2288506/2288506 Unrecov:0/0         Applied:1144253/1144253 Conflicts:0/0   Last:11/02/2016 11:18:37/OK
REPOE.INVENTORIES:             50%  Mine:1800262/1800262 Unrecov:0/0         Applied:900131/900131 Conflicts:0/0     Last:11/02/2016 11:03:55/OK
REPOE.PRODUCT_INFORMATION:     50%  Mine:2000/2000       Unrecov:0/0         Applied:1000/1000   Conflicts:0/0       Last:11/02/2016 11:34:30/OK
REPOE.LOGON:                   50%  Mine:4744924/4744924 Unrecov:0/0         Applied:2372462/2372462 Conflicts:0/0   Last:11/02/2016 11:12:31/OK
REPOE.PRODUCT_DESCRIPTIONS:    50%  Mine:2000/2000       Unrecov:0/0         Applied:1000/1000   Conflicts:0/0       Last:11/02/2016 11:34:30/OK
REPOE.ORDERENTRY_METADATA:     50%  Mine:8/8             Unrecov:0/0         Applied:4/4         Conflicts:0/0       Last:11/02/2016 11:12:31/OK
--------------------------------------------------------------------------------------------------------------------------------------------
11 tables listed.

There is a current limitation with using the LOAD function and multiple replication pairs. The % will not show 100, but will show 50 when the table has been synched. This limitation is removed in Dbvisit Replicate version 2.8

Start Swingbench 

Swingbench can now be started and the swingbench tables will be replicated with Dbvisit Replicate. 

Start swingbench in a different oracle session:

/u01/app/oracle/swingbench/bin/charbench -v users,tps,trans -cs //source/XE  -u repoe -p repoe -uc 5 -min 1 -max 200 -rt 0:10 -a 

The output of Swingbench will be similar to the following:

Author  :	 Dominic Giles
Version :	 2.5.0.932

Results will be written to results.xml.

Time		Users	TPS	NCR	UCD	BP	OP	PO	BO	SQ	WQ	WA
08:12:10	[0/5]	0	0	0	0	0	0	0	0	0	0
08:12:11	[5/5]	0	0	0	0	0	0	0	0	0	0
08:12:12	[5/5]	7	0	0	5	0	2	0	0	0	0
08:12:13	[5/5]	6	0	0	8	3	2	0	0	0	0
08:12:14	[5/5]	5	0	0	10	6	2	0	0	0	0
08:12:15	[5/5]	8	2	0	14	8	2	0	0	0	0
08:12:16	[5/5]	6	2	0	17	11	2	0	0	0	0
08:12:17	[5/5]	7	3	0	21	12	3	0	0	0	0
08:12:18	[5/5]	7	3	1	24	15	3	0	0	0	0
08:12:19	[5/5]	18	11	3	27	17	4	2	0	0	0
08:12:20	[5/5]	10	13	6	30	19	4	2	0	0	0

Once swingbench is running, the Replicate console will show the progression of the replication:

| Dbvisit Replicate 2.7(MAX edition) - Evaluation License expires in 30 days
MINE IS running. Currently at plog 371 and SCN 8221561 (02/11/2016 12:57:33).
APPLY IS running. Currently at plog 371 and SCN 8221541 (02/11/2016 12:57:32).
APPLY1 IS running. Currently at plog 371 and SCN 8220475 (02/11/2016 12:56:35).
Progress of replication repoe_2:MINE->APPLY1: total/this execution
--------------------------------------------------------------------------------------------------------------------------------------------
REPOE.CUSTOMERS:               49%  Mine:1322533/1322533 Unrecov:0/0         Applied:661242/661242 Conflicts:0/0     Last:11/02/2016 12:57:15/OK
REPOE.ADDRESSES:               49%  Mine:1848407/1848407 Unrecov:0/0         Applied:924179/924179 Conflicts:0/0     Last:11/02/2016 12:57:15/OK
REPOE.CARD_DETAILS:            49%  Mine:1822527/1822527 Unrecov:0/0         Applied:911242/911242 Conflicts:0/0     Last:11/02/2016 12:57:15/OK
REPOE.WAREHOUSES:              50%  Mine:2000/2000       Unrecov:0/0         Applied:1000/1000   Conflicts:0/0       Last:11/02/2016 12:51:44/OK
REPOE.ORDER_ITEMS:             49%  Mine:6568551/6568551 Unrecov:0/0         Applied:3284122/3284122 Conflicts:0/0   Last:11/02/2016 12:57:36/OK
REPOE.ORDERS:                  49%  Mine:2288840/2288840 Unrecov:0/0         Applied:1144301/1144301 Conflicts:0/0   Last:11/02/2016 12:57:36/OK
REPOE.INVENTORIES:             49%  Mine:1800666/1800666 Unrecov:0/0         Applied:900182/900182 Conflicts:0/0     Last:11/02/2016 12:57:36/OK
REPOE.PRODUCT_INFORMATION:     50%  Mine:2000/2000       Unrecov:0/0         Applied:1000/1000   Conflicts:0/0       Last:11/02/2016 12:51:44/OK
REPOE.LOGON:                   49%  Mine:4745338/4745338 Unrecov:0/0         Applied:2372511/2372511 Conflicts:0/0   Last:11/02/2016 12:57:36/OK
REPOE.PRODUCT_DESCRIPTIONS:    50%  Mine:2000/2000       Unrecov:0/0         Applied:1000/1000   Conflicts:0/0       Last:11/02/2016 12:51:43/OK
REPOE.ORDERENTRY_METADATA:     50%  Mine:8/8             Unrecov:0/0         Applied:4/4         Conflicts:0/0       Last:11/02/2016 12:00:26/OK
--------------------------------------------------------------------------------------------------------------------------------------------
11 tables listed.
Progress of replication repoe_2:MINE->APPLY: total/this execution
--------------------------------------------------------------------------------------------------------------------------------------------
REPOE.CUSTOMERS:               50%  Mine:1322533/1322533 Unrecov:0/0         Applied:661298/661298 Conflicts:0/0     Last:11/02/2016 12:57:33/OK
REPOE.ADDRESSES:               50%  Mine:1848407/1848407 Unrecov:0/0         Applied:924235/924235 Conflicts:0/0     Last:11/02/2016 12:57:33/OK
REPOE.CARD_DETAILS:            50%  Mine:1822527/1822527 Unrecov:0/0         Applied:911292/911292 Conflicts:0/0     Last:11/02/2016 12:57:33/OK
REPOE.WAREHOUSES:              50%  Mine:2000/2000       Unrecov:0/0         Applied:1000/1000   Conflicts:0/0       Last:11/02/2016 11:34:31/OK
REPOE.ORDER_ITEMS:             50%  Mine:6568551/6568551 Unrecov:0/0         Applied:3284483/3284483 Conflicts:0/0   Last:11/02/2016 12:57:34/OK
REPOE.ORDERS:                  50%  Mine:2288840/2288840 Unrecov:0/0         Applied:1144586/1144586 Conflicts:0/0   Last:11/02/2016 12:57:34/OK
REPOE.INVENTORIES:             50%  Mine:1800666/1800666 Unrecov:0/0         Applied:900533/900533 Conflicts:0/0     Last:11/02/2016 12:57:34/OK
REPOE.PRODUCT_INFORMATION:     50%  Mine:2000/2000       Unrecov:0/0         Applied:1000/1000   Conflicts:0/0       Last:11/02/2016 11:34:30/OK
REPOE.LOGON:                   50%  Mine:4745338/4745338 Unrecov:0/0         Applied:2372876/2372876 Conflicts:0/0   Last:11/02/2016 12:57:34/OK
REPOE.PRODUCT_DESCRIPTIONS:    50%  Mine:2000/2000       Unrecov:0/0         Applied:1000/1000   Conflicts:0/0       Last:11/02/2016 11:34:30/OK
REPOE.ORDERENTRY_METADATA:     50%  Mine:8/8             Unrecov:0/0         Applied:4/4         Conflicts:0/0       Last:11/02/2016 11:12:31/OK
--------------------------------------------------------------------------------------------------------------------------------------------
11 tables listed.

There is a current limitation with using the LOAD function and multiple replication pairs. The % will not show 100, but will show 50 when the table has been synched. This limitation is removed in Dbvisit Replicate version 2.8

This completes the replication setup of Swingbench from Oracle to Oracle and Oracle to MySQL. 

 

 

  • No labels