Verify 2 SQL Server linked servers to Oracle are equal - sql-server

I am migrating SQL Server 2005 to SQL Server 2012.
One of the items to migrate is a linked server to oracle. The configuration of server, DNS, firewall, etc are not on my side.
I need to make sure they are configuring the correct linked server, pointing to the correct database (we have many copys of databases).
What Query can I run in both sql servers to identify the Oracles servers and databases are the same?

You can show all linked servers from the sys.servers table on each of the server instances.
select * from sys.servers;
The linked Oracle server will be listed under:
product = `Oracle`
and provider = `OraOLEDB.Oracle`

Related

SQL Server Linked Server query to Oracle will not work when rdp onto the sql server but will work when connecting from laptop

We have an offsite server A hosting an Oracle database, and an on-site SQL Server B.
We have a linked server set up on B pointing at A.
If I connect from my laptop to SQL Server B and run a query against the linked server, the query will succeed.
If I remote desktop onto SQL Server B and run the same query I get the following error:
RA-12638: Credential retrieval failed
The query works from every machine I have tried it on apart from Server B where the SQL Server is hosted, what might be causing this issue?
This was resolved by updating sqlnet.ora, changing authentication from NTS to NONE.

Viewing Linked Server Tables on Different Versions of SSMS

We have a SQL Server 2014 with a linked server with SQL Server 2016.
From SSMS on my local machine I can see the remote linked server under Server Objects, but I cannot see any of the tables in the database.
If I login to the machine running SQL Server 2014 and login with the same domain credentials I can see the linked server and the tables.
Suggestions?

Powerbuilder 12.6 connection to a SQL Server linked server

Do you know how to set SQLCA connection parameters in order to connect my pb 12.6 app to a linked server on SQL Server 2012?
We already connect to a SQL Server database but we also need to connect to a linked server on this database (customer requirement)
Any hints?
Thanks
Linked server happens at the server side. No change to login. To access the tables you will need to use the link name and database name in sql. To make it easier I would create views in your database that refer to the linked database table. Then you can use the view name in your app.

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

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.

Resources