TNS-12560: TNS:protocol adapter error on Oracle Enterprise Linux

hi,
I am getting -
TNS-12560: TNS:protocol adapter error when I try to connect the Db installed on Oracle Enterprise Linux from other machines.
I made all the .bash_profile changes and created one shared listener also to check whether there is any problem with the dedicated default listener or its port.
Please suggest the solution .
Regards
sumit chaudhary

You need to open the firewall on OEL.
Edit the contents of /etc/sysconfig/iptables file. I added the line in bold:
# Firewall configuration written by system-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state state NEW -m tcp -p tcp dport 22 -j ACCEPT
*-A RH-Firewall-1-INPUT -m state state NEW,ESTABLISHED,RELATED -m tcp -p tcp dport 1521 -j ACCEPT*
-A RH-Firewall-1-INPUT -m state state NEW -m udp -p udp dport 137 -j ACCEPT
-A RH-Firewall-1-INPUT -m state state NEW -m udp -p udp dport 138 -j ACCEPT
-A RH-Firewall-1-INPUT -m state state NEW -m tcp -p tcp dport 139 -j ACCEPT
-A RH-Firewall-1-INPUT -m state state NEW -m tcp -p tcp dport 445 -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT
As you can see, my listener port is 1521.
Do not put that line after the line with REJECT keyword ( it won't work then) !
Save and close the file. Restart iptables:
/etc/init.d/iptables restart
Now you can connect from the outside.
It works on my OEL version 5 update 4.

Similar Messages

  • ORA 12560 OTN Protocol Adapter Error

    I installed Oracle 9iAS DB and Developer. When I tried to run Form (Form Builder). I could not establish the connection.
    After insert username and password (without hostname), the error said, ORA 12560 OTN Protocol Adapter Error. However, when I put the hostname, the message alert 'the service name could not be solved' or sth. Can anyone help me with this problem? Thank you so much

    Hey Nikhil,
    I have the same problem, however when I try to run the commands u have asked to run I get errors.
    When I try
    c:>svrmgrl
    'svrmgrl' is not recognized as an internal or external command.
    operable program or batch file.
    and when I start lsnrctl
    LSNRCTL> lsnrctl start
    NL-00853: undefined command "lsnrctl". Try "help"
    I am using XP , the database is on other drive and the Developer suite is on other drive however, Listener is working fine. This error "ORA-12560: TNS:protocol adapter error" comes only when I try to log into my database from isqlplus. I am using 9i. Any Ideas on what should be done.
    Hashem

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

  • TNS:protocol adapter error in oracle 9i

    hi,
    I am using Windows vista in my PC. I just installed Oracle 9i. When I put in my
    user-name and password to run SQL+ 9.0.1 it gives me the following error
    message : ERROR:ORA-12560: TNS:protocol adapter error.
    Please give me the steps how to fix this error.
    Thanks,
    Noble

    Hi
    You are right pal. I just tested it and it seems like when the oracle_sid is not set then you get this error.
    LSNRCTL> stop
    Connecting to (ADDRESS=(PROTOCOL=tcp)(PORT=1521))
    The command completed successfully
    LSNRCTL> exit
    E:\oracle\product\10.1.0\Db_1\BIN>sqlplus "/ as sysdba"
    SQL*Plus: Release 10.1.0.2.0 - Production on Fri Oct 7 22:14:35 2005
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    ERROR:
    ORA-12560: TNS:protocol adapter error
    Enter user-name:
    ERROR:
    ORA-12560: TNS:protocol adapter error
    Enter user-name:
    ERROR:
    ORA-12560: TNS:protocol adapter error
    SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
    E:\oracle\product\10.1.0\Db_1\BIN>set oracle_sid=adnan
    E:\oracle\product\10.1.0\Db_1\BIN>sqlplus "/ as sysdba"
    SQL*Plus: Release 10.1.0.2.0 - Production on Fri Oct 7 22:14:45 2005
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL>
    Thanks for the correction.
    Rgds
    Adnan

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

  • ORA-12222 : TNS:No such protocol adapter -error

    Hi
    when i try to connect database from forms builder i get the below error.
    ORA-12222 : TNS : No such protocol adapter. I refered many forums and help sites... i checked everyting in my system. like Regedit and environment variable.
    still i am getting the same error. kindly help to resolve this issue.
    Please find the below details of my desktop, form builder and Oracle database.
    Desktop OS
    Operating system : WINDOWS XP (professional) version 2002 service pack 3
    Oracle Database
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE     10.2.0.4.0     Production
    TNS for Linux: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    Oracle database installed in Linux server
    linux server details
    Linux VM177 2.6.18-194.0.0.0.3.el5xen #1 SMP Mon Mar 29 18:27:00 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
    any rpm are required in Linux server resolve this issue.
    my linux server i couldn't find any rpms OPENM*
    $ rpm -qa openm*
    $
    Oracle forms builder
    Forms [32 Bit] Version 6.0.8.24.1 (Production)
    Oracle Toolkit Version 6.0.8.24.0 (Production)
    PL/SQL Version 8.0.6.3.0 (Production)
    Oracle Procedure Builder V6.0.8.21.0 Build #1459 - Production
    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
    Oracle Query Builder 6.0.7.1.0 - Production
    Oracle Virtual Graphics System Version 6.0.5.38.0 (Production)
    Oracle Tools GUI Utilities Version 6.0.8.20.1 (Production)
    Oracle Multimedia Version 6.0.8.20.0 (Production)
    Oracle Tools Integration Version 6.0.8.18.0 (Production)
    Oracle Tools Common Area Version 6.0.8.18.0
    Oracle CORE Version 4.0.6.0.0 - Production
    Thanks in advance. your early reply will be very much appriciated.
    Gowtham

    Please find below the output.
    $ lsnrctl services
    LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 03-APR-2012 06:08:23
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=VM.xxx.com )(PORT=1525)))
    The listener supports no services
    The command completed successfully
    $ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 03-APR-2012 06:13:18
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=VM.xxx.com )(PORT=1525)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
    Start Date 02-APR-2012 02:51:12
    Uptime 1 days 3 hr. 22 min. 5 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /oracle11g/o11gr22/app/o11gr22/product/11.1.0/db_1/network/admin/listener.ora
    Listener Log File /oracle11g/o11gr22/diag/tnslsnr/VM/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=VM.xxx.com )(PORT=1525)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1525)))
    The listener supports no services
    The command completed successfully
    $ cat /etc/hosts
    127.0.0.1 localhost.localdomain localhost
    10.123.256.177 VM.xxx.com VM VM.in.oracle.com
    Gowtham

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

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

    Step 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.
    chamara

    Welcome 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(ORACLE 11g)

    i installed 11g on my laptop yesterday and it was working perfectly but today it keeps writing:(AS SHOWN BELOW)
    ========================================================================
    SQL*Plus: Release 11.2.0.1.0 Production on Fri May 20 12:26:48 2011
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Enter user-name: hr
    Enter password:
    ERROR:
    ORA-12560: TNS:protocol adapter error
    Enter user-name: hr
    Enter password:
    ERROR:
    ORA-12560: TNS:protocol adapter error
    Enter user-name:
    ===============================================================================
    I checked the listener status and it seems to be working quite well as shown below...i don't understand!
    ================================================================================
    Microsoft Windows [Version 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.
    C:\Users\Bryan>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 20-MAY-2011 12:31
    :07
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1522)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Produ
    ction
    Start Date 20-MAY-2011 09:30:43
    Uptime 0 days 3 hr. 0 min. 24 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\app\Bryan\product\11.2.0\dbhome_2\network\admin\lis
    tener.ora
    Listener Log File c:\app\bryan\diag\tnslsnr\Bryan-PC\listener\alert\log.
    xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1522ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1522)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    ===========================================================================
    i dont know wat happened PLEASE ASSIST

    Hello,
    I am having the same problem, my step son touched the computer and have no idea what he did.
    here are my results
    lsnrctl services
    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.
    C:\Users\Rami>lsnrctl services
    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 17-JAN-2013 23:22
    :23
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    The command completed successfully
    C:\Users\Rami>

  • 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

  • ORA-12560: TNS:protocol adapter error while configuring ORACLE Workflow

    Hi,
    I am trying to configure ORACLE Workflow. I have given sys password and other parameters in the given format in Workflow Configuration Assistant. My DB Server is in my local network and I connect to it using SID in SQL Plus. But I got the following error while WorlflowCA tries to execute relevant script.
    ERROR:
    ORA-12560: TNS:protocol adapter error
    SP2-0640: Not connected
    WorkflowCA: Non-Oracle10g database detected
    If anybody is having any clues, please help me.
    Thanks in advance
    Ajish M.

    Thanks 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

  • ORA-12560:TNS protocol adapter Error while upgrading oracle 8i to Oracle 9i

    Hi,
       I am updrading My oracle 8i setup to Oracle 9i in the Windows operaton System.During the upgradation in the Database upgrade Assistant,The installer asked for the system authetication for upgrading the existing database.After proving the Username and password i am getting an error as ORA-12560:TNS protocol adapter Error .Please help me about what do I need to modify.
    Thanks in Advance,
      Anjela

    Hi,
      Here are the output
    SQL> select * from v$version;
    BANNER                                                                         
    Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production                     
    PL/SQL Release 8.1.7.0.0 - Production                                          
    CORE     8.1.7.0.0     Production                                                      
    TNS for 32-bit Windows: Version 8.1.7.0.0 - Production                         
    NLSRTL Version 3.4.1.0.0 - Production                                          
    SQL> select version from v$instance;
    select version from v$instance
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> select comp_id,version,status from dba_registry;
    select comp_id,version,status from dba_registry
    ERROR at line 1:
    ORA-00942: table or view does not exist
    Thanks,
    Anjela

  • ORA-12560: TNS:protocol adapter error Oracle 10G

    hi,
    I just installed Oracle 10G Express Edition. Installation was successful, when I tried to connect the database using
    Scott/tiger or hr/hr it does not Connect and throwing an exception :
    ORA-12560: TNS:protocol adapter error
    How can I get rid of this error to connect to the database.
    I am using Windows Vista 64 Bit OS....
    Thanks
    SUDHEER
    Edited by: user9274918 on Mar 4, 2010 8:49 PM

    user9274918 wrote:
    I am using Windows Vista 64 Bit OS....IF you are using DHCP to get the IP address, and you have not installed the Microsoft Loopback Adapter, the chances are very high that you will get 12560.
    It is also possible to get that message is you are not using the same adapter (or do not have networking) when the listener attempts to start or when trying to connect.
    Post the results of
    ipconfig /all
    lsnrctl status
    and the contents of the listener.ora and tnsnames.ora found in the %ORACLE_HOME%\network\admin directory
    And tell us what steps you skipped/missed in the install doc at http://www.oracle.com/pls/xe102/homepage

Maybe you are looking for