TNS-12560: TNS:protocol adapter error Windows XP
have Oracle 9i and 10g installation on Windows XP
trying to start listener
lsnrctlLSNRCTL> start
Starting tnslsnr: please wait . . .
Failed to start service, error 1058.
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
32-bit Windows Error: 1058: Unknown error
Any suggestions for how to fix this error?
What's the status of the corresponding Windows service? OS error 1058 means normally service is deactivated. In the worst case it could be necessary to remove the service from the registry. Afterwards reboot the machine and recreate the service by 'lsnrctl start'.
Werner
Similar Messages
-
ORA 12560 OTN Protocol Adapter Error
I installed Oracle 9iAS DB and Developer. When I tried to run Form (Form Builder). I could not establish the connection.
After insert username and password (without hostname), the error said, ORA 12560 OTN Protocol Adapter Error. However, when I put the hostname, the message alert 'the service name could not be solved' or sth. Can anyone help me with this problem? Thank you so muchHey Nikhil,
I have the same problem, however when I try to run the commands u have asked to run I get errors.
When I try
c:>svrmgrl
'svrmgrl' is not recognized as an internal or external command.
operable program or batch file.
and when I start lsnrctl
LSNRCTL> lsnrctl start
NL-00853: undefined command "lsnrctl". Try "help"
I am using XP , the database is on other drive and the Developer suite is on other drive however, Listener is working fine. This error "ORA-12560: TNS:protocol adapter error" comes only when I try to log into my database from isqlplus. I am using 9i. Any Ideas on what should be done.
Hashem -
ORA-12222 : TNS:No such protocol adapter -error
Hi
when i try to connect database from forms builder i get the below error.
ORA-12222 : TNS : No such protocol adapter. I refered many forums and help sites... i checked everyting in my system. like Regedit and environment variable.
still i am getting the same error. kindly help to resolve this issue.
Please find the below details of my desktop, form builder and Oracle database.
Desktop OS
Operating system : WINDOWS XP (professional) version 2002 service pack 3
Oracle Database
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
TNS for Linux: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
Oracle database installed in Linux server
linux server details
Linux VM177 2.6.18-194.0.0.0.3.el5xen #1 SMP Mon Mar 29 18:27:00 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
any rpm are required in Linux server resolve this issue.
my linux server i couldn't find any rpms OPENM*
$ rpm -qa openm*
$
Oracle forms builder
Forms [32 Bit] Version 6.0.8.24.1 (Production)
Oracle Toolkit Version 6.0.8.24.0 (Production)
PL/SQL Version 8.0.6.3.0 (Production)
Oracle Procedure Builder V6.0.8.21.0 Build #1459 - Production
PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
Oracle Query Builder 6.0.7.1.0 - Production
Oracle Virtual Graphics System Version 6.0.5.38.0 (Production)
Oracle Tools GUI Utilities Version 6.0.8.20.1 (Production)
Oracle Multimedia Version 6.0.8.20.0 (Production)
Oracle Tools Integration Version 6.0.8.18.0 (Production)
Oracle Tools Common Area Version 6.0.8.18.0
Oracle CORE Version 4.0.6.0.0 - Production
Thanks in advance. your early reply will be very much appriciated.
GowthamPlease find below the output.
$ lsnrctl services
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 03-APR-2012 06:08:23
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=VM.xxx.com )(PORT=1525)))
The listener supports no services
The command completed successfully
$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 03-APR-2012 06:13:18
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=VM.xxx.com )(PORT=1525)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 02-APR-2012 02:51:12
Uptime 1 days 3 hr. 22 min. 5 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle11g/o11gr22/app/o11gr22/product/11.1.0/db_1/network/admin/listener.ora
Listener Log File /oracle11g/o11gr22/diag/tnslsnr/VM/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=VM.xxx.com )(PORT=1525)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1525)))
The listener supports no services
The command completed successfully
$ cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
10.123.256.177 VM.xxx.com VM VM.in.oracle.com
Gowtham -
ORA-12560: TNS: protocol adapter error - startup mount on windows
hi all,
I want startup the database with mount option on windows.
The OracleServiceORCL is stopped.
I need to startup mount, but I get the error:
ORA-12560: TNS: protocol adapter error.
In Linux this task is easy, but on windows I cannot connect
to database to startup mount.
How can I do this?
thank youTads wrote:
Hi,
But the all files in incorrect place. So I need to do startup mount to do a alter database rename file to....
thank you!Once the windows service is started, you can use sqlplus to connect, shutdown, and startup just like you do in *nix. -
ORA-12560:TNS:protocol adapter error on windows 2008 server(32 bit) for 10g
Hi Friends,
I am installaing Oracle 10g database on windows 2008 Server(32-bit) and when the Database is getting cretaed and during the database files copying portion it's throwing the error :
ORA-12560: TNS:protocol adapter error
I tried intsllaing 10g software alone and invoked DBCA and again during the database files copying portion it's throwing the same error
what could be the issue?
Regards,
DBPl indicate which version of "10g" and which version of Windows 2008 - R1 or R2 ?
HTH
Srini -
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. -
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.
-
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 -
R12 Vision Install Fails, TNS-12560: TNS:protocol adapter error
Below please find the NetServiceHandler.log from the install and an excerpt from ApplyDBTechStack...log
OS: Windows Server 2003 SP2 x86
I have installed the loopback adapter, modified the hosts file, and entered the DNS info. Not sure what else I can do.
-----------begin NetServiceHandler.log-------------------------
Classpath : ;D:\oracle\VIS\db\tech_st\11.1.0\jdbc\lib\ojdbc6.jar;D:\oracle\VIS\db\tech_st\11.1.0\appsutil\java\xmlparserv2.jar;D:\oracle\VIS\db\tech_st\11.1.0\appsutil\java;D:\oracle\VIS\db\tech_st\11.1.0\jlib\netcfg.jar;D:\oracle\VIS\db\tech_st\11.1.0\jlib\ldapjclnt11.jar
===============================================================================
NetServiceHandler 120.19 started for oracleebs at Wed Jun 13 09:32:30 PDT 2012
===============================================================================
[ Context Information ]
Host : oracleebs
Domain : demo.com
Out Dir : D:\oracle\VIS\db\tech_st\11.1.0/appsutil/out/VIS_oracleebs/06130932
Tier Type : DATABASE TIER
Getting connection...
ADX Database Utility
getConnectionUsingAppsJDBCConnector() -->
APPS_JDBC_URL='null'
Trying to get connection using SID based connect descriptor
getConnection() -->
sDbHost : oracleebs
sDbDomain : demo.com
sDbPort : 1521
sDbSid : VIS
sDbUser : APPS
Trying to connect using SID...
getConnectionUsingSID() -->
JDBC URL: jdbc:oracle:thin:@oracleebs.demo.com:1521:VIS
Exception occurred: java.sql.SQLException: The Network Adapter could not establish the connection
Trying to connect using SID as ServiceName
getConnectionUsingServiceName() -->
JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracleebs.demo.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=VIS)))
Exception occurred: java.sql.SQLException: The Network Adapter could not establish the connection
Trying to connect using SID as ServiceName.DomainName
getConnectionUsingServiceName() -->
JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracleebs.demo.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=VIS.demo.com)))
Exception occurred: java.sql.SQLException: The Network Adapter could not establish the connection
Connection could not be obtained; returning null
-------------------ADX Database Utility Finished---------------
Could not get connection to the database.
Exiting with status 100 to instantiate the tnsnames.ora template
Creation of Directory - D:\oracle\VIS\db\tech_st\11.1.0\NETWORK\ADMIN\VIS_oracleebs Succeeded.
instantiate file:
source : D:\oracle\VIS\db\tech_st\11.1.0\appsutil\template\ad8itns.ora
dest : D:\oracle\VIS\db\tech_st\11.1.0\network\admin\VIS_oracleebs\tnsnames.ora
AutoConfig is exiting with status 0
instantiate file:
source : D:\oracle\VIS\db\tech_st\11.1.0\appsutil\template\ad8ilsnr.ora
dest : D:\oracle\VIS\db\tech_st\11.1.0\network\admin\VIS_oracleebs\listener.ora
AutoConfig is exiting with status 0
adgentns.pl exiting with status 0
ERRORCODE = 0 ERRORCODE_END
----------------end NetServiceHandler.log------------------------
-------------------begin excerpt ApplyDBTechStack...log--------------------
SNRCTL for 32-bit Windows: Version 11.1.0.7.0 - Production on 13-JUN-2012 09:32:41
Copyright (c) 1991, 2008, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracleebs.demo.com)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 61: Unknown error
LSNRCTL for 32-bit Windows: Version 11.1.0.7.0 - Production on 13-JUN-2012 09:32:43
Copyright (c) 1991, 2008, Oracle. All rights reserved.
Starting tnslsnr: please wait...
Failed to open service <OracleTNSListenerVIS>, error 1060.
TNSLSNR for 32-bit Windows: Version 11.1.0.7.0 - Production
Message 459 not found; No message file for product=NETWORK, facility=NL
Message 279 not found; No message file for product=NETWORK, facility=NL
Message 1073 not found; No message file for product=NETWORK, facility=TNS
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracleebs.demo.com)(PORT=1521)))
STATUS of the LISTENER
Alias VIS
Version TNSLSNR for 32-bit Windows: Version 11.1.0.7.0 - Production
Start Date 13-JUN-2012 09:32:46
Uptime 0 days 0 hr. 0 min. 2 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File D:\oracle\VIS\db\tech_st\11.1.0\network\admin\VIS_oracleebs\listener.ora
Listener Log File D:\oracle\VIS\db\tech_st\11.1.0/network/admin\vis.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.0.0.68)(PORT=1521)))
Services Summary...
Service "VIS" has 1 instance(s).
Instance "VIS", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
addlnctl.cmd exiting with status 0
OpenService failed
adsvdlsn.cmd exiting with status 1007
ERRORCODE = 1007 ERRORCODE_END
.end std out.
.end err out.
-------------------end excerpt ApplyDBTechStack...log-------------------------Hi;
Pelase check below notes which is mention same error message
On Windows, After 10g Upgrade, Running Autoconfig on Apps Tier Failed with : Unable To Start Apps Services TNS-12224: TNS:no listener TNS-12541 TNS-12560: TNS:protocol adapter error TNS-00511: N .. [ID 577713.1]
Windows Autoconifg on dbTier fails on adcrobj.cmd & adsvdlsn.cmd [ID 356927.1
Rapid Clone on Windows Fails When SID Is Over 8 Characters: "Rc-00118: Error Occurred During Creation Of Database, Failed to open service" [ID 405688.1]
Regard
Helios -
TNS-12560: TNS:protocol adapter error
Hi,
I recently upgraded from oracle 9 to 10g and I get the error above.
I created a new database I CAN connect to it using sqlplus (from console), but I cannot connect using any ide.
.ora files are the following:
listener.ora:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = loki.dev.justplus.ro)(PORT = 1521))
sqlnet:
NAMES.DIRECTORY_PATH= (TNSNAMES)
tnsnames:
SM_LOKI =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = loki.dev.justplus.ro)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = SM)
Oracle version is:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
When I try to start listener (lsnrctl status) I get the error:
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=loki.dev.justplus.ro)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 61: Unknown error
Forgot to mention the OS: windows 2003
Any help is appreciated.
Thanks.You didn't describe how you performed the upgrade process. But it looks like you performed a migration process instead. If there is no listener service listed it's because it has never been started, or even configured. You should use the netca or the network manager to configure the listener and start it. The first time it starts it shows an error on windows platforms because the service originally doesn't exist, once it is created it displays the listener status.
Please check the name resolution mechanism. If you are working on dhcp assigned IP or if you have a fixed IP. In case you are working with dynamic IP address you should configure a loopback adapter, and I suggest you reading this reference: Connectivity. Loopback Adapter.
~ Madrid -
TNS-12560: TNS:protocol adapter error (when starting database)
Hi.. everyone.
I am testing oracle9i and oracle10g on the same machine, windows xp pro.
When I was trying to start oracle10g using command line mode,
I got the error, TNS-12560: TNS:protocol adapter error.
I entered these command.
set oracle_home=10g_homexxxx
set oracle_sid=xxdb
sqlplus /nolog
conn sys/xxx as sysdba
I got the error, TNS-12560: TNS:protocol adapter error.
The install of two different versions of oracle , oracle9i and oracle10g,
on the same machine(windows xp pro) could cause this problem?
Is it safe to install two different versions of oracle on the same window machine?
Is there any confliction in environment variables?
I think there is no problem on the linux, unix system.
I stoped the listener of oracle9i and tried again. But I failed.
I am looking forwared to hearing your experience and advice.
Thanks in advance. Have a good day.
Ho.Dear Werner.
Thanks for your reply.
I shutdown oracle9i and 10g, using "services.msc" utility from windows.
Therefore, "OracleService<xxdd>" is not running.
What I want to do is to startup 10g database using "cmd",command line mode.
In addition, I would like to know why I could not start 10g database, using "cmd"
on windows xp pro.
I installed 9i first and installed 10g. I think there are a kind of environment variable
conflictions.
I am wondering how I can fix them, and whether or not they are curable.
Thanks for your reply. Have a good day.
Regards.
Ho. -
Tns-12560: TNS protocol adapter error on linux
I've installed an oracle 10g database on linux 4.6 in a VMWare image. After opening an x term window within the image, I'm getting a tns-12560 error when both running tnsping and opening a sqlplus session as a database user. The listener and database seem to start fine. I've included entries for sqlnet.ora, tnsnames.ora and ORACLE_SID and ORACLE_HOME values for my user.
mui> tnsping orcl
Used parameter files:
/pinmaster/newtools/oracle_10.2/linux/network/admin/sqlnet.or
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = cgbu-p731v2.us.oracle.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))
TNS-12560: TNS:protocol adapter error
From sqlnet.ora: NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
From tnsnames.ora:
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = cgbu-p731v2.us.<<my domain entry>>.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
This is from init.ora
# Database Identification
db_domain=""
db_name=orcl
Environment variables for the database user:
9mui> env | grep ORACLE_SID
ORACLE_SID=orcl
13mui> env | grep ORACLE_HOME
ORACLE_HOME=/pinmaster/newtools/oracle_10.2/linuxOne of the more common issues causing 12560 is that the host in the listener.ora does not match current host name. Commonly caused by dhcp.
Your tnsnames.ora looks for cgbu-p731v2.us.oracle.com
Your listener.ora want to listen for cgbu-p731v2.us.<<my domain entry>>.com
Your hostname is ??? (enter 'hostname' at command line) -
TNS-12560: TNS:protocol adapter error - Of a different sort
Hi ,
Have a unique problem.
System :- Win 2K
I have installed 9iDB & 9iDS. They were working perfectly fine. I was able to connect to DB from forms. But due to some restrictions i had to resort to 6i forms.
Now i installed 6i forms on the same machine. But when i try to connect to DB i get the TNS:Protocol Adapter error. I am sure the instance and the listener is up and running. Because still i am able to connect from 9i forms. The DB name is MYDB.
The error i am getting is :-
========================
Fatal NI connect error 12203, connecting to:
(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle80)(ARGV0=oracle80ORCL)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')))(CONNECT_DATA=(SID=ORCL)(CID=(PROGRAM=C:\Oracle6i\BIN\PLUS80W.EXE)(HOST=xxx.xxx.xxx.xxx)(USER=Myself))))
VERSION INFORMATION:
TNS for 32-bit Windows: Version 8.0.6.0.0 - Production
Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 8.0.6.0.0 - Production
Time: 01-DEC-05 18:33:56
Tracing not turned on.
Tns error struct:
nr err code: 12203
TNS-12203: TNS:unable to connect to destination
ns main err code: 12560
TNS-12560: TNS:protocol adapter error
ns secondary err code: 0
nt main err code: 530
TNS-00530: Protocol adapter error
nt secondary err code: 0
nt OS err code: 0
===============================
Can someone please guide me as to how i can connect to my 9iDB from 6iforms.
Thanks & Regards,
AnandhOracle is a bit touchy with tnsnames.ora spelling. I copied your entry, just changing names :
MYDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
$ sqlplus scott/tiger@mydb
SQL*Plus: Release 9.2.0.4.0 - Production on Fri Dec 2 11:20:24 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
ERROR:
ORA-12154: TNS:could not resolve service nameThen I change MYDB entry, just adding some spaces :
MYDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
$ sqlplus scott/tiger@mydb
SQL*Plus: Release 9.2.0.4.0 - Production on Fri Dec 2 11:23:17 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production
SQL> That's why I told you of Easy configuration, but if you cannnot use it.....
Did you try copying 9iDS SQLNET.ORA and TNSNAMES.ORA to 6i Home ? -
TNS-12560: TNS:protocol adapter error and TNS-00530: Protocol adapter error
i just installed oracle 11g on my windows xp professional box. Which user and password shall i use. What username and password should i be using to login to sql plus?
when i use "Scott" "Tiger" it gives me ORA-12560: TNS:protocol adapter error occurred errorwhen i try to start service i get
LSNRCTL> start
Starting tnslsnr: please wait...
Failed to open service <OracleOraDb11g_home1TNSListener>, error 1060.
Failed to start service, error 203.
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
I am accessing the database from the same machine. Also do I need to have a ORACLE_HOME for getting sql plus working or it is not necessary?Starting tnslsnr: please wait...
TNSLSNR for 32-bit Windows: Version 11.1.0.6.0 - Production
System parameter file is D:\Apps\db\oracle11g\network\admin\listener.ora
Log messages written to d:\app\computeruser\diag\tnslsnr\computer2\listener\alert\
log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=computer2)(PORT=1521)
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521
ipc)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=computer2)(PORT=1521)
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.1.0.6.0 - Produ
ction
Start Date 13-DEC-2008 21:47:48
Uptime 0 days 0 hr. 0 min. 5 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File D:\Apps\db\oracle11g\network\admin\listener.ora
Listener Log File d:\app\computeruser\diag\tnslsnr\computer2\listener\aler
t\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=computer22)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
The listener supports no services
The command completed successfully
D:\>
Edited by: user9938780 on Dec 13, 2008 9:52 PM
Edited by: user9938780 on Dec 13, 2008 9:52 PM
Edited by: user9938780 on Dec 13, 2008 9:53 PM
Edited by: user9938780 on Dec 13, 2008 9:53 PM -
TNS-12560: TNS:protocol adapter error TNS-00530: Protocol adapter error
Unable to start listener service.
Running Oracle Database 11gr2 on Windows 7.
I just installed Oracle with the "install software only" option.
Already set up the instance, the database, the dictionary views, etc.
Created tsnames.ora, sqlnet.ora and listener.ora as shown below.
Before installing Oracle I followed the instruction on Oracle
documentation to install a Loopback Adapter.
It is set up as the primary adapter as indicated on the
instructions. The name is "gabylan" (previously the computer
name was "P4". I set up the "hosts" file as indicated, the oracle_hostname
variable, etc. as you will see below. I don't know if it's important to "uncomment"
the line on the "hosts" file for the "localhost" entry, I left it
as it was originally.
Services currently in "Started" Status:
OracleServiceorcl
Oracle orcl VSS Writer Service
OracleMTSRecoveryService
OracleOraDb11g_home1ClrAgent
OracleServiceorcl
Below is a summary of the error message and some information
about my system setup to help you diagnose my problem.
===============================================================================
c:\Users\Public\myscripts>lsnrctl start
LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 18-SEP-2012 13:48
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Starting tnslsnr: please wait...
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
c:\Users\Public\myscripts> lsnrctl status
LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 18-SEP-2012 16:17:16
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=gabylan)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 61: Unknown error
================================================================================
My "hosts" File: (c:\windows\system32\drivers\etc\hosts)
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
192.168.5.5 gabylan gabylan
=================================================================================
c:\Users\Public\myscripts>ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : gabylan
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter Local Area Connection 2:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft Loopback Adapter
Physical Address. . . . . . . . . : 02-00-4C-4F-4F-50
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::b8f5:bbb0:cf8b:c735%15(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.5.5(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
DHCPv6 IAID . . . . . . . . . . . : 335675468
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-17-B7-78-52-00-25-22-51-68-AB
DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Enabled
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek RTL8102E/RTL8103E Family PCI-E Fast Ethernet NIC (NDIS 6.20)
Physical Address. . . . . . . . . : 00-25-22-51-68-AB
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::7538:173c:c202:4985%10(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.1.2(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Tuesday, September 18, 2012 11:37:37 AM
Lease Expires . . . . . . . . . . : Wednesday, September 19, 2012 1:45:01 PM
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DHCPv6 IAID . . . . . . . . . . . : 234890530
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-17-B7-78-52-00-25-22-51-68-AB
DNS Servers . . . . . . . . . . . : 192.168.1.1
NetBIOS over Tcpip. . . . . . . . : Enabled
=================================================================================
# sqlnet.ora Network Configuration File:
# c:\app\oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN\sqlnet.ora
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
# OTHER OPTION FOR AUTHENTICATION IS: SQLNET.AUTHENTICATION_SERVICES= (NTS)
SQLNET.AUTHENTICATION_SERVICES= (NONE)
NAMES.DIRECTORY_PATH= (TNSNAMES, HOSTNAME, EZCONNECT)
ADR_BASE = c:\app\oracle\
====================================================================================
# tnsnames.ora Network Configuration File:
# c:\app\oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN\tnsnames.ora
orcl =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = gabylan)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
====================================================================================
# listener.ora Network Configuration File:
# c:\app\oracle\product\11.2.0\dbhome_1\network\admin\listener.ora
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = gabylan)(PORT = 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(ORACLE_HOME = c:\app\oracle\product\11.2.0\dbhome_1)
(SID_NAME = orcl)
ADR_BASE_LISTENER = c:\app\oracle
=================================================================================
c:\Users\Public\myscripts>ping gabylan
Pinging gabylan [192.168.5.5] with 32 bytes of data:
Reply from 192.168.5.5: bytes=32 time<1ms TTL=128
Reply from 192.168.5.5: bytes=32 time<1ms TTL=128
Reply from 192.168.5.5: bytes=32 time<1ms TTL=128
Reply from 192.168.5.5: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.5.5:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
=================================================================================
Some related environment variables on my system:
COMPUTERNAME=GABYLAN
FP_NO_HOST_CHECK=NO
HOMEPATH=\Users\oracle
LOGONSERVER=\\GABYLAN
ORACLE_HOME=c:\app\oracle\product\11.2.0\dbhome_1
ORACLE_HOSTNAME=gabylan
ORACLE_SID=orcl
ORACLE_UNQNAME=orcl
SQLPATH=c:\users\public\myscripts
USERDOMAIN=GABYLAN
USERNAME=oracle
USERPROFILE=C:\Users\oracle
==================================================================================
Summary from V$INSTANCE VIEW:
INSTANCE
NAME HOSTNAME STARTUP_T STATUS DATABASE_STATUS ACTIVE_ST
orcl GABYLAN STARTED ACTIVE NORMAL
=================================================================================
Thanks,
GabrielI am getting the same error while starting or stopping the listener
LSNRCTL> start CSCLIST
Starting tnslsnr: please wait...
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
LSNRCTL> stop CSCLIST
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=CSCINDAE708070)(PORT=152
2)))
NL-00303: syntax error in NV string
TNS-01153: Failed to process string: (DESCRIPTION=(CONNECT_DATA=(CID=(PROGRAM=)
(HOST=)(USER=Manager(REMOVE)))(COMMAND=stop)(ARGUMENTS=64)(SERVICE=CSCLIST)(VERS
ION=186646784)))
Pls help
Listener.ora:
# listener.ora Network Configuration File: D:\Sagaya\11gDBhome\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
CSCLIST =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = CSCINDAE708070)(PORT = 1522))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
SID_LIST_CSCLIST =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = D:\Sagaya\11gDBhome\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:D:\Sagaya\11gDBhome\product\11.2.0\dbhome_1\bin\oraclr11.dll")
ADR_BASE_CSCLIST = D:\Sagaya\11gDBhome
Maybe you are looking for
-
I am trying to install this app on my macbook air and i am getting an error
I am trying install iPhoto and I am getting this error message: "These apps can't be accepted on this computer Future updates of these apps can be found through Software Update."
-
F-32 residual payment is affecting my ageing report.
When I am doing the residual payment using f-32 then we are getting two document generated out this, one for the incoming payment and the other for the balance amount as new invoice with new posting date, this is affecting my ageing report. For Examp
-
Using bulk collect with select
i am working on oracle 10g release 2 . My requirement is like this 1 declare 2 type id_type is table of fnd_menus.menu_id%type; 3 id_t id_type; 4 cursor cur_menu is select menu_name from menu; 5 type name_type is table of m
-
HT1689 how sinc my mac book air to my iphone 5 all the itunes
ok I have purchase a few song on my Mac Book Air and I have purchase few song on myiphone 5; now like to have it sinc????
-
Can I get Apple Store's e-mail address for customers?
Can I get Apple Store's e-mail address for customers? My ipad mini with Retina has been delivered to wrong address.