Help: ORA-12560: TNS:protocol adapter error
I created a new database and afterwards my established TNS connection to my starter database was lost. Now I cant get it to work. I tired deleting the new database I created, but my old connection with my starter db still does not work. When I test the connection using the NET 8 assistant I get the following error: ORA-12560: TNS:protocol adapter error.
Im fairly new to Oracle8i and Ive posted numerous threads elsewhere concerning my problem but so far I havent gotten a solution. Any ideas?
Thanks, Andrew
null
Edwin,
1. I can ping my server.
2. I reinstalled Oracle8i entirely on the server I still could not connect.
3. I installed Oracle8i client on a totally new client I still could not connect.
On thing though, when I de-installed all Oracle products and then reinstalled Oracle, some of my settings from the previous install still existed. Ex: When I opened Net 8 Assistant some of my Net Service Names remained from the previous install.
Three things I think I can rule out as causes:
a) It seems really significant that from the server I can successfully connect through the TNS connection. And this is using the exact same TNANAMES.ORA file that is on my client machine. This leads me to believe that my TNSNAMES.ORA file is not the cause of the problem.
b) Also the fact that the new client install (3) didnt work makes me think for sure that it is not the client.
c) When I open SQL Plus on the server I type ORACLE4 for the host string and I get right in. This leads me to believe that the instance and database can be ruled out as possible causes.
In the Oracle Client Net8 Profile section I set tracing to on. I am posting the results. Also FYI: I am the only person that has been working with Oracle on the server. Any ideas??? Andrew
--- TRACE CONFIGURATION INFORMATION FOLLOWS ---
New trace stream is "C:\Oracle\Ora81\NETWORK\trace\sqlnet79.trc"
New trace level is 4
--- TRACE CONFIGURATION INFORMATION ENDS ---
nigini: Count in NI global area now: 1
nigini: Count in NI global area now: 1
nrigbni: Unable to get data from navigation file tnsnav.ora
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=oracleORCL)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')))(CONNECT_DATA=(SID=ORCL)(CID=(PROGRA M=C:\PROGRAM FILES\ORACLE\JRE\1.1.7\BIN\JREW.EXE)(HOST=ANDY)(USER=andrew))))
nscall: connecting...
nsopen: opening transport...
nserror: nsres: id=0, op=65, ns=12547, ns2=12560; nt[0]=517, nt[1]=0, nt[2]=0
nsopen: unable to open transport
nioqper: error from nscall
nioqper: nr err code: 0
nioqper: ns main err code: 12547
nioqper: ns (2) err code: 12560
nioqper: nt main err code: 517
nioqper: nt (2) err code: 0
nioqper: nt OS err code: 0
niqme: reporting ns (2) error: (12547) as rdbms err (12547)
niotns: Couldn't connect, returning 12547
nigtrm: Count in the NI global area is now 0
nigtrm: Count in the NL global area is now 0
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by ekessels (Edwin Kessels):
Try to install the Net8 Server and Client again. Also make sure you can ping the IP-adres of servername using the PING-command.
Edwin Kessels
OCP-DBA
<HR></BLOCKQUOTE>
null
Similar Messages
-
ORA-12560 TNS protocol adapter error--URGENT HELP!
To Experts:
I tried to log in the SQL by using the username: system, manager for password. however, it gave me the message:
ORA-12560 TNS protocol adapter error.
I am using Oracle 9i and Developer 6 in Wins XP environment.
Thank you much!Yes,Thank you very much.I am ok to invoke these commands.
the listener started already.The listener name is just LISTENER.But i still can't login sql plus.Help me on.
hi,Mr sb92075
Do you use what kind of messenger?If we can communicate on messenger,it will facilitate solving my problem I think.I don't mean to disrespect you but I just want to overcome the problem very quickly.
with best regards,
Ian Su
Can I know very clearly?
what are the things(eg dbname,username,protocol I don't know exactly just guessing)needed to connect to the database?
I already installed oracle developer suite 10 and oracle 10g xe database server.
I can't login to sqlplus and what are the things i need to check to get connected to the database from sqlplus?
I appreciate your help and need somebody help.
Edited by: Ian Su on Jun 18, 2011 11:21 PM
Edited by: Ian Su on Jun 18, 2011 11:29 PM -
Help: Error message "ORA-12560 TNS:Protocol Adapter Error "
I tried to install Oracle 8i EE version 8.1.7 on Windows 2000. Everything is OK until the installation proceeded to installing "Oracle Database Configuration Assistant". At that point, I got an error message "ORA-12560 TNS:Protocol Adapter Error (network not loaded)". I looked up the error message. The cause of the error said: "This error occurs when the SQL*Net driver cannot find the JSB driver because you may have either forgotten to load the JSB driver (for instance MFTP) or used an incorrect TCP_VENDOR key (for example, TCP_VENDOR=NOVLWP).". And the suggested action said: "Load the JSB driver or use the correct TCP_VENDOR key.". I am using a standalone PC with Windows 2000 at home, and the PC does not connect to any network(except that I can dialup to internet via modem). What should I do? I can't understand the error message. Any expert to help me overcome the error?
nulldatabase tnsnames.ora
=========
# TNSNAMES.ORA Network Configuration File: D:\Oracle\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = mohsin-pc)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORCL)
INST1_HTTP =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = mohsin-pc)(PORT = 1521))
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = MODOSE)
(PRESENTATION = http://HRService)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
developer 10g tnsnames.ora
==============
# tnsnames.ora Network Configuration File: D:\Forms\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.132)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = Dedicated)
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = mohsin-pc)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORCL)
Please tell me what changes I needed
database serivice name is "ORCL'
and my pc name is "mohsin-pc" -
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. -
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. -
ORA-12560: TNS:protocol adapter error on Fedora Core 5
Hi ,
After installing the 10201_database_linux_x86_64 on Fedora Core5. The database is started fine on the server. The status of is Listener is also up. But when try to connect from client PC. I am getting ORA-12560: TNS:protocol adapter error error please help. me.
Thanks,Here are my config files.
On SERVER
listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME =/u01/app/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = db10g)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
(PROGRAM = extproc1)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = xxxxx)(PORT = 1521))
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
sqlnet.ora
# Generated by Oracle configuration tools.
SQLNET.AUTHENTICATION_SERVICES = (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT, HOSTNAME)
tnsnames.ora
# Generated by Oracle configuration tools.
DB10G =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxxx)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = DB10G.WORLD)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
now when I issue lsnrctl start db10g i am getting following error.
TNS-01151: Missing listener name, db10g, in LISTENER.ORA
Please help me. -
Oracle 9i database server ORA-12560: TNS: Protocol adapter error ?
My OS windows xp 2002 sp2. im using oracle 9i database server .I cant login Oracle sql * plus when in going Enter user name and password “ scott and tiger “ then I got problem here is the message is below :
SQL*Plus: Release 9.0.1.0.1 - Production on Sat Mar 13 03:12:47 20
(c) Copyright 2001 Oracle Corporation. All rights reserved.
Error :
ORA-12560: TNS: Protocol adapter error
Any one help me please. Please let me know how can I slove or fix the problem ?
how can im going to login Oracle 9i database Sql Plus ? anywany other fix this problem ?
Edited by: shajib on Mar 12, 2010 1:31 PMStep 1 - from a command line on the database machine, enter 'lsnrctl status' and report the output
Step 2 - display the contents of the %ORACLE_HOME%\network\admin\tnsnames.ora file on the machine running sqlplus.
These are the first two stepo, whether on the database machine or in a traditional client-server configuration. -
Gives ORA-12560: TNS: protocol adapter error when installing oracle 10g
I tried to install oracle 10g r2 in server 2008. but it gives ORA-12560: TNS: protocol adapter error when installing. how I can fix this issue??? please help me ASAP. because its urgent.
thanks in advance.
chamaraWelcome to the forums !
Pl indicate which version of 10g you are installing and on which version of Win 2008. Neither 10gR1 nor 10gR2 are certified to be installed on Win 2008 R1, AFAIK.
For 10gR2, only 10.2.0.5 is certified for Win 2008 R2 - see MOS Doc 1173433.1 (How to Install Oracle 10.2.0.5 on MS Windows 7 / Windows 2008R2)
Also see MOS Doc 740926.1 (Where can I find the Database / Client software to download for Microsoft Vista, or Windows 2008R1?).
Both 10gR1 and 10gR2 are now in extended support - is there a reason you are not using 11gR2 ?
HTH
Srini -
ORA-12560 TNS:Protocol Adapter Error and ORA-12557 Error
Hello ,
I have installed Oracle 11.2.0 64 bit database on my Windows 7 ( Home Premium) PC which is also 64 bit. I installed it because I am trying to setup Informatica. Later, I learnt that informatica is 32 bit and can not communicate to Oracle 11.2.0 64 bit database. So after digging through solutions, someone mentioned that I need to install Oracle 11g client 32bit.
I have installed 11g client software successfully now. Here is problem though :
When I launch SQL-Plus from 11g database , it works fine. However I launch SQL-Plus from 32bit client it gives me error as :
Ora-12560 :TNS: Protocol Adapter Error.
So I have been trying to resolve this error. I saw that this question has been posted many many times and have tried many thing as listed below :
1. copy tnsnames.ora from database ( dbhome_1) to client installation ( client_1 ) under ..\network\admin\ --- Didn't work.
2. Set $ORACLE_HOME and $ORACLE_SID environment variable.
Here is interesting fact - If I set $ORACLE_HOME to database path and not client path error changes to :
ORA-12557 TNS: Protocol adapter not loadable.
If I keep $ORACLE_HOME as client path then I get same error as earlier ORA-12560.
3. I have also tried changing $PATH variable. I did set to path containing only database installation, only client installation, both database and client installation with database installation appearing first
But all of these haven't worked.
Can anyone please suggest what I am missing and any further things I could try ?
Thank you in advance !982090 wrote:
Hello ,
I have installed Oracle 11.2.0 64 bit database on my Windows 7 ( Home Premium) No oracle product is certified to run on any 'home' edition of any version of Windows.
PC which is also 64 bit. I installed it because I am trying to setup Informatica. Later, I learnt that informatica is 32 bit and can not communicate to Oracle 11.2.0 64 bit database.If the connection is via TNS, the bit architecture shouldn't matter.
So after digging through solutions, someone mentioned that I need to install Oracle 11g client 32bit.
I have installed 11g client software successfully now. Here is problem though :
When I launch SQL-Plus from 11g database , it works fine. However I launch SQL-Plus from 32bit client it gives me error as :
Ora-12560 :TNS: Protocol Adapter Error.
So I have been trying to resolve this error. I saw that this question has been posted many many times and have tried many thing as listed below :
1. copy tnsnames.ora from database ( dbhome_1) to client installation ( client_1 ) under ..\network\admin\ --- Didn't work.
2. Set $ORACLE_HOME and $ORACLE_SID environment variable.
Here is interesting fact - If I set $ORACLE_HOME to database path and not client path error changes to :
ORA-12557 TNS: Protocol adapter not loadable.
If I keep $ORACLE_HOME as client path then I get same error as earlier ORA-12560.
3. I have also tried changing $PATH variable. I did set to path containing only database installation, only client installation, both database and client installation with database installation appearing first
But all of these haven't worked.
Can anyone please suggest what I am missing and any further things I could try ?
Thank you in advance !unfortunately, we need to know exactly how you tried to connect with sqlplus when it "worked" and when it "didn't work". The key to the reported error messages is highly dependent on the environment settings AND the specification of the connect string. A copy and paste of the entire command line session would be most helpful.
But again, running on any 'home' edition of windows is not supported. -
Hi Oracle Guru's,
Please save my life from this typical yet known problem.
I got an old backup on my tapes about 3 years older. I have windows server 2k where I have an access remotely through RDP(Citrix-CuraStore).
I installed oracle8i 32 bit on Windows 2k though it got stuck at the end where it installs optional tools(like Net8i assistant), so i closed the installation session, Because I could see Net8i assistant,dbca etc was installed on machine.
I checked my services, found it had started the Listerner8i service.
To create a database, I tried to happen it through DBCA...but unfortunately it gave error(ORA-12560 "TNS protocol adapter error"), I ignored it ...but it didnt move to next step...completely stuck up..So closed the session.
I tried with ORADIM to create service, It did happen, services for database was created, I setup the environment(SID,HOME,PATH) etc.
When I login with sqlplus , it gives again the same error(ORA-12560 "TNS protocol adapter error"), I tried many things like TCP/IP traffing disabling etc..Nothing worked.
Can some one please help me and give me some out of box solution..I shall be really really thankful to them.
Regards,Sorry, If I missed to update you back..I apologize.
Two services(Database Service : OracleServicetest and OracleOraHome81TNSListenerLISTENER_TEST both are up...checked from SERVICES.MSC
listener is up, I can ping the Hostname perfectly.
Is there any other service I need to look into.
Please find the below log as reference for TEST database.
C:\Documents and Settings\Administrator>hostname
srvdba02
C:\Documents and Settings\Administrator>ping srvdba02
Pinging srvdba02 [10.241.24.54] with 32 bytes of data:
Reply from 10.241.24.54: bytes=32 time<10ms TTL=128
Reply from 10.241.24.54: bytes=32 time<10ms TTL=128
Reply from 10.241.24.54: bytes=32 time<10ms TTL=128
Reply from 10.241.24.54: bytes=32 time<10ms TTL=128
Ping statistics for 10.241.24.54:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:\Documents and Settings\Administrator>
C:\Documents and Settings\Administrator>lsnrctl status LISTENER_TEST
LSNRCTL for 32-bit Windows: Version 8.1.7.0.0 - Production on 28-SEP-2013 23:43:01
(c) Copyright 1998 Oracle Corporation. All rights reserved.
Kobler til (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.241.24.54)(PORT=1523)))
STATUS FOR LYTTERPROSESS
Tilnavn LISTENER_TEST
Versjon TNSLSNR for 32-bit Windows: Version 8.1.7.0.0 - Production
Startdato 28-SEP-2013 23:19:31
Oppetid 0 dager 0 t. 23 min. 29 sek
Sporingsnivσ off
Sikkerhet OFF
SNMP OFF
Lytterens parameterfil C:\oracle\ora81\network\admin\listener.ora
Lytterens loggfil C:\oracle\ora81\network\log\listener_test.log
Tjenesteoversikt...
test har 1 tjenestebehandler(e)
Kommandoen ble utf°rt
(It means test database has i service handler)..
C:\Documents and Settings\Administrator>tnsping test
TNS Ping Utility for 32-bit Windows: Version 8.1.7.0.0 - Production on 28-SEP-2013 23:43:17
(c) Copyright 1997 Oracle Corporation. All rights reserved.
Attempting to contact (ADDRESS=(PROTOCOL=TCP)(HOST=10.241.24.54)(PORT=1523))
Ok (10 msek) -
ORA-12560: TNS:protocol adapter error error while using BR*tools
Hi,
I am trying to use BRtools to display instance status (option 6 within Instance Management menu). We are running on Oracle 10g and SAP 4.6c (BRtools version 7.0 patch 13). SAP is running on Windows 2003 cluster environment.
I checked lsnrctl status with following output..
LSNRCTL for 64-bit Windows: Version 10.2.0.2.0 - Production on 19-FEB-200
:06
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (ADDRESS=(COMMUNITY=SAP.WORLD)(PROTOCOL=TCP)(HOST=172.20.0.
PORT=1527))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 64-bit Windows: Version 10.2.0.2.0
ction
Start Date 07-FEB-2009 19:51:03
Uptime 11 days 19 hr. 42 min. 2 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\oracle\PR1\102\network\admin\listener.ora
Listener Log File C:\oracle\PR1\102\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.20.0.140)(PORT=1527)))
The listener supports no services
The command completed successfully
BRspace error reads as below
BR1001I BRSPACE 7.00 (13)
BR1002I Start of BRSPACE processing: sdzysjut.dbw 2009-02-19 15.35.43
BR0280I BRSPACE time stamp: 2009-02-19 15.35.44
BR0301E SQL error -12560 at location BrDbaConnect-2
ORA-12560: TNS:protocol adapter error
BR0310E Connect to database instance PR1 failed
BR0700E Fatal errors occurred - terminating processing...
Could you please let me know if I need to make any changes to current configuration to make it work.
I appreciate all your help,
Thanks,
JitendraHi Rohit,
Here are my listener file contents
LISTENER =
(ADDRESS_LIST=
(ADDRESS=
(PROTOCOL=IPC)
(KEY=PR1)
(ADDRESS=
(PROTOCOL=IPC)
(KEY=PR1.WORLD)
(ADDRESS=
(COMMUNITY=SAP.WORLD)
(PROTOCOL=TCP)
(Host=xxx.xx.x.xxx)
(Port=1527)
SID_LIST_LISTENER =
(SID_LIST=
(SID_DESC=
(SDU=32768)
(SID_NAME=PR1)
(ORACLE_HOME=C:\oracle\PR1\102)
Fsldbprd =
(ADDRESS_LIST=
(ADDRESS=
(PROTOCOL=IPC)
(KEY=PR1)
(ADDRESS=
(PROTOCOL=IPC)
(KEY=PR1.WORLD)
(ADDRESS=
(COMMUNITY=SAP.WORLD)
(PROTOCOL=TCP)
(Host=xxx.xx.x.xxx)
(Port=1527)
SID_LIST_Fsldbprd =
(SID_LIST=
(SID_DESC=
(SDU=32768)
(SID_NAME=PR1)
(ORACLE_HOME=C:\oracle\PR1\102)
TRACE_LEVEL_LISTENER = OFF
CONNECT_TIMEOUT_LISTENER = 10
STARTUP_WAIT_TIME_LISTENER = 0
And here is the output of lsnrctl status command after making above changes
STATUS of the LISTENER
Alias Fsldbprd
Version TNSLSNR for 64-bit Windows: Version 10.2.0.2.0 -
ction
Start Date 19-FEB-2009 19:39:12
Uptime 0 days 0 hr. 14 min. 16 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\oracle\PR1\102\network\admin\listener.ora
Listener Log File C:\oracle\PR1\102\network\log\fsldbprd.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=
.\pipe\PR1ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=
.\pipe\PR1.WORLDipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xxx.xx.x.xxx)(PORT=1527)))
Services Summary...
Service "PR1" has 2 instance(s).
Instance "PR1", status UNKNOWN, has 1 handler(s) for this service...
Instance "pr1", status READY, has 1 handler(s) for this service...
Service "PR1_XPT" has 1 instance(s).
Instance "pr1", status READY, has 1 handler(s) for this service...
The command completed successfully
In Cluster admin Oracle listener name is defined as Fsldbprd.
Please let me know if you need any additional information and thanks for looking into this issue.
Regards,
Jitendra
Edited by: Jitendra Kulkarni on Feb 20, 2009 1:03 AM -
ORA-12560: TNS:protocol adapter error rman
hello all,
i am on xp, and 10.2 oracle version....i created a dummy database with name comp using dbca...used FRA and took a backup though rman....i have teh backup now in FRA....
I droped the database to do a test restore...but i cant even login to rman or sqlplus ??? i was able to login to rman before to take a backup....but now i cant.... could not figure out why...any help would be appericiated....
C:\oracle\sql>set ORACLE_SID=comp
C:\oracle\sql>
C:\oracle\sql>echo %ORACLE_SID%
comp
C:\oracle\sql>rman target /
Recovery Manager: Release 10.2.0.1.0 - Production on Wed Jul 6 09:54:16 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04005: error from target database:
ORA-12560: TNS:protocol adapter error
C:\oracle\sql>
C:\oracle\sql>
C:\oracle\sql>lsnrctl status
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 06-JUL-2011 09:54:20
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxxxxxxxx)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
Start Date 06-JUL-2011 09:53:53
Uptime 0 days 0 hr. 0 min. 26 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
Listener Log File C:\oracle\product\10.2.0\db_1\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xxxxxxx)(PORT=1521)))
Services Summary...
Service "COMP" has 1 instance(s).
Instance "COMP", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
C:\oracle\sql>user8363520 wrote:
hello all,
i am on xp, and 10.2 oracle version....i created a dummy database with name comp using dbca...used FRA and took a backup though rman....i have teh backup now in FRA....
I droped the database to do a test restore...but i cant even login to rman or sqlplus ??? i was able to login to rman before to take a backup....but now i cant.... could not figure out why...any help would be appericiated....
If you have backup and you dropped database then you can create it again.
1) Create directories for background,user,audit dumpdest and control,online log,datafiles.
2) Create OracleServiceComp if that is not exists using ORADIM utility(oradim -new -sid COMP -intpwd <syspass> -pfile <pfile location>)
3) After starting oracle service
set ORACLE_SID=COMP
rman target /
/*if you do not have spfile also then you have to restore it from
full/auto backup or startup database using pfile(create it manually)*/
startup nomount ;
restore controlfile from 'full or autobackup location';
alter database mount;
catalog start with 'backup location';
restore database;
recover database;
alter database open resetlogs; -
ORA-12560: TNS Protocol adapter error after full database restore.
Good afternoon,
Following the steps given in page 9-32 of the 2 Day DBA document, after doing a full database restore, the home page shows:
NOTE: all of the output shown in this post is obtained directly from the host not a client. AND all using ENTERPRISE MANAGER.
1. The database instance is down
2. The listener is up
3. Agent Connection to Instance has status of Failed, followed by ORA12505: TNS: listener does not currently know of SID in connect descriptor (DBD ERROR: OCIServerAttach)
When I try to connect as sysdba using SQL Plus, I get the output shown below:
0 18:14 [Oracle] [13G] [2,031M] E:\Oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN>
tnsping dbca
TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 30-AUG-2
010 18:14:36
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
E:\Oracle\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = orahost.john.local)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = dbca.
john.local)))
OK (50 msec)
0 18:14 [Oracle] [13G] [2,050M] E:\Oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN>
sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Mon Aug 30 18:17:53 2010
Copyright (c) 1982, 2010, Oracle. All rights reserved.
SQL> connect
Enter user-name: sys as sysdba
Enter password:
ERROR:
ORA-12560: TNS:protocol adapter error
SQL>All I did was perform a full database restore in the same database, the simplest case. Any ideas as to why I can no longer connect ?
Thank you very much for your help,
John.
Edited by: 440bx - 11gR2 on Aug 30, 2010 6:58 PM - added Using Enterprise Manager.I don't know what else I could have done given the behavior of the service.You can avoid problems like this in the future by avoiding Windows & using any approved *NIX Operating System.
No such "service" or daemon exist on any *NIX OS. -
ORA-12560: TNS: protocol adapter error while linking tables in Access
One of my app dev is encountering an interesting error message while linking Oracle tables from Access. I am not able to able to reproduce this in my desktop or anywhere else. Details enclosed. Can you guys point me to a solution? Thanks in advance!
ODBC: Oracle Client version 10.2.0.1
Desktop : Win XP ; Access 2003
=>Able to login to the Oracle database sucessfully using sqlplus.
=>Able to create an ODBC datasource to Oracle database.("Test Connection" works fine)
=>But encountering the TNS protocol adpater error while linking the table(Access->File->Get External Data-> Link tables).
=>Not able to link any table in any schema in any Oracle database. Hence this is not a data centric issue.
What did I do?
=> Uninstalled Oracle 8 client and installed Oracle 10 client. No luck. Encountering the same error.
=> Turned on the ODBC trace and reproduced the error. The log is enclosed:
MSACCESS 79c-ed4 ENTER SQLAllocEnv
HENV * 0013C620
MSACCESS 79c-ed4 EXIT SQLAllocEnv with return code 0 (SQL_SUCCESS)
HENV * 0x0013C620 ( 0x09d31788)
MSACCESS 79c-ed4 ENTER SQLAllocConnect
HENV 09D31788
HDBC * 0013C730
MSACCESS 79c-ed4 EXIT SQLAllocConnect with return code 0 (SQL_SUCCESS)
HENV 09D31788
HDBC * 0x0013C730 ( 0x09d31830)
MSACCESS 79c-ed4 ENTER SQLSetConnectOption
HDBC 09D31830
SQLINTEGER 103 <SQL_LOGIN_TIMEOUT>
SQLPOINTER 0x00000014
MSACCESS 79c-ed4 EXIT SQLSetConnectOption with return code 0 (SQL_SUCCESS)
HDBC 09D31830
SQLINTEGER 103 <SQL_LOGIN_TIMEOUT>
SQLPOINTER 0x00000014 (BADMEM)
MSACCESS 79c-ed4 ENTER SQLSetConnectAttrW
SQLHDBC 09D31830
SQLINTEGER 30002 <unknown>
SQLPOINTER [Unknown attribute 30002]
SQLINTEGER -3
MSACCESS 79c-ed4 EXIT SQLSetConnectAttrW with return code 0 (SQL_SUCCESS)
SQLHDBC 09D31830
SQLINTEGER 30002 <unknown>
SQLPOINTER [Unknown attribute 30002]
SQLINTEGER -3
MSACCESS 79c-ed4 ENTER SQLDriverConnectW
HDBC 09D31830
HWND 001D04E4
WCHAR * 0x74329A38 [ -3] "******\ 0"
SWORD -3
WCHAR * 0x74329A38
SWORD 2
SWORD * 0x00000000
UWORD 1 <SQL_DRIVER_COMPLETE>
MSACCESS 79c-ed4 EXIT SQLDriverConnectW with return code -1 (SQL_ERROR)
HDBC 09D31830
HWND 001D04E4
WCHAR * 0x74329A38 [ -3] "******\ 0"
SWORD -3
WCHAR * 0x74329A38
SWORD 2
SWORD * 0x00000000
UWORD 1 <SQL_DRIVER_COMPLETE>
DIAG [S1000] [Oracle][ODBC][Ora]ORA-12560: TNS: protocol adapter error (12560)
DIAG [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed (0)
DIAG [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed (0)
MSACCESS 79c-ed4 ENTER SQLErrorW
HENV 09D31788
HDBC 09D31830
HSTMT 00000000
WCHAR * 0x0013C5EC (NYI)
SDWORD * 0x0013C638
WCHAR * 0x047EE8B8
SWORD 4095
SWORD * 0x0013C624
MSACCESS 79c-ed4 EXIT SQLErrorW with return code 0 (SQL_SUCCESS)
HENV 09D31788
HDBC 09D31830
HSTMT 00000000
WCHAR * 0x0013C5EC (NYI)
SDWORD * 0x0013C638 (12560)
WCHAR * 0x047EE8B8 [ 126] "[Oracle][ODBC][Ora]ORA-12560: TNS: protocol adapter error\ a\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0"
SWORD 4095
SWORD * 0x0013C624 (126)
MSACCESS 79c-ed4 ENTER SQLErrorW
HENV 09D31788
HDBC 09D31830
HSTMT 00000000
WCHAR * 0x0013C5EC (NYI)
SDWORD * 0x0013C638
WCHAR * 0x047EE950
SWORD 4019
SWORD * 0x0013C624
MSACCESS 79c-ed4 EXIT SQLErrorW with return code 0 (SQL_SUCCESS)
HENV 09D31788
HDBC 09D31830
HSTMT 00000000
WCHAR * 0x0013C5EC (NYI)
SDWORD * 0x0013C638 (0)
WCHAR * 0x047EE950 [ 66] "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed"
SWORD 4019
SWORD * 0x0013C624 (66)
MSACCESS 79c-ed4 ENTER SQLErrorW
HENV 09D31788
HDBC 09D31830
HSTMT 00000000
WCHAR * 0x0013C5EC (NYI)
SDWORD * 0x0013C638
WCHAR * 0x047EE9E6
SWORD 3944
SWORD * 0x0013C624
MSACCESS 79c-ed4 EXIT SQLErrorW with return code 0 (SQL_SUCCESS)
HENV 09D31788
HDBC 09D31830
HSTMT 00000000
WCHAR * 0x0013C5EC (NYI)
SDWORD * 0x0013C638 (0)
WCHAR * 0x047EE9E6 [ 66] "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed"
SWORD 3944
SWORD * 0x0013C624 (66)
MSACCESS 79c-ed4 ENTER SQLErrorW
HENV 09D31788
HDBC 09D31830
HSTMT 00000000
WCHAR * 0x0013C5EC (NYI)
SDWORD * 0x0013C638
WCHAR * 0x047EEA7C
SWORD 3869
SWORD * 0x0013C624
MSACCESS 79c-ed4 EXIT SQLErrorW with return code 100 (SQL_NO_DATA_FOUND)
HENV 09D31788
HDBC 09D31830
HSTMT 00000000
WCHAR * 0x0013C5EC (NYI)
SDWORD * 0x0013C638
WCHAR * 0x047EEA7C
SWORD 3869
SWORD * 0x0013C624
MSACCESS 79c-ed4 ENTER SQLFreeConnect
HDBC 09D31830
MSACCESS 79c-ed4 EXIT SQLFreeConnect with return code 0 (SQL_SUCCESS)
HDBC 09D31830
Edited by: user5598619 on Feb 10, 2009 5:37 PMThanks a lot for your quick reply.
I've read all the posts mentioned (quite a few more) but I couldn't find any suggested solution to the "non-oracle10g"-problem other than using the global db name instead of the sid - which didn't help in our case:
However, in a last desperate attempt to solve the problem on my own before launching another cry-for-help-post I did try running the configuration assistant using the correct password for the SYS user 8-} and - strange but true - it did work :-)
Needless to say: I used the global db name of course, so I can't say what would have happened without it, but I trust your hint was a legitimate one.
Anyway - I gues that error Message concerning a "non-oracle10g database" was slightly misleading in this case.... grrrr.
Andreas
Maybe you are looking for
-
Guys, I am trying to upload a new document using PRC API's. Below is required code snippet that i am using. IRemoteDocument remoteDoc = documentManager.createRemoteDocument(folderID,dataSourceID,document.getPath()); remoteDoc.setOverrideName(document
-
Can't upload photos to my ipad what should i do?
Everytime i try uploding photos to my ipad it goes wrong and say that can't save to my disk please HELP!!
-
I'm running Mavericks on a mid 2007 iMac with 6 gb Ram, iTunes 11.1.5 and Smart Converter Pro (SCP) 2 V2.0.2. I am trying to conver .mkv files to m4v files. SCP gives me many conversion options but they are all labled as the intended device with no
-
Points available. <b>Is the F110 payment only used for outgoing payments? Can it be used to process incoming payments from customers? If yes, how do we go about setting the config? Is it similar to the config used in FBZP?</b> Thanks in advance!
-
Artwork not downloading - iTunes not even trying!
I ripped Ryan Adams's (excellent) album Easy Tiger tonight. When I tried to download the art from the iTunes Store, iTunes thought about it for a little bit, then stopped. I assumed (wrongly) that the album doesn't exist in the iTS. I checked though,