Home » RDBMS Server » Server Administration » ORA-12154: error (oracle 10g, windows 2003 sp1)
ORA-12154: error [message #436033] Mon, 21 December 2009 03:12 Go to next message
pradeep_kumarp
Messages: 15
Registered: October 2009
Location: Mumbai
Junior Member
Im having Application server and Database server on the same machine. I have configured everything and when i tried to start my application im getting this error ora-12154. But if im connecting through sqlplus directly then im able to connect properly. I even tried connecting to database through sqlplus(from cmd)but im getting the same error ora-12154.

Please suggest me if im missing anything.
Re: ORA-12154: error [message #436035 is a reply to message #436033] Mon, 21 December 2009 03:13 Go to previous messageGo to next message
ramoradba
Messages: 2456
Registered: January 2009
Location: AndhraPradesh,Hyderabad,I...
Senior Member
Please search before posting.
It is(ora-12154) a FAQ.
ORA-12154
sriram Smile

[Updated on: Mon, 21 December 2009 03:16]

Report message to a moderator

Re: ORA-12154: error [message #436038 is a reply to message #436033] Mon, 21 December 2009 03:18 Go to previous messageGo to next message
Michel Cadot
Messages: 68665
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
First you should read Error Messages manual
ORA-12154: TNS:could not resolve the connect identifier specified
 *Cause:  A connection to a database or other service was requested using
 a connect identifier, and the connect identifier specified could not
 be resolved into a connect descriptor using one of the naming methods
 configured. For example, if the type of connect identifier used was a
 net service name then the net service name could not be found in a
 naming method repository, or the repository could not be
 located or reached.
 *Action:
   - If you are using local naming (TNSNAMES.ORA file):
      - Make sure that "TNSNAMES" is listed as one of the values of the
        NAMES.DIRECTORY_PATH parameter in the Oracle Net profile
        (SQLNET.ORA)
      - Verify that a TNSNAMES.ORA file exists and is in the proper
        directory and is accessible.
      - Check that the net service name used as the connect identifier
        exists in the TNSNAMES.ORA file.
      - Make sure there are no syntax errors anywhere in the TNSNAMES.ORA
        file.  Look for unmatched parentheses or stray characters. Errors
        in a TNSNAMES.ORA file may make it unusable.
   - If you are using directory naming:
      - Verify that "LDAP" is listed as one of the values of the
        NAMES.DIRETORY_PATH parameter in the Oracle Net profile
        (SQLNET.ORA).
      - Verify that the LDAP directory server is up and that it is
        accessible.
      - Verify that the net service name or database name used as the
        connect identifier is configured in the directory.
      - Verify that the default context being used is correct by
        specifying a fully qualified net service name or a full LDAP DN
        as the connect identifier
   - If you are using easy connect naming:
      - Verify that "EZCONNECT" is listed as one of the values of the
        NAMES.DIRETORY_PATH parameter in the Oracle Net profile
        (SQLNET.ORA).
      - Make sure the host, port and service name specified
        are correct.
      - Try enclosing the connect identifier in quote marks.

   See the Oracle Net Services Administrators Guide or the Oracle
   operating system specific guide for more information on naming.

Then check what is said.
Then search for TNS_ADMIN in registry and environment variables.

Regards
Michel
Re: ORA-12154: error [message #436103 is a reply to message #436033] Mon, 21 December 2009 09:09 Go to previous message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
>Please suggest me if im missing anything.

Ora-12154 = "I can not find the entry in the TNSNAMES.ORA file that I am using (regardless of the one YOU THINK I am using)!"
Previous Topic: Read text file on server.
Next Topic: Dual returns no rows
Goto Forum:
  


Current Time: Mon Jul 01 01:18:32 CDT 2024