HELP on connection to Oracle with Microsoft ODBC for Oracle Driver 
Author Message
 HELP on connection to Oracle with Microsoft ODBC for Oracle Driver

Greetings!

Sorry for the major cross-posting but I really need help here.  BTW: Thanks
in advance.

The Problem:
I am trying to setup an ODBC DSN to an Oracle server that resides at
Stanford U across The Internet.  I have everything set up to the best of my
knowledge correctly but when I attempt to connect via the ODBC DSN via
32-bit ODBC Test app (or any other app that supports ODBC connections for
that matter) I get the following...

The Error:
SQLSTATE: 08001
Native Error Code: 12154
Driver Message:[Microsoft][ODBC driver for Oracle][Oracle]ORA-12154
TNS:could not resolve service name

A Further Wrinkle:
I have set up another DSN using the Oracle provided ODBC driver and this
seems to work fine...  So you ask "why not use the Oracle driver if it
works?"  Well, the app that I am trying to get up and running uses RDO and
our testing shows that RDO and Oracle's ODBC drivers don't get along at all
so we are stuck with the Microsoft Oracle driver.  NOTE: I have tried a
couple of different versions of the Microsoft driver and get the same thing.

Oh yes, I should tell you that SQL Plus 3.3 connects to the server fine.
Also TNSPING.EXE finds the server fine.

The Platform:
Windows NT 4.0 - Service Pack 3
Oracle 7.3 Workgroup full install
DAO 3.5
ODBC 3.5 (3.510.3002.13)
MDAC 2.0
tried/no workie: Microsoft ODBC Driver for Oracle Ver. 2.00.006325
tried/no workie: Microsoft ODBC for Oracle Ver. 2.573.292700
tried/works/can't use: Oracle73 Ver. 2.00.0301

The TRSNAMES.ORA Section:
FAMIS_TEST.world =
  (DESCRIPTION =
    (ADDRESS_LIST =
        (ADDRESS =
          (COMMUNITY = tcp.world)
          (PROTOCOL = TCP)
          (Host = zzz.stanford.edu)
          (Port = 1521)
        )
        (ADDRESS =
          (COMMUNITY = tcp.world)
          (PROTOCOL = TCP)
          (Host = zzz.stanford.edu)
          (Port = 1526)
        )
    )
    (CONNECT_DATA = (SID = test)
    )
  )

Thanks again.  If I can provide anyone with any further info please let me
know!  Also, please email me directly at this address as well as posting in
the group.

Thanks,
Eric



Sun, 01 Jul 2001 03:00:00 GMT  
 HELP on connection to Oracle with Microsoft ODBC for Oracle Driver
Follow up:
I just realized I am getting another error before the one listed below...

So I get:
Error: 0: IM006: [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr
failed

Then I get:
Error: 12154: 08001: [Microsoft][ODBC driver for Oracle][Oracle]ORA-12154:
TNS:could not resolve service name

Maybe this will help you ODBC gurus out there help me ;-)

Thanks again,
Eric

Quote:

>Greetings!

>Sorry for the major cross-posting but I really need help here.  BTW: Thanks
>in advance.

>The Problem:
>I am trying to setup an ODBC DSN to an Oracle server that resides at
>Stanford U across The Internet.  I have everything set up to the best of my
>knowledge correctly but when I attempt to connect via the ODBC DSN via
>32-bit ODBC Test app (or any other app that supports ODBC connections for
>that matter) I get the following...

>The Error:
>SQLSTATE: 08001
>Native Error Code: 12154
>Driver Message:[Microsoft][ODBC driver for Oracle][Oracle]ORA-12154
>TNS:could not resolve service name

>A Further Wrinkle:
>I have set up another DSN using the Oracle provided ODBC driver and this
>seems to work fine...  So you ask "why not use the Oracle driver if it
>works?"  Well, the app that I am trying to get up and running uses RDO and
>our testing shows that RDO and Oracle's ODBC drivers don't get along at all
>so we are stuck with the Microsoft Oracle driver.  NOTE: I have tried a
>couple of different versions of the Microsoft driver and get the same
thing.

>Oh yes, I should tell you that SQL Plus 3.3 connects to the server fine.
>Also TNSPING.EXE finds the server fine.

>The Platform:
>Windows NT 4.0 - Service Pack 3
>Oracle 7.3 Workgroup full install
>DAO 3.5
>ODBC 3.5 (3.510.3002.13)
>MDAC 2.0
>tried/no workie: Microsoft ODBC Driver for Oracle Ver. 2.00.006325
>tried/no workie: Microsoft ODBC for Oracle Ver. 2.573.292700
>tried/works/can't use: Oracle73 Ver. 2.00.0301

>The TRSNAMES.ORA Section:
>FAMIS_TEST.world =
>  (DESCRIPTION =
>    (ADDRESS_LIST =
>        (ADDRESS =
>          (COMMUNITY = tcp.world)
>          (PROTOCOL = TCP)
>          (Host = zzz.stanford.edu)
>          (Port = 1521)
>        )
>        (ADDRESS =
>          (COMMUNITY = tcp.world)
>          (PROTOCOL = TCP)
>          (Host = zzz.stanford.edu)
>          (Port = 1526)
>        )
>    )
>    (CONNECT_DATA = (SID = test)
>    )
>  )

>Thanks again.  If I can provide anyone with any further info please let me
>know!  Also, please email me directly at this address as well as posting in
>the group.

>Thanks,
>Eric



Mon, 02 Jul 2001 03:00:00 GMT  
 HELP on connection to Oracle with Microsoft ODBC for Oracle Driver
Hi Eric,
I would recommend not to use Microsoft driver. You can download this
driver from Oracle web site for free; try those.

Imran.

Quote:

> Greetings!

> Sorry for the major cross-posting but I really need help here.  BTW: Thanks
> in advance.

> The Problem:
> I am trying to setup an ODBC DSN to an Oracle server that resides at
> Stanford U across The Internet.  I have everything set up to the best of my
> knowledge correctly but when I attempt to connect via the ODBC DSN via
> 32-bit ODBC Test app (or any other app that supports ODBC connections for
> that matter) I get the following...

> The Error:
> SQLSTATE: 08001
> Native Error Code: 12154
> Driver Message:[Microsoft][ODBC driver for Oracle][Oracle]ORA-12154
> TNS:could not resolve service name

> A Further Wrinkle:
> I have set up another DSN using the Oracle provided ODBC driver and this
> seems to work fine...  So you ask "why not use the Oracle driver if it
> works?"  Well, the app that I am trying to get up and running uses RDO and
> our testing shows that RDO and Oracle's ODBC drivers don't get along at all
> so we are stuck with the Microsoft Oracle driver.  NOTE: I have tried a
> couple of different versions of the Microsoft driver and get the same thing.

> Oh yes, I should tell you that SQL Plus 3.3 connects to the server fine.
> Also TNSPING.EXE finds the server fine.

> The Platform:
> Windows NT 4.0 - Service Pack 3
> Oracle 7.3 Workgroup full install
> DAO 3.5
> ODBC 3.5 (3.510.3002.13)
> MDAC 2.0
> tried/no workie: Microsoft ODBC Driver for Oracle Ver. 2.00.006325
> tried/no workie: Microsoft ODBC for Oracle Ver. 2.573.292700
> tried/works/can't use: Oracle73 Ver. 2.00.0301

> The TRSNAMES.ORA Section:
> FAMIS_TEST.world =
>   (DESCRIPTION =
>     (ADDRESS_LIST =
>         (ADDRESS =
>           (COMMUNITY = tcp.world)
>           (PROTOCOL = TCP)
>           (Host = zzz.stanford.edu)
>           (Port = 1521)
>         )
>         (ADDRESS =
>           (COMMUNITY = tcp.world)
>           (PROTOCOL = TCP)
>           (Host = zzz.stanford.edu)
>           (Port = 1526)
>         )
>     )
>     (CONNECT_DATA = (SID = test)
>     )
>   )

> Thanks again.  If I can provide anyone with any further info please let me
> know!  Also, please email me directly at this address as well as posting in
> the group.

> Thanks,
> Eric

--
===========================================
Imran Hussain
MCP, MCSD

For FREE Software http://www.imranweb.com/freesoft
===========================================


Mon, 02 Jul 2001 03:00:00 GMT  
 HELP on connection to Oracle with Microsoft ODBC for Oracle Driver
try checking the file host.bat on the current machine
this file allows translations of services to ip addresses

Quote:

>Follow up:
>I just realized I am getting another error before the one listed below...

>So I get:
>Error: 0: IM006: [Microsoft][ODBC Driver Manager] Driver's
SQLSetConnectAttr
>failed

>Then I get:
>Error: 12154: 08001: [Microsoft][ODBC driver for Oracle][Oracle]ORA-12154:
>TNS:could not resolve service name



Tue, 03 Jul 2001 03:00:00 GMT  
 HELP on connection to Oracle with Microsoft ODBC for Oracle Driver
Hi Eric,

Darshan here, you are getting this msg "TNS:could not resolve service name"
may be two reasons.

    1. May be you have not installed Oracle Client on the machine
        ( if Oracle Client is already installed on your machine then
          first execute SQL*Plus using the same "connect string" which
          you are using it in your ODBC DSN make sure that is connecting
          to ORACLE )

    2.  If you are using ORACLE 8 then you must create a directory
         named "NETWORK" into your ORACLE HOME directory
         because all previous versions of ORACLE was using "NETWORK"
         directory as a base directory for SQL*Net but from ORACLE 8
         onwards they are using directory named "NET80" and that is a
         problem for Visual Basic 5 because Microsoft ODBC for
         Oracle Driver is still  searching the SQL*Net into directory "NETWORK"
         so you can do one thing copy all files from NET80 directory into
NETWORK
         directory it will definitely work.

I hope this will solve your problem, feel free to contact.

regards,

Darshan Desai
Tecnimont ICB Limited
Bombay, India.

Quote:

> Greetings!

> Sorry for the major cross-posting but I really need help here.  BTW: Thanks
> in advance.

> The Problem:
> I am trying to setup an ODBC DSN to an Oracle server that resides at
> Stanford U across The Internet.  I have everything set up to the best of my
> knowledge correctly but when I attempt to connect via the ODBC DSN via
> 32-bit ODBC Test app (or any other app that supports ODBC connections for
> that matter) I get the following...

> The Error:
> SQLSTATE: 08001
> Native Error Code: 12154
> Driver Message:[Microsoft][ODBC driver for Oracle][Oracle]ORA-12154
> TNS:could not resolve service name

> A Further Wrinkle:
> I have set up another DSN using the Oracle provided ODBC driver and this
> seems to work fine...  So you ask "why not use the Oracle driver if it
> works?"  Well, the app that I am trying to get up and running uses RDO and
> our testing shows that RDO and Oracle's ODBC drivers don't get along at all
> so we are stuck with the Microsoft Oracle driver.  NOTE: I have tried a
> couple of different versions of the Microsoft driver and get the same thing.

> Oh yes, I should tell you that SQL Plus 3.3 connects to the server fine.
> Also TNSPING.EXE finds the server fine.

> The Platform:
> Windows NT 4.0 - Service Pack 3
> Oracle 7.3 Workgroup full install
> DAO 3.5
> ODBC 3.5 (3.510.3002.13)
> MDAC 2.0
> tried/no workie: Microsoft ODBC Driver for Oracle Ver. 2.00.006325
> tried/no workie: Microsoft ODBC for Oracle Ver. 2.573.292700
> tried/works/can't use: Oracle73 Ver. 2.00.0301

> The TRSNAMES.ORA Section:
> FAMIS_TEST.world =
>   (DESCRIPTION =
>     (ADDRESS_LIST =
>         (ADDRESS =
>           (COMMUNITY = tcp.world)
>           (PROTOCOL = TCP)
>           (Host = zzz.stanford.edu)
>           (Port = 1521)
>         )
>         (ADDRESS =
>           (COMMUNITY = tcp.world)
>           (PROTOCOL = TCP)
>           (Host = zzz.stanford.edu)
>           (Port = 1526)
>         )
>     )
>     (CONNECT_DATA = (SID = test)
>     )
>   )

> Thanks again.  If I can provide anyone with any further info please let me
> know!  Also, please email me directly at this address as well as posting in
> the group.

> Thanks,
> Eric



Mon, 09 Jul 2001 03:00:00 GMT  
 HELP on connection to Oracle with Microsoft ODBC for Oracle Driver
There is another very easy alternative. You can use Oracle OLE objects for
VB.
They are much faster than RDO. They 100% syntax compatible with VB Database
object .



Quote:
> Hi Eric,

> Darshan here, you are getting this msg "TNS:could not resolve service
name"
> may be two reasons.

>     1. May be you have not installed Oracle Client on the machine
>         ( if Oracle Client is already installed on your machine then
>           first execute SQL*Plus using the same "connect string" which
>           you are using it in your ODBC DSN make sure that is connecting
>           to ORACLE )

>     2.  If you are using ORACLE 8 then you must create a directory
>          named "NETWORK" into your ORACLE HOME directory
>          because all previous versions of ORACLE was using "NETWORK"
>          directory as a base directory for SQL*Net but from ORACLE 8
>          onwards they are using directory named "NET80" and that is a
>          problem for VISUAL BASIC 5 because Microsoft ODBC for
>          Oracle Driver is still  searching the SQL*Net into directory
"NETWORK"
>          so you can do one thing copy all files from NET80 directory into
> NETWORK
>          directory it will definitely work.

> I hope this will solve your problem, feel free to contact.

> regards,

> Darshan Desai
> Tecnimont ICB Limited
> Bombay, India.


> > Greetings!

> > Sorry for the major cross-posting but I really need help here.  BTW:
Thanks
> > in advance.

> > The Problem:
> > I am trying to setup an ODBC DSN to an Oracle server that resides at
> > Stanford U across The Internet.  I have everything set up to the best
of my
> > knowledge correctly but when I attempt to connect via the ODBC DSN via
> > 32-bit ODBC Test app (or any other app that supports ODBC connections
for
> > that matter) I get the following...

> > The Error:
> > SQLSTATE: 08001
> > Native Error Code: 12154
> > Driver Message:[Microsoft][ODBC driver for Oracle][Oracle]ORA-12154
> > TNS:could not resolve service name

> > A Further Wrinkle:
> > I have set up another DSN using the Oracle provided ODBC driver and
this
> > seems to work fine...  So you ask "why not use the Oracle driver if it
> > works?"  Well, the app that I am trying to get up and running uses RDO
and
> > our testing shows that RDO and Oracle's ODBC drivers don't get along at
all
> > so we are stuck with the Microsoft Oracle driver.  NOTE: I have tried a
> > couple of different versions of the Microsoft driver and get the same
thing.

> > Oh yes, I should tell you that SQL Plus 3.3 connects to the server
fine.
> > Also TNSPING.EXE finds the server fine.

> > The Platform:
> > Windows NT 4.0 - Service Pack 3
> > Oracle 7.3 Workgroup full install
> > DAO 3.5
> > ODBC 3.5 (3.510.3002.13)
> > MDAC 2.0
> > tried/no workie: Microsoft ODBC Driver for Oracle Ver. 2.00.006325
> > tried/no workie: Microsoft ODBC for Oracle Ver. 2.573.292700
> > tried/works/can't use: Oracle73 Ver. 2.00.0301

> > The TRSNAMES.ORA Section:
> > FAMIS_TEST.world =
> >   (DESCRIPTION =
> >     (ADDRESS_LIST =
> >         (ADDRESS =
> >           (COMMUNITY = tcp.world)
> >           (PROTOCOL = TCP)
> >           (Host = zzz.stanford.edu)
> >           (Port = 1521)
> >         )
> >         (ADDRESS =
> >           (COMMUNITY = tcp.world)
> >           (PROTOCOL = TCP)
> >           (Host = zzz.stanford.edu)
> >           (Port = 1526)
> >         )
> >     )
> >     (CONNECT_DATA = (SID = test)
> >     )
> >   )

> > Thanks again.  If I can provide anyone with any further info please let
me
> > know!  Also, please email me directly at this address as well as
posting in
> > the group.

> > Thanks,
> > Eric



Sat, 14 Jul 2001 03:00:00 GMT  
 HELP on connection to Oracle with Microsoft ODBC for Oracle Driver
Upgrade the Oracle provided driver to 2.5.3.x (I think the latest
patch is 2.5.3.1.7) and it will work fine with RDO.


Sun, 15 Jul 2001 03:00:00 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. Oracle ODBC driver / Microsoft ODBC driver for Oracle

2. VB5 / Oracle 803, Microsoft driver for Oracle 2.73

3. How to increase the buffer size of Microsoft ODBC driver for Oracle

4. Oracle 8.1.5 and Microsoft ODBC Driver

5. Microsoft ODBC driver for Oracle, version2.0

6. Microsoft Oracle ODBC driver and ADO

7. Microsoft ODBC Driver for Oracle : RowLimit

8. Need to reinstall Microsoft ODBC Driver for Oracle ?

9. Decimal Problem usind ADO and Microsoft Oracle ODBC driver

10. ERROR WITH MICROSOFT ODBC DRIVER FOR ORACLE, URGENTE, PLEASE

11. Help with ODBC Driver for Oracle

12. Help with ORACLE ODBC drivers

 

 
Powered by phpBB® Forum Software