Home » RDBMS Server » Server Administration » ORA-12154: TNS:could not resolve service name
ORA-12154: TNS:could not resolve service name [message #54253] Thu, 07 November 2002 02:28 Go to next message
Silke Booms
Messages: 2
Registered: November 2002
Junior Member
I'm looking for the environment parameter that build the tns service name. If I call sqlplus fully qualified (for example sqlplus dummy/pq@server1) then nothing will go wrong. But if I only call sqlplus without any server defined I will get the above mentioned message.

Is there any possibility to see which service names has been used? (Log file, verbose mode or something like that?)

Thanks for help
Silke
Re: ORA-12154: TNS:could not resolve service name [message #54254 is a reply to message #54253] Thu, 07 November 2002 03:28 Go to previous messageGo to next message
Sascha
Messages: 15
Registered: November 2002
Junior Member
regedit -> Local_machine -> Software -> Oracle -> there must be an enty LOCAL on the client.
And this LOCAL Parameter is the default using service-name.

Greetings
Sascha
Re: ORA-12154: TNS:could not resolve service name [message #54256 is a reply to message #54253] Thu, 07 November 2002 03:31 Go to previous messageGo to next message
B
Messages: 327
Registered: August 1999
Senior Member
set ORACLE_SID and ORACLE_HOME
Re: ORA-12154: TNS:could not resolve service name [message #54259 is a reply to message #54253] Thu, 07 November 2002 04:11 Go to previous messageGo to next message
sai sreenivas jeedigunta
Messages: 370
Registered: November 2001
Senior Member
You database is not in the Local machine..and if u want to connect to a remote machine, its possible only using the TNS Connect string.. u can go check the file tnsnames.ora (or) check using the net easy config.

sai
Re: ORA-12154: TNS:could not resolve service name [message #54263 is a reply to message #54253] Thu, 07 November 2002 10:49 Go to previous messageGo to next message
Trifon Anguelov
Messages: 514
Registered: June 2002
Senior Member
You have to setup your environment variables:

ORACLE_SID=
TNS_ADMIN= (if you are using one tnsnames.ora file for multiple Oracle homes. by default is $ORACLE_HOMEnetworkadmin)

You have more than one Oracle instances on your machine and by not using the TNS service name, you are confising Oracle which one to use. It's OK to connect with BEQ protocol if you have only one db instance. For more use:

c:>set oracle_sid=

or

$ORACLE_SID= ; export ORACLE_SID

Hope that helps,

clio_usa
OCP - DBA

Visit our Web site

Re: ORA-12154: TNS:could not resolve service name [message #55146 is a reply to message #54263] Tue, 07 January 2003 11:55 Go to previous message
Matt Darby
Messages: 5
Registered: January 2003
Junior Member
This worked beautifully thank you!
Previous Topic: Oracle Server Classpath
Next Topic: migration on windows oracle 8.0.6 to 9i
Goto Forum:
  


Current Time: Fri Sep 20 05:29:55 CDT 2024