postgresql with SQL Server - sql-server

I have two databases servers one on SQL Server 2000, second on PostgreSQL on different server. I want to link them. I create duplicate table on the PostgreSQL. Now I want, when new value appeared in SQL Server duplicate them to PostgreSQL. How to do that? How can I see the SQL Server on PostgreSQL? Or must I create an application which will send message from SQL Server to PostgreSQL?

Here's a description on how to set up master/slave replication between SQL Server and Postgres (i.e. SQL Server=master updates to Postgres):
http://blog.hagander.net/archives/103-Replicating-from-MS-SQL-Server-to-PostgreSQL.html
Looks like your scenario.

Related

Replicate Changes from oracle to Sql Server

I have Oracle database 11 g in which I have many tables. I want to replicate few of these tables in SQL server so whenever a new record is inserted in oracle table I also want to update in SQL server table. I have created linked server but don't know what to do next. Kindly guide me how can I replicate changes on SQL server side.
Use Goldengate (An Oracle tool) that can do bi-directional replication from Oracle to Sql Server. See this:
http://www.oracle.com/us/products/middleware/data-integration/goldengate/using-gg11g-for-sql-server-1489372.pdf

How can I move data from SQL Server to Oracle?

I have created my database and tables in a SQL Server Express database. And now I migrated the database tables to Oracle with Entity Framework. But my tables are empty in Oracle. How can I move my data to Oracle?
Use SSIS interface from MS-SQL (Sql Server Integration Service).
I have used to move content from MSSQL to MySQL you should use the correct odbc driver.
For express edition, You can use Linked Servers to establish connection between SQL Server and Oracle. In this way, you should insert the records by creating queries for per table.
https://learn.microsoft.com/en-us/sql/relational-databases/linked-servers/linked-servers-database-engine

Update Database on 2 Server

I want to make a Clone server Like Server A and Server B
Ex :
After I'm making update in Server A data then on Server B is Sync Automatically or Programatically with Server A. When update Stored Procedure on Server A the server B is Sync.
is it possible ?
I don't want an answer like Backup then Restore.
You can use SQL server replication.
More information you can refer
SQL Server Replication
An other option could be using Mirroring on SQL Server although it will not be continued on feature versions of SQL Server.
Please note that the secondary database is readonly copy of the principal database in mirroring.
If you have plans for versions after SQL Server 2016, you can think of using Always On Availability Groups

Connecting Oracle to Microsoft SQL Server on 2 different servers

I am trying to make a connection between Oracle and SQL Server to insert some values from Oracle into SQL Server. I have 2 questions which i was hoping you can help.
There is a stored procedure created in Oracle 11g database. It joins a few tables together and pushes the values into a table called my_table in SQL Server.
The issue/question I have: I've tried to make a connection between Oracle and SQL Server using this link: Making a Connection from Oracle to SQL Server - Page 2 — DatabaseJournal.com
The instruction is however for when Oracle and SQL Server are on a same server.
As is my case Oracle is on one server and SQL Server is on another, I am struggling to understand the concept of setting up Listener and tbs.
Do I have to do any configuration on SQL Server? Do I need to create the DNS on SQL Server?
When I create a DNS in Oracle server, the connection to SQL Server is successful (port 1433) but I'm not sure how to alter my Listener and TNS for that.
My Oracle knowledge is not advanced but so far I've managed to get to this point. Hope you can help me resolve the last bit of the puzzle.

Best practise how to sync a SQL Server database

What is best practise if we have application using a SQL Server database and we would like to have backup if SQL Server not work?
Our scenario:
We would like to use a SQL Server database (main).
If main SQL Server does not work, we would like to use different SQL Server database with same data.
If main SQL Server works again, we need to sync data back to main SQL Server database.
Failover Cluster is an option, but are they any other options?

Resources