Sync Framework: Oracle/SQLServer

浪子不回头ぞ 提交于 2019-12-10 10:34:15

问题


I want to setup a sync service using Microsoft Sync Framework. The main objective is to sync some tables between an Oracle Database and a SQL Server Database.

How can I do it? There are any OracleSyncProvider?


回答1:


if you go the Sync Framework way, there is a sample Oracle sync provider at: http://code.msdn.microsoft.com/Database-Sync-Oracle-and-037fb083




回答2:


There are several forms of third party software which will automate this process for you, however if you would like to do it manually I would suggest the Oracle CREATE DATABASE LINK. This approach allows you to access information (tables,views, etc) from another database using the Heterogeneous Services.

Once you have established a connection between the two databases you can create a trigger for the Oracle tables which in-turn fire on updates/inserts/deletes so that the same action gets invoked on the Microsoft database.

See the following link for additional details on Oracle's DATABASE LINK : http://docs.oracle.com/cd/B12037_01/server.101/b10759/statements_5005.htm

The same setup can be applied to the SQL server so that whenever an update/insert/delete is performed the correlating table in Oracle gets updated, "synced", as well. For the Microsoft approach to this see the following link, http://msdn.microsoft.com/en-us/library/ms188279.aspx .




回答3:


To solve this problem I used a Linked Server to the Oracle DB Server and after that I created a SQL SERVER JOB that runs the Merge command.



来源:https://stackoverflow.com/questions/8658617/sync-framework-oracle-sqlserver

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!