you don't need a listener.ora on your client,
what does the listener.ora on your server look like?
Main Topics
Browse All TopicsHi Am new to Oracle.
Ive installed and configured Oracle 11g Server in Oracle Enterprise Server 5.
Ive started necessary services and I was able to log in to SQL Plus from the server.
Now, Ive installed Oracle client in Windows XP Prof with SP2.
Ive configured tnsnames.ora and listener.ora.
I can connect to database in the server using SQL Developer. But when I am trying to connect via SQL PLUS and am getting
ORA-12560: TNS: protocol adaptor error
I can make a tnsping to the server from client.
My tnsnames.ora in client
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = OraSrv1)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)
My listner.ora in client
SID_LIST_ORCL =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = /u01/app/oracle/product/11
(SID_NAME = ORCL)
)
)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oraclient)(PORT = 1521))
)
Any help in resolving this issue will be greatly appreciated. Thank you in advance.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Here is the server Listener.ora
LISTENER =
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(HO
(ADDRESS=(PROTOCOL=ipc)(KE
)
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(GLOBAL_DBNAME=orcl)
(SID_NAME=orcl)
(ORACLE_HOME=/u01/app/orac
(PRESPAWN_DESC=(PROTOCOL=t
)
)
I reread the question and want to confirm, you used sqldeveloper from the server? or from the client?
If from the server, that doesn't help the diagnosis.
If from the client, then, as suggested above, check for multiple oracle homes and check you used the same connection information for sql developer as you are using for sql plus.
Ive searched, but there is only tnsnames.ora. What I could notice is there is SQL PLUS inside SQL DEVELOPER application and I am able to log-in to the database using that SQL PLUS but not the one from Start-->Programs-->Oracle home-->Application Development-->SQL PLUS.
Will this help to resolve the problem?
Thank you in advance.
If you right click and chose properties for the Start-->Programs-->Oracle home-->Application Development-->SQL PLUS this should tell you where it is running SQL*Plus from, which will identify the directory structure under which SQL*Plus is installed. Is this a different directory structure to which SQL DEVELOPER is installed? At the top level of this structure is there a Network\Admin directory and if so is there a tnsnames.ora file in it? If not, try copying your other tnsnames.ora into this Admin directory.
Can you connect to any databases from SQL*Plus?
sqlner.ora:-
SQLNET.AUTHENT
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
tnsping result:-
D:\>tnsping orcl
TNS Ping Utility for 32-bit Windows: Version 11.1.0.6.0 - Production on 12-JAN-2
009 21:10:21
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
D:\app\product\11.1.
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = OraSrv1)(PORT = 1521))) (CONNECT_DATA = (SID = orcl) (SERVER = DEDICATED
)))
OK (100 msec)
Business Accounts
Answer for Membership
by: MilleniumairePosted on 2009-01-12 at 02:34:27ID: 23352169
This issue may be caused because you have multiple Oracle Homes on your PC. SQL Developer may be using one Oracle Home and Sql*Plus another.
e.com/Data base/Oracl e/ Q_203336 03.html?sf QueryTermI nfo=1+%22t n+admin%22
Each Oracle Home will have a Network\Admin directory which will contain a tnsnames.ora file.
Try comparing these tnsnames.ora files across Oracle Homes and you'll probably find that the one used by SQL*Plus does not contain the entry for your 11g database.
You can fix this by simply ensuring ALL tnsnames.ora files on your PC are the same. Alternatively you can define a Windows environment variable to identify which Network\Admin directory structure to use.
Check out the following for more details:
http://www.experts-exchang