Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Linked Server and remote TNSNAMES

RE: Linked Server and remote TNSNAMES

From: Goulet, Dick <DGoulet_at_vicr.com>
Date: Wed, 30 Jul 2003 11:14:24 -0800
Message-ID: <F001.005C7DF7.20030730111424@fatcity.com>


Jay,

        No, it's a MicroSlop thing. IIS & MTS have the same problem.

Dick Goulet
Senior Oracle DBA
Oracle Certified 8i DBA

-----Original Message-----
Sent: Wednesday, July 30, 2003 12:00 PM
To: Multiple recipients of list ORACLE-L

We have a SQL Server database that needs to link to an Oracle database. I have been able to successfully setup this "linked server" entry in SQL Server, but only when I am using a local TNSNAMES.ORA. We typically have all of our Win2000 machines point to a central TNSNAMES.ORA file that is on a file server using ifile (in the local tnsnames). For example:

ifile="//cluster01\apps\oracle\sqlnet\tnsmaster.ora" < this works for SQL*Plus only>

Using the above "ifile" entry in the local TNSNAMES file, I am able to connect to databases from this box using SQL*Plus. However, my SQL Server "linked server" reports a "ORA-12154: TNS:could not resolve service name". If I change my ifile entry to use a local tnsnames file, I no longer get this error from SQL Server. For example:

ifile=c:\oracle\ora920\network\admin\tnsmaster.ora < this works for SQL*Plus and SQL Server>

SQL Plus works for both scenarios. SQL Server works only for the second scenario. What has me stumped is that SQL*Plus works, but SQL Server does not. I think it might be some type of network rights issue, but I have not confirmed it. Does anybody use SQL Server to link to an Oracle database, using a TNSNAMES file that is remote?

Thanks,
Jay   

**DISCLAIMER
This e-mail message and any files transmitted with it are intended for the use of the individual or entity to which they are addressed and may contain information that is privileged, proprietary and confidential. If you are not the intended recipient, you may not use, copy or disclose to anyone the message or any information contained in the message. If you have received this communication in error, please notify the sender and delete this e-mail message. The contents do not represent the opinion of D&E except to the extent that it relates to their official business.
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Jay Hostetter
  INET: jhostetter_at_decommunications.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Goulet, Dick
  INET: DGoulet_at_vicr.com
Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Wed Jul 30 2003 - 14:14:24 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US