Академический Документы
Профессиональный Документы
Культура Документы
In this exercise, we are going to setup OGG 12.1.2 on a Windows 7 64bit server running MS SQL Server 2008R2.
Navigate to Computer -> Management and find the service that was created.
After the installation is complete, the manager processes is already setup and running.
Create the application user to hold the tables that are being replicated
Change directory to the $GG_HOME directory, login as demo/demo and run the demo_ora_create.sql script.
REPLICAT adlmss
SOURCEDEFS ./dirdef/tcust.def
USERID ggate, PASSWORD ggate
DISCARDFILE ./dirrpt/ADLMSS.txt, PURGE
MAP dbo.TCUSTMER, TARGET demo.TCUSTMER;
MAP dbo.TCUSTORD, TARGET demo.TCUSTORD;
Now that we have got our data copied over from the MS SQL Server database to Oracle, let's setup the normal live OGG replication.
Replicat Setup
Run the following from GGSCI in the Oracle environment.
ADD REPLICAT rdemo, EXTTRAIL ./dirdat/cd,
EDIT PARAMS rdemo
REPLICAT rdemo
USERID ggate, PASSWORD ggate
--HANDLECOLLISIONS
SOURCEDEFS ./dirdef/tcust.def
DISCARDFILE ./dirprt/RDEMO.dsc, PURGE
MAP dbo.TCUSTMER, TARGET demo.TCUSTMER;
MAP dbo.TCUSTORD, TARGET demo.TCUSTORD;
Start Replication
Start the Extract Capture
And here's the replicated data on the target. The live replication feed is setup and working!