Sayfalar

2 Ocak 2014 Perşembe

Sybase Rep server kurulumu


REPLİCATION SERVER

Regular Replication     tablo bazında
Warm Standby         database bazında  (aktif,pasif)
MSA            birden fazla database

Mirror Aktivator

Rep Server da kullanıcı ve şifreler cfg dosyasında mevcut

Rep server kurulduktan sonra geri kalan işlemleri rs_init ile rep server instance kurulur

ASE server kurulduktan sonra  charset yapılır
charset -Usa -P -S turdict.srt iso88599

sp_configure "default sortorder_id",72,"iso88599" restart gerekiyor

*************************
REP SERVER KURULUMU

mkdir sybasers/PRS
mkdir sybasers/RRS

touch /sybasers/PRS/prs_part.dat
touch /sybasers/RRS/rrs_part.dat

/sybrep/data/pektas/rep_pektas.dat
cp ../sybase/interfaces .

create route
isql -Usa -P -SPRS
1> create route to RRS
2> set username to RRS_rsi
3> set password to RRS_rsi_ps
4> go
1> exit
isql -Usa -P -SRRS

1> create route to PRS
2> set username to PRS_rsi
3> set password to PRS_rsi_ps
4> go

sp_setreptable authors,true

sf 4.23 önemli

rs_helprep RSSD databasinde ile repdefleri görebiliriz

sf 5.35-38 önemli

-- prdb & rdb
create table test_table (id int, data_column char(30))
go
grant all on test_table to public
go

create replication definition test_table_repdef
with primary at PDS.pdb
with all tables named "test_table"
(id int, data_column char(30))
primary key(id)
go

create subscription test_table_sub
for test_table_repdef
with replicate at RDS.rdb
without materialization
go

check subscription test_table_sub
for test_table_repdef
with replicate at RDS.rdb
go

-- pdb
sp_setreptable test_table, true
go
insert into test_table values(1, "This is another test record")
go
select * from test_table
go

WARM STANDBY

sp_stop_rep_agent pdb
dbcc settrunc(ltm,ignore) ile veya sp_config_rep_agent 'databasename',disable  truncation pointi kaldırır

sp_stop_rep_agent PRS_RSSD
dbcc settrunc(ltm,ignore)

sp_setreptable test_table,false  tum tabloların marklarının işaretleri kaldırılır

tablolara ait repdef ve subcriptionlar silinir

2 taraftaki routeler silinir

sf 7.26 önemli

sf 8,7 önemli switch over adımları

admin logical_status ile replike olan database ve yerleri görülür

Hiç yorum yok:

Yorum Gönder