Home » RDBMS Server » Server Administration » TNSNAMES.ORA entry (Oracle,9i,SunOs 5.8)
TNSNAMES.ORA entry [message #361601] Thu, 27 November 2008 02:59 Go to next message
shahnazurs
Messages: 240
Registered: June 2005
Location: India
Senior Member
Dear All,

I have 2 user's in UNIX development box.

1) oracle
2) test

I have a tnsnames.ora file which holds production DB access details in development box.

When I try to connect to the production DB from oracle account like below
sqlplus scott/tiger@proddb
I can able to access

but when I try from test user
it shows error like

SQL*Plus: Release 9.2.0.6.0 - Production on Thu Nov 27 08:50:49 2008

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.

ERROR:
ORA-12154: TNS:could not resolve service name


Much appreciated if anybody tell me what can I do?

Thanks,
Shahnaz.
Re: TNSNAMES.ORA entry [message #361607 is a reply to message #361601] Thu, 27 November 2008 03:17 Go to previous messageGo to next message
Michel Cadot
Messages: 64152
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
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.

Regards
Michel
Re: TNSNAMES.ORA entry [message #361622 is a reply to message #361607] Thu, 27 November 2008 03:31 Go to previous messageGo to next message
shahnazurs
Messages: 240
Registered: June 2005
Location: India
Senior Member
Michel,

Then how can I able to access from oracle user name?

test user can read tnsnames.or file.

Thanks,
Shahnaz.

[Updated on: Thu, 27 November 2008 03:40]

Report message to a moderator

Re: TNSNAMES.ORA entry [message #361625 is a reply to message #361622] Thu, 27 November 2008 03:36 Go to previous messageGo to next message
Michel Cadot
Messages: 64152
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
I don't understand the question.

Regards
Michel
Re: TNSNAMES.ORA entry [message #361627 is a reply to message #361625] Thu, 27 November 2008 03:41 Go to previous messageGo to next message
shahnazurs
Messages: 240
Registered: June 2005
Location: India
Senior Member
Through unix user "oracle", I can access proddb.

Not through unix user "test"

user "test" is able to read tnsnames.ora file which exists in $ORACLE_HOME/network/admin

Am I clear now?

Thanks,
Shahnaz.
Re: TNSNAMES.ORA entry [message #361647 is a reply to message #361627] Thu, 27 November 2008 04:32 Go to previous message
Michel Cadot
Messages: 64152
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Yes, is TNS_ADMIN variable set?
Post (copy and paste) what you did with both users.
Post environment variables for both users.
Post this formatted using code tags (see OraFAQ Forum Guide).

Regards
Michel
Previous Topic: Password Recovery
Next Topic: core dump [ACCESS_VIOLATION] in oracle 10gR2 (merged)
Goto Forum:
  


Current Time: Sat Dec 10 12:58:39 CST 2016

Total time taken to generate the page: 0.14793 seconds