Connecting Oracle to Microsoft SQL Server on 2 different servers - sql-server

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.

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 to connect remotely to server using sql studio

I am new to SQL but this is what i would like to do.
I have these information
hostname: hostname.com
port: 1523
SID: oracledb
Username: username
Password: password
I would like to connect remotely to this server to retrieve data using MSSQL studio. Can you please explain to me how to do it. thank you
You cannot directly connect to and query an Oracle database using SQL Server Management Studio. You can, however, create a SQL Server linked server to your Oracle instance and query remotely through that. You would connect to your SQL Server using SSMS like normal, but query your linked server using the linked server name in 4-part naming fashion, e.g: select * from [MyOracleServer]..MyDatabase.MyTable.
Here is a SQLMag tutorial on doing this: Connecting SQL Server and Oracle Using Linked Servers.
read this thread from MSDN
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/e6d61861-b271-4d93-b14e-12ba9356798f/connect-to-oracle-via-sql-server-management-studio?forum=sqltools
Question Sign in to vote 3 Sign in to vote Yes, you add linked server
and access Oracle data from SSMS and here is how you to add it. These
links will help you understand how to add and trouble shoot the
issues. Setting Up an Oracle Linked Server
How to set up and troubleshoot a linked server to an Oracle database
in SQL Server
Also in order to migrate an Oracle database to SQL Server, we can use
SSMA (SQL Server Migration Assistant for Oracle)
There is a migration assistant available for Oracle to SQL Server
Migration
http://www.microsoft.com/downloads/details.aspx?familyid=3e8722ae-77f3-4288-906d-f421e24d322f&displaylang=en
But all the system objects becomes null in this scenario
Thanks Sreekar
http://msdn.microsoft.com/en-us/library/ms190479.aspx

Want to have a SQL Server run query against a SQL Anywhere DB on another server

I have a SQL Server 2012 database on one server, and a SQL Anywhere 12 database on another server. I want to schedule a nightly select query that pulls data from the SQL Anywhere DB to the SQL Server DB.
This is all easily done between two SQL Server databases, even on different servers, but I have no option for "Microsoft OLE DB Provider for SQL Anywhere" and everything I find on the subject seems to assume that both the SQL Server and the SQL Anywhere DBMS are on the same server. That is not an option for me.
Is there some way I can get and install just what is needed on the SQL Server system to let me get the SQL Anywhere provider option? Legally and without involving additional licensing?
Microsoft OLE DB Provider for SQL Anywhere is exactly the right one.
This creates the necessary installer:
Start Menu\Programs\SQL Anywhere 16\Administration Tools\Deploy to Windows
Then just install it on the SQL server and you're ready to go.

Connect to MS SQL server from PL/SQL Developer

I have PL/SQL Developer installed on my machine.
Version:-7.1.2
I want to connect to MS sql server from PL/SQL Developer. I have SQL server address, username and password with me.
I tried to search for the solution every possible way.
Can anybody help me with this?
You cannot. Directly from their web page (emphasis mine):
PL/SQL Developer is an Integrated Development Environment that is specifically targeted at the development of stored program units for Oracle Databases.
To connect to MS SQL Server from your desktop you need SQL Server Management Studio (free), Azure Data Studio (free), Toad for SQL Server ($$$), or another client that advertises connectivity to SQL Server.
open sql server from server objects add a linked servers to oracle
add stored procedure that will insert into the table in oracle and reads from sql table.
example:
INSERT INTO OPENQUERY (ERPTEST, 'SELECT EMPLOYEE_ID,FIRST_NAME FROM EMPLOYEE')
select Employee_Number,Full_Name_1 from [EmpDB].[dbo].[EMPLOYEES];

postgresql with 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.

Resources