TNS:No Listner error
Hi All,
I am Oracle self learner.I have been reading this wonderfull forum since from last week,Today I have installed my self Oracle in my machine.But when I try to connect to database it throws an error TNS:No listener ,I have started listener and I could conn database.But when I restarted my machine and tried to conn to database gives the same error.Can anyone give me a permenent solution ,that I dont need to start listner manually whenver I startup my machine?
Please set the Oracle<Oracle_home>TNSListenerservice to start automatically in the Services applet in Control Panel.
Sybrand Bakker
Senior Oracle DBA
Similar Messages
-
Hi,
When Oracle forms and reports application is accessed through the web, the logon screen is displayed. When users type in the credentials, we get a ORA-12541 TNS no listner error.
Please guide.
I am an apps developer trying to fix this issue.
ThanksNormally this error means that the listener is not running on the server. Please post the result of
- lsnrctl services (on database server)
- the content of tnsnames.ora and sqlnet.ora (on application server). -
DRA:12541:TNS Listner Error
HI,
We are using Oracle 9i 64 bit Database Server on Windows 2003 Enterprise 64 bit Itanium Server.After installation while i am running this application we are facing the error that:-"DRA 12541: TNS :No Listner.
And it not connects to the database even on local machine.
Please give the solution to resolve this problem.
SachinCould you paste output of the following command ?
sql > lsnrctl status
make sure , you run the given above command on you database server, not on the client.
hare krishna
Alok -
TNS-12560: TNS:protocol adapter error when starting listner
Hi,
I am having this error when trying to start my oracle database listener.
I can connect to database normally with SqlPlus
Microsoft Loopback Adapter is installed and config with a fixed IP address. The IP add with computer name and domain is specified in the hosts file.
I didn't modify anything to the default listener.ora file.
Any suggestion. Thank you very much.
Best regards
K.Now I am able to start my listener after I turn off my firewall and restart my computer. The port might be blocked previously ?
However, now I can't connect to the database even in Sql plus. When connect using user name and password, I have the same error: TNS-12560: TNS:protocol adapter error.
Testing my connection in Net CA, it said: "TNS:listener does not currently know of service requested in connect descriptor".
In tnsnames.ora, I have SERVICE_NAME= orcl.
Result of tnsping orcl is "..OK<100msec>"
But result of lsnrctl services is: "The listnener supports no services"
I can't find any clue?
P/S: I am using Oracle database 11g EE Release 11.1.0.7.0 on Window platform.
Edited by: user12635456 on 13-Jun-2010 20:42 -
ORA-12560: TNS:proto adapter error
Dear Gurus,
I am having a big problem all of a sudden i am unable to connect to my database (10g 10.2.0.1.0) running on Windows 2003 server.
It give me the following error
ORA-12560: TNS:proto adapter error
When i say
D:\oracle\product\10.2.0\db_1\BIN>sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Apr 13 12:51:34 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12560: TNS:proto adapter error
SO i have opne the SR, they asked me to increase the patch set from 10.2.0.1.0 to 10.2.0.2.0 which i did but still get the same error
D:\>cd D:\oracle\product\10.2.0\db_1
D:\oracle\product\10.2.0\db_1>cd bin
D:\oracle\product\10.2.0\db_1\BIN>sqlplus /nolog
SQL*Plus: Release 10.2.0.2.0 - Production on Wed Apr 16 12:14:56 2008
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
SQL> startup nomount
ORA-12560: TNS:proto adapter error
SQL>
Tried to set the env such as ORACLE_HOME and ORACLE_SID. Listner is also started.
More funny is when i check in control panel --> Administration --> Services i can see OracleServiceSID is running as well Oracle Listner is running.
Any help will make my day
Regards
Kiran RanaHere we go
Mon Apr 07 11:11:00 2008
Thread 1 advanced to log sequence 1403
Current log# 1 seq# 1403 mem# 0: D:\ORACLE\PRODUCT\10.2.0\ORADATA\ZRB\REDO01.LOG
Mon Apr 07 22:00:58 2008
Thread 1 advanced to log sequence 1404
Current log# 2 seq# 1404 mem# 0: D:\ORACLE\PRODUCT\10.2.0\ORADATA\ZRB\REDO02.LOG
Mon Apr 07 22:19:12 2008
Thread 1 advanced to log sequence 1405
Current log# 3 seq# 1405 mem# 0: D:\ORACLE\PRODUCT\10.2.0\ORADATA\ZRB\REDO03.LOG
Regards
Kiran Rana -
Hi All,
by the installation of R/3 4.6C for a pilot system for the upgtrade from 4.6C to ECC 6.0 the installation hangs at step:
Create SPFILE: (this step creates the oracle server profile (SPFILE) from the up to now used PFILE (ini<SID>.ora). -
when I try to connect to DB via: connect /as sysdba I get the error message:
ORA-12560: TNS: protocol adapter error.
I know this oracle file can means many things and the R/3 is running fine. I copied the brtool from source system but it does not help. Until now there is no data from source. Its a new installation and we want to fix this error before we began to copy the data to the pilot system.
Anyone from you has a good feedback for me?
Thanks in advance
AtikHi Thilip,
thank you for your reply.
1) Oracle Service are running fine:
- OracleJobschedulerSID ... disabled
- oracleSID102iSQL*plus .......manual
- oracleSID102TNSListener.... started
- OraclServiceSID ..................started
2) TNSnames.ora is ok:
Filename......: tnsnames.ora
Created.......: created by SAP AG, R/3 Rel. >= 4.0A
Name..........:
Date..........:
PLT.WORLD=
(DESCRIPTION =
(SDU = 32768)
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = bysapp1)
(PORT = 1527)
(CONNECT_DATA =
(SID = PLT)
(GLOBAL_NAME = PLT.WORLD)
3)The Listner is running:
see the services.
4) R3trans does not work: Error message is:
..:\usr\sap\PLT\sys\exe\run>r3trans -d
This is r3trans version 6.05 (release 46D - 30.09.03 - 16:30:42).
2EETW169 no connect possible: "connect failed with DBLI_RC_LOAD_LIB_FAILED."
r3trans finished (0012).
I can see nothing wrong in this issue.
Thanks in advance.
Best regards
Atik -
TNS NO LISTNER [ORA 12541]
Dear All
When I connect Developer Suite 10g (SQL Plus) With Database 11gr2 it is connected(there is no error).
but when i Enable Network Card(Local Area Connection)
It doest making conection and showing the following error.
ORA12541 TNS: No Listner.
It is working fine with disabling network card. but i want to connect with enabling network card.
Please help me how to solve this issue.
G.YassenGhulam Yassen wrote:
Dear sir Vishwanath
I done as you said
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\YASSEN>lsnrctl
LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 15-MAR-2012 09:56:44
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Welcome to LSNRCTL, type "help" for information.
LSNRCTL> start
TNS-01106: Listener using listener name LISTENER has already been started
LSNRCTL>
But the probelm still not solved.
Dear as i said earlier database is connected but without enabling local area connection(i.e lan card)
but as i enable lan card it show error TNS no listner.It seems some OS permission issue.
1.)First logon the system as Admin.
2.)Remove the listener using Netmanager
3.)Create listener through netmanager
4.)Check the listener.ora file created or not
and then try to start the listener service
3.) -
Unable to create database due to ORA-12560, TNS protocol adapter error
Hello,
I'm trying to create an 8.1.7.0 database on a W2k server, but it is failing because as soon as svrmgrl is launched, I get an ORA-12560, TNS: protocol adapter error:
D:\oracle\db_creation_scripts>D:\oracle\ora81\bin\svrmgrl @D:\oracle\db_creation_scripts\mterm62run.sql
Oracle Server Manager Release 3.1.7.0.0 - Production
Copyright (c) 1997, 1999, Oracle Corporation. All Rights Reserved.
ORA-12560: TNS:protocol adapter errorEcho ON
SVRMGR> connect INTERNAL/manager
ORA-12560: TNS:protocol adapter error
SVRMGR> startup nomount pfile="D:\oracle\admin\mterm62\pfile\initmterm62.ora"
LCC-00161: Message 161 not found; product=RDBMS; facility=MGR
My ORACLE_HOME, ORACLE_SID, and TNS_ADMIN environmental variables are correctly set, and I'm able to tnsping the listener.
I've enabled tracing, and my client trace file is:
--- TRACE CONFIGURATION INFORMATION FOLLOWS ---
New trace stream is d:\trace\client_trace.log_2084_9.trc
New trace level is 6
--- TRACE CONFIGURATION INFORMATION ENDS ---
--- PARAMETER SOURCE INFORMATION FOLLOWS ---
Attempted load of system pfile source d:\oracle\ora81\network\admin\sqlnet.ora
Parameter source loaded successfully
Attempted load of local pfile source D:\oracle\db_creation_scripts\sqlnet.ora
Parameter source was not loaded
-> PARAMETER TABLE LOAD RESULTS FOLLOW <-
Successful parameter table load
-> PARAMETER TABLE HAS THE FOLLOWING CONTENTS <-
TRACE_DIRECTORY_SERVER = d:\trace
TRACE_DIRECTORY_CLIENT = d:\trace
NAMES.DIRECTORY_PATH = (TNSNAMES, HOSTNAME)
SQLNET.CRYPTO_SEED = 4fhfguweotcadsfdsafjkdsfqp5f201p45mxskdlfdasf
TRACE_FILE_CLIENT = client_trace.log
TRACE_FILE_SERVER = server_trace.log
SQLNET.AUTHENTICATION_SERVICES = (NTS)
TRACE_UNIQUE_CLIENT = on
TRACE_LEVEL_CLIENT = ADMIN
TRACE_LEVEL_SERVER = ADMIN
--- PARAMETER SOURCE INFORMATION ENDS ---
--- LOG CONFIGURATION INFORMATION FOLLOWS ---
Log stream will be "D:\oracle\db_creation_scripts\sqlnet.log"
Log stream validation not requested
--- LOG CONFIGURATION INFORMATION ENDS ---
nigini: entry
nigini: Count in NI global area now: 1
nigini: Count in NI global area now: 1
nrigbi: entry
nrigbni: entry
nrigbni: Unable to get data from navigation file tnsnav.ora
nrigbni: exit
nrigbi: exit
nigini: exit
niqname: Hst is already an NVstring.
niqname: Inserting CID.
niotns: entry
niotns: niotns: setting up interrupt handler...
niotns: Not trying to enable dead connection detection.
niotns: Calling address: (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleMTERM62)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')))(CONNECT_DATA=(SID=MTERM62)(CID=(PROGRAM=D:\oracle\ora81\bin\SVRMGRL.EXE)(HOST=SERV0354)(USER=tarisa))))
nsmal: 140 bytes at 0x12493f0
nscall: connecting...
nladini: entry
nladini: exit
nladget: entry
nladget: exit
nlpcaini: entry
nlpcaini: prg =
nlpcaini: arg[0] =
nlpcaini: arg[1] =
nlpcaini: exit
nsmal: 420 bytes at 0x12542f0
nsmal: 1712 bytes at 0x12572f0
nsopen: opening transport...
ntpcon: entry
ntpcon: toc = 1
sntpcall: entry
snlpcss: entry
ntpcon: exit
nserror: nsres: id=0, op=65, ns=12560, ns2=0; nt[0]=530, nt[1]=2, nt[2]=0; ora[0]=0, ora[1]=0, ora[2]=0
nsopen: unable to open transport
nsmfr: 1712 bytes at 0x12572f0
nsmfr: 420 bytes at 0x12542f0
nladget: entry
nladget: exit
nsmfr: 140 bytes at 0x12493f0
nladtrm: entry
nladtrm: exit
nioqper: error from nscall
nioqper: nr err code: 0
nioqper: ns main err code: 12560
nioqper: ns (2) err code: 0
nioqper: nt main err code: 530
nioqper: nt (2) err code: 2
nioqper: nt OS err code: 0
niomapnserror: entry
niqme: entry
niqme: reporting NS-12560 error as ORA-12560
niqme: exit
niomapnserror: returning error 12560
niomapnserror: exit
niotns: Couldn't connect, returning 12560
niotns: exit
nigtrm: Count in the NI global area is now 0
nnfgdei: entry
nrigbd: entry
nrigbd: exit
nigtrm: Count in the NL global area is now 0
My tnsnames, listener and sqlnet.ora files are very simple:
## BEGIN TNSNAMES.ORA
# TNSNAMES.ORA Network Configuration File: D:\oracle\ora81\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.
MTERM62 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.3.1.75)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = mterm62)
(INSTANCE_NAME = mterm62)
INST1_HTTP =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.3.1.75)(PORT = 1521))
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = mterm62)
(PRESENTATION = http://admin)
# LISTENER.ORA Network Configuration File: D:\oracle\ora81\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = serv0354)(PORT = 1521))
SID_LIST_LISTENER =
(SID_DESC =
(ORACLE_HOME = D:\oracle\ora81)
(SID_NAME = mterm62)
TRACE_LEVEL_LISTENER = ADMIN
# SQLNET.ORA Network Configuration File: D:\oracle\ora81\NETWORK\ADMIN\sqlnet.ora
# Generated by Oracle configuration tools.
TRACE_DIRECTORY_CLIENT = d:\trace
TRACE_UNIQUE_CLIENT = on
TRACE_DIRECTORY_SERVER = d:\trace
SQLNET.AUTHENTICATION_SERVICES= (NTS)
TRACE_FILE_CLIENT = client_trace.log
TRACE_FILE_SERVER = server_trace.log
TRACE_LEVEL_CLIENT = ADMIN
TRACE_LEVEL_SERVER = ADMIN
NAMES.DIRECTORY_PATH= (TNSNAMES, HOSTNAME)
SQLNET.CRYPTO_SEED = 4fhfguweotcadsfdsafjkdsfqp5f201p45mxskdlfdasf
Does anyone have any ideas what else I can check. I'm a Unix person, not a Windows person, which is making it even more complicated. If I was on Unix, I'd just blow everything away and start again from scratch, but since I'm not sure how to remove all traces from the registry, etc., I don't want to try that on this machine. There was already one other database created, but it's not goign to be used.
Any help would be greatly appreciated.
regards,
Tarisa.hi,
thanks for the info. the problem, as it turns out, was that I was connected to the db server via a terminal service (Microsoft Management Console), which for some reason caused probelms with TNS. After I connected directly to the machine using VNC, I was able to create the database with no problems. strange but true.
regards,
Tarisa. -
Connect to Oracle through ODBC - TNS: No Listener Error
Hi All,
I've been trying to chase this problem down for over a month now and I have had no luck. When I try to connect to an Oracle server through MS Access I get the TNS: No Listener error. The kicker is when I go to the odbc data source administrator in windows I am able to connect to the oracle server. My computer is windows 2007 and I have Oracle 11.2 installed. Could anyone assist?
When I type lsnrctl start in the command prompt it says it has been already started.
Here is my tnsnames.ora:
ORMANRPT.WORLD=
(DESCRIPTION=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=bspz1565.bhdc.att.com)
(PORT=1521)
(CONNECT_DATA=
(SID=ORMANRPT)
Here is my sqlnet.ora:
AUTOMATIC_IPC = OFF
TRACE_LEVEL_CLIENT = OFF
names.directory_path = (TNSNAMES)
names.default_domain = world
name.default_zone = world
names.default_domain=world
here is my listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\app\cb260e\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\app\cb260e\product\11.2.0\dbhome_1\bin\oraclr11.dll")
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
ADR_BASE_LISTENER = C:\app\cb260e1009773 wrote:
I used this computers IP and name. Is this what my listener should look like?
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\app\cb260e\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\app\cb260e\product\11.2.0\dbhome_1\bin\oraclr11.dll")
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = 144.158.355.240)(HOST = ilcdf44v.itservices.ms.com)(PORT = 1521))Line above is WRONG!
I suggest you move, remove, rename, delete or otherwise move the listener.ora file out of the way.
listener.ora is NOT required to start or utilize the listener
open Command Window after doing as directed above then issue the OS commands below
lsnrctl stop
lsnrctl start
lsnrctl status
# now wait 60+ seconds before issuing the next command below
lsnrctl service
COPY the results from all above, then PASTE all results back here. -
"TNS: Protocol adapter error" while creating a database
Hi All,
I´m new to Oracle and trying to create a database.
We use Oracle 8.1.7
I´m using the Database Configuration Assistant. The problem is when creating the database I get the error:
TNS-12560 TNS: Protocol adapter error
Any help will be really appreciated.
Thanks in advance,
Carlos.Do you have ORACLE_HOME and/or ORACLE_SID defined in the environment which are different than the settings for the new database that you are trying to create?
-
I installed Oracle 9i (9.2.0.1.0) on a Windows XP machine (the machine is in a domain). There were no errors during the instalation, but I have problems connecting from the same machine using the sid. Here are some examples from a command promt:
D:\>tnsping orcl9i
TNS Ping Utility for 32-bit Windows: Version 9.2.0.1.0 - Production on 31-OCT-20
08 17:43:22
Copyright (c) 1997 Oracle Corporation. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = timisoara01)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = orcl9i)))
TNS-12560: TNS:protocol adapter error
D:\>sqlplus "sys/pass@orcl9i as sysdba"
SQL*Plus: Release 9.2.0.1.0 - Production on Fri Oct 31 17:54:54 2008
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
ERROR:
ORA-12535: TNS:operation timed out
Enter user-name:If I don't use the sid I can connect:
D:\>sqlplus "sys/pass as sysdba"
SQL*Plus: Release 9.2.0.1.0 - Production on Fri Oct 31 18:05:46 2008
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
SQL>If I go to services I see that the service is running: OracleServiceORCL9I Started.
Thx.Yes, the XP firewall is running. During the Oracle instalation it poped up twice, but I selected 'Unblock'. I can't turn it off because it is running using the domain settings, but I can add exceptions (programs or ports). Port 1521, tnsping or sqlplus are not blocked and there is an option 'Display a notification when Windows Firewall blocks a program' witch is checked.
-
TNS:No listener error: Please help me
Hi all,
I have installed Oracle 10g in my laptop.few weeks back i was able to work on that. But today when i tried to connect to my database(im using Toad) i am getting TNS:No Listener error.
I checked in Listener.ORA file also. All seems to be fine.
What could be the probelm?? Can anyone pls help me in this regard?
Thanks in advance.
RaghuHi,
check whether listener is Up and running or not.
Use lsnrctl and check for status
Thanks
Pavan Kumar N -
ORA-12560 TNS protocol Adapter error in 11g (11.1.0.6)
Hello All,
I have Oracle 11g installed on my machine and when i tried to log in to sql plus i got the error below:
ORA-12560 TNS protocol Adapter error
By setting the ORACLE_SID = orcl by browsing to the bin directory of Oracle Installation the above error disappaears and i am able to log in from sql plus.
My intention is to create a db backup for which i am trying to use the exp command...this time the same error appears.
Also the solution of setting the ORACLE_SID is cumbersome..everytimt i want to use sql plus i need to go in and set the ORACLE_SID.
Can anybody please help me out find a good solution for this?
Any help would be appreciated friends.....
Thanks in Advance!!!!!
Regards.
AliciaAlso the solution of setting the ORACLE_SID is cumbersome..everytimt i want to use sql plus i need to go in and set the ORACLE_SID.
Can anybody please help me out find a good solution for this?The solution depends on your (not specified) operating system...
Anyway, if you have more than one database it's normal that you have to set ORACLE_SID, if not how can Oracle know which database you want to access to ?
You can create batch files, one per database, or you can use connection strings, e.g. sqlplus username/password@<DB>. -
ORA-12560: TNS:protocol adapter error in Oracle Forms...
Hi, I installed Oracle developer suite to use for Oracle forms but am getting "ORA-12560: TNS:protocol adapter error" when trying to run a form. The database is running locally on my PC.
I've run the command line to see if hostname matches up with the "HOST= " in the ".../network/admin/listener.ora " file match, they do. What can I try next? I did have Oracle 10gXE installed, which I have now removed. I'm including my tnsnames and listener file content:
# tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
LISTENER_ORCL =
(ADDRESS = (PROTOCOL = TCP)(HOST = frankenputer)(PORT = 1522))
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = frankenputer)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
# listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = frankenputer)(PORT = 1522))
Thanks in advance for any help!Of course you found another one. Each .and every Oracle database client home (such as developer, app server) has one.
Don't just change the port - the tnsnames.ora in the dev home does not point to a database service. It only points to an extproc [external procedure called by a database]. You need to put a database service entry into that file similar to the one in the database home. (Easiest solution - copy the tnsnames.ora from db home ... after you've made a backup)
And please don't tell me you are using Developer 6i - a simple Google search would verify that the networking is incompatible. -
How to solve ORA-12560:TNS:protocol adapter error?
I'm trying to use sqlplus on Windows 2008 R2 which is installed on VirtualBox to access an Oracle 11gR2 database on Red Hat Linux.
I'm sure that the database on Red Hat Linux is up and tnsnames.ora is a copy from another machine which is used by another application to connect to the same Oracle database.
When I run sqlplus, I got the ORA-12560: TNS:protocol adapter error.
sqlnet.ora
SQLNET.AUTHENTICATION_SERVICES = (NTS)
Both sqlnet.ora and tnsnames.ora are located in c:\app\administrator\product\11.2.0\client64\network\admin folder.
The registry ORACL_HOME has c:\app\administrator\product\11.2.0\client64.
echo %ORACLE_HOME% incommand window returns %ORACLE_HOME%
echo %ORACL_SID% in command window returns %ORACLE_SID%
If I set ORACLE_HOME to another folder, I will get the following error:
Error 6 initializing SQL*Plus
SP2-0667: Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
So, I believe the ORACLE_HOME in registry has the correct value.
I have also tried set ORACLE_SID to the service name listed in tnsnames.ora but sqlplus still returns the ORA-12560:TNS:protocol adapter error.
For unknown reason, the value of ORACLE_HOME and ORACLE_SID I set by using set command will not persist after I close the command window that I set the values.881656 wrote:
I'm trying to use sqlplus on Windows 2008 R2 which is installed on VirtualBox to access an Oracle 11gR2 database on Red Hat Linux.
I'm sure that the database on Red Hat Linux is up and tnsnames.ora is a copy from another machine which is used by another application to connect to the same Oracle database.
When I run sqlplus, I got the ORA-12560: TNS:protocol adapter error.
sqlnet.ora
SQLNET.AUTHENTICATION_SERVICES = (NTS)
It make NO sense do to as above when attempting to connect to Oracle DB on *NIX
which knows NOTHING about NTS Authentication.
SQLNET.AUTHENTICATION_SERVICES = (NONE)
or just remove the line or whole file.
Also need to be sure that ipchains is disabled on *NIX system
Maybe you are looking for
-
Computer slows or freezes and displays high memory usage message firefox + thunderbird
When surfing between websites, the computer screen slows or freezes. I hit the return key and the new page can take 2-3 minutes to come up. The screen shows a message that there is high memory use on firefox, and also thunderbird when loading new inc
-
Issue with lost outgoing texts
I have a Razr Maxx and randomly, my texts don't go through to people. They don't bounce back, so I have no idea that they have not been received. It's really frustrating! Help?
-
9.5.1. doesn't load photos in mavericks
help please i get the top bar but nothing else?
-
How to store data from textfile to vector and delete a selected row.
Can someone teach me how to store data from textfile to vector and delete a selected row. And after deleting, i want to write the changes in my textfile. Do someone has an idea? :)
-
Colors dull in Acro X and XI but not 9
I created a PDF in InDesign using High Quality Print for the preset, when I view it in Acrobat 9 it looks "correct", just as it did in InDesign. When I view in X or XI the colors (i.e., red) get dull and washed out. Can anyone give me any insight? Ma