$dbvrep
Initializing......done
Dbvisit Replicate version 2.3x.23xx.1829
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> setup wizard
This wizard configures Dbvisit Replicate to start a replication process.
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): [] d112f
(LICENSE_KEY) - Please enter your license key (or just enter "(trial)"): [(trial)]
(SETUP_SCRIPT_PATH) - Please enter a directory for location of configuration scripts on this machine: [/home/oracle/d112f]
Network configuration files were detected on this system in these locations:
/u01/app/oracle/product/11.1.0/db_1/network/admin
/u03/app/oragrid/product/11.2.0/grid/network/admin
/u01/app/oracle/product/11.2.0/xe/network/admin
/u03/app/oracle/product/11.2.0.3/dbhome_4/network/admin
(TNS_ADMIN) - Please enter TNS configuration directory for this machine: [/u01/app/oracle/product/11.1.0/db_1/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); however, there can be
just one (when source and target is the same) or more than two (one-to-many or other complex configurations.)
Let's configure the database, describing it's type, connectivity, user names etc.
What type of database is this? (Oracle/MySQL/MSSQL): [Oracle]
Please enter database TNS alias: [] d112f_dbvisit210
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 d112f_dbvisit210 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 and apply user (this user will be created by this script): [dbvrep]
Please enter password for this user: [dbvpasswd]
Permanent tablespaces detected on the database: USERS.
Please enter default permanent tablespace for this user: [USERS]
Temporary tablespaces detected on the database: TEMP.
Please enter default temporary tablespace for this user: [TEMP]
Following databases are now configured:
1: Oracle d112f_dbvisit210, SYS/***, SYSTEM/***, dbvrep/***, USERS/TEMP, dbvrep/, ASM:NO, TZ: +00:00
Enter number of 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/MSSQL): [Oracle]
Please enter database TNS alias: [] d112f_dbvisit230
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 d112f_dbvisit230 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 and apply user (this user will be created by this script): [dbvrep]
Please enter password for this user: [dbvpasswd]
Permanent tablespaces detected on the database: USERS.
Please enter default permanent tablespace for this user: [USERS]
Temporary tablespaces detected on the database: TEMP.
Please enter default temporary tablespace for this user: [TEMP]
Following databases are now configured:
1: Oracle d112f_dbvisit210, SYS/***, SYSTEM/***, dbvrep/***, USERS/TEMP, dbvrep/, ASM:NO, TZ: +00:00
2: Oracle d112f_dbvisit230, SYS/***, SYSTEM/***, dbvrep/***, USERS/TEMP, dbvrep/, ASM:NO, TZ: +00:00
Enter number of database to modify it, or "add", or "done": [done]
Step 2 - Replication pairs
========================================
The second step is to set source and targets for each replication pair. This is usually just choosing the first database as source and the
second one as target, but many more configurations are possible.
Let's configure the replication pair, selecting source and target.
Following databases are described:
1: d112f_dbvisit210 (Oracle)
2: d112f_dbvisit230 (Oracle)
Select source database: [1]
Select target database: [2]
Will be DDL replication enabled? (If YES, the script will grant more privileges to the Dbvisit Replicate users and enable database-wide supplemental logging): [yes] no
Use fetcher to offload the mining to a different server? (yes/no) [no]
Would you like to encrypt the data across the (NETWORK_QUALITY) - Please specify your network type (LAN or WAN). Autoconfigures timeouts, use of compression etc. [LAN] 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/single-scn/ddl-only/resetlogs) [single-scn] resetlogs
What data copy script to create? (dp_networklink/dp_exp/exp/ddl_file/ddl_run/none) [none]
Following replication pairs are now configured:
1: d112f_dbvisit210 (Oracle) ==> d112f_dbvisit230 (Oracle), DDL: NO, fetcher: no, process suffix: (no suffix), compression: no, encryption: no,
network timeout: LAN60, prepare type:
resetlogs, data load: none
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: d112f_dbvisit210 (Oracle)
2: d112f_dbvisit230 (Oracle)
Select source database: [1] 2
Select target database: [2] 1
Will be DDL replication enabled? (If YES, the script will grant more privileges to the Dbvisit Replicate users and enable database-wide supplemental logging): [yes] no
Use fetcher 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 offloadcompress the miningdata toacross a different server?the network (yes/ or no) [no]
How (NETWORK_QUALITY) - Please specify your network type (LAN or WAN). Autoconfigures timeouts, use of compression etc. [LAN] 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/single-scn/ddl-only/resetlogs) [single-scn] resetlogs
What data copy script to create? (dp_networklink/dp_exp/exp/ddl_file/ddl_run/none) [none]
Following replication pairs are now configured:
1: d112f_dbvisit210 (Oracle) ==> d112f_dbvisit230 (Oracle), DDL: NO, fetcher: no, process suffix: (no suffix), compression: no, encryption: no,
network timeout: LAN60, prepare type:
resetlogs, data load: none
2: d112f_dbvisit230 (Oracle) ==> d112f_dbvisit210 (Oracle), DDL: NO, fetcher: no, process suffix: 1, compression: no, encryption: no,
network timeout: LAN60, prepare type: resetlogs, data load: none
Enter number of replication pair to modify it, or "add", or "done": [done]
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.
Note the following assumptions are made in this wizard – which can be modified by editing the resulting script:
1. All replicated tables have a primary key defined.
2. All columns of the tables and all tables of the specified schemas are replicated, and if DDL support is enabled, whenever a new
column/table is added, this should be replicate as well.
3. If an apply conflict arises, the default option is to try again repeatedly, until a different option is given or the underlying issue is
resolved.
4. If an apply conflict arises, no more data will be replicated until the issue is resolved or ignored.
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. Dbvisit Replicate can create the target table with the additional columns during setup by selecting "ddl_run" in the data copy
section of Step 2.
Following tables are defined for replication pairs:
1: d112f_dbvisit210 (Oracle) ==> d112f_dbvisit230 (Oracle), DDL: NO, suffix: (no suffix), prepare: resetlogs
No tables defined.
2: d112f_dbvisit230 (Oracle) ==> d112f_dbvisit210 (Oracle), DDL: NO, suffix: 1, prepare: resetlogs
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: [] scott.avi_objects
Selected tables: SCOTT.AVI_OBJECTS
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): []
Specify rename name, filter condition, CDC/Audit/ETL for any of the specified tables (yes/no): [no]
Following tables are defined for replication pairs:
1: d112f_dbvisit210 (Oracle) ==> d112f_dbvisit230 (Oracle), DDL: NO, suffix: (no suffix), prepare: resetlogs
SCOTT.AVI_OBJECTS
2: d112f_dbvisit230 (Oracle) ==> d112f_dbvisit210 (Oracle), DDL: NO, suffix: 1, prepare: resetlogs
No tables defined.
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: [] scott.avi_objects
Selected tables: SCOTT.AVI_OBJECTS
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): []
Specify rename name, filter condition, CDC/Audit/ETL for any of the specified tables (yes/no): [no]
Following tables are defined for replication pairs:
1: d112f_dbvisit210 (Oracle) ==> d112f_dbvisit230 (Oracle), DDL: NO, suffix: (no suffix), prepare: resetlogs
SCOTT.AVI_OBJECTS
2: d112f_dbvisit230 (Oracle) ==> d112f_dbvisit210 (Oracle), DDL: NO, suffix: 1, prepare: resetlogs
SCOTT.AVI_OBJECTS
Enter number of replication pair to modify it, or "done": [done]
Step 4 - Process configuration
========================================
The fourth step is to configure the replication processes for each replication. Although most options have reasonable defaults, manual input
is required.
Following processes are defined:
1: MINE on d112f_dbvisit210
Not configured.
2: APPLY on d112f_dbvisit230
Not configured.
3: MINE1 on d112f_dbvisit230
Not configured.
4: APPLY1 on d112f_dbvisit210
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): [dbvisit210.avisit.co.nz]
Server type (Windows/Linux/Unix): [Linux]
Enable email notifications about problems (yes/no)? [YES] 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)? [/home/oracle/d112f]
Following settings were pre-filled with defaults or your reloaded settings:
----------------------------------------
[MINE_REMOTE_INTERFACE]: Network remote interface: dbvisit210.avisit.co.nz:7901
[MINE_DATABASE]: Database TNS: d112f_dbvisit210
[TNS_ADMIN]: tnsnames.ora path: /u01/app/oracle/product/11.1.0/db_1/network/admin
[MINE_USER]: Dbvisit Replicate database username: dbvrep
[MINE_PASSWORD]: Dbvisit Replicate database password: *********
[MINE_PLOG]: Filemask for generated plogs: /home/oracle/d112f/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: /home/oracle/d112f/log/dbvrep_%N_%D.%E
[LOG_FILE_TRACE]: Error traces: /home/oracle/d112f/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 d112f_dbvisit210
Host: dbvisit210.avisit.co.nz, SMTP: NO, SNMP: NO
2: APPLY on d112f_dbvisit230
Not configured.
3: MINE1 on d112f_dbvisit230
Not configured.
4: APPLY1 on d112f_dbvisit210
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): [dbvisit230.avisit.co.nz]
Server type (Windows/Linux/Unix): [Linux]
Enable email notifications about problems (yes/no)? [YES] 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)? [/home/oracle/d112f]
Following settings were pre-filled with defaults or your reloaded settings:
----------------------------------------
[APPLY_REMOTE_INTERFACE]: Network remote interface: dbvisit230.avisit.co.nz:7902
[APPLY_DATABASE]: Database TNS: d112f_dbvisit230
[TNS_ADMIN]: tnsnames.ora path: /u01/app/oracle/product/11.1.0/db_1/network/admin
[APPLY_USER]: Dbvisit Replicate database username: dbvrep
[APPLY_PASSWORD]: Dbvisit Replicate database password: *********
[APPLY_STAGING_DIR]: Directory for received plogs: /home/oracle/d112f/apply
[LOG_FILE]: General log file: /home/oracle/d112f/log/dbvrep_%N_%D.%E
[LOG_FILE_TRACE]: Error traces: /home/oracle/d112f/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 d112f_dbvisit210
Host: dbvisit210.avisit.co.nz, SMTP: NO, SNMP: NO
2: APPLY on d112f_dbvisit230
Host: dbvisit230.avisit.co.nz, SMTP: NO, SNMP: NO
3: MINE1 on d112f_dbvisit230
Not configured.
4: APPLY1 on d112f_dbvisit210
Not configured.
Enter number of process to modify it, or "done": [3]
Fully qualified name of the server for the process (usually co-located with the database, unless mine is offloaded using fetcher): [dbvisit230.avisit.co.nz]
Server type (Windows/Linux/Unix): [Linux]
Enable email notifications about problems (yes/no)? [YES] 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)? [/home/oracle/d112f]
Following settings were pre-filled with defaults or your reloaded settings:
----------------------------------------
[MINE_REMOTE_INTERFACE]: Network remote interface: dbvisit230.avisit.co.nz:7903
[MINE_DATABASE]: Database TNS: d112f_dbvisit230
[TNS_ADMIN]: tnsnames.ora path: /u01/app/oracle/product/11.1.0/db_1/network/admin
[MINE_USER]: Dbvisit Replicate database username: dbvrep
[MINE_PASSWORD]: Dbvisit Replicate database password: *********
[MINE_PLOG]: Filemask for generated plogs: /home/oracle/d112f/mine1/%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: /home/oracle/d112f/log/dbvrep_%N_%D.%E
[LOG_FILE_TRACE]: Error traces: /home/oracle/d112f/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 d112f_dbvisit210
Host: dbvisit210.avisit.co.nz, SMTP: NO, SNMP: NO
2: APPLY on d112f_dbvisit230
Host: dbvisit230.avisit.co.nz, SMTP: NO, SNMP: NO
3: MINE1 on d112f_dbvisit230
Host: dbvisit230.avisit.co.nz, SMTP: NO, SNMP: NO
4: APPLY1 on d112f_dbvisit210
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): [dbvisit210.avisit.co.nz]
Server type (Windows/Linux/Unix): [Linux]
Enable email notifications about problems (yes/no)? [YES] 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)? [/home/oracle/d112f]
Following settings were pre-filled with defaults or your reloaded settings:
----------------------------------------
[APPLY_REMOTE_INTERFACE]: Network remote interface: dbvisit210.avisit.co.nz:7904
[APPLY_DATABASE]: Database TNS: d112f_dbvisit210
[TNS_ADMIN]: tnsnames.ora path: /u01/app/oracle/product/11.1.0/db_1/network/admin
[APPLY_USER]: Dbvisit Replicate database username: dbvrep
[APPLY_PASSWORD]: Dbvisit Replicate database password: *********
[APPLY_STAGING_DIR]: Directory for received plogs: /home/oracle/d112f/apply1
[LOG_FILE]: General log file: /home/oracle/d112f/log/dbvrep_%N_%D.%E
[LOG_FILE_TRACE]: Error traces: /home/oracle/d112f/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 d112f_dbvisit210
Host: dbvisit210.avisit.co.nz, SMTP: NO, SNMP: NO
2: APPLY on d112f_dbvisit230
Host: dbvisit230.avisit.co.nz, SMTP: NO, SNMP: NO
3: MINE1 on d112f_dbvisit230
Host: dbvisit230.avisit.co.nz, SMTP: NO, SNMP: NO
4: APPLY1 on d112f_dbvisit210
Host: dbvisit210.avisit.co.nz, SMTP: NO, SNMP: NO
Enter number of process to modify it, or "done": [done]
Select database to hold the DDC settings:
1: d112f_dbvisit210
2: d112f_dbvisit230
Enter database number: [1]
Created file /home/oracle/d112f/d112f-APPLY.ddc.
Created file /home/oracle/d112f/d112f-APPLY1.ddc.
Created file /home/oracle/d112f/d112f-MINE.ddc.
Created file /home/oracle/d112f/d112f-MINE1.ddc.
Created file /home/oracle/d112f/d112f-setup.dbvrep.
Created file /home/oracle/d112f/d112f-dbsetup_d112f_dbvisit210.sql.
Created file /home/oracle/d112f/d112f-dbsetup_d112f_dbvisit230.sql.
Created file /home/oracle/d112f/d112f-grants_d112f_dbvisit210.sql.
Created file /home/oracle/d112f/d112f-grants_d112f_dbvisit230.sql.
Created file /home/oracle/d112f/d112f-onetime.ddc.
Created file /home/oracle/d112f/start-console.sh.
Created file /home/oracle/d112f/d112f-run-dbvisit210.avisit.co.nz.sh.
Created file /home/oracle/d112f/d112f-run-dbvisit230.avisit.co.nz.sh.
Created file /home/oracle/d112f/Nextsteps.txt.
Created file /home/oracle/d112f/d112f-all.sh.
============================================================================================================================================
Dbvisit Replicate wizard completed
Script /home/oracle/d112f/d112f-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 |