ORA_-12560: TNS :ERROR  by Protokoladapter

Hi,
I've tried to Connect PHP and Oracle,but I'd get this error
ERROR: Nr12560
ORA-12560: TNS: Error by Protocolladapter
my Script in PHP is als fallow and this is only for the connection to Oracle.
<?php
// Datenbank verbindug zu Oracle wifi
//$wifi ="";
$co = @ocilogon("hr8","hr8");
$sql = 'select * from jobs';
//Fehler ausgeben
if(!$co)
$fehler =ocierror();
echo('<p>Fehler Nr');
echo($fehler ['code']);
echo('<br>');
echo($fehler ['message']);
die();
else
//die datenbank ansprechen
echo('Verbunden mit'.ociserverversion($co).'<br>');
//$result= prüfen($co,$sql);
// die Verbindung schliessen
ocilogoff($co);
?>
I use Windows XP Prof. ,and I have my DataBase running when I 'd try to do the connection to Oracle .
Please I need a fast answer.
  Regards
   CARLOS
 

Hi ;
is there anyone who can  help me this ERROR to resolve.
First of all,  I use Windows XP system  and I tried to connect  PHP  to Oracle 10g DataBase.But I'd get the ERROR ABOVE.
I've installed PHP 5 Editor 5.0.3  und  XAMPP  for the connection to Oracle Database . The Database is running When I 'd try the connection between  both of them. The  PHP script looks like this;:
<?php
// Datenbank verbindug zu Oracle wifi
$co = @ocilogon('hr8','hr8') ; // this is a String with 'username' and 'PSW'
$sql = 'select * from jobs';
//Fehler ausgeben
if(!$co)
$fehler =ocierror();
echo('<p>Fehler Nr');
echo($fehler ['code']);
echo('<br>');
echo($fehler ['message']);
die();
else
//die datenbank ansprechen
echo('Verbunden mit'.ociserverversion($co).'<br>');
// $result= prüfen($co,$sql);
// die Verbindung schliessen
ocilogoff($co);
?>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
I' need an answer as soon as possible.
Thanks.
  Greetings
     CARLOS

Similar Messages

  • ORA-12560 TNS error in protocol adapter. Why ?

    I installed on computer1 an Oracle Express 10g server and he runs fine.
    Then, on another computer2 in the inhouse-net I installed the Oracle Client.
    When I try to contact now from computer2 the Oracle server on computer1
    with e.g.
    sqlplus.exe myname/mypasswd
    I am getting an error ORA-12560: TNS: Error in protofol adapter.
    What does that mean?When I enter the same locally on the server machine everything is fine.
    Firewalls between the computers are disabled.
    Which Oracle services must run on the client (not the server !) machine ?

    Ok, my Oracle Client is installed in C:\XEClient
    Below I show you the (recursive) output of the 'tree.exe' command (under WinXP)
    of the folder tree of C:\XEClient. Where is the directory "network/admin" ??????
    C:\XEClient>tree
    Folder PATH listing for volume WinXP
    Volume serial number is xxxxxxxx
    C:.
    ├───bin
    ├───doc
    ├───jdbc
    │ └───lib
    ├───jlib
    ├───lib
    ├───oci
    │ ├───include
    │ ├───lib
    │ │ └───msvc
    │ │ └───vc71
    │ └───samples
    ├───odbc
    │ ├───help
    │ └───html
    ├───odp.net
    │ ├───doc
    │ ├───help
    │ │ └───ja
    │ ├───PublisherPolicy
    │ ├───Resources
    │ │ ├───de
    │ │ ├───es
    │ │ ├───fr
    │ │ ├───it
    │ │ ├───ja
    │ │ ├───ko
    │ │ ├───pt-BR
    │ │ ├───zh-CHS
    │ │ └───zh-CHT
    │ └───samples
    │ ├───ArrayBind
    │ ├───AssocArray
    │ ├───DataSet
    │ │ ├───DMLOperOnDS
    │ │ │ ├───doc
    │ │ │ │ └───images
    │ │ │ ├───setup
    │ │ │ └───src
    │ │ ├───DSDRwithLOB
    │ │ │ ├───doc
    │ │ │ │ └───images
    │ │ │ ├───setup
    │ │ │ └───src
    │ │ ├───DSPopulate
    │ │ │ ├───doc
    │ │ │ │ └───images
    │ │ │ ├───setup
    │ │ │ └───src
    │ │ ├───DSPopulateVB
    │ │ │ ├───doc
    │ │ │ │ └───images
    │ │ │ ├───setup
    │ │ │ └───src
    │ │ ├───DSwithRefCur
    │ │ │ ├───doc
    │ │ │ │ └───images
    │ │ │ ├───setup
    │ │ │ └───src
    │ │ ├───RelationalData
    │ │ │ ├───doc
    │ │ │ │ └───images
    │ │ │ ├───setup
    │ │ │ └───src
    │ │ ├───RelationalDataVB
    │ │ │ ├───doc
    │ │ │ │ └───images
    │ │ │ ├───setup
    │ │ │ └───src
    │ │ └───SafeTypeMapping
    │ │ ├───doc
    │ │ │ └───images
    │ │ ├───setup
    │ │ └───src
    │ ├───EventHandler
    │ │ └───RowUpdateEventHandler
    │ │ ├───doc
    │ │ │ └───images
    │ │ └───src
    │ ├───Globalization
    │ │ ├───doc
    │ │ │ └───images
    │ │ ├───setup
    │ │ └───src
    │ ├───LOB
    │ │ ├───AccessBFile
    │ │ │ ├───doc
    │ │ │ │ └───images
    │ │ │ └───src
    │ │ └───UpdLob
    │ │ ├───doc
    │ │ │ └───images
    │ │ ├───setup
    │ │ └───src
    │ ├───RefCursor
    │ │ └───UpdRefCursor
    │ │ ├───doc
    │ │ │ └───images
    │ │ └───src
    │ ├───StatementCache
    │ ├───TAF
    │ │ ├───doc
    │ │ │ └───images
    │ │ ├───setup
    │ │ └───src
    │ ├───Transaction
    │ │ ├───DistributedTransaction
    │ │ │ ├───doc
    │ │ │ │ └───images
    │ │ │ ├───setup
    │ │ │ └───src
    │ │ └───Savepoint
    │ │ ├───doc
    │ │ │ └───images
    │ │ ├───setup
    │ │ └───src
    │ ├───WebService
    │ │ └───OdpNetWs
    │ │ ├───doc
    │ │ │ └───images
    │ │ └───src
    │ │ ├───client
    │ │ └───webservice
    │ └───XML
    │ ├───XMLView
    │ │ ├───doc
    │ │ │ └───images
    │ │ ├───setup
    │ │ └───src
    │ └───XMLViewVB
    │ ├───doc
    │ │ └───images
    │ ├───setup
    │ └───src
    ├───oledb
    │ ├───include
    │ ├───lib
    │ └───samples
    │ ├───DataSet
    │ │ ├───DMLOperOnDS
    │ │ │ ├───doc
    │ │ │ │ └───images
    │ │ │ ├───setup
    │ │ │ └───src
    │ │ ├───DSPopulate
    │ │ │ ├───doc
    │ │ │ │ └───images
    │ │ │ ├───setup
    │ │ │ └───src
    │ │ ├───DSPopulateVB
    │ │ │ ├───doc
    │ │ │ │ └───images
    │ │ │ ├───setup
    │ │ │ └───src
    │ │ ├───DSwithLOB
    │ │ │ ├───doc
    │ │ │ │ └───images
    │ │ │ ├───setup
    │ │ │ └───src
    │ │ └───DSwithRefCur
    │ │ ├───doc
    │ │ │ └───images
    │ │ ├───setup
    │ │ └───src
    │ └───RefCur
    ├───oramts
    │ ├───admin
    │ ├───public
    │ └───trace
    ├───precomp
    │ ├───admin
    │ └───lib
    └───sqlplus
    C:\XEClient>

  • Ora-12560 TNS ERROR

    Hello All!
    I keep getting this error after installation ,when I try to log into SQL+:
    Ora-12560 TNS PROTOCOL ADAPTER ERROR..
    Any ideas how to go about it?
    thanks!
    Sandhya

    Hi Sandhya,
    Are the scripts used to restart your database instance(s) after system restart also starting the TNS listener process?
    Are you using multiple Oracle Homes? Oracle 8.1.5 or 8.1.6 with Oracle 8.0 can cause 'issues'.
    Cause:
    ORA-12560: "TNS:protocol adapter error" that means the listener was unable to start a process connecting the user to the database server.
    Actions:
    Check addresses used for proper protocol specification. Before
    reporting this error, look at the error stack and check for lower level transport errors. For further details, turn on tracing and reexecute the operation. Turn off tracing when the operation is complete.
    TNS experienced a protocol-adapter error. There could be some problem with the installation of your Oracle Protocol Adapter. To resolve this problem, turn on tracing and review the output to identify the severity of the problem
    Regards,
    Beau

  • Error Ora-12560: TNS: error del adaptador del Protocolo

    When I'm connect to oracle data base I have this problem it's the error.
    What can I do whith my problem.
    Please helpme.

    It's basically saying that you cannot connect because the SQL*Net process can't find the database.
    Check:
    1) your tnsname.ora file is correct
    2) your ORACLE_HOME is correct (if you are getting the error on the server console)
    3) Check the alert log - that can often contain some more information.
    4) The listener is up and running.

  • 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.

  • Error while starting listener on my database TNS-1255,TNS-12560, TNS-00525

    Hi All,
    I am newbie to oracle and i have been struggling from last one week to get this error corrected on my database.
    Listener services are not working due to which i'm unable to proceed my work. Please provide ur help as i really want to learn.
    Edited by: 978366 on Jan 12, 2013 6:18 AM

    Please take a look at all the details asked by you guys. It will really helpful if this can get fixed
    [oraprod@mycomp admin]$ cat /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    10.10.10.100 mycomp.mydomain.com mycomp
    [oraprod@mycomp admin]$ uname -a
    Linux mycomp.mydomain.com 2.6.9-89.0.0.0.1.ELhugemem #1 SMP Tue May 19 04:38:38 EDT 2009 i686 i686 i386 GNU/Linux
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    listener.ora entry
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = mycomp.mydomain.com)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROCO))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = test.mycomp.mydomain.com)
    (ORACLE_HOME = /u01/app/oraprod/product/1020/db_1)
    (SID_NAME = test)
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oraprod/product/1020/db_1)
    (PROGRAM = extproc)
    tnsname.ora entry
    TEST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = mycomp.mydomain.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = TEST)
    listener status
    [oraprod@mycomp admin]$ lsnrctl status
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 14-JAN-2013 16:44:33
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mycomp.mydomain.com)(PORT=1521)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    Linux Error: 111: Connection refused
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROCO)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    Linux Error: 111: Connection refused
    [oraprod@mycomp admin]$ lsnrctl start
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 14-JAN-2013 16:44:44
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Starting /u01/app/oraprod/product/1020/db_1/bin/tnslsnr: please wait...
    TNS-12537: TNS:connection closed
    TNS-12560: TNS:protocol adapter error
    TNS-00507: Connection closed
    Linux Error: 29: Illegal seek
    [oraprod@mycomp admin]$

  • TNS-12560: TNS:protocol adapter error, ORA-12535: TNS:operation timed out

    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.

  • Oracle 8.1.7 on Redhat 9: Tns Listener TNS-12545, TNS-12560, TNS-005 errors

    I have installed Oracle 8.1.7 on RH9 following Arothmel at www3.sympatico.ca/arothmel
    with success. The database is created, and oracle can be lunch without problem but "lsnrctl start" give errors:
    [oracle@padbd oracle]$ lsnrctl start
    LSNRCTL for Linux: Version 8.1.7.0.0 - Production on
    19-JUN-2006 01:09:16
    (c) Copyright 1998 Oracle Corporation. All rights reserved.
    Starting /u01/oracle/product/8.1.7/bin/tnslsnr: please wait...
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    Linux Error: 2: No such file or directory
    [oracle@padbd oracle]$
    [oracle@padbd oracle]$ lsnrctl status listener
    LSNRCTL for Linux: Version 8.1.7.0.0 - Production on
    19-JUN-2006 00:53:07
    (c) Copyright 1998 Oracle Corporation. All rights reserved.
    Connecting to
    (DESCRIPTIonfiltered=(ADDRESS=(PROTOCOL=TCP)(HOST=padbd.softmobiles.net)(PORT=1521)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    Linux Error: 111: Connection refused
    this is the result of ping at padbd.softmobiles.net
    [oracle@padbd oracle]$ ping padbd.softmobiles.net
    PING padbd.softmobiles.net (192.168.101.209) 56(84)
    bytes of data.
    64 bytes from padbd.softmobiles.net (192.168.101.209):
    icmp_seq=1 ttl=64 time=0.060 ms
    64 bytes from padbd.softmobiles.net (192.168.101.209):
    icmp_seq=2 ttl=64 time=0.055 ms
    64 bytes from padbd.softmobiles.net (192.168.101.209):
    icmp_seq=3 ttl=64 time=0.053 ms
    and this is the result of sqlplus system/manager
    [oracle@padbd oracle]$ sqlplus system/manager
    SQL*Plus: Release 8.1.7.0.0 - Production on Mon Jun 19 00:58:48 2006
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    Connected to: Oracle8i Enterprise Edition Release 8.1.7.0.1 - Production
    JServer Release 8.1.7.0.1 - Production
    SQL>
    And you know if I lunch "lsnrctl status" with a wrong file name then the computer waits for 3scons and displays this:
    [oracle@padbd oracle]$ lsnrctl status listene
    LSNRCTL for Linux: Version 8.1.7.0.0 - Production on
    19-JUN-2006 01:13:15
    (c) Copyright 1998 Oracle Corporation. All rights reserved.
    TNS-01101: Could not find service name listene
    NNC-00405: network failure
    [oracle@padbd oracle]$
    So I don't really know where is the problem with this TNS issue.
    I need your help.
    Thanks and Regards
    Justin
    Here are the contents of the tns file
    tnsnames.ora
    # TNSNAMES.ORA Network Configuration File: /u01/oracle/product/8.1.7/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    File:/u01/app/oracle/product/8.1.6/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    PADBD.SOFTMOBILES.NET =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)
    (HOST = padbd.softmobiles.net)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = padbd.softmobiles.net)
    EXTPROC_CONNECTION_DATA.SOFTMOBILES.NET =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    BILBO.SOFTMOBILES.NET =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)
    (HOST = galadriel.softmobiles.net)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = bilbo.softmobiles.net)
    PADBD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.101.209)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = padbd.softmobiles.net)
    INST1_HTTP =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.101.209)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = padbd.softmobiles.net)
    (PRESENTATION = http://admin)
    )

    Hi,
    a different point: make sure the (host = ) part of your ADDRESS_LIST is correct, it seems the listener tries to bind to a host/port combination that does not exist. Don't use localhost there or nobody will be able to connect to the database which is probably not what you what.
    Regards,
    Martin

  • 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.
    Alicia

    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?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 ERROR

    SIR,
    i hadbeen installed oracle aplication server.but i m not connecting to database.when i use the sql*plus.i use the user name-scott &password-tiger.i got an error ORA-12560=TNS PROTOCOL ERROR.
    I M NOT ABLE TO RECTIFY ITS PROBLEM,how can i create host string in oracle application server 10g.please send reply its very urgent.
    thanx ranjeet

    Although this question is completely off topic of the Personalization you can learn how to configure the SQL*Net connect from the manual by reading the topic "Configure the Client to Use a Net Service Name" found at the following link:
    http://download-west.oracle.com/docs/cd/A91202_01/901_doc/network.901/a90154/gettings.htm#483215

  • 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 listener not starting up.

    Hi all
    we came to an issue where we have to move our server from one data centre to another after unplugging the machine and re-plugging the server
    1) Operating system (OEL 5.1) started.
    2) Database 11gR2 started.
    3) Listener Failed to Start.
    [oracle@yam01 tmp]$ lsnrctl start lsn_yscc12
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 02-OCT-2012 07:57:58
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Starting /u01/app/oracle/product/11.2.0/bin/tnslsnr: please wait...
    TNS-12537: TNS:connection closed
    TNS-12560: TNS:protocol adapter error
    TNS-00507: Connection closed
    Linux Error: 29: Illegal seek
    [oracle@yam01 tmp]$
    When checked in sqlnet.log we found.
    [oracle@yam01 log]$ cat sqlnet.log
    Directory does not exist for read/write [u01/app/oracle/product/11.2.0/log] [u01/app/oracle/product/11.2.0/log/diag/clients]
    [oracle@yam01 log]$
    /u01/app/oracle/product/11.2.0/log
    /u01/app/oracle/product/11.2.0/log/diag/clients --> here under diag folder client folder was missing.
    drwxrwxr-x 3 oracle oinstall 4096 Sep 30 12:59 /u01/app/oracle/product/11.2.0/log/diag/
    *[oracle@yam01 log]$ cd /u01/app/oracle/product/11.2.0/log/diag/clients*
    -bash: cd: /u01/app/oracle/product/11.2.0/log/diag/clients: No such file or directory
    *[oracle@yam01 log]*
    [oracle@yam01 diag]$ mkdir clients
    [oracle@yam01 diag]$ ls -ltr
    total 12
    drwxr-x--- 3 oracle oinstall 4096 Sep 30 12:59 rdbms
    -rw-r----- 1 oracle oinstall 15 Oct 2 07:43 adrci_dir.mif
    drwxr-xr-x 2 oracle oinstall 4096 Oct 2 08:27 clients
    [oracle@yam01 diag]$
    and added *"SUBSCRIBE_FOR_NODE_DOWN_EVENT_lsn_yscc12=OFF"*
    and then when started all the listener it started successfully.+_
    [oracle@yam01 ~]$ lsnrctl status lsn_yscc12
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 02-OCT-2012 08:40:19
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=100.100.50.199)(PORT=1603)))
    STATUS of the LISTENER
    Alias lsn_yscc12
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date 02-OCT-2012 08:28:09
    Uptime 0 days 0 hr. 12 min. 9 sec
    Trace Level admin
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/11.2.0/network/admin/listener.ora
    Listener Log File /u01/app/oracle/diag/tnslsnr/yam01/lsn_yscc12/alert/log.xml
    Listener Trace File /u01/app/oracle/diag/tnslsnr/yam01/lsn_yscc12/trace/ora_10095_3086223040.trc
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=100.100.50.199)(PORT=1603)))
    Services Summary...
    Service "YSCC12.YAMAMACEMENT.COM" has 1 instance(s).
    Instance "yscc12", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@yam01 ~]$
    Thanks all for Reading this post
    hope if you came across this issues this may work for you.
    Best Regards
    Kaleem.

    Welcome to OTN
    Thank you For you sharing :)

Maybe you are looking for

  • Service order type assignment

    Dear all, How i am goin to assign the service order with the repair order type? Regards, Mohsin

  • [SOLVED] gnome 3 look and feel

    Hello all, I did a fresh install of arch and gnome 3 last night.  I am currently running on fallback mode, prefer that mode to the new interface.  The question I have is, is it possible to easily customize/theme Gnome 3 Fallback in Arch to change som

  • Problems after updating to android 4

    hi experts i have the fantastic phone sony xperia arc s i loved the phone and it was great untill i update it to android 4!! there are problems concerning alot of hangs...a wifi problem(lose signal while surfing) and the hangs makes the mobile reboot

  • About the use of transaction

    Hi expert I use Berkeley DB with lots of short transactions. It seems the performance is limited because commit will cause disk flush/sync. To improve performance I commit several sequential transactions with NOSYNC flag, then commit last transaction

  • Users of systemd and lxdm or lightdm please read and comment [solved]

    I'm trying to confirm that both lxdm and lightdm do not properly establish a systemd session upon login.  Thanks to tomegun in this thread for the detective work.  In short, if you both use systemd and login graphically with EITHER lxdm or lightdm, p