Print Thread
TNS cannot resolve Service Name
#748 08/09/00 02:40 AM
Joined: Aug 2000
Posts: 1
Bronsville/TX/US
S
Member
OP Offline
Member
S
Joined: Aug 2000
Posts: 1
Bronsville/TX/US
The user was using Oracle Client 7.3.3 and everything was working fine with DOA.
But they are using now Oracle Client 8.1.x and when my program try to connect to the Alias , i receive this error :
"TNS cannot resolve Service Name"

Any Idea how to fix it ?
is it a Oracle 8 (SQL Net) problem ?

Thank's in advance...

Re: TNS cannot resolve Service Name
#749 08/09/00 11:57 AM
Joined: Oct 1999
Posts: 10
Rotterdam, ZH, Netherlands
J
Member
Offline
Member
J
Joined: Oct 1999
Posts: 10
Rotterdam, ZH, Netherlands
[quote]Originally posted by supernick:
The user was using Oracle Client 7.3.3 and everything was working fine with DOA.
But they are using now Oracle Client 8.1.x and when my program try to connect to the Alias , i receive this error :
"TNS cannot resolve Service Name"

Any Idea how to fix it ?
is it a Oracle 8 (SQL Net) problem ?

Thank's in advance...
[/quote]

Hello,
This looks like an Oracle problem.
Oracle 8 and up uses a different TNS names file.
For Oracle 7.xx this file is located in <drive>\ORANT\NETWORK\ADMIN\
For Oracle 8.xx this file is located in <drive>\ORANT\NET80\ADMIM\
When upgrading you must create a new TNSNAMES for Oracle 8 with the same aliases as there where used for Oracle 7.

Normally the application will try to locate the first TNSNAMES, and that is the one from Oracle 7.
Oracle however will locate the version that matches the database version (Oracle 8)

So, ad the aliases to the TNSNAMES for Oracle 8 and the application will run fine.

------------------
JohaViss


JohaViss

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.026s Queries: 14 (0.009s) Memory: 2.4979 MB (Peak: 3.0393 MB) Data Comp: Off Server Time: 2024-04-29 06:36:10 UTC
Valid HTML 5 and Valid CSS