...
No Format | ||
---|---|---|
| ||
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: [] reptest2 Please enter SYSDBA user name: [SYS] Please enter password for this user: [change_on_install] odb10gpassword Please enter user with DBA role: [SYSTEM] Please enter password for this user: [manager] odb10gpassword Connecting to database reptest2 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 reptest2, SYS/***, SYSTEM/***, dbvrep/***, USERS/TEMP, dbvrep/, ASM:NO, TZ: +00:00 Enter number of database to modify it, or "add", or "done": [add] |
...
No Format | ||
---|---|---|
| ||
Let's configure the database, describing it's type, connectivity, user names etc. What type of database is this? (Oracle/MySQL/MSSQL): [Oracle] MSSQL Please enter server name (as specified in "sqlcmd -S", e.g. WINSVR1\SQLEXPRESS): [localhost] dbvisit420 Please enter database ODBC DNS: [] ms Please enter user name of an administrator: [SA] dbvuser Please enter password for this user: [password] odb10gpassword?? Enter the user to log into apply database: [SA] dbvuser Please enter password for this user: [password] odb10gpassword?? Enter the database to use: [dbvrep] Enter the schema the table are created by the user specified: [dbo] Enter the database with the user data: [] w420g Following databases are now configured: 1: Oracle reptest2, SYS/***, SYSTEM/***, dbvrep/***, USERS/TEMP, dbvrep/, ASM:NO, TZ: +00:00 2: MSSQL ms, dbvuser/***, dbvuser/***, dbvuser/***, /, dbvrep/dbo, ASM:n/a, TZ: Enter number of database to modify it, or "add", or "done": [done] |
...
No Format | ||
---|---|---|
| ||
C:\Users\oracle\Documents\reptest2>reptest2-all.bat Setting up Dbvisit Replicate configuration Configure database reptest2... Configure database ms... Object grants for database reptest2... Object grants for database ms... 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 Copyright (C) Dbvisit Software Limited. All rights reserved. DDC file C:\Users\oracle\Documents\reptest2\reptest2-onetime.ddc loaded. MINE: Cannot determine Dbvisit Replicate dictionary version. (no dictionary exists) APPLY: Cannot determine Dbvisit Replicate dictionary version. (no dictionary exists) 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> ENGINE SWITCH_REDOLOG dbvrep> ENGINE SETUP MINE DROP DICTIONARY 0 dictionary objects dropped. dbvrep> ENGINE SETUP MINE CREATE DICTIONARY dbvrep> ENGINE SETUP MINE LOAD DICTIONARY Supplemental logging on database set. Loading dictionary table DBRSCOL$ Loading dictionary table DBRSOBJ$ Loading dictionary table DBRSTAB$ Loading dictionary table DBRSUSER$ Loading dictionary table DBRSV_$DATABASE dbvrep> ENGINE SETUP APPLY DROP DICTIONARY 0 dictionary objects dropped. dbvrep> ENGINE SETUP APPLY CREATE DICTIONARY dbvrep> ENGINE SETUP APPLY LOAD DICTIONARY dbvrep> ENGINE SETUP PAIR MINE AND APPLY ID of mine proces is DBD0D988-6DAD-1014-AEB7-034420638A48. If not using DDC in database, set MINE_UNIQUE_ID to this value. 1 applier SCN set. dbvrep> SET APPLY.INSTANTIATE_SCN NOW Variable INSTANTIATE_SCN set to NOW for process APPLY. dbvrep> memory_set IGNORE_APPLY_DDL_DIFFERENCES YES Variable IGNORE_APPLY_DDL_DIFFERENCES set to YES for process *. dbvrep> ENGINE SUPPLEMENTAL LOGGING TABLE avi.sample ENABLE PRIMARY KEY dbvrep> ENGINE SWITCH_REDOLOG dbvrep> #single-scn instantiation: lock all tables and schemas dbvrep> ENGINE LOCK TABLES avi.sample Locking all tables. Lock done. dbvrep> #single-scn instantiation: unlock all tables and schemas, but keep the SCN dbvrep> ENGINE LOCK RELEASE LOCKS dbvrep> dbvrep> #prepare the tables (we use OFFLINE as neither MINE not APPLY is running; with OFFLINE we won't wait on network timeout) dbvrep> PREPARE OFFLINE TABLE avi.sample NODDL RENAME TO w420g.dbo.sample Table avi.sample instantiated at SCN 1077447 dbvrep> #single-scn instantiation: unlock all tables and schemas, forget the SCN (so it does not affect any further PREPARE statements) dbvrep> ENGINE LOCK CLEAR SCN dbvrep> ENGINE SWITCH_REDOLOG dbvrep> #prepare script for instantiation dbvrep> ENGINE PREPARE_DP WRITE DDL_FILE FILE C:\Users\oracle\Documents\reptest2\APPLY.sql USERID SYSTEM/odb10g@reptest2password@reptest2 Created DDL script C:\Users\oracle\Documents\reptest2\APPLY.sql. dbvrep> create ddcdb from ddcfile DDC loaded into database (204 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. These steps are required after the reptest2-all.bat script runs: 1) Create the necessary directory(ies) on the servers: DBVISIT410: C:\Users\oracle\Documents\reptest2 dbvisit420: C:\Users\oracle\Documents\reptest2 2) Copy the DDC files to the server(s) where the processes will run: dbvisit420: C:\Users\oracle\Documents\reptest2\reptest2-APPLY.ddc DBVISIT410: C:\Users\oracle\Documents\reptest2\reptest2-MINE.ddc 3) Review that path to dbvrep executable is correct in the run scripts: C:\Users\oracle\Documents\reptest2\reptest2-run-DBVISIT410.bat C:\Users\oracle\Documents\reptest2\reptest2-run-dbvisit420.bat 4) Review and run the scripts for Windows to create services (run with Administrator privileges): C:\Users\oracle\Documents\reptest2\reptest2-win_services-DBVISIT410.bat C:\Users\oracle\Documents\reptest2\reptest2-win_services-dbvisit420.bat 5) Copy the run script to the server(s) where the processes will run: C:\Users\oracle\Documents\reptest2\reptest2-run-DBVISIT410.bat C:\Users\oracle\Documents\reptest2\reptest2-run-dbvisit420.bat 6) Ensure firewall is open for listen interfaces 0.0.0.0:7902, 0.0.0.0:7901 used by the processes. 7) Make sure the data on apply are in sync as of time when setup was run. Scripts for Data Pump/export/DDL were created as requested: C:\Users\oracle\Documents\reptest2\APPLY.sql Create referenced database links (if any) before running the scripts. 8) Start the replication processes on all servers: C:\Users\oracle\Documents\reptest2\reptest2-run-DBVISIT410.bat C:\Users\oracle\Documents\reptest2\reptest2-run-dbvisit420.bat 9) Start the console to monitor the progress: C:\Users\oracle\Documents\reptest2\start-console.bat The above list is stored in C:\Users\oracle\Documents\reptest2\Nextsteps.txt. Press any key to continue . . . |
...