We're here to help!

Back to Basics With Dbvisit Replicate Part IV

Follow

Dbvisit_Replicate_Options.jpg

We have now reached Step 3 of the Setup Wizard. PreSteps, Step 1 and Step 2  were already covered. In Step 3 we will start to choose which schemas and table we wish to replicate. 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: SDB11 (Oracle) ==> TDB11 (Oracle), DDL: yes, suffix: (no suffix), prepare: 
single-scn No tables defined.
Enter number of replication pair to modify it, or "done": [1]

You can use a space or a comma to separate entries or as you may have learned in the scripting blog you can use a pointer to a text file. You are given the option to add multiple schemas or multiple tables.  And of course you are given a second chance if you want to add more. 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: [] SCOTT
Selected schemas: SCOTT
Add more tables or schemas? (YES/NO) [NO]

PL/SQL objects are not replicated by default.  You will have to specify the schemas for those PL/SQL objects.   Dbvisit does not replicate triggers.  Dbvisit will replicate the DDL for    alter/drop procedures/functions and packages. Dbvisit will NOT replicate the initial creation of these PL/SQL objects. 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): []

Next there is an options section that contains some powerful features.  The first  question will ask if you want to exclude any tables from the schema level replication.  For example you may want to replicate 99 out of 100 tables for schema SCOTT.  Rather than list all 99 tables you can just enter SCOTT as seen above.  Then here you would save SCOTT.SALGRADE and that table would NOT be replicated.  Following that exceptions question is a question asking if you would like to rename the schemas for example you may be going from SCOTT schema to SCOTT_TEST schema on the target. Filtering comes next.  By default all DML changes will be replicated from the source to the target.  However there are times that you may only want certain rows from some tables sent over to the target.  This is where filtering comes in.  You can specify if you want certain DML to be filtered and if so by what column.  This is great if you have multiple reporting databases and only want a subset of data in each.  And lastly in that section we have the Audit feature.  This question will only appear if you have listed tables, it will NOT work at the schema level. The audit feature will turn every DML statement into an insert.  It will also add some metadata information if you so desire.  This is a very powerful tool that will typically allow you to load into a staging table and then let an ETL (Extract, Transform and Load) Utility take it from there and place the data into a data warehouse.  I will discuss the Audit feature in greater detail in a future blog. You can also specify some advanced options:

Enter number of replication pair to modify it, or “done”: [done]
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] yes
(PREPARE_SCHEMA_EXCEPTIONS) - Specify tables to exclude from PREPARE SCHEMA, if any: [] SCOTT.SALGRADE
Rename name for schema SCOTT (empty means no rename): []
Filter the data to be replicated? If yes, use single condition for ALL DML operations or use CUSTOM 
conditions for each operation? (NO/ALL/CUSTOM) [NO]

After these advanced options we have the summary with the new information added.  Once again it gives you a chance to edit if you want to change anything after your review. Following tables are defined for replication pairs:

1: SDB11 (Oracle) ==> TDB11 (Oracle), DDL: yes, suffix: (no suffix), prepare: 
single-scn SCOTT(tables), Excluded: SCOTT.SALGRADE
Enter number of replication pair to modify it, or "done": [done]

Step 3 is now done and we will move on to the final step, Step 4 in our next blog, which is about configuring the replication processes for each replication.

Have more questions? Submit a request

Comments