Clarification on steps creating Database Replication Definition
0
votes
1
answer
471
views
I am being asked to create database replication definitions for a couple of databases (around 20 databases). I just wanted to clarify is the below-mentioned steps are the correct steps to be carried out?
Let's says 'customer' is one of my database.
1. Set ddl in tran to true
sp_dboption customer,"ddl in tran", true
2. Mark the primary database using sp_reptostandby
sp_reptostandby customer,'all'
3. Set the RepAgent parameter send warm standby xacts to true
sp_config_rep_agent customer,'send warm standby xacts', 'true'
4. Create db repdef/subs
`create database replication definition db_repdef_customer
with primary at DS.customer
replicate DDL
replicate system procedures
go`
`create subscription db_sub_customer
for database replication definition db_repdef_customer
with primary at DS.customer
with replicate at DS2.customer1
without materialization
go`
(Note: DS.customer and DS2.customer1 are ASE-ASE replication)
After I have followed the above steps to create db repdef/subs, I hit a lot of permission issues on my replication ID to do INSERT/UPDATE/DELETE operators on those tables I did not setup table replication yet. Further check on these tables in my 'customer' database (ex. I tried to do insert/update/delete operations manually on tables without setting table repdef, I realised that the data replication is working for all the tables under the 'customer' database with/without I setup table replication. Is this normal? Any steps I have missed out? Please help.
Asked by Tittus
(33 rep)
Mar 13, 2018, 03:00 AM
Last activity: Apr 11, 2025, 04:05 AM
Last activity: Apr 11, 2025, 04:05 AM