Documente Academic
Documente Profesional
Documente Cultură
0 for comparison
between Oracle RDBMS databases replicated using OGG 11gR2
In the article you will have a look at the steps to install, configure and
deploy OGG Veridata 3.0 for data comparison between two Oracle 11gR2
databases configured with OGG 11gR2 for data replication. The OGG 11gR2 setup
that will be used for replication and subsequent verification with Veridata
comparison is described here. The article will briefly cover the following
topics
1.
2.
3.
4.
1. Overview of OGG
The OGG Veridata Server installs everything except the agents which are
installed separately.
In the article RACD database will be used for a repository database.
An agent should be installed for each Oracle database in the OGG 11gR2
configuration. Each component should be installed in a separate
directory not overlapping the other installations.
[oracle@raclinux1
total 215924
-rwxrwxrwx 1 root
01.zip
-rwxrwxrwx 1 root
-rwxrwxrwx 1 root
[oracle@raclinux1
ogg_veridata]$ ls -l
root
root
1314938 Nov 17 14:45 Veridata_doc_V19622 -01.zip
root 200278402 Nov 17 14:45 Veridata_server_V33772 -01.zip
ogg_veridata]$
Specify ports.
You can select the option to start OGG Veridata Server and OGG Veridata
Web. If you do not specify it you can start it later on.
Managing OGG Veridata Server, starting and stopping, is done using the
veridata_server.sh in the following location $OGG_VER/server/bin where
$OGG_VER is the install location specified earlier. In my case it is
shown below.
/u02/ogg_veridata/Oracle_GoldenGate_Veridata/server/bin
[oracle@raclinux1 bin]$ ls
ggMessage.dat
libicudata.so.38 libnnz10.so
mysql.txt
libbigsort.so
libicui18n.so.38 libnsort.so
vericom
libclntsh.so.10.1
libicuuc.so.38
libocci.so.10.1
veridata
libdbt6312d.so
libitc2312d.so
liboci6312d.so
libthrexcept2312d.so veridata.loc
libfunctor2312d.so
libmys6312d.so
libocie i.so
veridata.log
libfunctor_list2312d.so libmysql.so.16
libpointer2512d.so
veridata_server.sh
[oracle@raclinux1 bin]$ ./veridata_server.sh
Usage: veridata_server.sh start|run|stop|cli [options]
[oracle@raclinux1 bin]$ ./veridata_server.sh start
[oracle@raclinux1 bin]$
libstd4112d.so
libsync2412d.so
libthread2412d.so
libtls71012d.so
libtrace2312d.so
Managing OGG Veridata Web, starting and stopping, is done using the
veridata_web.sh in the following location $OGG_VER/web/bin where $OGG_VER
is the install location specified earlier. In my case it is shown
below.
/u02/ogg_veridata/veridata/agent/dirprm: created
/u02/ogg_veridata/veridata/agent/dirrpt: created
/u02/ogg_veridata/veridata/agent/dirchk: created
/u02/ogg_veridata/veridata/agent/dirpcs: created
/u02/ogg_veridata/veridata/agent/dirsql: created
/u02/ogg_veridata/veridata/agent/dirdef: created
/u02/ogg_veridata/veridata/agent/dirdat: created
/u02/ogg_veridata/veridata/agent/dirtmp: created
/u02/ogg_veridata/veridata/agent/dirver: created
/u02/ogg_veridata/veridata/agent/dirver/lock: created
/u02/ogg_veridata/veridata/agent/dirver/oos: created
/u02/ogg_veridata/veridata/agent/dirver/oosxml: created
/u02/ogg_veridata/veridata/agent/dirver/params: created
/u02/ogg_veridata/veridata/agent/dirver/report: created
/u02/ogg_veridata /veridata/agent/dirver/status: created
/u02/ogg_veridata/veridata/agent/dirver/trace: created
Stdout files
/u02/ogg_veridata/veridata/agent/dirout: created
Pair1
Pair2
RACD
test5.seat_assignment
test5.account
RACDB
test5.seat_assignment
test5.account
Configuring connections
I configured connection RACDB as follows. Note that you should create two
agents. I am sharing the same agent as source and target are on the same
host.
Configuring Groups
Start by clicking New
Specify Compare pairs by going into the Manual Mapping tab of the Compare
Pairs section of the Group link.
Create a Job
Navigate starting from Job Configuration and press New.
Add connections
Press OK.
The job is ready to be run. Navigate from Run Execute Job and select the Job
name.
Look at the finished Jobs for a pie chart reporting the possible findings
from the execution of the job. Here all records are In-Sync.
Clicking the Report under the report header will give you a detail report.
Look at the Appendix for more detail description.
You can get detail information by drilling into the compare pair details as
follows.
You can use OGG Veridata vericom utility. It has limited functionality such
as start a job or shutdown the server.
Where:
-shutdown
Shutdown the server
{ -job | -j } <job>
Run job <job>
-help
Print usage.
-version, -v
Print version.
{ -url | -u } <url>
Required if veridata.loc, or veridata.cfg are not
in the current working directory,
or if you do not have read permission on them.
{ -password | -p } <password>
Required if password.txt or veridata.loc, or
veridata.cfg are not in the current working directory,
or if you do not have read permission on them.
-helprun
Print usage of run_flags
run_flags
Flags for running a job or compare pair
[oracle@raclinux1 bin]$
For example to run the same job execute the following command
Summary
In the article you looked at the steps to install and configure OGG Veridata
components. You performed data comparisons using the OGG Veridata.
Appendix
Detail Reports
++++++++++++++++++++++++++++++++++++++++++++++++===
***********************************************************************
Oracle GoldenGate Veridata Server
Version 3.0.0.11.2 13856837 OGGVDT_3.0.0.11.2_PLATFORMS_120626.0940
Copyright (C) 2004, 2012, Oracle and/or its affiliates. All rights reserved.
***********************************************************************
Compare Parameters:
(oracle)
(oracle)
Profile: $default
General:
***********************************************************************
Out-Of-Sync Output Format: binary
Maximum Size of Each
Out-Of-Sync XML Chunk (Rows): 500
Output in-sync rows to OOS
file: false
Output in-sync after in-flight
rows to OOS file: true
Report in-sync rows to report
file: false
Report in-sync after in-flight
rows to report file: false
Sorting Method:
Sort Data Using: database
Maximum Memory Usage (MB): 50
Number Of Concurrent Threads: 4
Temporary Storage Directory
Confirm-Out-Of-Sync (General):
***********************************************************************
Perform Confirm Out-Of-Sync
Step: true
Run Concurrently With
Initial Compare: true
Delay Confirm-Out-Of-Sync
By (seconds): 0
Confirm-Out-Of-Sync (Agent):
***********************************************************************
Use Static Listening Port For
Agent During Row Hash
On Source: 0
Use Static Listening Port For
Agent During Row Hash
On Target: 0
With:
Target Process CPU Number: -1
Target Process Priority: 0
Starting
Starting
rows: 2
duration (secs): 00:00:31
rows/sec: 0.06
row bytes: 130
row bytes/sec: 4
bytes/row: 65
rh bytes/row: 19
rows skipped: 0
blocks skipped: 0
hash comp rate: 0.29
total comp rate: 0.12
pct time fetching: 0.00
pct time waiting: 0.19
time until first row: 00:00:00
ipc msgs: 7
ipc bytes: 2769
bytes/msg: 395
compressed bytes/msg: 162
bytes/sec: 89
compressed bytes/sec: 36
msg compression ratio: 0.41
Rows out-of-sync: 0
inserts: 0
updates: 0
deletes: 0
Rows in-sync-after-in-flight: 0
inserts: 0
updates: 0
deletes: 0
Rows in-flight: 0
inserts: 0
updates: 0
deletes: 0
rows: 2
duration (secs): 00:00:27
rows/sec: 0.07
row bytes: 130
row bytes/sec: 4
bytes/row: 65
rh bytes/row: 19
rows skipped: 0
blocks skipped: 0
+++++++++++++++++++++++++++++++++++++++++++++++++++==
**********************************************************************
Oracle GoldenGate Veridata Server
Version 3.0.0.11.2 13856837 OGGVDT_3.0.0.11.2_PLATFORMS_120626.0940
Copyright (C) 2004, 2012, Oracle and/or its affiliates. All rights reserved.
***********************************************************************
Compare Parameters:
(oracle)
(oracle)
Profile: $default
General:
***********************************************************************
Out-Of-Sync Output Format: binary
Maximum Size of Each
Out-Of-Sync XML Chunk (Rows): 500
Output in-sync rows to OOS
file: false
Output in-sync after in-flight
rows to OOS file: true
Report in-sync rows to report
file: false
Report in-sync after in-flight
rows to report file: false
Sorting Method:
Sort Data Using: database
Confirm-Out-Of-Sync (General):
***********************************************************************
Perform Confirm Out-Of-Sync
Step: true
Run Concurrently With
Confirm-Out-Of-Sync (Agent):
***********************************************************************
Use Static Listening Port For
Agent During Row Hash
On Source: 0
Use Static Listening Port For
Agent During Row Hash
On Target: 0
Starting
Starting
NLS_LENGTH_SEMANTICS : BYTE
SESSIONTIMEZONE : +02:00
Process ID : 28791
Operating System : Linux
Architecture : x86_64
Report File :
/u02/ogg_veridata/veridata/agent/dirver/report/raclinux1_gj_com_4150_00001005000000010000
0002___target_rh.rpt
Trace File :
/u02/ogg_veridata/veridata/agent/dirver/trace/raclinux1_gj_com_4150_000010050000000100000
002___target_rh.trc
rows: 12
duration (secs): 00:00:29
rows/sec: 0.41
row bytes: 937
row bytes/sec: 32
bytes/row: 78
rh bytes/row: 19
rows skipped: 0
blocks skipped: 0
hash comp rate: 0.25
total comp rate: 0.10
pct time fetching: 0.00
pct time waiting: 0.20
time until first row: 00:00:00
ipc msgs: 7
ipc bytes: 3228
bytes/msg: 461
compressed bytes/msg: 195
bytes/sec: 111
compressed bytes/sec: 47
msg compression ratio: 0.42
rows: 12
duration (secs): 00:00:25
rows/sec: 0.48
row bytes: 937
row bytes/sec: 37
bytes/row: 78
rh bytes/row: 19
rows skipped: 0
blocks skipped: 0
hash comp rate: 0.25
total comp rate: 0.10
pct time fetching: 0.00
pct time waiting: 0.24
time until first row: 00:00:00
ipc msgs: 7
ipc bytes: 3228
bytes/msg: 461
compressed bytes/msg: 196
bytes/sec: 129
compressed bytes/sec: 54
Rows out-of-sync: 0
inserts: 0
updates: 0
deletes: 0
Rows in-sync-after-in-flight: 0
inserts: 0
updates: 0
deletes: 0
Rows in-flight: 0
inserts: 0
updates: 0
deletes: 0