Tns-12560: TNS protocol adapter error on linux
I've installed an oracle 10g database on linux 4.6 in a VMWare image. After opening an x term window within the image, I'm getting a tns-12560 error when both running tnsping and opening a sqlplus session as a database user. The listener and database seem to start fine. I've included entries for sqlnet.ora, tnsnames.ora and ORACLE_SID and ORACLE_HOME values for my user.
mui> tnsping orcl
Used parameter files:
/pinmaster/newtools/oracle_10.2/linux/network/admin/sqlnet.or
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = cgbu-p731v2.us.oracle.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))
TNS-12560: TNS:protocol adapter error
From sqlnet.ora: NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
From tnsnames.ora:
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = cgbu-p731v2.us.<<my domain entry>>.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
This is from init.ora
# Database Identification
db_domain=""
db_name=orcl
Environment variables for the database user:
9mui> env | grep ORACLE_SID
ORACLE_SID=orcl
13mui> env | grep ORACLE_HOME
ORACLE_HOME=/pinmaster/newtools/oracle_10.2/linux
One of the more common issues causing 12560 is that the host in the listener.ora does not match current host name. Commonly caused by dhcp.
Your tnsnames.ora looks for cgbu-p731v2.us.oracle.com
Your listener.ora want to listen for cgbu-p731v2.us.<<my domain entry>>.com
Your hostname is ??? (enter 'hostname' at command line)
Similar Messages
-
ORA 12560 OTN Protocol Adapter Error
I installed Oracle 9iAS DB and Developer. When I tried to run Form (Form Builder). I could not establish the connection.
After insert username and password (without hostname), the error said, ORA 12560 OTN Protocol Adapter Error. However, when I put the hostname, the message alert 'the service name could not be solved' or sth. Can anyone help me with this problem? Thank you so muchHey Nikhil,
I have the same problem, however when I try to run the commands u have asked to run I get errors.
When I try
c:>svrmgrl
'svrmgrl' is not recognized as an internal or external command.
operable program or batch file.
and when I start lsnrctl
LSNRCTL> lsnrctl start
NL-00853: undefined command "lsnrctl". Try "help"
I am using XP , the database is on other drive and the Developer suite is on other drive however, Listener is working fine. This error "ORA-12560: TNS:protocol adapter error" comes only when I try to log into my database from isqlplus. I am using 9i. Any Ideas on what should be done.
Hashem -
ORA-12222 : TNS:No such protocol adapter -error
Hi
when i try to connect database from forms builder i get the below error.
ORA-12222 : TNS : No such protocol adapter. I refered many forums and help sites... i checked everyting in my system. like Regedit and environment variable.
still i am getting the same error. kindly help to resolve this issue.
Please find the below details of my desktop, form builder and Oracle database.
Desktop OS
Operating system : WINDOWS XP (professional) version 2002 service pack 3
Oracle Database
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
TNS for Linux: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
Oracle database installed in Linux server
linux server details
Linux VM177 2.6.18-194.0.0.0.3.el5xen #1 SMP Mon Mar 29 18:27:00 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
any rpm are required in Linux server resolve this issue.
my linux server i couldn't find any rpms OPENM*
$ rpm -qa openm*
$
Oracle forms builder
Forms [32 Bit] Version 6.0.8.24.1 (Production)
Oracle Toolkit Version 6.0.8.24.0 (Production)
PL/SQL Version 8.0.6.3.0 (Production)
Oracle Procedure Builder V6.0.8.21.0 Build #1459 - Production
PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
Oracle Query Builder 6.0.7.1.0 - Production
Oracle Virtual Graphics System Version 6.0.5.38.0 (Production)
Oracle Tools GUI Utilities Version 6.0.8.20.1 (Production)
Oracle Multimedia Version 6.0.8.20.0 (Production)
Oracle Tools Integration Version 6.0.8.18.0 (Production)
Oracle Tools Common Area Version 6.0.8.18.0
Oracle CORE Version 4.0.6.0.0 - Production
Thanks in advance. your early reply will be very much appriciated.
GowthamPlease find below the output.
$ lsnrctl services
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 03-APR-2012 06:08:23
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=VM.xxx.com )(PORT=1525)))
The listener supports no services
The command completed successfully
$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 03-APR-2012 06:13:18
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=VM.xxx.com )(PORT=1525)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 02-APR-2012 02:51:12
Uptime 1 days 3 hr. 22 min. 5 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle11g/o11gr22/app/o11gr22/product/11.1.0/db_1/network/admin/listener.ora
Listener Log File /oracle11g/o11gr22/diag/tnslsnr/VM/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=VM.xxx.com )(PORT=1525)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1525)))
The listener supports no services
The command completed successfully
$ cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
10.123.256.177 VM.xxx.com VM VM.in.oracle.com
Gowtham -
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 chaudharyYou 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. -
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 ?
RegardsHi,
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 ? -
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 -
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 :) -
TNS-12560: TNS:protocol adapter error (when starting database)
Hi.. everyone.
I am testing oracle9i and oracle10g on the same machine, windows xp pro.
When I was trying to start oracle10g using command line mode,
I got the error, TNS-12560: TNS:protocol adapter error.
I entered these command.
set oracle_home=10g_homexxxx
set oracle_sid=xxdb
sqlplus /nolog
conn sys/xxx as sysdba
I got the error, TNS-12560: TNS:protocol adapter error.
The install of two different versions of oracle , oracle9i and oracle10g,
on the same machine(windows xp pro) could cause this problem?
Is it safe to install two different versions of oracle on the same window machine?
Is there any confliction in environment variables?
I think there is no problem on the linux, unix system.
I stoped the listener of oracle9i and tried again. But I failed.
I am looking forwared to hearing your experience and advice.
Thanks in advance. Have a good day.
Ho.Dear Werner.
Thanks for your reply.
I shutdown oracle9i and 10g, using "services.msc" utility from windows.
Therefore, "OracleService<xxdd>" is not running.
What I want to do is to startup 10g database using "cmd",command line mode.
In addition, I would like to know why I could not start 10g database, using "cmd"
on windows xp pro.
I installed 9i first and installed 10g. I think there are a kind of environment variable
conflictions.
I am wondering how I can fix them, and whether or not they are curable.
Thanks for your reply. Have a good day.
Regards.
Ho. -
TNS-12560 protocol adapter error
Hi,
Your help will be most apprecitated. Thanks in advance.
I am tryin to connect from client (win XP) to Oracle 10g running on Linux red hat.
I am able to successfully ping to the server bu when I do a tnsping I get the below error:
C:\WINDOWS\system32>tnsping orcl
TNS Ping Utility for 32-bit Windows: Version 10.1.0.4.2 - Production on 30-AUG-2
008 17:29:10
Copyright (c) 1997, 2003, Oracle. All rights reserved.
Used parameter files:
C:\DevSuiteHome_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = new-host.my-domain)(PORT = 1521))) (CONNECT_DATA = (SID = ORCL)))
TNS-12560: TNS:protocol adapter error
My listener seems to be running ok on the server
[oracle10g@new-host ~]$ lsnrctl status
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 30-AUG-2008 17:51:44
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=ORCL)))
STATUS of the LISTENER
Alias listener
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 30-AUG-2008 15:48:30
Uptime 0 days 2 hr. 3 min. 14 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oraeng/app/oracle/product/10.2.0/network/admin/listener.ora
Listener Log File /oraeng/app/oracle/product/10.2.0/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=ORCL)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=new-host.my-domain)(PORT=1521)))
Services Summary...
Service "ORCL" has 2 instance(s).
Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...
Instance "ORCL", status READY, has 1 handler(s) for this service...
Service "ORCL_XPT" has 1 instance(s).
Instance "ORCL", status READY, has 1 handler(s) for this service...
The command completed successfully
Also I am able to connect to the oracle from the server:
[oracle10g@new-host ~]$ sqlplus scott/tiger@orcl
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Aug 30 17:52:52 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining optionsHi Gerard,
I would like to gain more knowledge in this regard (oracle networking)I have some good notes on trubleshooting network issue that you may enjoy:
http://www.dba-oracle.com/t_troubleshooting_sql_net_connectivity_errors.htm
Hope this helps . . . .
Donald K. Burleson
Oracle Press author -
TNS-12546: TNS:permission denied TNS-12560: TNS:protocol adapter error
Dear Sir,
Please some can help. I have in stall in Ubuntu Oracle 10 g 64 bit
While running the listener.ora this gives following error
please help
TNS-12546: TNS:permission denied
TNS-12560: TNS:protocol adapter error
TNS-00516: Permission denied
Linux Error: 13: Permission denied
thanks regards
sanatuser591475 wrote:
Dear Sir,
Please some can help. I have in stall in Ubuntu Oracle 10 g 64 bit
While running the listener.ora this gives following error
please help
TNS-12546: TNS:permission denied
TNS-12560: TNS:protocol adapter error
TNS-00516: Permission denied
Linux Error: 13: Permission denied
thanks regards
sanatcopy the following commands, and paste them into a shell prompt:
ifconfig
env|grep ORA|sort
cat $ORACLE_HOME/network/admin/sqlnet.oracopy the entire session and paste back to your next post. -
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 - startup mount on windows
hi all,
I want startup the database with mount option on windows.
The OracleServiceORCL is stopped.
I need to startup mount, but I get the error:
ORA-12560: TNS: protocol adapter error.
In Linux this task is easy, but on windows I cannot connect
to database to startup mount.
How can I do this?
thank youTads wrote:
Hi,
But the all files in incorrect place. So I need to do startup mount to do a alter database rename file to....
thank you!Once the windows service is started, you can use sqlplus to connect, shutdown, and startup just like you do in *nix. -
ORA-12560: TNS:protocol adapter error. Running sqlplus in different paths.
Hi,
Title: ORA-12560: TNS:protocol adapter error. Running sqlplus in different paths.
Very strange. We have windows host, 32 bit oracle software 10g, 64 bit sap kernel X64.
We have done Kernel patch yesterday and it was successful, system up and running.
Only problem with sqlplus. I have logged in as SIDADM user and when i open command box, the default path is C:\Documents and Settings\SIDADM. when i run sqlplus sys as sysdba, iam able to connnect without any problem but when iam in this path - /usr/sap/SID/SYS/exe/run and run sqlplus sys as sysdba, it returns ORA-12560 error. Thats why, the BRTOOLS are also not working, giving same error.
Is there a problem in the kernel? Where could be the problem?
The environment variables ORACLE_SID, ORACLE_HOME are set properly.
Many thanks,
Mohan.Hi,
Please look into below SAP recommendation from SAP note 192822:
3. Can I run 32-bit applications on my 64-bit platform?
This depends on the platform you are running on. For all unix- platforms, this can be done without any problem. Even if the OS is started in 64-bit mode, it is possible to run 32-bit applications (R/3, oracle) on it. there is no need to either upgrade oracle or R/3 toa 64-bit version.
This, however is NOT the case for windows & Linux. If you have IA64 hardware in place, you do need to run an 64-bit OS as well as all application in 64-bit mode.
Could you please now share with me your OS (version and whether it is 32 bit or 64 bit as well), database (32 bit or 64 bit), SAP system (32 bit or 64 bit and System release) ?
Thanks
Sunny -
Getting TNS-12560: TNS:protocol adapter error....please help
i am unable to get my LSNRCTL started.
[oracle@greg]$ lsnrctl start
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 29-NOV-2007 09:32:32
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting /home/oracle/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /home/oracle/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Log messages written to /home/oracle/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=greg)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY)))
Error listening on: (ADDRESS=(PROTOCOL=TCP)(Host=MYHOST)(Port=1521))
TNS-12560: TNS:protocol adapter error
TNS-00583: Valid node checking: unable to parse configuration parameters
Listener failed to start. See the error message(s) above...I am a newbie, so please pardon me.
this is what my listener.ora file looks like at the moment. Can someone look at it and tell me if it's okay?
LISTENER =
(ADDRESS_LIST =
(ADDRESS= (PROTOCOL= IPC)(KEY=MYDB))
(ADDRESS= (PROTOCOL= IPC)(KEY= PNPKEY))
(ADDRESS= (PROTOCOL= TCP)(Host= bob.dhcp.mysite.com)(Port= 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME= bob.dhcp.mysite.com.)
(ORACLE_HOME= /home/oracle/app/oracle/product/10.2.0/db_1)
(SID_NAME = MYDB)
(SID_DESC =
(SID_NAME = extproc)
(ORACLE_HOME = /home/oracle/app/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
STARTUP_WAIT_TIME_LISTENER = 0
CONNECT_TIMEOUT_LISTENER = 10
TRACE_LEVEL_LISTENER = OFF -
Lsnrctl start newlist, TNS-12560: TNS:protocol adapter error
Hello I am using Windows 7. Oracle 11g R2. Firstly I created my directory C:\oracle\net. Then I created an entry for TNSADMIN in the windows registry entering the newly created c:\oracle\net.
I ran Oracle Net Manager. The path C:\oracle\net is displayed in the title bar.
Using Oracle Net Manager I created my listener with the following settings as saved to listener.ora in the C:\oracle\net directory
# listener.ora Network Configuration File: C:\oracle\net\listener.ora
# Generated by Oracle configuration tools.
ADR_BASE_NEWLIST = C:\app\oracle\product\11.2.0\dbhome_2\log
NEWLIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 2521))
From the command line prompt I type ......
lsnrctl start newlist
The following is returned
starting tnslnsr: please wait...
followed by
TNS-12560: TNS:protocol adapter error
TNS-00530: TNS:protocol adapter error
??? How do I resolve this? thanksThe above scenario is part of a learning exercise (ex6.1) from the chapter on configuring the Oracle Net Environment OCA Oracle Database 11g Administration I Exam Guide by John Watson from the Oracle Press series.
127.0.0.1 is the loopback address of (all) local machines.
This step is step 16 of the learning exercise. Until I resolve it I cannot complete the remaining steps!
The steps of the exercise are as below..........................
Configure Oracle Net
In this exercise, you will set up a complete Oracle Net environment, using graphical
and command-line tools. Where there are differences between Windows and Linux,
these will be pointed out.
1. Create a directory to be used for the Oracle Net configuration files, and set
the TNS_ADMIN variable to point to this. It doesn’t matter where the direc-
tory is, as long as the Oracle user has permission to create, read, and write it.
On Linux:
mkdir /u01/oracle/net
export TNS_ADMIN=/u01/oracle/net
Ensure that all work from now is done from a session where the variable has
been set.
On Windows:
mkdir d:\oracle\net
Create and set the key TNS_ADMIN as a string variable in the registry in
the Oracle Home branch. This will typically be
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_OraDb1g_home1
2. Check that the variable is being read by using the TNSPING command from
an operating system prompt:
tnsping orcl
This will return an error “TNS-03505: Failed to resolve name” because there
are no files in the TNS_ADMIN directory. On Windows, you may need to
launch a new command prompt to pick up the new TNS_ADMIN value from
the registry.
3. Start the Net Manager. On Linux, run netmgr from an operating system
prompt; on Windows, launch it from the Start menu. The top line of the Net
Manager window will show the location of the Oracle Net files. If this is not
the new directory, then the TNS_ADMIN variable has not been set correctly.
4. Create a new listener: expand the Local branch of the navigation tree,
highlight Listeners, and click the +.
5. Enter a listener name, NEWLIST, and click OK.
6. Click Add Address.
7. For Address 1, choose TCP/IP as the protocol and enter 127.0.0.1 as the
host, 2521 as the port. The illustration that follows shows the result.
8. Create a new service name: highlight Service Naming in the navigation tree,
and click the +.
9. Enter NEW as the net service name, and click Next.
10. Select TCP/IP as the protocol, and click Next.
11. Enter 127.0.0.1 as the host name and 2521 as the port and click Next.
12. Enter SERV1 as the Service Name, and click Next.
13. Click Finish. If you try the test, it will fail at this time. The illustration that
follows shows the result.
14. Save the configuration by clicking File and Save Network Configuration.
This will create the listener.ora and tnsnames.ora files in the
TNS_ADMIN directory.
15. Use an editor to check the two files. They will look like this:
LISTENER.ORA:
NEWLIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 2521))
TNSNAMES.ora:
NEW =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT =
2521))
(CONNECT_DATA =
(SERVICE_NAME = SERV1)
16. From an operating system prompt, start the listener with lsnrctl start
newlist.
17. From an operating system prompt, test the connect string with tnsping new.
000
18. Connect to your database using operating system authentication, bypassing
any listener, with sqlplus / as sysdba.
19. Set the service_names and local_listener parameters for the running
instance (memory only, not the parameter file) and register the new service
name with the new listener:
alter system set service_names=serv1 scope=memory;
alter system set local_listener=new scope=memory;
alter system register;
20. From an operating system prompt, confirm that the new service has registered
with the new listener with lsnrctl services newlist.
21. Confirm that the new network environment is functional by logging on:
sqlplus system/oracle@new
Maybe you are looking for
-
Sending a message to only one peer after NetGroup receive
Hi Folks, I'm learning stratus and NetGroup to develop a P2P application that shares xml file between thousands of users. After a search by string over peers the user will receive xml files containing the searched string. So, see How I think it will
-
Login scripts not running with AnyConnect NAM and ISE 1.2
I am using AnyConnect 3.1 NAM as my 802.1x supplicant for ISE 1.2. When users log in with EAP Chaining (User and Machine Auth), the login script seems hit or miss on if it runs to map their drives. If I uninstall the NAM client, they map drives eve
-
F4 help for PO number field with SELECT OPTIONS
Hi all, I have a field (PO no) using SELECT OPTIONS on my selection screen.I need F4 help for this field.How shud i declare it? I have declared it as follows: SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001. select-options sel_po for ZPO
-
How to retrieve PDF form table's data in workflow?
I have employee table in PDF form?How I retrieve the data in workflow using XSD mapping?
-
Is kickstart the only answer???
Setup... PowerBook G4 10.5.2 ARD 3.2.1 (admin) Intel iMacs (3) 10.5.2 ARD 3.2.1 (clients) (2) Dynamic ips are set using DYNDNS (router and aebs connections) (1) Static ip is fine (router connection) all three are setup for ARD in sys_pref pane. all t