Sei sulla pagina 1di 4

Adding New Replication From Sybase To Oracle

Task Description Summary: Developer notifies DBA about the upcoming heterogeneous replication change at least 2-3 weeks ahead of time. If the replication setup is complicated due to data type mismatches between source and target schemas/databases, developer, DBA and DB Architect will meet to discuss about the issues. Developer will make the changes in DDLs (if any). Once developer and DBA agree on the dates when the replication requests will be implemented in production, Developer submits the DDL to create/modify the source and target tables to the Deployment Team. UAT Deployment: Deployment team executes the code changes in UAT first as per instructions specified in the deployment forms by the developer. Developer/Deployment team will notify DBA that the source and target table structure is created in UAT. Pre-requisite: Instruct the developer to add the following to the code in the deployment forms for each replicated Oracle target table: o Create SSGA_REPLICATION_ROLE and SSGA_REPLICATION_MONITOR_ROLE roles on Oracle instance if these roles do not exist. o GRANT INSERT, UPDATE, DELETE access on the new oracle table to SSGA_REPLICATION_ROLE o GRANT SELECT access on the new oracle table to SSGA_REPLICATION_MONITOR_ROLE

DBA Preparation
1) Check Sybase source and Oracle target table data types for compatibility (refer to SSGA Replication Best Practices.doc) If there are any issues with the data types work with the developer to fix in UAT. 2) Generate RepDefs and Proxy Tables and Subscription scripts using DBA Tool (refer to SOP885) 3) Generate Logical connection script, Active Database Connection and Replicate Database connection scripts using /sybase/rep-pemba-prod/sybase/bin/RSA/bin/CreateConnection.pl script on rep-pemba-prod host* 4) Verify maintenance user in Sybase primary and proxy databases * a) If maintenance user exists i) Log in as maintenance user to verify password b) If maintenance user does not exist
1082-Adding New Replication From Sybase To Oracle Page 1 of 4

i) Create login and alias the maintenance user as dbo in appropriate database. 5) Verify maintenance user in Oracle target instance * a) If maintenance user exists i) Log in as maintenance user to verify password b) If maintenance user does not exist i) Create login in Oracle target instance (match the password with Sybase primary maintenance user) ii) Grant SSGA_REPLICATION_MONITOR_ROLE, SSGA_REPLICATION_ROLE roles to maintenance user. 6) Verify the grants and synonyms on Oracle target schema.

PROD Deployment: Deployment team executes the code changes in production as per instructions specified in the deployment forms by the developer. Deployment team on successful completion of the execution of the code changes notifies DBA to start working on the replication.

Procedure:

1082-Adding New Replication From Sybase To Oracle

Page 2 of 4

Create Replication
Once DBA gets notified about the new oracle target table is created, creates the replication as below: 1) Create proxy database* 2) Create proxy table a) Verify primary table and proxy table data types match b) Run create proxy table command or run sp_addobjectdef and create existing table command 3) Grant permissions to maintenance user in proxy database* 4) Create logical database connections* 5) Create primary database connection* a) Run create connection command with as active parameter -- Create Active Database Connection create connection to <PrimaryASE>.<Primary DB> set error class to rs_sqlserver_error_class set function string class to rs_sqlserver_function_class set username repsrv_maint_user set password <maint users password> with log transfer on as active for LogCon.<Primary DB> 6) Set primary table to replicate by running sp_setreptable* 7) Replication Agent* a) Enable replication agent on primary b) Configure replication agent on primary c) Start replication agent 8) Run create replication definition script 9) Create replicate database connection to proxy database* create connection to "RSSD_ASE"."proxy_DB" set error class to "rs_sqlserver_error_class" set function string class to "rs_sqlserver_function_class" set username "repsrv_maint_user" set password "********" 10) Create subscription a) Define and check subscription b) Activate with suspend and check subscription c) Validate and check subscription
1082-Adding New Replication From Sybase To Oracle

Page 3 of 4

Authorization granted by: _____________________________ Date: ______________

1082-Adding New Replication From Sybase To Oracle

Page 4 of 4

Potrebbero piacerti anche