[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.6

TNSPING works but an ORA-12154 error on SQLPLUS

Asked by BRWilson in Databases Miscellaneous

Tags: tnsping, sqlplus, works, ok

I have three systems 1 Windows 2000 and the other 2 running Linux.  The ORACLE server is a LINUX server 192.168.1.220 (MDLITTLE).  The other Linux system is a client that boot from a CD that is created from the server.  For the oracle client I install the standard oracle9i client software into /home/oracle9i and then tar the information and move it into the CD directory.  

I can access the ORACLE database without problem on the Linux server and from the Window 2000 system.  Yet I receive an error from the Linux client.  I have the following files.

Window 2000 client:  tnsnames.ora
# TNSNAMES.ORA Network Configuration File: C:\oracle\ora92\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.

PROACT =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.220)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = proact.proactivemonitoring.com)
    )
  )

Window 2000 client: sqlnet.ora
# SQLNET.ORA Network Configuration File: C:\oracle\ora92\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.

SQLNET.AUTHENTICATION_SERVICES= (NTS)

NAMES.DIRECTORY_PATH= (TNSNAMES)

On the Linux server that works I have:
/home/oracle9i/network/admin/tnsnames.ora:
# TNSNAMES.ORA Network Configuration File: /home/oracle9i/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.

PROACT =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.220)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = proact.proactivemonitoring.com)
    )
  )

/ home/oracle9i/network/admin/sqlnet.ora
# SQLNET.ORA Network Configuration File: /home/oracle9i/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.

NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)

Results from the test:
TNS Ping Utility for Linux: Version 9.2.0.1.0 - Production on 12-FEB-2003 11:48:20

Copyright (c) 1997 Oracle Corporation.  All rights reserved.

Used parameter files:
/home/oracle9i/network/admin/sqlnet.ora


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.220)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = proact.proactivemonitoring.com)))
OK (10 msec)

SQL*Plus: Release 9.2.0.1.0 - Production on Wed Feb 12 11:48:48 2003

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


Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

SQL> Disconnected from Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

The Linux client system that does not work has:
/home/oracle9i/network/admin/tnsnames.ora:
# TNSNAMES.ORA Network Configuration File: /home/oracle9i/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.

PROACT =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.220)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = proact.proactivemonitoring.com)
    )
  )

/ home/oracle9i/network/admin/sqlnet.ora
# SQLNET.ORA Network Configuration File: /home/oracle9i/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.

NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)

Results from the tests are:
TNS Ping Utility for Linux: Version 9.2.0.1.0 - Production on 12-FEB-2003 01:43:57

Copyright (c) 1997 Oracle Corporation.  All rights reserved.

Used parameter files:
/home/oracle9i/network/admin/sqlnet.ora


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.220)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = proact.proactivemonitoring.com)))
OK (10 msec)

SQL*Plus: Release 9.2.0.1.0 - Production on Wed Feb 12 01:45:14 2003

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

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


Enter user-name: ERROR:
ORA-06413: Connection not open.


Enter user-name: ERROR:
ORA-06413: Connection not open.


SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus

On both Linux server and client I used the oracle user with the bash shell.  Also in both cases I have a .bash_profile file with:
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
      . ~/.bashrc
fi

# User specific environment and startup programs

ORACLE_BASE=/home/oracle9i; export ORACLE_BASE
ORACLE_HOME=/home/oracle9i; export ORACLE_HOME
ORACLE_SID=proact; export ORACLE_SID
PATH=$PATH:$ORACLE_HOME/bin; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib; export LD_LIBRARY_PATH
unset USERNAME


From the above error ORA-12154 you would think that the tnsnames.ora file is not found.  I do not understand why not since the tnsping can find the file.

Can anyone help?
[+][-]02/12/03 03:21 PM, ID: 7937698Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/12/03 03:23 PM, ID: 7937708Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/12/03 03:37 PM, ID: 7937803Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/15/03 04:31 PM, ID: 7957889Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Databases Miscellaneous
Tags: tnsping, sqlplus, works, ok
Sign Up Now!
Solution Provided By: BRWilson
Participating Experts: 2
Solution Grade: A
 
[+][-]09/29/03 05:57 AM, ID: 9451020Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/08/03 05:01 PM, ID: 9517392Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89