Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

Please ensure the following pre-requisites checks have been tested. Otherwise the replication will not function.

...

No Format
Following databases are now configured:
1: Oracle source, SYS/***, SYSTEM/***, dbvrep/***, USERS/TEMP, dbvrep/, ASM:NO, TZ: +00:00
2: Oracle target, SYS/***, SYSTEM/***, dbvrep/***, USERS/TEMP, dbvrep/, ASM:NO, TZ: +00:00
Enter the number of the database to modify it, or "add", or "done": [done] 

Step 2 - Replication Pairs

12. Set source and targets for each replication pair. Select (1) as the source database (default) and 2 as the target database.

No Format
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_srcsource (Oracle)  
2: ttorcl_trgtarget (Oracle)  
Select source database: [1]
 
Select target database: [2]                                                                                                                                            

Select (2) as the target database (default).

No Format
Select target database: [2]

13. Specify defaults  Select the default values for the replication pairfollowing configuration entries.

No Format
Will be DDL replication 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                   
No Format
Use fetcher to offload the mining to a different server? (yes/no) [nowant to set the network timeouts. Recommended range between 60-300 seconds [60]                                                                                                    
No Format
Would you like to encrypt the data across the network (yes or no) [no]        

14. Define the method to use to lock and copy the data initially to ensure the data is in sync before the replication starts. Use the single-scn method (default).

No Format
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 Format
Would you like to compress the data across the network (yes or no) [no]                  (one-by-one/single-scn/ddl-only/resetlogs) [single-scn]

15. Define what data instantiation script to create? This method copies the initial data set to ensure the data is in sync before the replication starts. Use dp_networklink which is the DataPump method over a database network link (DB_LINK) (default).

No Format
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  
No Format
How long do you want to set the network timeouts. Recommended range between 60-300 seconds [60]

14. Define the method to use to lock and copy the data initially to ensure the data is in sync before the replication starts. Use the single-scn method (default).

No Format
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)loaded automatically 
none                                                                                                                                                                      
(one-by-one/single-scn/ddl-only/resetlogs) [single-scn]

15. Define what data instantiation script to create? This method copies the initial data set to ensure the data is in sync before the replication starts. Use dp_networklink which is the DataPump method over a database network link (DB_LINK) (default).

No Format
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] 

16. The replication pair is now configured.

No Format
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: dp_networklink
Enter number of replication pair to modify it, or "add", or "done": [done] 

Step 3 - Replicated Tables

17 Add the schemas or tables to be replicated.

No Format
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: source (Oracle) ==> target (Oracle), DDL: yes, suffix: (no suffix), prepare: single-scn
  No tables defined.
Enter number of replication pair to modify it, or "done": [1]

18. Add the REPOE schema to be replicated.

No Format
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                                                                                                       (dp_networklink/dp_exp/exp/ddl_file/ddl_run/load/none) [dp_networklink] 

16. The replication pair is now configured.

No Format
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: dp_networklink
Enter number of replication pair to modify it, or "add", or "done": [done] 

17 Add the schemas or tables to be replicated.

No Format
Step 3 - Replicated tables
========================================
The third step is to choose the schemas and tables  
Selected schemas: REPOE

We do not need to add more tables, so select NO (default).

No Format
Add more tables or schemas? (YES/NO) [NO] 

19. We are not replicating PL/SQL. Press Return to skip this option.

No Format
To replicate changes of PL/SQL objects in schema(s), please enter the schemas to be replicated. IfNote thethat databasesspecifying areany reachable,entry thewill tablescause areadditional checkedprivileges forto existence,be
datatypegranted support,to 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.
Enter number of replication pair to modify it, or "done": [1]

18. Add the OE schema to be replicated.

No Format
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: [] oe                                      dbvrep. Enter through a comma or space-delimited list.
Enter the list of schemas (PL/SQL): []  

20. We are not going to use any advanced options, so specify no (default).

No Format
You can also specify some advanced options:
1. Rename schemas or tables.
2. Specify filtering conditions.
3. (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] 

21. There are no tables to exclude from the schema. Press enter.

No Format
(PREPARE_SCHEMA_EXCEPTIONS) - Specify tables to exclude from PREPARE SCHEMA, if any: []

22. The tables are now defined for the replication. Press Return.

No Format
Following tables are defined for replication pairs:
1: source (Oracle) ==> target (Oracle), DDL: yes, suffix: (no suffix), prepare: single-scn
  REPOE(tables)
Enter number of replication pair to modify it, or "done": [done]                                                                                                  Selected schemas: OE

We do not need to add more tables, so select NO (default).

No Format
Add more tables or schemas? (YES/NO) [NO] 

...

 

Step 4 - Process Configuration

23. Specify information about the processes and where they are going to run. Press Return to accept the default values.

No Format
ToStep 4 replicate- changesProcess 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): []  

20. We are not going to use any advanced options, so specify no (default).

No Format
You can also specify some advanced options:
1. Rename schemas or tables.
2. Specify filtering conditions.
3. (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] 

21. There are no tables to exclude from the schema. Press enter.

No Format
(PREPARE_SCHEMA_EXCEPTIONS) - Specify tables to exclude from PREPARE SCHEMA, if any: []

22. The tables are now defined for the replication. Press enter.

No Format
Following tables are defined for replication pairs:
1: ttorcl_src (Oracle) ==> ttorcl_trg (Oracle), DDL: yes, suffix: (no suffix), prepare: single-scn
  OE(tables)
Enter number of replication pair to modify it, or "done": [done]configuration
========================================
The fourth step is to configure the replication processes for each replication.
Following processes are defined:
1: MINE on source
  Not configured.
2: APPLY on target
  Not configured.
Enter number of process to modify it, or "done": [1]  

24. Add information where the MINE process is going to run. Accept all the defaults.

No Format
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/dbvrep_XE]                                                                                                                 

All the settings will be displayed. Press Return to accept the default values.

No Format
Following settings were pre-filled with defaults or your reloaded settings:
----------------------------------------
[MINE_REMOTE_INTERFACE]: Network remote interface: source:7901
[MINE_DATABASE]: Database TNS: source
[TNS_ADMIN]: tnsnames.ora path: /u01/app/oracle/product/11.2.0/xe/network/admin
[MINE_PLOG]: Filemask for generated plogs: /u01/app/oracle/dbvrep_XE/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/dbvrep_XE/log/dbvrep_%N_%D.%E
[LOG_FILE_TRACE]: Error traces: /u01/app/oracle/dbvrep_XE/log/trace/dbvrep_%N_%D_%I_%U.%E

Checking that these settings are 

...

valid...

Do you want change any of the settings? [no] 

25. Add information where the APPLY process is going to run. Press enterAccept all the defaults.

No Format
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.Following processes are defined:
1: MINE on source
  Host: source, SMTP: no, SNMP: no
2: APPLY on ttorcl_trgtarget
  Not configured.
Enter number of process to modify it, or "done": [12]  

24. Add information where the MINE process is going to run. Accept all the defaults.

No Format
Enter number of process to modify it, or "done": [1]                                                                                                                    

 

 Add information where the APPLY process is going to run. Accept all the defaults.

No Format
Enter number of process to modify it, or "done":       
No Format
[1]
 
Fully qualified name of the server for the process (usually co-located with the database, unless mine is offloaded using fetcher): [sourcetarget]
 
Server type         
No Format
Server type (Windows/Linux/Unix): [Linux]                          (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/dbvrep_XE]                                                                                                       
No Format
Enable email notifications about problems (yes/no)? [no]    

All the settings will be displayed. Press return. 

No Format
Following settings were pre-filled with defaults or your reloaded settings:
----------------------------------------
[APPLY_REMOTE_INTERFACE]: Network remote interface:                                                                                                
No Format
Enable SNMP traps/notifications about problems (yes/no)? [no]                                                                                                             

All the settings will be displayed. Press return. 

No Format
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/12.1.0/dbhome_1/network/admin 
[MINE_PLOG]: Filemask for generated plogs: /u01/oracle/dbvrep_orcl/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/oracle/dbvrep_orcl/log/dbvrep_%N_%D.%E 
[LOG_FILE_TRACE]: Error traces: /u01/oracle/dbvrep_orcl/log/trace/dbvrep_%N_%D_%I_%U.%E 
Checking that these settings are valid...
Do you want change any of the settings? [no]

25. Add information where the APPLY process is going to run. Accept all the defaults.

No Format
Following processes are defined:
1: MINE on ttorcl_src
  Host: source, SMTP: no, SNMP: no
2: APPLY on ttorcl_trg
  Not configured.
Enter number of process to modify it, or "done": [2]                                                                                                                      
No Format
Fully qualified name of the server for the process (usually co-located with the database, unless mine is offloaded using fetcher): [target]                               
No Format
Server type (Windows/Linux/Unix): [Linux]                                                                                                                                 
No Format
Enable email notifications about problems (yes/no)? [no]                                                                                                                  
No Format
Enable SNMP traps/notifications about problems (yes/no)? [no]                                                                                                             

All the settings will be displayed. Press return. 

No Format
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/12.1.0/dbhome_1/network/admin 
[APPLY_STAGING_DIR]: Directory for received plogs: /u01/oracle/dbvrep_orcl/apply 
[LOG_FILE]: General log file: /u01/oracle/dbvrep_orcl/log/dbvrep_%N_%D.%E 
[LOG_FILE_TRACE]: Error traces: /u01/oracle/dbvrep_orcl/log/trace/dbvrep_%N_%D_%I_%U.%E 
Checking that these settings are valid...
Do you want change any of the settings? [no]

26. The processes are now defined.

No Format
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
Enter number of process to modify it, or "done": [done]

27. Dbvisit Replicate wizard has completed and all the scripts have been created. No database changes have been made yet.

No Format
Enter number of process to modify it, or "done": [done]                                                                                      
Created file /u01/oracle/dbvrep_orcl/dbvrep_orcl-APPLY.ddc.
Created file /u01/oracle/dbvrep_orcl/dbvrep_orcl-MINE.ddc.
WARN-9451: DataPump directory dd not exist at the ttorcl_trg database when Step 1 was run. Please create ttorcl_trg_DATA_PUMP_DIR directory
there or edit the .dbvrep/.sh script and use different directory name.
Created file /u01/oracle/dbvrep_orcl/config/dbvrep_orcl-setup.dbvrep.
Created file /u01/oracle/dbvrep_orcl/config/dbvrep_orcl-dbsetup_ttorcl_src.sql.
Created file /u01/oracle/dbvrep_orcl/config/dbvrep_orcl-dbsetup_ttorcl_trg.sql.
Created file /u01/oracle/dbvrep_orcl/config/dbvrep_orcl-grants_ttorcl_src.sql.
Created file /u01/oracle/dbvrep_orcl/config/dbvrep_orcl-grants_ttorcl_trg.sql.
Created file /u01/oracle/dbvrep_orcl/config/dbvrep_orcl-onetime.ddc.
Created file /u01/oracle/dbvrep_orcl/start-console.sh.
Created file /u01/oracle/dbvrep_orcl/dbvrep_orcl-run-source.sh.
Created file /u01/oracle/dbvrep_orcl/dbvrep_orcl-run-target.sh.
Created file /u01/oracle/dbvrep_orcl/Nextsteps.txt.
Created file /u01/oracle/dbvrep_orcl/dbvrep_orcl-all.sh.
===========================================================================================================================================
Dbvisit Replicate wizard completed
Script /u01/oracle/dbvrep_orcl/dbvrep_orcl-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] 

28. Do not run the script, but exit out of the wizard.

No Format
Run this script now? (yes/no) [NO]                                                                                                                                        
No Format
dbvrep> exit        target:7902
[APPLY_DATABASE]: Database TNS: target
[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/dbvrep_XE/apply
[LOG_FILE]: General log file: /u01/app/oracle/dbvrep_XE/log/dbvrep_%N_%D.%E
[LOG_FILE_TRACE]: Error traces: /u01/app/oracle/dbvrep_XE/log/trace/dbvrep_%N_%D_%I_%U.%E

Checking that these settings are valid...

Do you want change any of the settings? [no]

26. The processes are now defined.

No Format
Following processes are defined:
1: MINE on source
  Host: source, SMTP: no, SNMP: no
2: APPLY on target
  Host: target, SMTP: no, SNMP: no
Enter number of process to modify it, or "done": [done]

27. Dbvisit Replicate wizard has completed and all the scripts have been created. No database changes have been made yet.

No Format
Created file /u01/app/oracle/dbvrep_XE/dbvrep_XE-APPLY.ddc.
Created file /u01/app/oracle/dbvrep_XE/dbvrep_XE-MINE.ddc.
Created file /u01/app/oracle/dbvrep_XE/config/dbvrep_XE-setup.dbvrep.
Created file /u01/app/oracle/dbvrep_XE/config/dbvrep_XE-dbsetup_source.sql.
Created file /u01/app/oracle/dbvrep_XE/config/dbvrep_XE-dbsetup_target.sql.
Created file /u01/app/oracle/dbvrep_XE/config/dbvrep_XE-grants_source.sql.
Created file /u01/app/oracle/dbvrep_XE/config/dbvrep_XE-grants_target.sql.
Created file /u01/app/oracle/dbvrep_XE/config/dbvrep_XE-onetime.ddc.
Created file /u01/app/oracle/dbvrep_XE/start-console.sh.
Created file /u01/app/oracle/dbvrep_XE/dbvrep_XE-run-source.sh.
Created file /u01/app/oracle/dbvrep_XE/dbvrep_XE-run-target.sh.
Created file /u01/app/oracle/dbvrep_XE/Nextsteps.txt.
Created file /u01/app/oracle/dbvrep_XE/dbvrep_XE-all.sh.
=========================================================================================
Dbvisit Replicate wizard completed
Script /u01/app/oracle/dbvrep_XE/dbvrep_XE-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.

28. Do not run the script, but exit out of the wizard.

No Format
Run this script now? (yes/no) [NO]  
 
dbvrep> exit