ORA-12560: TNS:protocol adapter error on client machine(linux)
Hi,
Oracle10gXE
Linux Fedora14
Getting below error when trying to connect the database from client machine.
Error
====
ORA-12560: TNS:protocol adapter error
Below is the output of 'export' command on client machine showing enviornment variable values:
oracle@work-desktop:/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/bin$ export
declare -x HISTCONTROL="ignoreboth"
declare -x HOME="/home/oracle"
declare -x LANG="en_US.UTF-8"
declare -x LANGUAGE="en_US:en"
declare -x LD_LIBRARY_PATH="/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/lib:"
declare -x LESSCLOSE="/usr/bin/lesspipe %s %s"
declare -x LESSOPEN="| /usr/bin/lesspipe %s"
declare -x LOGNAME="oracle"
declare -x MAIL="/var/mail/oracle"
declare -x NLS_LANG="AMERICAN_AMERICA.AL32UTF8"
declare -x OLDPWD="/usr/lib/oracle/xe/app/oracle/product/10.2.0/client"
declare -x ORACLE_HOME="/usr/lib/oracle/xe/app/oracle/product/10.2.0/client"
declare -x PATH="/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/bin"
declare -x PWD="/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/bin"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SQLPATH="/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/sqlplus"
declare -x TERM="xterm"
declare -x TNS_ADMIN="/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/network/admin"
declare -x USER="oracle"
oracle@work-desktop:/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/bin$
Database connection works fine when connecting from the server itself( i.e. locally on the database server).
Is there anything still missing on the oralce client machine ?
Regards
Hi,
also below is the o/p of netstat -nr command
-bash-4.1$ netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
172.16.40.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 172.16.40.1 0.0.0.0 UG 0 0 0 eth0
seems some issue with IP address in the Destination column as the IP address of the database server machine is 172.16.40.64
may be this can be creating the problem.
If it is so, then in which file to change the IP address ?
Similar Messages
-
Error ORA-12560:TNS:protocol adapter error - on client
dear frnds,
I am try to install oracle 11g to my client iam getting error
ORA-12560:TNS:protocol adapter error
pls help me out
thanx in advanceMost likely reason for TNS Protocol adapter error is....you must have older client FIRST in your path.
You 11g binaries are not kicking in, cuz...you must have 10g or similar/older binaries first in your PATH ( in windows )
In windoz...in cmd window...
set ORACLE_SID=xxxx
set ORACLE_HOME= to your 11g home
cd %ORACLE_HOME%\bin OR set PATH=%ORACLE_HOME%\bin;%PATH%
Then your sqlplus etc..
This time you should not be getting the protocol error.
Let us know whether this solved your problem -
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 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. -
How to solve the ORA-12560: TNS:protocol adapter error
Hello All,
when i am am trying to connecting the database i am getting the error ORA-12560: TNS:protocol adapter error
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Windows\system32>set oracle_sid=QUANTUM
C:\Windows\system32>sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Mon Jul 15 12:54:50 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
ERROR:
ORA-12560: TNS:protocol adapter error
Enter user-name:
My TNS File is below : -
# tnsnames.ora Network Configuration File: C:\app\Onkar\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
QVS =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = qvs)
LISTENER_QVS =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
Oradb11g_home1=
(DESCRIPTION=
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=TCP)(HOST=115.111.50.61)(PORT=1522))
(CONNECT_DATA=
(SERVER=DEDICATED)
(SERVICE_NAME=test)
Listener :-
# listener.ora Network Configuration File: C:\app\Onkar\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\app\Onkar\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\app\Onkar\product\11.2.0\dbhome_1\bin\oraclr11.dll")
(SID_DESC =
(SID_NAME = QUANTUM)
(ORACLE_HOME = C:\app\Onkar\product\11.2.0\dbhome_1)
(ENVS = "EXTPROC_DLLS=ONLY:C:\app\Onkar\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\onkar
sqlnet .ora :-
# sqlnet.ora Network Configuration File: C:\app\Onkar\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
# 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.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
Reply Quick:-
PLZZZZZ
Thanks in advance:-
shekharMicrosoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Windows\system32>set oracle_sid=QUANTUM
C:\Windows\system32>sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Mon Jul 15 12:54:50 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
ERROR:
ORA-12560: TNS:protocol adapter error
This is a local connection (called an internal connect in the old days). The connection does not go via the Listener. It is a local IPC connection. And as you can see, you do not supply a database schema and password as credentials - the o/s user and environment need to provide the credentials.
So I would not expect a TNS protocol adapter error, as this usually indicates a network driver related problem.
For a local IPC connection to work, TWO_TASK must not be set, and ORACLE_SID and ORACLE_HOME must be set (and valid). The local client driver needs to launch an Oracle server process (dedicated server process to service the client driver). It finds that executable in ORACLE_HOME/bin. Next it needs that server process to "attach" itself to the database's brains (the SGA). This shared memory area is identified via the ORACLE_HOME and ORACLE_SID variables.
There also is a requirement that the dedicated server process created, has the o/s permissions to attach to the SGA - which means it needs to be run as the same o/s user as the owner of the shared memory (in other words, the client should be running in the same o/s user as the database processes).
Thus the need to have these variables set. And no need for using a Listener - it is not a factor. -
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. -
Ora-12560 tns protocol adapter error (can connect with cmd line creds only)
SQLPLUS returns the following when trying to log in with user/pass:
ora-12560 tns protocol adapter error
Have tried setting ORACLE_SID=VMFG, etc, before launching SQLPLUS, still does not work, though if I do this:
SQLPLUS SYSADM/SYSADM@db1/VMFG
it works, which is probably something to do with tnsnames.ora or sqlnet.ora which I copied from our database server? I added the SYSADM/SYSADM account and gave it db rights to VMFG (the db name).
This is a new installation. What am I doing wrong? tnsping db1 returns pongs, testing the service with the oracle client returns success when I change the u/p to SYSADM/SYSADM. Thanks in advance!
[sqlnet.ora file]
# sqlnet.ora Network Configuration File: /oracle/db_1/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
[tnsnames.ora file]
# tnsnames.ora Network Configuration File: /oracle/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
VMFG =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = db1.dc.inc)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = VMFG)
Edited by: 794609 on Sep 13, 2010 8:31 PMClient machine that I am working on with the SQLPLUS error is Windows XP running the 11g client. Server is Linux (Ubuntu 10) running 11g
BANNER
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for Linux: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
uid=1001(oracle) gid=1001(oinstall) groups=1001(oinstall),1002(dba),1003(oper)
_=/bin/sh
BLOCKSIZE=K
EDITOR=vi
ENV=/home/oracle/.profile
HOME=/home/oracle
LANG=en_US.UTF-8
LD_LIBRARY_PATH=lib:/usr/lib:/usr/local/lib:/oracle/db_1/lib
LOGNAME=oracle
MAIL=/var/mail/oracle
MANPATH=/usr/man:/usr/share/man:/usr/X11R6/man:/usr/openwin/man:/usr/local/man:/usr/news/man
MOZILLA_HOME=/usr/X11R6/lib/netscape
MOZILLA_NO_ASYNC_DNS=True
ORACLE_HOME_LISTNER=/oracle/db_1
ORACLE_HOME=/oracle/db_1
ORACLE_HOSTNAME=db1
ORACLE_SID=VMFG
PAGER=more
PATH=/dc/bin:/usr/local/bin:/usr/ucb:/usr/ccs/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin:/usr/openwin/bin:/usr/secure:/usr/secure/bin
:/usr/local/nwlink/bin:/usr/local/nwlink/scripts:/usr/local/secure:/usr/X11R6/lib/netscape:/usr/contrib/bin:/usr/lib:/usr/local/mysql/bin:/usr/local/sbin:
/usr/lib/jre:/usr/lib/jre/bin:/usr/lib/jre/ant/bin::/usr/lib/jre/jmeter/bin:/usr/local/pgsql/bin:/opt/kde:/opt/kde/bin:/usr/local/mrtg-2/bin:/oracle/db_1/
bin:.
PWD=/home/oracle
SHELL=/bin/ksh
TERM=screen
USER=oracle
VISUAL=vi
XDG_SESSION_COOKIE=ab09d2422fd4935e2707cac30000000d-1284435625.90759-907620663
10.0.2.155 ubuntu # Added by NetworkManager
127.0.0.1 localhost.localdomain localhost
::1 ubuntu localhost6.localdomain6 localhost6
127.0.1.1 ubuntu
10.0.2.65 db1.dc.inc db1 dc
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Linux db1 2.6.35-20-generic #29-Ubuntu SMP Fri Sep 3 14:55:28 UTC 2010 x86_64 GNU/Linux -
ORA-12560: TNS:protocol adapter error while creating new database
Hi,
I installed Oracle Enterprise Manager 10g Grid Control Release 1 (10.1.03) and created the default database it had which was emrep. Once Oracle Grid Control was installed I ran the install for Oracle Database 10g Release 1 (10.1.0.2).
Now when I try to create a database I get the following error: ORA-12560: TNS:protocol adapter error.
My assumption is because I seem to have 2 Oracle home's now because I installed the Grid Control??
My question is, have I done this backwards? Should I install Oracle 10g before installing the grid control? If thats not it, can someone point me in the right direction?
FYI: The server we're using is running Windows Server 2003.
Thanks for your helpEnv variables are as follows:
ClusterLog = C:\WINDOWS\Cluster\cluster.log
ComSpec = %SystemRoot%\system32\cmd.exe
FP_NO_HOST_CHECK = NO
JSERV = D:\Oracle\Ora92/Apache/Jserv/conf
NUMBER_OF_PROCESSORS = 4
ORACLE_HOME = D:\Oracle\Ora10gGC
OS = Windows_NT <-- its actually Windows Server 2003
Path = D:\Oracle\Ora10g\bin;D:\Oracle\Ora10g\jre\1.4.2\bin\client;D:\Oracle\Ora10g\jre\1.4.2\bin;D:\Oracle\agent\bin;D:\Oracle\agent\oui\lib\win32;D:\Oracle\agent\jlib;D:\Oracle\agent\bin;D:\Oracle\agent\jre\1.4.2\bin\client;D:\Oracle\agent\jre\1.4.2\bin;D:\Oracle\Ora10gGC\bin;D:\Oracle\Ora10gGC\jlib;D:\Oracle\Ora10gGC\jre\1.1.8\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;
Pathext = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PERL5LIB = D:\Oracle\Ora10g\perl\lib\5.6.1\MSWin32-x86;D:\Oracle\Ora10g\perl\lib\5.6.1;D:\Oracle\Ora10g\perl\5.6.1\lib\MSWin32-x86;D:\Oracle\Ora10g\perl\site\5.6.1;D:\Oracle\Ora10g\perl\site\5.6.1\lib;D:\Oracle\Ora10g\sysman\admin\scripts
WV_GATEWAY_CFG = D:\Oracle\Ora92\Apache\modplsql\cfg\wdbsvr.app -
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 -
I just install the patch 9.2.0.7 for client Oracle machine on windows 2000 server.
Since then I'm constantly getting "ORA-12560: TNS:protocol adapter error" and I cannot connect via SQL plus.
Any help is appreciated, mjI'm trying to connect to databases that are running on a separate machines - aix5.2, and I can connect from every other machine in the office but not from this one.
There's no database on this machine - only Oracle client tools installed with 9.2.0.1 and then updated to 9.2.0.7. Before the update the sqlplus was working just fine. After the patch run, I'm not able to connect viw sqlplus.
There were no errors when running the patch.
Thanks a lot,mj -
Vbscript to connect to oracle fails with ORA-12560: TNS:protocol adapter error
I am running a Windows 7, 64 bit system with the Oracle 32 bit client installed. The 32 bit client is required for use with Oracle's Documaker Studio which is working fine with the current client configuration. I would like to connect the same database using a vbscript. Here is the test script I am using:
Option Explicit
Dim strCon
strCon = "Driver={Oracle in OraClient11g_home1_32bit}; " & _
"CONNECTSTRING=(DESCRIPTION=" & _
"(ADDRESS=(PROTOCOL=TCP)" & _
"(HOST={VSTODEEDATxx.xxxxxxx.com})(PORT=1521))" & _
"(CONNECT_DATA=(SERVICE_NAME=IDMAKER))); uid=xxxxxx;pwd=xxxxxxxx;"
Dim oCon: Set oCon = WScript.CreateObject("ADODB.Connection")
Dim oRs: Set oRs = WScript.CreateObject("ADODB.Recordset")
oCon.Open strCon
Set oRs = oCon.Execute("SELECT TO_CHAR(SYSDATE,'MM-DD-YYYY HH24:MI:SS') AS DateTime FROM DUA")
While Not oRs.EOF
WSCript.Echo oRs.Fields(0).Value
oRs.MoveNext
Wend
oCon.Close
Set oRs = Nothing
Set oCon = Nothing
In the connection string I am using the 32 bit driver used succesfully by Documaker. I provided all the parms to eliminate the need for tnsnames.ora. However, I do have tnsnames.ora on my system and Documaker is using it.
Since the client is 32 bit, I am using the following command to run the script:
c:\windows\syswow64\cscript.exe c:\temp\oracle\testing\testconnect.vbs
This is suppose to run the script in 32 bit mode and be compatible with the client.
When I run the program I get the following error:
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
c:\temp\oracle\testing\testconnect.vbs(12, 1) Microsoft OLE DB Provider for ODBC
Drivers: [Oracle][ODBC][Ora]ORA-12560: TNS:protocol adapter error
Would someone please advise on how to debug this problem? Thanks, Gary"connectstring" is not a valid attribute with Oracle's ODBC driver, so since there is no datasource attribute specified, the app is trying to connect to a local database, and since you don't have one, you get 12560.
To resolve the problem, pass DBQ= instead of CONNECTSTRING=
http://docs.oracle.com/cd/B19306_01/server.102/b15658/app_odbc.htm#i1093897
Greg
Maybe you are looking for
-
PS CS6 has no sound with AVCHD videos from Sony Cybershot
System Specs: PS CS6, fully updated win7/64 fully patched 16gb ram, 11+ GB free ssd scratch drive, 40gb free camera: Sony cybershot dsc-hx30v files: *.MTS CPU: intel quad core sandy bridge 2600k, 3.4Ghz GPU: AMD 6950 2gb The videos play fine in VLC
-
Exporting images to video ipod
I want to export a folder of images from iphoto so i can view them on my ipod as a slideshow - is this possible?? Have tried to export them but so far they are just stored on the harddrive and I can't view them. Any ideas on how you do it??
-
Hi, Is their a standard function module which will provide information regarding resource utlisation and also daily schedulw of planned order on a particular resource. Thanks & Regards, Sanjog
-
Hi, I need to translate all the letters of a word but the first one to lower case. For example, the variable has the value "ROBERTO" and i want to change it to "Roberto". Is there a FM to do this? And also, does anybody know a char domain in which le
-
Printer not showing up on add printer
We have a network of both PCs and Macs and a central Sharp Copier. We have the latest driver for Yosemite but the copier is not showing up in the add printer list. When we try setting the Macs up through the IP menu it says unable to verify printer