Print Thread
TNS: service_name
#1471 01/10/01 12:38 AM
Joined: Sep 2000
Posts: 23
fairfax, va, us
L
Member
OP Offline
Member
L
Joined: Sep 2000
Posts: 23
fairfax, va, us
We have several applications using Oracle client 7.3 and everything was working fine with DOA.
But now we migrate them into Oracle Client 8.1.x, most of the application work fine but there is only one application keeps giving me an error message : "ORA-12162: TNS: service name is incorrectly specified"

We've already checked everything, but still can not find what causes this error, there should be something hidden somewhere !!!!

Any Idea how to fix it ?

Thanks alot......

Re: TNS: service_name
#1472 01/11/01 06:12 PM
Joined: Aug 1999
Posts: 22,219
Member
Offline
Member
Joined: Aug 1999
Posts: 22,219
According to the Oracle Error Messages Guide this suggests an error in the tnsnames.ora file:

Cause: The connect descriptor corresponding to the service name in TNSNAMES.ORA is incorrectly specified.

Action: Make sure there are no syntax errors in the connect descriptor. Particularly look for unmatched parentheses or stray characters. Any error in a TNSNAMES.ORA file makes it unusable. See the SQL*Net V2 Administrator's Guide.


------------------
Marco Kalter
Allround Automations


Marco Kalter
Allround Automations
Re: TNS: service_name
#1473 01/25/01 04:20 PM
Joined: Sep 1999
Posts: 25
Flowery Branch GA USA
T
Member
Offline
Member
T
Joined: Sep 1999
Posts: 25
Flowery Branch GA USA
You can also run a useful test bypassing tnsnames.ora by using the right side of the tnsnames.ora entry as the database identifier. For example to connect to:

TESTDB=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = TEST.ORG.COM)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = TESTDB)
)
)

You can enter the string:

(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=PROTOCOL=TCP)(HOST=TEST.ORG.COM)(PORT = 1521)))(CONNECT_DATA=(SERVICE_NAME=TESTDB)))

Be sure to get the syntax correct, of course.


Perry Schwartz
TechStar International
Re: TNS: service_name
#1474 03/14/01 12:33 AM
Joined: Mar 2001
Posts: 2
W
Member
Offline
Member
W
Joined: Mar 2001
Posts: 2
We solved our ORA-12162 errors when we discovered that they only occurred on programs whose full path contained ( or ) characters- that is, open-paren or closed-paren characters. When we renamed those directories, the problem was solved.

Hope this helps-

Charlie Wilson


Charles H. Wilson
POW/Missing Personnel Office
U.S. Dept. of Defense
wilsonch@osd.pentagon.mil
Re: TNS: service_name
#1475 04/04/01 02:33 AM
Joined: Oct 2000
Posts: 7
Ann Arbor, MI, 48108
B
Member
Offline
Member
B
Joined: Oct 2000
Posts: 7
Ann Arbor, MI, 48108
I started having this problem and my solution was to captialize the TNS name. For instance, we used "bob.bizserve" for Oracle 7.3.4. When we updated to 8.1.6 this stopped working with TNS errors. Changing to "BOB.BIZSERVE" fixed it and all started working again.

-- Brett Fattori
Online Technologies Corp.


-- Brett Fattori

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.024s Queries: 12 (0.006s) Memory: 2.5188 MB (Peak: 3.0448 MB) Data Comp: Off Server Time: 2024-05-15 13:44:21 UTC
Valid HTML 5 and Valid CSS