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

Home -> Community -> Mailing Lists -> Oracle-L -> how to connect from oracle to sql server database

how to connect from oracle to sql server database

From: Harvinder Singh <Harvinder.Singh_at_MetraTech.com>
Date: Wed, 06 Jun 2001 09:27:54 -0700
Message-ID: <F001.0031E7D6.20010606092647@fatcity.com>

Hi,

I am trying to connect from oracle to sqlserver using oracle oledb but when i try to execute the follwing command from sqlplus i am getting error:

SQL> select * from "dbo"."EMPLOYEES"@MSOLEDB; select * from "dbo"."EMPLOYEES"@MSOLEDB

                                *

ERROR at line 1:
ORA-12154: TNS:could not resolve service name

the tnsnames.ora entry looks like this:

MSOLEDB =
  (DESCRIPTION =
    (ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = ora2000)(PORT = 1521))
    )
    (CONNECT_DATA =
(SID = GCORA2000)

    )
(HS=OK)

  )

sql server name is ora2000.

what i have to change.

Thanks
Harvinder

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Harvinder Singh
  INET: Harvinder.Singh_at_MetraTech.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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 Jun 06 2001 - 11:27:54 CDT

Original text of this message

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