DBlink and Tns could not resolve connect identifier specified
We are encountering a strange issue with DB link(may be new to me)
We have Oracle 9.2.0.8 and 10.2.0.3 in Solrais 10
We are accesing both servers from the 10g
We are able to connect to both the database through SQLplus
We created a DBLink in oracle 9i to access 10g
SQL:
create public database link PRD connect to admin identified by ***** using 'PRD';
Database link is created
We have an entry in the TNSNAMES.ora for PRD which has a description connecting to 10g database.
now we are issuin
select * from table@PRD
The error message is
ora 12514-TNS could not resolve connect identifier sepcified
But i am ablt to connect to both the databases from SQLPLUS but not by DBlink
My global_names parmaeter is TRUE:
Global_name=PRD without the domain name..
Tried and failed......)
Nicolas
Does the DBlink takes the TNSentry in the host server
even when we run from the clinet?
I heard somewhere earlierDB link makes the database behave as a client.
If you are on the other side of Jupiter and you connect to the database, should the database look in the TNSNAMES.ORA file on your computer to resolve the entry? Should it send a message back via SQLNet to your PC to ask it to look up what the DB Link means?
Bottom line: The TNSNAMES.ORA in the ORACLE_HOME/networking/admin of the database install is used by all the client products running out of the ORACLE_HOME/bin - including the database when the database behaves as a client.
Similar Messages
-
Ora 12154: TNS could not resolve connect identifier specified
Hi,
I have Oracle 11g (Release 1_32bit) Client on my C:\ drive which connect to a Remote 11g (11.1.0.7.0 - 64bit) server.
I have installed 10g DB Server(10.2.0.1.0) and Oracle 10g Forms(Forms [32 Bit] Version 10.1.2.0.2 ) on my D:\ drive.
When I try to connect to Oracle 10g DB from Forms using "Connect" button, I get following error:
"ORA-12154: TNS: could not resolve the connect identifier specified"
Tns and Listner files both are same in Developer_Suite home and 10g home.
Can someone please help me with this error?
Thanks"ORA-12154: TNS: could not resolve the connect identifier specified"
$ oerr ora 12154
12154, 00000, "TNS:could not resolve the connect identifier specified"
// *Cause: A connection to a database or other service was requested using
// a connect identifier, and the connect identifier specified could not
// be resolved into a connect descriptor using one of the naming methods
// configured. For example, if the type of connect identifier used was a
// net service name then the net service name could not be found in a
// naming method repository, or the repository could not be
// located or reached.
// *Action:
// - If you are using local naming (TNSNAMES.ORA file):
// - Make sure that "TNSNAMES" is listed as one of the values of the
// NAMES.DIRECTORY_PATH parameter in the Oracle Net profile
// (SQLNET.ORA)
// - Verify that a TNSNAMES.ORA file exists and is in the proper
// directory and is accessible.
// - Check that the net service name used as the connect identifier
// exists in the TNSNAMES.ORA file.
// - Make sure there are no syntax errors anywhere in the TNSNAMES.ORA
// file. Look for unmatched parentheses or stray characters. Errors
// in a TNSNAMES.ORA file may make it unusable.
// - If you are using directory naming:
// - Verify that "LDAP" is listed as one of the values of the
// NAMES.DIRETORY_PATH parameter in the Oracle Net profile
// (SQLNET.ORA).
// - Verify that the LDAP directory server is up and that it is
// accessible.
// - Verify that the net service name or database name used as the
// connect identifier is configured in the directory.
// - Verify that the default context being used is correct by
// specifying a fully qualified net service name or a full LDAP DN
// as the connect identifier
// - If you are using easy connect naming:
// - Verify that "EZCONNECT" is listed as one of the values of the
// NAMES.DIRETORY_PATH parameter in the Oracle Net profile
// (SQLNET.ORA).
// - Make sure the host, port and service name specified
// are correct.
// - Try enclosing the connect identifier in quote marks.
// See the Oracle Net Services Administrators Guide or the Oracle
// operating system specific guide for more information on naming.
$
Tns and Listner files both are same in Developer_Suite home and 10g home.Listener files are totally useless in Developer Suite home, since they are server files. -
Ora-12154:TNS:Could not resolve the connect identifier specified
Helo
I face this error when i tried to connect to the database.
i have been installed 11g database on machine with database name 'hrall'
But when i tried to connect to the database it's shows me error "ora-12154:TNS:Could not resolve the connect identifier specified"
when i put the old database entry an that machine and try ti connect it's connect Successfully.
Kindly Suggest
Regards,
SachinHi Error not solved yet
i am giving you my system details as follow -
OS Name : Microsoft(R) Windows(R) Server 2003 Standard x64 Edition
System Type: x64-based PC
My tnsentry also right
posted as follow -
HRALL.voltasworld.com =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ps-win-hrall.voltasworld.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = hrall)
listener.ora file
# listener.ora Network Configuration File: F:\app\dbadmin\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 = F:\app\dbadmin\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:F:\app\dbadmin\product\11.2.0\dbhome_1\bin\oraclr11.dll")
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = ps-win-hrall.voltasworld.com)(PORT = 1521))
ADR_BASE_LISTENER = F:\app\dbadmin
Kindly Suggest
Regards
Sachin -
ORA-12154: TNS:could not resolve the connect identifier specified [10g XE]
Greetings
There are many topics on this issue over the internet but None of them addresses this issue properly, so I couldn't find a solution to the problem.
I installed: Oracle Database 10g Express Edition
After the installation was done, I opened SQL Command Line
and I used the command "connect" to login
I enter the username
Then I entered the password
After a couple of seconds I got the following ERROR message:
ORA-12154: TNS:could not resolve the connect identifier specified
Screenshot of the error:
http://i35.tinypic.com/14o26g7.png
I installed this version of Oracle on both Windows XP 32 bit and Windows 7 32 bit and I get the same error message when it tries to connect.
Why doesn't Oracle work right after the installation?
Are there any further steps that need to be done in order to make this work? If so I would really appreciate any step by step help, I've been stuck trying to find a solution for days.
Edited by: user10192105 on Aug 22, 2010 7:34 PM>
I wento to CMD, then I entered sqlplus / as sysdba and that just opened the SQL*Plus program in CMD (SQL>)
But nevertheless I still need to login with a user name and password which and I tried and I got the same error message.
>
We're making progress, you'll be logging in soon....
Get into SQL*Plus with the command I gave you, now type this:
alter user <theusernameyouwant> identified by abc123;followed by (still in SQL*Plus):
connectafter you type "connect", SQL*Plus will ask you for a user name and password. Use the same user name and password you used in the alter command.
HTH,
John. -
ORA-12154: TNS:could not resolve the connect identifier
I am simply trying to move a site from a Windows 2003 32bit server to a Windows 2008 R2 64-bit. The database was on and is remaining on the 2008 server. Trying to run the new site results in:
ORA-12154: TNS:could not resolve the connect identifier
This error pops up more than a few times in the forums but do not seem unique to my situation where I know the connection string works fine from another server. Any insights?Working
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\>SET
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\Cherie.Jarvis\Application Data
ARCGISHOME=D:\Program Files\ArcGIS\
CLIENTNAME=ZEKIAH-PC463
ClusterLog=C:\WINDOWS\Cluster\cluster.log
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
COMPUTERNAME=CFLGIS1
ComSpec=C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\Cherie.Jarvis
LOGONSERVER=\\BATMAN
NUMBER_OF_PROCESSORS=4
ORACLE_HOME=D:\Ora11g\Administrator\product\11.1.0\db_1
OS=Windows_NT
Path=D:\Program Files\ArcGIS\ArcSDE\ora11gexe\bin;D:\Ora11g\Administrator\produc
t\11.1.0\db_1\bin;D:\Ora11g\Administrator\product\11.1.0\db_1;D:\Ora11g_Client32
\product\11.1.0\client_3;D:\Ora11g_Client32\product\11.1.0\client_3\bin;C:\WINDO
WS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files (x86)\Microsoft
SQL Server\90\Tools\binn\;C:\Program Files\ArcGIS\ArcSDE\ora11gexe\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=EM64T Family 6 Model 23 Stepping 10, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=170a
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
PROMPT=$P$G
PYTHONPATH=D:\Program Files\ArcGIS\bin
SDEFORCEXDR=1
SDEHOME=C:\Program Files\ArcGIS\ArcSDE\ora11gexe\
SESSIONNAME=RDP-Tcp#461
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\CHERIE~1.JAR\LOCALS~1\Temp\1
TMP=C:\DOCUME~1\CHERIE~1.JAR\LOCALS~1\Temp\1
TNS_ADMIN=D:\Ora11g\Administrator\product\11.1.0\db_1\NETWORK\ADMIN
USERDNSDOMAIN=CFLHD.LOCAL
USERDOMAIN=CFLHD
USERNAME=Cherie.Jarvis
USERPROFILE=C:\Documents and Settings\Cherie.Jarvis
VS90COMNTOOLS=D:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\
windir=C:\WINDOWS
C:\Documents and Settings\Cherie.Jarvis>
Not Working
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:>set
AGSSERVERJAVA=C:\Program Files (x86)\ArcGIS\Server10.0\
ALLUSERSPROFILE=C:\ProgramData
ANT_HOME=D:\Software\apache-ant-1.8.1
APPDATA=C:\Users\cherie.jarvis\AppData\Roaming
CLIENTNAME=ZEKIAH-PC463
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=CFLGIS2
ComSpec=C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\cherie.jarvis
JAVA_HOME=D:\Program Files\Java\jdk1.6.0_22
LOCALAPPDATA=C:\Users\cherie.jarvis\AppData\Local
LOGONSERVER=\\BATMAN
NUMBER_OF_PROCESSORS=16
ORACLE_HOME=D:\ORA11G\Administrator\product\11.1.0\db_1
OS=Windows_NT
Path=D:\app\Zekiah\product\11.1.0\client_2;D:\app\Zekiah\product\11.1.0\client_2
\bin;D:\Program Files (x86)\PHP\;D:\Ora11g_Client32\product\11.1.0\client_1\bin;
D:\Ora11g\administrator\product\11.1.0\db_1\bin;C:\Windows\system32;C:\Windows;C
:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\Program F
iles\ArcGIS\ArcSDE\ora11gexe\bin;D:\Program Files (x86)\MySQL\MySQL Server 5.1\b
in;D:\Program Files\Java\jdk1.6.0_22\bin;D:\Software\apache-ant-1.8.1\bin;D:\Pro
gram Files\TortoiseSVN\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PHPRC=D:\Program Files (x86)\PHP\
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 44 Stepping 2, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=2c02
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
SDEHOME=D:\Program Files\ArcGIS\ArcSDE\ora11gexe\
SESSIONNAME=RDP-Tcp#0
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\CHERIE~1.JAR\AppData\Local\Temp\2
TMP=C:\Users\CHERIE~1.JAR\AppData\Local\Temp\2
USERDNSDOMAIN=CFLHD.LOCAL
USERDOMAIN=CFLHD
USERNAME=Cherie.Jarvis
USERPROFILE=C:\Users\cherie.jarvis
VISUALSVN_SERVER=D:\Program Files (x86)\VisualSVN Server\
windir=C:\Windows -
Hi All,
I'm trying to run RDT on BO 4.0 using the following command on <INSTALLDIR>\SAP BusinessObjects Enterprise XI 4.0\win64_x64:
reposcan.exe -dbdriver oracledatabasesubsystem -connect "UID=ceprod;PWD=ceprod;DSN=dsnname;HOSTNAME=ip of db server;PORT=1521" -dbkey [[XXXXXXX]] -inputfrsdir "\\share\FileStore\FileStore\Input" -outputfrsdir "\\Share\FileStore\FileStore\Output"
I cannot be able to run the RDT as I get the following error:Business Objects Enterprise CMS:Unable to connect to the CMS system database DSN:dbserver ip:1521.Reason ORA 12154.TNS could not resolve the connect identifier specified
I have created DSN for oracle db using 32 bit and 64 bit ODBC drivers. I can connect from this system to the database using the client tools.
Also this is a clustered cms and do I need to use any other parameters here?
regards,
SridharHi,
Check if you have two different oracle directories listed in system variable path.
e.g.:
D:\oracle\product\11.2.0\client_1\bin;C:\Program Files\oracle\product\11.2.0\client_1\bin
If this is the case, you have two different tnsnames.ora files.
Then sometimes the first one is used and sometimes the second.
If they don't contain the same info, you get these issues.
Delete one of the paths in the system variable or synchronize the tnsname.ora files to get rid of that.
Regards
Moritz -
ORA-12154: TNS:could not resolve the connect identifier specified Oracle 11
I'm having a slight issue with Oracle 11 R2
Oracle 10g was removed from the machine - The registry was cleared and I couldn't see anything of 10g left.
I then installed Oracle 11 with just the software only, and then created a listener.
Using the Database Configuration Assistant, I tried to add a database but I get the error:
'ORA-12154: TNS:could not resolve the connect identifier specified'
The TNS_ADMIN is set to: \\ravel\tnsnames and I can connect to other instances around the company.
My tnsnames entry is:
GMAN_1120.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = gman)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ora112)
If i start the listener i get:
TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Production
System parameter file is D:\oracle\product\11.2.0\dbhome_1\network\admin\listener.ora
Log messages written to d:\oracle\diag\tnslsnr\gman\listener\alert\log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=gman)(PORT=1521)))
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Production
Start Date 03-AUG-2011 10:34:28
Uptime 0 days 0 hr. 0 min. 1 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File D:\oracle\product\11.2.0\dbhome_1\network\admin\listener.ora
Listener Log File d:\oracle\diag\tnslsnr\gman\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=gman)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "ora112" has 1 instance(s).
Instance "ora112", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL>
Can anyone spot what may have gone wrong? I've setup 10g multiple times and never had a problemI can tnsping my machine using another machine:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = gman)(PORT = 1521))) (CONNECT_DATA = (SERVIC
E_NAME = ora112)))
OK (30 msec)
My listener.ora file is:
# listener.ora Network Configuration File: D:\oracle\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\oracle\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(SID_DESC=
(GLOBAL_DBNAME=ora112)
(ORACLE_HOME=D:\oracle\product\11.2.0\dbhome_1)
(SID_NAME=ora112)
) -
TNS:could not resolve the connect identifier specified
I am at the end of my rope and I would really appreciate some assistance.
I get the error: "TNS:could not resolve the connect identifier specified " from my ASP pages and "Warning: oci_connect() [function.oci-connect]: Error while
trying to retrieve text for error ORA-12154" when connecting from php pages.
I am trying to access these pages from the same server as the database.
I manage to connect to the database homepage, but only after I manually stop and start the database after a restart (why?).
I have been reading forums and I have been googling for days. I think this is what you guys need to know to be able to help me.
General information:
Oracle Database 10g Express Edition Universal
Windows Server 2003 Standard SP 1
IIS 6
PHP Version 5.1.2
ASP allowed "normal" scrips runs ok
Php Allowed "normal" scrips runs ok
system variable path
C:\oraclexe\app\oracle\product\10.2.0\server\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\php;C:\instantclient_10_2
(server has been rebooted since last editing)
IUSR_Curium has full control on following folders including subfolders:
c:\windows\temp
C:\oraclexe
C:\instantclient_10_2
IWAM_Curium
IUSR_Curium has full control on following folders including subfolders:
c:\windows\temp
C:\oraclexe
C:\instantclient_10_2
HTTP access is set to "Available from local server and remote clients"
All oracle related services except OracleJobSchedulerXE is set to Automatic and is in status started
I can ping curium and i get a response from the server's public IP-Adress
I can ping localhost and i get a response from 127.0.0.1
This is my connection in ASP:
Set OraConn = Server.CreateObject("ADODB.Connection")
Oraconn.ConnectionString = "Driver={Microsoft ODBC for Oracle};Server=xe;Uid=hr;Pwd=hr;"
ASP connection gives the following error:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC driver for Oracle][Oracle]ORA-12154: TNS:could not resolve the connect identifier specified
/asptest/test.asp, line 5
This is my connection in php
$conn = oci_connect('hr', 'hr', 'xe');
PHP connection gives the following error:
Warning: oci_connect() [function.oci-connect]: Error while trying to retrieve text for error ORA-12154 in c:\Inetpub\wwwroot\index1.php on line 3
Error while trying to retrieve text for error ORA-12154
C:\>lsnrctl status
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 21-MAR-2006 22:09:01
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
Start Date 21-MAR-2006 20:57:04
Uptime 0 days 1 hr. 11 min. 58 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
Listener Log File C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=curium)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=curium)(PORT=8080))(Presentation=HTTP)(Session=RAW))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "XEXDB" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Service "XE_XPT" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Service "xe" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
The command completed successfully
C:\>lsnrctl services
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 21-MAR-2006 22:11:39
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
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
Service "XEXDB" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:38 refused:0 current:24 max:1002 state:ready
DISPATCHER <machine: CURIUM, pid: 1972>
(ADDRESS=(PROTOCOL=tcp)(HOST=curium)(PORT=1045))
Service "XE_XPT" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:1 refused:0 state:ready
LOCAL SERVER
Service "xe" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:1 refused:0 state:ready
LOCAL SERVER
The command completed successfully
C:\>tnsping XE
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 21-MAR-2
006 22:14:10
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = curium)(
PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
OK (10 msec)
C:\>sqlplus system/xxxxx as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Ti Mar 21 22:15:38 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
C:\>sqlplus hr/hr@XE
SQL*Plus: Release 10.2.0.1.0 - Production on Ti Mar 21 22:15:21 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
C:\>sqlplus "/ as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on Ti Mar 21 22:15:02 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
Litener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = curium)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
sqlnet.ora
# 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)
tsnames.ora
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = curium)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
Sorry for the long post....
Best regards
Roy-Christian Natland
NorwayGreat post - it has nearly everything needed for diagnosis. Well done.
The database is working, and the listener is listening. The successful tnsping to XE shows me that the client subsystem (at least in the oraclexe) path is set up correctly.
However, two other non-oracle clients (ASP and PHP) cannot see the definition for the XE server. This suggests to me that something is pointing them to another Oracle client software set up
I note that you have C:\instantclient_10_2 in your path - so presumably you had/have installed Instant Client on this machine as well ?
Given that you are on the server box, I don't think you need the Instant Client set up. It's possible that this is what is misdirecting the other clients you are suing. Try taking this out of your path.
If that doesn't work, can you provide the output of a SET command issued from the command line. -
ORA-12154: TNS:could not resolve the connect identifier speci
Getting this Error on our new windows 7 64bit OS
i am running both in the App and Ora in the XP compatibility mode.
A database error occurred in OCILogon (-1).
ORA-12154: TNS:could not resolve the connect identifier specified
<null>
The debug Console give's the following message.
"App Debug Console enabled
(switched to code page 1252)
ORASP>orasp_oci_open: ORA-12154: TNS:could not resolve the connect identifier specified
I can make the conection to the db by Loging directly into the Oracle SQL using the same info as my sams.
the conection works fine on our old XP OS....
any idea what i have to do to get this to run on Windows 7
thanksHi,
1) Check the tnsnames.ora file you are using, verify that it is accessible.
Eg: On Unix:
- Check if you have a $HOME/.tnsnames.ora file - This will be
used in addition to 'tnsnames.ora'.
- Check TNS_ADMIN is set in your environment.
- There is a readable tnsnames.ora file in $TNS_ADMIN
2) Ensure that the tnsnames.ora file contains a line of the form
'alias=(...)' for the alias you are specifying.
Aliases are NOT case sensitive.
3) Make sure that there are no mismatched parentheses in the
tnsnames.ora file.
4) Even if TNS_ADMIN is set SQL*Net looks in other locations for
configuration files. Check the default directories for old (or bad)
copies of TNS_NAMES.ORA. Eg: /etc, /var/opt/oracle,
$ORACLE_HOME/network/admin
5) Check the default domain name being used, and the path used to
locate aliases, in the SQLNET.ORA file.
The default domain is specified in the NAMES.DEFAULT_DOMAIN
parameter - this is appended to the alias specified in the
connect string if there is no domain given.
Eg: If NAMES.DEFAULT_DOMAIN=mydom.uk
and a connect to "scott/tiger@mydb" is requested
SQL*Net will look for the alias "mydb.mydom.uk"
If NAMES.DIRECTORY_PATH is also specified this determines where
SQL*Net looks for the alias expansion.
6) If none of these show an error enable client side tracing
at level 16 and see what has been written to the client trace
file. There list of aliases in the trace file under the heading
'TNS.NAMES.ORA TABLE HAS THE FOLLOWING CONTENTS'.
7) If ORA-12154 is returned when selecting over a database link from a
client check that the alias in the link can be resolved in the
tnsnames.ora file ON THE SERVER.
8) If you are connecting from a login dialog box, verify that you are
not placing an "@" symbol before your connect net service name.
9) When going from Windows to Linux/Unix platforms,
you can see <carriage return> <new line> characters at the
end of each line instead of <new line> <new line>. Be sure you
use ascii mode when ftp'ing this between Windows and Linux/Unix.
Regards,
Kal -
Unable to resolve ORA-12154: TNS:could not resolve the connect identifier specified
Hi Friends,
I am unable to resolve ORA-12154: TNS:could not resolve the connect identifier specified, error:
C:\Windows\system32>sqlplus scott/tiger@ORADATA
SQL*Plus: Release 11.2.0.1.0 Production on Sun Feb 2 13:46:10 2014
Copyright (c) 1982, 2010, Oracle. All rights reserved.
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
SQL> select database_name from v$database;
DATABASE_NAME
ORADATA
SQL> select instance_name from v$instance;
INSTANCE_NAME
oradata
tnsnames.ora
============
ORADATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL=TCP)(HOST=himanshu-PC)(PORT=1521))
(CONNECT_DATA =
(SERVICE_NAME = oradata)
(SERVER = DEDICATED)
listener.ora
=========
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = himanshu-PC)(PORT = 1521))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = ORADATA)
(ORACLE_HOME = G:\app\himanshu\product\11.2.0\dbhome_1)
(SID_NAME = oradata)
sqlnet.ora
========
SQLNET.AUTHENTICATION_SERVICES = (NTS)
C:\Windows\system32>lsnrctl status
LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 02-FEB-2014 13:53:37
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=himanshu-PC)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Production
Start Date 02-FEB-2014 13:29:35
Uptime 0 days 0 hr. 24 min. 6 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File G:\app\himanshu\product\11.2.0\dbhome_1\network\admin\listener.ora
Listener Log File g:\app\himanshu\diag\tnslsnr\himanshu-PC\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=himanshu-PC)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
Services Summary...
Service "ORADATA" has 2 instance(s).
Instance "ORADATA", status UNKNOWN, has 1 handler(s) for this service...
Instance "oradata", status READY, has 1 handler(s) for this service...
Service "ORADATAXDB" has 1 instance(s).
Instance "oradata", status READY, has 1 handler(s) for this service...
The command completed successfully
Kindly guide whats wrong with my configuration.ORADATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL=TCP)(HOST=himanshu-PC)(PORT=1521))
(CONNECT_DATA =
(SERVICE_NAME = oradata)
(SERVER = DEDICATED)
Try editing the tnsnames.ora file to check there is any junk characters around the tns entry(shown in RED) and then try pining the tns from CMD as
tnsping ORADATA. -
ORA-12154: TNS: could not resolve the connect identifier specified(QAAWS)
Hi All,
We are using BOBJ Edge 3.1on top of Oracle 9i.Iam able to create the Universe,connection and the Desktop Intelligence Reports.But when iam trying to create a Webi Report, iam getting the error message "u201CORA-12154: TNS: could not resolve the connect identifier specifiedu201D.Iam gettig the same error when iam trying to preview the QAAWS.Any idea why we are getting this issue.
Regards
Amithi,
Below link may be helpful.
http://www.forumtopics.com/busobj/viewtopic.php?p=813902&sid=721d8dcabf151bf419cc2f7b4e4757d4
Regards,
Vamsee -
ORA-12154: TNS: could not resolve the connect identifier specified(Webi)
Hi All,
We are using BOBJ Edge 3.1on top of Oracle 9i.Iam able to create the Universe,connection and the Desktop Intelligence Reports.But when iam trying to create a Webi Report, iam getting the error message "u201CORA-12154: TNS: could not resolve the connect identifier specifiedu201D.Iam gettig the same error when iam trying to preview the QAAWS.Any idea why we are getting this issue.
Regards
AmitHi,
Please go through by below links.
http://www.forumtopics.com/busobj/viewtopic.php?p=323318
http://www.forumtopics.com/busobj/viewtopic.php?p=546397&sid=867a249397f1827c4290cb6de57b1aff
Thanks,
Amit -
ORA-12154: TNS:could not resolve the connect identifier specified using TOAD client
I try to using connect with remote database using TOAD client. My oracle version is 10.2g. I follow these instructions that specified on this link, instead of step 13, because i cant understand what they explain http://http://avangari.wordpress.com/remote-oracle-database-access-using-instant-client-and-toad/ . My Oracle TNS_ADMIN path is C:\oracle\product\10.2.0\db_1\network\ADMIN and ORACLE_HOME is C:\oracle\product\10.2.0\db_1. I found many question regarding this query, but i am not found my answer.
948021 wrote:
I try to using connect with remote database using TOAD client. My oracle version is 10.2g. I follow these instructions that specified on this link, instead of step 13, because i cant understand what they explain http://http://avangari.wordpress.com/remote-oracle-database-access-using-instant-client-and-toad/ . My Oracle TNS_ADMIN path is C:\oracle\product\10.2.0\db_1\network\ADMIN and ORACLE_HOME is C:\oracle\product\10.2.0\db_1. I found many question regarding this query, but i am not found my answer.
see: http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/ (ora-12154 TNS:could not resolve the connect identifier specified)
And for background info
see: http://edstevensdba.wordpress.com/2011/02/09/sqlnet_overview/ (Help! I can’t connect to my database )
see: http://edstevensdba.wordpress.com/2011/02/16/sqlnet_client_cfg/ ( Help! I can’t connect to my database (part duex) ) -
Hi guys,
I tried to execute a package with Oracle Data Source from Integration Services Catalogs and I got the following error.
ORA-12154: TNS:could not resolve the connect identifier specified
The package runs fine from the SSIS project but once I deploy to SSIS Catalog it fails to run. I need help!
Thanks
meHello ,
The ORA-12154 is a very common error, always related to your local copy of the tnsnames.ora file, your listener configuration and your database name aliases.
Make sure that your listener is listening for the same service name that you are using.
Your service name might have an alias, so check for global (world) entries and local entries. Check:
$ORACLE_HOME/network/admin/tnsnames.ora
Check your global_name setting with this SQL:
select * from global_name;
Ref :
http://www.dba-oracle.com/t_ora_12154_tns_resolve_service_name.htm
Ahsan Kabir Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread. http://www.aktechforum.blogspot.com/ -
Toad ORA-12154: TNS:could not resolve the connect identifier specified
I'm installing oracle clients and tools on a new Windows 7 machine issued to me by my company.
I installed a 64 bit 10.2.0.3 oracle client, but found that 64 bit installations don't work with TOAD. So I installed a 32 bit 10.2.0.1 oracle client. I also set up my TNS names files in the network/admin directory of both installations, set up the hosts files, and ensured that the registry information is accurate. I have no ORACLE_HOME environment variable because when I installed the 2nd installation of Oracle it said that I shouldn't have one since I have multiple versions of oracle and it erased it.
I am able to connect and use SQL Plus and SQL Developer with both installations of Oracle, but I'm not able to connect with TOAD. TOAD finds the 32 bit installation and all of its registry information looks correct and TOAD says "The Oracle home is valid". TOAD also loads my TNS file and all associated IPs and everything looks good when I look at them in the the TNS Editor. I am also running TOAD as administrator in order to avoid "Can't initialize OCI. Error -1" errors.
Yet, whenever I try to connect to any database, I get the following error:
"ORA-12154: TNS:could not resolve the connect identifier specified" and then the database I am using
Is there anything else I need to setup because I have multiple installations of Oracle? Or anything else I need to setup running on a 64 bit windows machine with 32 bit installations of oracle and toad?
Thanks for any help you can give.And in case you want to know my registry information:
64 bit installation:
Key Name: HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_OraClient10g_home2
Class Name: Application Global Data
Last Write Time: 10/5/2010 - 11:36 AM
Value 0
Name: ORACLE_HOME
Type: REG_SZ
Data: C:\oracle\product\10.2.0\client_2
Value 1
Name: ORACLE_HOME_NAME
Type: REG_SZ
Data: OraClient10g_home2
Value 2
Name: ORACLE_GROUP_NAME
Type: REG_SZ
Data: Oracle - OraClient10g_home2
Value 3
Name: ORACLE_BUNDLE_NAME
Type: REG_SZ
Data: Enterprise
Value 4
Name: NLS_LANG
Type: REG_SZ
Data:
Value 5
Name: OLEDB
Type: REG_SZ
Data: C:\oracle\product\10.2.0\client_2\oledb\mesg
Value 6
Name: StmtCacheSize
Type: REG_SZ
Data: 0
Value 7
Name: SQLPATH
Type: REG_SZ
Data: C:\oracle\product\10.2.0\client_2\dbs
Value 8
Name: ORACLE_HOME_KEY
Type: REG_SZ
Data: SOFTWARE\ORACLE\KEY_OraClient10g_home2
32 bit installation:
Key Name: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE\KEY_OraClient10g_home1
Class Name: Application Global Data
Last Write Time: 10/6/2010 - 12:42 PM
Value 0
Name: ORACLE_HOME
Type: REG_SZ
Data: C:\oracle\product\10.2.0\client_3
Value 1
Name: ORACLE_HOME_NAME
Type: REG_SZ
Data: OraClient10g_home1
Value 2
Name: ORACLE_GROUP_NAME
Type: REG_SZ
Data: Oracle - OraClient10g_home1
Value 3
Name: ORACLE_BUNDLE_NAME
Type: REG_SZ
Data: Enterprise
Value 4
Name: NLS_LANG
Type: REG_SZ
Data: AMERICAN_AMERICA.WE8MSWIN1252
Value 5
Name: SQLPATH
Type: REG_SZ
Data: C:\oracle\product\10.2.0\client_3\dbs
Value 6
Name: ORACLE_HOME_KEY
Type: REG_SZ
Data: SOFTWARE\ORACLE\KEY_OraClient10g_home1
And my environment variables:
TNS_ADMIN: C:\Oracle\product\10.2.0\client_3\NETWORK\ADMIN
PATH: "C:\oracle\product\10.2.0\client_3\bin;C:\oracle\p roduct\10.2.0\client_2\bin;%SystemRoot%\system32;% SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT %\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin"
The string "C:\oracle\product\10.2.0\client_3\bin" is the bin directory for my 32 bit installation.
The string "C:\oracle\product\10.2.0\client_2\bin" is the bin directory for my 64 bit installation.
Maybe you are looking for
-
Why can't I remove a debit/credit card from my account?
When I try reoving the debit/credit card it says "Sorry, we are not able to process your request. Please try again later."
-
I lost my seriel number for PS Elements 11 following computer crash. Os is W7 Peter Jones Aug 27, 2014 5:36 AM Hi, I lost my serial number for PS Elements 11 following computer crash. Os is W7. I have the cd installation disc but there is no seria
-
VPN -- different behavior between Mac and Windows XP clients.
Hi, Background: I have a Mini server serving L2TP IPSEC vpn with both Mac and Windows (all XP, so far) clients. The mini sits behind a Netopia router/firewall/NAT box that port forwards L2TP traffic to the mini. The mini has a public but unrouted add
-
XI unable to post IDOC to ECC the interface is FILE-to-IDOC scenario
Hi All, The XI interface is a FILE-2-IDOC scenario and some times IDOC's in the receiver system are not posted. I did see successfully message for that particular messages but the IDOC's were not created in the ECC. If the messages is reprocessed t
-
Is it possible to export images, pdf?
Is it possible exporting of images, pdfs..etc? venkat