Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Ora-12154 while debugging proc with Visual c/c++
"MPG" <pg_miguel_at_hotmail.com> wrote in message news:<JQY8a.924515$Ye7.6054961_at_telenews.teleline.es>...
> - 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.
>
> - The OS is windows XP
> - The DB is Oracle 9.2
> - TNSNAMEs.ora LOOKS LIKE
Miguel,
I don't know much about the tools you use but first thing to check:
is ORACLE_HOME known at debugging time ? if not make sure it is.
Where did you put tnsnames.ora ?
If not in ORACLE_HOME/network/admin make sure you have TNS_ADMIN
pointing to the correct location.
Ronald.