DATETIME SELECT SELECT INTO DATE PAD STRING DYNAMIC SQL CURSOR MONEY FORMAT PERCENT STORED PROCEDURE SQL SERVER AGENT JOB OPTIMIZATION WHILE LOOP OVER PARTITION BY UPDATE
SITE SEARCH SQLUSA.com HEADLINES NEWS
SQL E/BOOKS   SQL 2014 PROGRAMMING   DOWNLOADS
SCRIPTS SQL 2005 SQL 2008 ARTICLES
SQL JOBS TWITTER FORMAT VIDEOS
How to make linked server connection to ORACLE work?

After you setup a linked server to a remote ORACLE database, you have to set the remote login and password for the connection to work:

EXEC sp_addlinkedsrvlogin
@rmtsrvname = '34.55.230.99', -- ORACLE IP or Network Name
@useself = false,
@locallogin = 'dbadmin', -- local SQL Server 2005 login
@rmtuser = 'msmith', -- ORACLE Login
@rmtpassword = 'secret' -- ORACLE Password
GO

-- SQL Server linked server setup

exec sp_addlinkedserver 'YOURNEWLINKEDSERVER', '', 'SQLNCLI', NULL, NULL, 'SERVER=15.34.12.5', NULL 

 

exec sp_addlinkedsrvlogin 'YOURNEWLINKEDSERVER', 'false', NULL, 'username', 'password' 

------------

Related articles:

How to set up and troubleshoot a linked server to an Oracle database in SQL Server

Microsoft OLE DB Provider for Oracle (Database Engine)

 

Exam Prep 70-461
Exam 70-461
DATETIME SELECT SELECT INTO DATE PAD STRING DYNAMIC SQL CURSOR MONEY FORMAT PERCENT STORED PROCEDURE SQL SERVER AGENT JOB OPTIMIZATION WHILE LOOP OVER PARTITION BY UPDATE