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

Home -> Community -> Usenet -> c.d.o.server -> Re: Ora-12154 while debugging proc with Visual c/c++

Re: Ora-12154 while debugging proc with Visual c/c++

From: Telemachus <telemachus_at_ulysseswillreturn.net>
Date: Tue, 4 Mar 2003 09:59:54 -0000
Message-ID: <uO_8a.232$pK2.548@news.indigo.ie>


Remove NTS authent in sqlnet.ora and see what happens.

"MPG" <pg_miguel_at_hotmail.com> wrote in message news:JQY8a.924515$Ye7.6054961_at_telenews.teleline.es...
> Hi all,
>
> I have a c program that connects to oracle 9i using proc. This program is
> developed using MSVisualc/C++ environmennt.
> The problem I encounter is as follows:
> - When I run the compiled program (.exe) it connects to the DB fine fine.
> - But when I run the program through the MSVisualc/C++ (for debugging) the
> connection error ora-12154 apears.
> In both cases I'm using exactly the same code and the same conection
> string
> defines in the tnsnames.ora.
> This connection string (user/psw_at_rssgs ) works fine with the compiled
> program (.exe) and with other client programs (sqlplus, plsqldeveloper,
> visual basic ...)
>
> - The OS is windows XP
> - The DB is Oracle 9.2
> - TNSNAMEs.ora LOOKS LIKE
>
> rssgs =
> (DESCRIPTION =
> (ADDRESS_LIST =
> (ADDRESS = (PROTOCOL = TCP)(HOST = SERVIDOR_SGS)(PORT = 1521))
> )
> (CONNECT_DATA =
> (SID= RSSGS)
> )
> )
>
> - The sqlnet.ora looks like:
>
> SQLNET.AUTHENTICATION_SERVICES= (NTS)
> NAMES.DIRECTORY_PATH= (TNSNAMES)
>
>
> I've tried all kinds of things but I can't solve the problem.
>
> Any help would be greatly appreciated
>
> Thanks in advance,
> Miguel
>
>
>
Received on Tue Mar 04 2003 - 03:59:54 CST

Original text of this message

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