overview enterprise replication
TRANSCRIPT
-
8/18/2019 Overview Enterprise Replication
1/28
January 28,
Informix Enterprise ReplicationOverview, Configuration,Monitoring
James EdmistonDatabase Consultant
Quest Information Systems, Inc.www.questinfosys.com
-
8/18/2019 Overview Enterprise Replication
2/28
January 28,
Purpose
Identify key items witin te Informi! en"ineto confi"ure, monitor and trouble soot
Informi! Dynamic Ser#er Enter$rise%e$lication &E%'.
-
8/18/2019 Overview Enterprise Replication
3/28
January 28,
Outline
( )#er#iew of Enter$rise %e$lication
( Ser#er Confi"uration
( %e$lication Confi"uration( *onitorin"
( +rouble sootin"
( Documentation
-
8/18/2019 Overview Enterprise Replication
4/28
January 28,
Enterprise ReplicationOverview
rom I-* Enter$rise %e$lication &E%' or Continuous Data%e$lication &CD%' is a built/in, lo"ical lo" based, asyncronousmecanism to distribute can"es to s$ecific tables and rowsacross an arbitrary number of $artici$atin" nodes on a
transactional le#el. 0ses
( Data Dissemination / Distributin" data to oter sites
( Data Consolidation / Distributin" data to oter sites
( 1orkload 2artitionin" / Distributin" data to 3load balance3
( 1orkflow %e$lication / *o#in" data trou" a workflow $rocess
( ailo#er / 2ro#idin" an alternate en#ironment in case of failure
-
8/18/2019 Overview Enterprise Replication
5/28
January 28,
-
8/18/2019 Overview Enterprise Replication
6/28
January 28,
Considerations
( Selectin" %e$lication model
4 2rimary5+ar"et
4 0$date 6nywere
( Conflict resolution7
( +o$olo"y
4 ully connected
4 8ierarcical
-
8/18/2019 Overview Enterprise Replication
7/28January 28,
Server Configuration
( Ser#er to Ser#er communications confi"ured about all5for allser#ers in#ol#ed in E%
4 5etc5osts
4 5etc5ser#ices
4 +rusted en#ironment
( 8osts.equi#
( .rosts
4 Sqlosts
( Ser#ers be members of ser#er "rou$s
( 0nique
-
8/18/2019 Overview Enterprise Replication
8/28January 28,
Server Configuration(disk space considerations
( 9o"ical lo"s
( E!tra database s$ace for C%C)9S and delete tables
( Dbs$aces for send and recei#e queues
( Dbs$ace for "rou$er $a"in" file
( Disk s$ace5directories for 6+S and %IS files
-
8/18/2019 Overview Enterprise Replication
9/28
-
8/18/2019 Overview Enterprise Replication
10/28January 28,
Server Configuration(onconfig
onconfi" #ariables
CDR_EVALTHREADS 1,2 "#$%u$tor thr"$ds &p"r-cpu-#p,$ddition$%'
CDR_DSL(C)*A+T DS %oc.$it ti/"out &s"conds'CDR_0EEE 3456 $xi/u/ $/ount of /"/or7 for $n7 CDR 8u"u" &)b7t"s'
CDR_9+:C(;RESS 4 Lin %"#"% co/pr"ssion &-1 n"#"r, 4 non", 5 /$x'
CDR_SER+AL 4 S"ri$% Co%u/n S"8u"nc"
CDR_D CDR 8u"u" dbsp$c" &d"f$u%t s$/" $s c$t$%og'
CDR_0DATA_S
-
8/18/2019 Overview Enterprise Replication
11/28January 28,
ER Configuration
( Define ser#ers
( Define re$licates;
( Define $artici$ants;
;or use tem$late &define and reali
-
8/18/2019 Overview Enterprise Replication
12/28January 28,
ER Configuration
( cdr utility
4 See Quick %eference :uide
4 See E% :uide 4 6$$endi! 6
( =ee$ it sim$le
>. Define Ser#ers
?. Define +em$late
. %eali
-
8/18/2019 Overview Enterprise Replication
13/28January 28,
cdr Example # server
( Define Ser#er &first ser#er'
cdr d"fin" s"r#"r --conn"ct=ifx_db1 --id%"=4 --init g_group1
--$ts=Binfor/ixB$ts --ris=Binfor/ixBris
)%
cdr d"f s"r# c ifx_db1 i 4 -+ g_group1
-A Binfor/ixB$ts R Binfor/ixBris
-
8/18/2019 Overview Enterprise Replication
14/28January 28,
cdr Example # server (cont
( Define ser#er
cdr d"fin" s"r#"r --conn"ct=ifx_db2 --id%"=4 --init
--sync=g_group1 g_group2 --$ts=Binfor/ixB$ts --ris=Binfor/ixBris
)%
cdr d"f s"r# c ifx_db2 i 4 -+ S g_group1 g_group2
-A Binfor/ixB$ts R Binfor/ixBris
-
8/18/2019 Overview Enterprise Replication
15/28January 28,
ER Configuration (cont
( %e$licates
4 2artici$ants
4 *aster re$licate 4 Conflict resolution rules and sco$e
( %e$licate set
4 :rou$in" re$licates so tey a#e te samecaracteristics
-
8/18/2019 Overview Enterprise Replication
16/28January 28,
ER Configuration (cont
( +em$lates
4 Easier set u$ of re$lication wit lar"e numbers oftables to re$licate
4 Defines a "rou$ of master re$licates and are$licate set
-
8/18/2019 Overview Enterprise Replication
17/28January 28,
cdr Example (template
( dbtemplate 4 te name of te tem$late
( file / contains list of table names
cdr d"fin" t"/p%$t" dbt"/p%$t" --conf%ict=$%.$7s --scop"=ro.
--$ts --ris --/$st"r=g_group1
--d$t$b$s"=stor"s_d"/o
--fi%"=Binfor/ixBdbsch"/$txt
cdr r"$%i" t"/p%$t" dbt"/p%$t" g_group1
cdr r"$%i" t"/p%$t" dbt"/p%$t" g_group2
-
8/18/2019 Overview Enterprise Replication
18/28January 28,
Monitoring
( cdr utility
4 cdr list
4 cdr #iew
4 cdr error
( onstat commands
( *essa"e lo" &online lo"'
-
8/18/2019 Overview Enterprise Replication
19/28January 28,
Monitoring
SERVER +D STATE STATS 0EE C(99ECT+(9 CHA9ED
-----------------------------------------------------------------------
g_group1 1 Acti#" Loc$% 4g_group2 2 Acti#" Conn"ct"d 4 F$n 5 13G2G46
( cdr list A
4 %e$licate 4 %e$licate set
4 +em$late
( cdr list ser#
-
8/18/2019 Overview Enterprise Replication
20/28
January 28,
( cdr #iew &new in >B.BB.0C' ou must first e!ecute IF)%*IGDI%5etc5syscdrsmiadd.sql on all nodes
&no connections allowed to syscdr or sysmaster'
cdr #i". I-c s"r#"rJ I-r int"r#$%J obK"ct&s' IoptionsJ
-c s"r#"r --conn"ct=s"r#"r conn"ct to s"r#"r
-r int"r#$% --r"p"$t=r"p"$t int"r#$% in s"conds
obK"ctsG %ist of obK"cts s"p"r$t"d b7 sp$c"
List of support"d obK"cts $nd th"ir suboptions $r"G
ddr
s"r#"rs
s"nd8
nif
$pp%7
rc#
ris
$ts
profi%" st$t"
$tsdir I-R -C -# -d -8J
risdir I-R -C -# -d -8J
-R r"p$ir
-C ch"c
-# #"rbos"
-d d"%"t" option for r"p$ir -8 8ui"t option for r"p$ir
-
8/18/2019 Overview Enterprise Replication
21/28
January 28,
onstat /" o$tions
cat Hsco$e re$lname
2rint Enter$rise %e$lication "lobal catalo" information
cdr 2rint Enter$rise %e$lication statistics
dtc 2rint statistics for te Enter$rise %e$lication delete table cleaner
dss H 0D% 0D%!
2rint statistics about data sync treads and user/defined data ty$es
"r$ H 6EE!:99!**
-
8/18/2019 Overview Enterprise Replication
22/28
January 28,
Message log (online log
13G2G24 CDR conn"ction to s"r#"r %ost, id 2, n$/" g_group2>
R"$sonG disconn"ct s"r#"r
13G2G24 CDR 9+: shutdo.n .$iting for 1 sit"&s' to disconn"ct
13G2G22 CDR 9+: shutdo.n .$iting for 4 sit"&s' to disconn"ct13G2G22 CDR 9+: Shutdo.nG conn"ctions $%% shutdo.n
13G2G22 CDR Th" 9+: sub-co/pon"nt h$s shut do.n
13G2G2M DDR Log Snooping - Shutdo.n
13G2G2 CDR shutdo.n co/p%"t"
-
8/18/2019 Overview Enterprise Replication
23/28
January 28,
$%S and RIS files
( 6borted +ransaction S$oolin"
4 +ransactions tat fail to be a$$lied to te tar"etdatabase
( %ow Information S$oolin"
4 re$licate row data tat fails conflict resolution orencounters re$lication order $roblems
-
8/18/2019 Overview Enterprise Replication
24/28
January 28,
$re &ou in s&nc'(courtes& IMMethod Description
Select count&;' 6 sim$le way to ceck if te row counts are te same. +is metod willnot tell you about rows tat are different. Consider settin" te isolationle#el to Ldirty readM before runnin" tis on a li#e table.
Select from &site 6'were 2= not in &site -'
+is metod will ceck te 2rimary =ey between sites. 8owe#er, it willnot ceck for data outside te 2= tat may a#e been u$dated.
Select from &site 6'were 2= not in &site -'and 6.crcols NO-.crcols
+is metod cecks te 2= and cecks for u$dates to oter row data bycom$arin" te sadow columns. 8owe#er, tis metod will only workwit re$licates wit timestam$ conflict resolution, and may not work wellin E% en#ironments wit more tan ? ser#ers.
0nload to files, tenuse diff to com$are
+is is a LmanualM o$eration and can be #ery time consumin". Consideronly as a last resort.
cdr ceck 0ses te cecksum&' udr to com$are full rows &>B.BB.!CP and abo#e'
-
8/18/2019 Overview Enterprise Replication
25/28
January 28,
)etting ack in s&nc(courtes& IM
Method Description
8i" 2erformance 9oader +is is te fastest o$tion for lar"e data sets, but requires a "ood deal of setu$ before runnin". 0seLE!$ressM mode for data loads as it will load te C%C)9S data.
Dbim$ort5dbe!$ort Fot a "ood o$tion for E%. +ey require e!clusi#e access to te database and cannot be used wile E% isacti#e.
Dbload 6 "ood coice if you a#e a set of data tat needs to be re$licated to oter sites. Data loaded into acti#ere$licates will be re$licated.
)nunload5onload Fot a "ood fit wit E% acti#e. -ot utilities require database lo""in" to be off. +e table or databaseloaded cannot e!ist, as te utility creates it. 9astly, wen tables are loaded, tey do not retain anyinformation on constraints, tri""ers, and default #alues.
0nload59oad Data loaded into acti#e re$licates will be re$licated unless te transaction is started wit te followin"synta! -E:IF 1)%= 1I+8)0+ %E29IC6+I)F.
Select from &site 6' were2= not in &site -'
If you a#e a small set of data tat needs to be synced, tis may be a "ood o$tion. +ere are issues witlo""in" wic you sould be aware of before usin" tis metod.
0$date col> col> If your re$licate uses timestam$ conflict resolution, tis o$tion will u$date e!istin" any rows, and insert anymissin" rows.
Dro$ E%, -acku$,%estore, Start E%
+is o$tion requires an E% outa"e, but if you a#e a lar"e set of data and5or re$licates 4 tis o$tioninsures you will be in sync.
cdr sync Syncroni
-
8/18/2019 Overview Enterprise Replication
26/28
January 28,
*ocumentation
( I-* Informi! Dynamic Ser#er Enter$rise%e$lication :uide
( 6dministrator :uide
( )nline
4 www.ibm.com5informi!
4 IDS Information Centers &by #ersion >B,>>.>B, >>.PB'
http://www.ibm.com/informixhttp://www.ibm.com/informix
-
8/18/2019 Overview Enterprise Replication
27/28
January 28,
Summar&
( Informi! Dynamic Ser#er Enter$rise %e$lication
( Confi"uration &Ser#er and E%'
( *onitor
4 cdr, onstat, lo"s
( +rouble soot
4 cdr, onstat, lo"s
( Documentation
-
8/18/2019 Overview Enterprise Replication
28/28
January 28
+uestions'
James Edmiston
Database ConsultantQuest Information Systems, Inc.www.questinfosys.com