Persistent TNS-03505 error
Hi
I am getting the tns-03505 error when trying to connect. I have used a known good tnsnames.ora file, and can connect with the IP but not service name.
The same happens with TNSPing - as in I can ping IP but not service name.
Any help greatly appreciated.
Best Regards
Jamie
Can you post the relevent tnsnames.ora entry?
What happens when you ping the host name (not service name) specified in the tnsnames.ora file?
Justin
Distributed Database Consulting, Inc.
www.ddbcinc.com
Similar Messages
-
Hi,
I've got a TNS-03505 error on a PC trying to connect to 2 differents databases. The tnsnames.ora seems correct :
HPERISQOP.ARPEGE.SOCGEN =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.128.162.193)(PORT = 1548))
(CONNECT_DATA = (SID = hperisqop)(SERVER = DEDICATED))
HPERISQOP2.ARPEGE.SOCGEN =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.128.162.187)(PORT = 1572))
(CONNECT_DATA = (SID = hperisqop2)(SERVER = DEDICATED))
I can connect to the first database but not the second. Have you got an idea or a solution ?
Regards,
Olivier D.Looks like there is some problem with the second entry or some other entry in your tnsnames.ora file.
cut and paste the tnsnames entry(which is not working) on the top of tnsnames.ora and makes sure no other entry with the same name in tnsnames.ora file and test is tnsping is working or not?
Srinath -
Tnsping error - TNS-03505: Failed to resolve name
folks,
getting a strange problem - i have installed oracle 9i server in a WinXP machine and have installed a database UIIVS1.WORLD - this is the global_database_name.
but when i am trying to access it from a client, i am unable to do so.
doing a tnsping gives me the error -
C:\>tnsping uiivs1.world
TNS Ping Utility for 32-bit Windows: Version 9.2.0.1.0 - Production on 28-OCT-20
04 16:19:03
Copyright (c) 1997 Oracle Corporation. All rights reserved.
Used parameter files:
D:\oracle\ora92\network\admin\sqlnet.ora
TNS-03505: Failed to resolve name
thanks and regards,
PrasenjitCheck that uiivs1.world is present in the Client TNSNAMES.ORA file, in D:\oracle\ora92\network\admin.
-
Hi to all,
I have created a DB Link to remote MS SQL Server DB and I have modified the listener .ora and tnsnames.ora files.
The link work fine fine; if I try to query a remote table, the data are correctly displayed.
But if I run the tnsping <myconnection> an error TNS-03505 is returned.
Can You help me ?
This is the listener.ora
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = <myHost>)(PORT = 1521))
(ADDRESS =( PROTOCOL = ipc)(KEY = PNPKEY))
(ADDRESS = (PROTOCOL = TCP)(HOST = <myHost>)(PORT = 1522))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\oracle\product\10.2.0\OraDb10g)
(PROGRAM = extproc)
(SID_DESC=
(SID_NAME=MYSQLDSN)
(ORACLE_HOME = d:\oracle\product\10.2.0\Oradb10g)
(PROGRAM=hsodbc)
and this my tnsnames.ora
MYAPPDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = <myHost>)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = MYAPPDB)
MYSQLDSN =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=<myHost>)(PORT=1522))
(CONNECT_DATA=(SID=MYSQLDSN))
(HS=OK)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
Thanks in advance and Best Regards
Gaetano03505, 00000, "Failed to resolve name"
// *Cause: The service name you provided could not be found in TNSNAMES.ORA,
// an Oracle Names server, or a native naming service.
// *Action: Verify that you entered the service name correctly. You may need
// to ensure that the name was entered correctly into the network
// configuration. -
TNS-03505:Failed to resolve name in oracle 11g.
i install oracle 11g client in my pc.i want to connect to the server i also used and install Toad Tools. i have server ip address.192.168.1.162 and userid and password and port number-1521
when i connect to the toad and its make error like that
ORA-12541TNS- no listener.
and this is my tnsnames.ora file ,
# tnsnames.ora Network Configuration File: E:\app\IT\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ERP =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = IT-PC)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = erp)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST =IT-PC)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
mlmdb =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.8.162)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = mlmdb)
and i want to connect mlmdb from server.
and this is my listner.ora file
# listener.ora Network Configuration File: E:\app\IT\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = E:\app\IT\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:E:\app\IT\product\11.2.0\dbhome_1\bin\oraclr11.dll")
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST =IT-PC)(PORT = 1521))
ADR_BASE_LISTENER = E:\app\IT
and this is my sqlnet.ora file
# sqlnet.ora Network Configuration File: E:\app\IT\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
when i connect form the run--cmd--tnsping mlmdb
its make error likes this
TNS-03505 : failed to resolve name ,
can anyone help me how can i find this solution
thanks in advance.904803 wrote:
i install oracle 11g client in my pc.i want to connect to the server i also used and install Toad Tools. i have server ip address.192.168.1.162 and userid and password and port number-1521
when i connect to the toad and its make error like that
ORA-12541TNS- no listener.
and this is my tnsnames.ora file ,
# tnsnames.ora Network Configuration File: E:\app\IT\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ERP =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = IT-PC)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = erp)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST =IT-PC)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
mlmdb =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.8.162)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = mlmdb)
and i want to connect mlmdb from server.
and this is my listner.ora file
# listener.ora Network Configuration File: E:\app\IT\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = E:\app\IT\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:E:\app\IT\product\11.2.0\dbhome_1\bin\oraclr11.dll")
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST =IT-PC)(PORT = 1521))
ADR_BASE_LISTENER = E:\app\IT
and this is my sqlnet.ora file
# sqlnet.ora Network Configuration File: E:\app\IT\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
when i connect form the run--cmd--tnsping mlmdb
its make error likes this
TNS-03505 : failed to resolve name ,
can anyone help me how can i find this solution
thanks in advance.looks like listener is not running on the database server you are trying to connect to *(ORA-12541TNS- no listener)*. even though you have configured both tnsnames and lisnterner.ora files, you have to start listener for clients to make connections to db. hope this helps. set your oracle home and then type as below. these commands are very simple and I don't think I need to explain them.
cmd> lsnrctl status
cmd> lsnrctl start
cmd> lsnrctl stop -
Ora-12154 vs. tns-03505
Since both ora-12154 and tns(ora)-03505 deal with not being able to locate a connect string in tnsnames (or other naming method), has anyone ever seen a good definition of exactly what differentiates between the two? What little variable would trigger the issuing of one error msg.vs. the other?
I know how to resolve them. The web is full of descriptions on resolving the problem (some of them are even valid! ;-) ). But I've never seen anything that would define why you would see an ora-12154 on time, and an tns-03505 another time.
Inquiring minds want to know! (Since this deals with published error codes, it's <i>somewhat</i> less arcane than how the archiver determines the "first" member of a redolog group! :-)sybrand_b wrote:
IIRC only tnsping will produce tns-03505.
Sybrand Bakker
Senior Oracle DBACould be. I never picked up on any pattern of behavior before (thus my question). A simple test seems to bear that out:
With tnsping
[oracle@vmlnx01 ~]$ tnsping fubar
TNS Ping Utility for Linux: Version 10.2.0.4.0 - Production on 16-FEB-2011 16:33
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
/ora00/app/oracle/product/10.2.0/db_1/network/admin/sqlnet.ora
TNS-03505: Failed to resolve namesame connect string with sqlplus
[oracle@vmlnx01 ~]$ sqlplus scott/tiger@fubar
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Feb 16 16:35:53 2011
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
Enter user-name: -
TNS-03505 Failed to Resolve Hostname
Guys I am having trouble with a NW2004s installation. I am getting the following error when I do a TNSPING of my listener (LISTENER_DC1)
TNS Ping Utility for IBM/AIX RISC System/6000: Version 10.2.0.2.0 - Production o
n 03-SEP-2008 08:35:19
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
/oracle/DC1/102_64/network/admin/sqlnet.ora
TNS-03505: Failed to resolve name
p15913dtp220:oradc1> ^C
p15913dtp220:oradc1> ^C
p15913dtp220:oradc1>
Here is my sqlnet.ora file
p15913dtp220:oradc1> cat sqlnet.ora
Filename......: sqlnet.ora
Created.......: created by SAP AG, R/3 Rel. >= 6.10
Name..........:
Date..........:
@(#) $Id: //bc/700-1_REL/src/ins/SAPINST/impl/tpls/ora/ind/SQLNET.ORA#4 $
AUTOMATIC_IPC = ON
TRACE_LEVEL_CLIENT = OFF
NAMES.DEFAULT_DOMAIN = WORLD
05.01.06 unsorported parameter now
#NAME.DEFAULT_ZONE = WORLD
05.01.06 set the default to 10
SQLNET.EXPIRE_TIME = 10
05.01.06 set to default
#TCP.NODELAY=YES
05.01.06 set to 32768
DEFAULT_SDU_SIZE=32768
This is my TNSNAMES.ORA file
Filename......: tnsnames.ora
Created.......: created by SAP AG, R/3 Rel. >= 6.10
Name..........:
Date..........:
@(#) $Id: //bc/700-1_REL/src/ins/SAPINST/impl/tpls/ora/ind/TNSNAMES.ORA#4 $
DC1.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = sapdbdc1-sv)
(PORT = 1539)
(CONNECT_DATA =
(SID = DC1)
(GLOBAL_NAME = DC1.WORLD)
This is my Listener.ora file
Filename......: listener.ora
Created.......: created by SAP AG, R/3 Rel. >= 6.10
Name..........:
Date..........:
@(#) $Id: //bc/700-1_REL/src/ins/SAPINST/impl/tpls/ora/ind/LISTENER.ORA#4
ADMIN_RESTRICTIONS_LISTENER_DC1 = on
LISTENER_DC1 =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = IPC)
(KEY = DC1.WORLD)
(ADDRESS=
(PROTOCOL = IPC)
(KEY = DC1)
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = sapdbdc1-sv)
(PORT = 1539)
STARTUP_WAIT_TIME_LISTENER_DC1 = 0
CONNECT_TIMEOUT_LISTENER_DC1 = 10
TRACE_LEVEL_LISTENER_DC1 = OFF
SID_LIST_LISTENER_DC1 =
(SID_LIST =
(SID_DESC =
(SID_NAME = DC1)
(ORACLE_HOME = /oracle/DC1/102_64)
(SID_DESC =
(SID_NAME = DC1)
(ORACLE_HOME = /oracle/DC1/102_64)
Any help much appreciated !!
ThanksCheers I am getting a bit further .....
Fisrst I can start the database using SQLPLUS
p15913dtp220:oradc1> sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.2.0 - Production on Wed Sep 3 16:27:23 2008
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 4714397696 bytes
Fixed Size 2083728 bytes
Variable Size 2365588592 bytes
Database Buffers 2332033024 bytes
Redo Buffers 14692352 bytes
Database mounted.
Database opened.
SQL>
Now as oradc1 I can start the listener
LSNRCTL> START LISTENER_DC1
Starting /oracle/DC1/102_64/bin/tnslsnr: please wait...
TNSLSNR for IBM/AIX RISC System/6000: Version 10.2.0.2.0 - Production
System parameter file is /oracle/DC1/102_64/network/admin/listener.ora
Log messages written to /oracle/DC1/102_64/network/log/listener_dc1.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=DC1.WORLD)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=DC1)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.127.158.138)(PORT=153
9)))
Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=DC1.WORLD))
STATUS of the LISTENER
Alias LISTENER_DC1
Version TNSLSNR for IBM/AIX RISC System/6000: Version 10.2.0.2
.0 - Production
Start Date 03-SEP-2008 16:36:20
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP ON
Listener Parameter File /oracle/DC1/102_64/network/admin/listener.ora
Listener Log File /oracle/DC1/102_64/network/log/listener_dc1.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=DC1.WORLD)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=DC1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.127.158.138)(PORT=1539)))
Services Summary...
Service "DC1" has 1 instance(s).
Instance "DC1", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
And R3trans u2013d works
p15913dtp220:dc1adm> R3trans -d
This is R3trans version 6.14 (release 700 - 18.09.06 - 09:35:00).
unicode enabled version
R3trans finished (0000).
BUT when I run startdb u2026
It just crashes u2026
p15913dtp220:dc1adm> startdb
Trying to start DC1 database ...
Log file: /home/dc1adm/startdb.log
/usr/sap/DC1/SYS/exe/run/startdb: Terminating with error code 16
p15913dtp220:dc1adm> more startdb.log
Wed Sep 3 16:39:14 BST 2008
LOGFILE FOR STARTING ORACLE
Trying to start DC1 database ...
Wed Sep 3 16:39:14 BST 2008
checking required environment variables
ORACLE_HOME is >/oracle/DC1/102_64<
ORACLE_SID is >DC1<
Wed Sep 3 16:39:14 BST 2008
check initora
/usr/sap/DC1/SYS/exe/run/startdb: Terminating with error code 16
p15913dtp220:dc1adm> -
Tnsping Errror - TNS-03505: Failed to resolve name
Morning Everyone,
Minute ago i was trying to check connectivity of my default instance using 'tnsping' OS command but it failed to resolve the instance name:
Before i provide you the error codes below is the number of instances running:
================================================
[root@localhost ~]# ps -ef | grep smon
oracle 2561 1 0 09:29 ? 00:00:01 ora_smon_orcl
oracle 13888 1 0 12:18 ? 00:00:00 ora_smon_doom /* Trying to ping this instance named 'Doom' */
root 21039 21006 0 14:15 pts/1 00:00:00 grep smon
================================================
Exact error messsage:
=====================================================
[oracle@localhost root]$ echo $ORACLE_SID
orcl
[oracle@localhost root]$ export ORACLE_SID=doom
[oracle@localhost root]$ echo $ORACLE_SID
doom
[oracle@localhost root]$ sqlplus "/ as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Apr 21 14:19:12 2012
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 options
SQL> select name, open_mode from v$database;
NAME OPEN_MODE
DOOM READ WRITE
SQL> !tnsping doom_ /* Error in spite of 'Doom' instance is already running and open' */
TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 21-APR-2012 14:19:21
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
/u01/app/oracle/product/10.2.0/db_1/network/admin/sqlnet.ora
TNS-03505: Failed to resolve name
SQL> !tnsping orcl
SQL> !tnsping orcl /* No error when tried to ping even when 'orcl' instance is not running*/
TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 21-APR-2012 14:19:40
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
/u01/app/oracle/product/10.2.0/db_1/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))
OK (0 msec)
SQL>
=================================================================================
Thanks
- Prashant DixitBelow are the new contents of tnsnames.ora file -
======
# tnsnames.ora Network Configuration File: /u01/app/oracle/product/10.2.0/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
TEST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = test)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
DOOM =
*(DESCRIPTION =*
*(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))*
*(CONNECT_DATA =*
*(SERVER = DEDICATED)*
*(SERVICE_NAME = doom)*
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
==========================================
Thanks
Prashant Dixit -
TNS-03505: Failed to resolve name while do TNSPING "SERVICE-NAME"
Dear All,
I am unable to connect to DB on Windows thru SQLPLUS DB/PWD
Also, when doing tnsping, it thru below error message- please help
Used parameter files:
D:\app\Administrator\product\11.2.0\client_1\network\admin\sqlnet.ora
TNS-03505: Failed to resolve name
Regards,
AnandORA-12154 ALWAYS only occurs on SQL Client & no SQL*Net packets ever leave client system
ORA-12154 NEVER involves the listener, the database itself or anything on the DB Server.
ORA-12154 occurs when client requests a connection to some DB server system using some connection string.
TNS-03505 is thrown by tnsping & is same error as ORA-12154 thrown by sqlplus or others.
The lookup operation fails because the name provided can NOT be resolved to any remote DB.
The analogous operation would be when you wanted to call somebody, but could not find their name in any phonebook.
The most frequent cause for the ORA-12154 error is when the connection alias can not be found in tnsnames.ora.
The lookup operation of the alias can be impacted by the contents of the sqlnet.ora file; specifically DOMAIN entry.
TROUBLESHOOTING GUIDE: ORA-12154 & TNS-12154 TNS:could not resolve service name [ID 114085.1]
http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/ -
When Tnsping to my sql 2000 server i get the next error:
TNS-03505 : Naam niet herleid
I have posted the tnsnames.ora,listener.ora, sqlnet.ora below
TNSNAMES
# tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\controle\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.
CONTROLE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = jswin31)(PORT = 1521))
(CONNECT_DATA = (ATS_CFG))
(HS = OK)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
LISTENER
# listener.ora Network Configuration File: C:\oracle\product\10.2.0\controle\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(PROGRAM = extproc)
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\controle)
(SID_DESC =
(SID_NAME = ATS_CFG)
(ORACLE_HOME = C:\oracle\product\10.2.0\controle)
(PROGRAM = HSODBC)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = jswin31)(PORT = 1521))
SQLNET
# sqlnet.ora Network Configuration File: C:\oracle\product\10.2.0\controle\NETWORK\ADMIN\sqlnet.ora
# Generated by Oracle configuration tools.
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT, HOSTNAME)Tnx for replying, but is did this is mine INITATS_CFG.ora
it is placed in the hs\admin directory of the database
sql2000 is also the name of the ODBC.
# This is a sample agent init file that contains the HS parameters that are
# needed for an ODBC Agent.
# HS init parameters
HS_FDS_CONNECT_INFO = sql2000
#HS_FDS_TRACE_LEVEL = <trace_level>
# Environment variables required for the non-Oracle system
#set <envvar>=<value> -
Hi
I am using OS windows and oracle 11g R2.
When i connect mydatabase with sys as sysdba and my password i am getting this Error
ERROR:
ORA-12560: TNS:protocol adapter error
My listener.ora is this
# tnsnames.ora Network Configuration File: C:\app\Administrator\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = XXXXXXXX)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.XXXXXXX)
ORCL_32SERV =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = XXXXXXXXX)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
When i give tnsping orcl the output is
Used parameter files:
C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
TNS-03505: Failed to resolve name
Please help me..
Regards
BobbyHi thanks for all i resoved it...
-
My iMac (2011) has been persistently throwing this error message: "SafariDAVClient quit unexpectedly." This started when I moved up to Mavericks, from Lion. Nothing crashes, and all I have to do is click "ok" to get rid of the error window. Still, annoying, as this darn Error message pops up at least every 60 seconds Help?
Here is thev error data that shows up in my Console after it happens. Of course, it might as well be GREEK TO ME!:
Process: SafariDAVClient [5937]
Path: /System/Library/PrivateFrameworks/BookmarkDAV.framework/Versions/A/Helpers/Safa riDAVClient
Identifier: SafariDAVClient
Version: 106
Code Type: X86-64 (Native)
Parent Process: launchd [202]
Responsible: SafariDAVClient [5937]
User ID: 501
Date/Time: 2014-02-02 15:40:22.026 -0800
OS Version: Mac OS X 10.9.1 (13B42)
Report Version: 11
Anonymous UUID: 38C42EEE-0927-2A62-02AC-FE5E1CEBFA44
Sleep/Wake UUID: F4BAEB51-39DA-42AE-8105-AB27895B59BD
Crashed Thread: 0 Dispatch queue: com.apple.Safari.BookmarkFolder.childrenAccess
As well, my iCloud Pref Pane will not open!
What the HECK is goin' on?feckinHell wrote:
As well, my iCloud Pref Pane will not open!
That's related since the process is attempting to load your Safari bookmarks from iCloud, and is crashing for some reason.
Try this:
Select the entire line that follows (triple-click to select it), then control-click, and from the contextual menu that appears, select Services > Reveal in Finder:
~/Library/Caches/com.apple.iCloudHelper
Drag that entire folder to the Desktop.
Quit Safari.
Attempt to open iCloud Preferences again. If it opens de-select Safari.
Launch Safari again and determine if the problem is fixed. -
TNS-12518 error while trying to fetch data from SQL Server
Hi everyone,
I'm trying to establish connectivity from Oracle 10.2 server to a SQL Server 2005. These are the server details
DOVER - This is where I installed Oracle Gateway for SQL Server. There's already an Oracle home in this server and I have used the existing listener for the incoming connections
LUNDY - This is where my actual Oracle server resides
HEBRIDES - This is where SQL Server 2005 instance resides, the database name is TRACKIT90
I've set everything as explained in Oracle documentation http://download.oracle.com/docs/cd/B19306_01/gateways.102/b14270/ch2.htm#i1005694 but in the end I'm getting an TNS-12518: TNS:listener could not hand off client connection when I run a test query and this is what it says in the listener.log of DOVER
01-MAR-2010 15:33:19 * (CONNECT_DATA=(SERVICE_NAME=tg4msql)(HS=OK)(CID=(PROGRAM=w:\oracle\product\10.2.0\db_1\bin\ORACLE.EXE)(HOST=LUNDY)(USER=))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.0.0.58)(PORT=3887)) * establish * tg4msql * 12518
TNS-12518: TNS:listener could not hand off client connection
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
32-bit Windows Error: 2: No such file or directory
My initialization parameter under \\ORACLE_HOME\tg4msql\admin of gateway installation in DOVER is as below:
HS_FDS_CONNECT_INFO=hebrides.TRACKIT90
HS_FDS_TRACE_LEVEL=OFF
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
The listener.ora of the active listener in DOVER has the following lines, by the way this listener does not reside on the same ORACLE_HOME as the gateway's ORACLE_HOME but it is the current active listener in the server. The listener has also been stopped and started:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = dover)(PORT = 1521))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
SID_LIST_LISTENER =
(SID_DESC =
(SID_NAME = tg4msql)
(ORACLE_HOME = E:\oracle\product\10.2.0\tg_1)
(PROGRAM = tg4msql)
The following entry has been added to the tnsnames.ora in LUNDY server where my actual Oracle database resides.
TRACKIT_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = DOVER)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = tg4msql)
(HS = OK)
And finally a database link is created by using the below DDL statement:
CREATE DATABASE LINK "DLINK" CONNECT TO "username" IDENTIFIED BY "password" USING 'TRACKIT_DATA';
When I do a select statement on one of the tables of TRACKIT database by using the following query I got the TNS-12518 error with above details
select * from announcement@dlink;
I would appreciate any help and also please let me know if I missed out any details.
Thanks.This is the output comes with the "lsnrctl service listener" command on DOVER server
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 02-MAR-2010 11:48:55
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
Services Summary...
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
Service "STD81" has 1 instance(s).
Instance "STD81", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:5 refused:0
LOCAL SERVER
Service "STD81" has 1 instance(s).
Instance "std81", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:4234 refused:0 state:ready
LOCAL SERVER
Service "STD81_XPT" has 1 instance(s).
Instance "std81", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:4234 refused:0 state:ready
LOCAL SERVER
Service "tg4msql" has 1 instance(s).
Instance "tg4msql", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:22
LOCAL SERVER
The command completed successfully -
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 ranjeetAlthough 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 -
TNS-03505: Failed to resolve name
I am able to connect through oracle enterprise manager(sys@mydb) however not with sqlplus
I have installed oracle 10.2 in my own laptop(vista)
TNS Ping Utility for 32-bit Windows: Version 10.2.0.3.0 -
010 09:22:46
Copyright (c) 1997, 2006, Oracle. All rights reserved.
Used parameter files:
C:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
TNS-03505: Failed to resolve name
# tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.
MYDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = myPC)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = mydb)
# sqlnet.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\sqlnet.ora
# Generated by Oracle configuration tools.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
NAMES.DEFAULT_DOMAIN = world.com
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = myPC)(PORT = 1521))
)Thanks for the suggestion.
Changed accordingly but still not able connect sqlplus.
Request for help.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.152.228)(PORT = 1521))
# sqlnet.ora Network Configuration File: C:\oracle\product\10.2.0\db_2\NETWORK\ADMIN\sqlnet.ora
# Generated by Oracle configuration tools.
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
# tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\db_2\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.
MYDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.152.228)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = mydb)
C:\>lsnrctl status
LSNRCTL for 32-bit Windows: Version 10.2.0.3.0 - Production on 10-JUL-2010 13
:14
Copyright (c) 1991, 2006, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.3.0 - Pr
ction
Start Date 10-JUL-2010 12:41:16
Uptime 0 days 0 hr. 50 min. 57 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\oracle\product\10.2.0\db_2\network\admin\listene
ra
Listener Log File C:\oracle\product\10.2.0\db_2\network\log\listener.
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.16.152.228)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "mydb" has 1 instance(s).
Instance "mydb", status READY, has 1 handler(s) for this service...
Service "mydbXDB" has 1 instance(s).
Instance "mydb", status READY, has 1 handler(s) for this service...
Service "mydb_XPT" has 1 instance(s).
Instance "mydb", status READY, has 1 handler(s) for this service...
The command completed successfully
C:\>tnsping mydb
TNS Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production on 10-JUL-2
010 13:30:03
Copyright (c) 1997, 2006, Oracle. All rights reserved.
Used parameter files:
C:\oracle\product\10.2.0\db_2\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = 172.16.152.228)(PORT = 1521))) (CONNECT_DATA = (SERVER = DEDICATED) (SER
VICE_NAME = mydb)))
OK (20 msec)
Maybe you are looking for
-
I have installed the new version 13, called Aurora. I am currently using it, but if I start not liking the new features (so far I do! But I have to ask) can I "go back" to the "good old" Firefox 11? Will I be loosing my data and settings? History and
-
How do I transfer a PDF file from my desktop to my ipad? I do have ibook and other reading apps.Its the user guide for ipad2. thanks
-
Hi , We have consumed the excisiable material and now we have to reverse the excise duty please guide the steps to do it
-
Photosmart c6180 driver disapears after restarting Windows 7
Problem is: Photosmart c6180 driver disapears after restarting Windows 7 Operating System is: Windows 7 Connection is Wireless Printer is Photosmart c6180 Driver is for Windows 7 and has been downloaded multiple several times from the HP Website HP S
-
Rights authentification Failed
We have Zen 11 and working with remote control of desktops. We have not a had a problem until on previously controlled desktops, when we try to remote in we get the following message: "Rights Authentication failed, The managed device was unable to co