ORA-12154 connection error???
Hi
I have a "ORA-12154 TNS cannot resolve service name" error message. This occurs when i try to connect from a data connection wizard in MSWord for the purpose of a mail merge. I have checked the tnsnames.ora file and the SERVICE_NAME is the default XE, i type this as the server name into the connection wizard and receive the error message. Could the sqlnet.ora file have something to do with it? Is it actually technically possible to connect to XE from this wizard?
Thanks for any feedback
GC
In XE, I think that heterogenous services are not supported!
Similar Messages
-
ORA-12154 Connection error from HFM to Oracle Database
Hi,
I am trying to configure Hyperion HFM but can write to HFM database.
The implementation architecture:
Hyperion 11.1.2.2 (with all the requiered patches for HFM, FDM, Shared Services, Workspace and Oracle Application Development)
Server 1:
Windows Server 2008 x64
Installed products: Foundation (EPMA, CalcManager), BI, HFM web components and ADM driver
Configured products: Foundation(EPMA, CalcManager), BI.
Database Client: 11gR2 x64
Server 2:
Windows Server 2008 x64
Installed products: HFM, FDQM
Configured Products: FDQM, HFM
Database Client: 11gR2 x32, 11gR2 x64 (x32 version installed first)
Server 3:
Database: Oracle 11.2.0.2
All the products from server 1 are working fine, FDQM (server 2) is also working fine, but, when I try to do any action related with HFM database the system fails.
I have tested the connection is these scenarios:
1. SQLdeveloper: successfull!, I can create tables, views, etc. Double checking the user privileges it has all the required.
2. tnsping: successfull!
3. HFMApplicationCopy utility: Successfull using UDL file and writing the connection parameters.
4. EPM System Configurator: the configurator successfully validates the database connection information, but does not create the tables on the database. No errors in the configtool log.
5. EPM Diagnostic Tool: fails with this error message:
------------STARTING VALIDATION SCRIPTS----------
LOGGING IN HFM....
CREATING APPLICATION....
ERROR: Unable to CreateApplicationCAS
Number (dec) : -2147215936
Number (hex) : &H800415C0
Description : <?xml version="1.0"?>
+<EStr><Ref>{DC34A1FD-EE02-4BA6-86C6-6AEB8EF5E5A3}</Ref><AppName/><User/><DBUpdate>1</DBUpdate><ESec><Num>-2147467259</Num><Type>1</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>HfmADOConnection.cpp</File><Line>511</Line><Ver>11.1.2.2.300.3774</Ver><DStr>ORA-12154: TNS:could not resolve the connect identifier specified</DStr></ESec><ESec><Num>-2147215616</Num><Type>1</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxSQLConnectionPool.cpp</File><Line>585</Line><Ver>11.1.2.2.300.3774</Ver></ESec><ESec><Num>-2147215936</Num><Type>0</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxServerImpl.cpp</File><Line>8792</Line><Ver>11.1.2.2.300.3774</Ver></ESec><ESec><Num>-2147215936</Num><Type>0</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxServer.cpp</File><Line>90</Line><Ver>11.1.2.2.300.3774</Ver></ESec><ESec><Num>-2147215936</Num><Type>1</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxClient.cpp</File><Line>1356</Line><Ver>11.1.2.2.300.3774</Ver><PSec><Param><server_name></Param></PSec></ESec><ESec><Num>-2147215936</Num><Type>1</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxClient.cpp</File><Line>936</Line><Ver>11.1.2.2.300.3774</Ver></ESec><ESec><Num>-2147215936</Num><Type>0</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxClient.cpp</File><Line>4096</Line><Ver>11.1.2.2.300.3774</Ver></ESec></EStr>+
Source : Hyperion.HFMErrorHandler.1
ERROR: while Application created
7. HFM Classic application creation: fails with the following error:
Error*11*<user_name+>*10/19/2012 08:30:52*CHsxServer.cpp*Line 90*<?xml version="1.0"?>+
+<EStr><Ref>{DC34A1FD-EE02-4BA6-86C6-6AEB8EF5E5A3}</Ref><AppName/><User/><DBUpdate>1</DBUpdate><ESec><Num>-2147467259</Num><Type>1</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>HfmADOConnection.cpp</File><Line>511</Line><Ver>11.1.2.2.300.3774</Ver><DStr>ORA-12154: TNS:could not resolve the connect identifier specified</DStr></ESec><ESec><Num>-2147215616</Num><Type>1</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxSQLConnectionPool.cpp</File><Line>585</Line><Ver>11.1.2.2.300.3774</Ver></ESec><ESec><Num>-2147215936</Num><Type>0</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxServerImpl.cpp</File><Line>8792</Line><Ver>11.1.2.2.300.3774</Ver></ESec><ESec><Num>-2147215936</Num><Type>0</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxServer.cpp</File><Line>90</Line><Ver>11.1.2.2.300.3774</Ver></ESec></EStr>+
8. EPMA Application deployment: fails with same message.
Please help me with some insights on this problem, I have tried everything but nothing works.
Regards
Edited by: Otein on 19-oct-2012 14:04Hi,
I Have solved one of my problems, the one that keep HFM from connecting to the Oracle database.
I just change the TNSNAMES.ORA, like this:
Initial tnsnames.ora
PRUEBA.WORLD=
+(DESCRIPTION_LIST =+
+(DESCRIPTION =+
+(LOAD_BALANACE = ON)+
+(FAILOVER = ON)+
+(ADDRESS_LIST =+
+(ADDRESS = (PROTOCOL = TCP)(HOST = <server_name>)(PORT = <port>))+
+)+
+(CONNECT_DATA =+
+(SERVICE_NAME = <service_name>)+
+)+
+)+
+)+
Modified tnsnames.ora
PRUEBA.WORLD=
+(DESCRIPTION =+
+(LOAD_BALANACE = ON)+
+(FAILOVER = ON)+
+(ADDRESS_LIST =+
+(ADDRESS = (PROTOCOL = TCP)(HOST = <server_name>)(PORT = <port>))+
+)+
+(CONNECT_DATA =+
+(SERVICE_NAME = <service_name>)+
+)+
+)+
I Just delete the line "+(DESCRIPTION_LIST =+" and its corresponding closing parenthesis, I did this cause in the configuration utility log I saw this line:
+TNS parsing: Entry: DESCRIPTION_LIST [[Address: Protocol:(TCP) Host:(<server_name>) Port:(1521) SID:(<service_name>)]]+
So, if the applications were trying to connect to connection descriptor DESCRIPTION_LIST, the driver could not recognize DESCRIPTION_LIST as a valid one.
There is a lot going on behind the scenes when you work with Oracle Database as the repository, maybe there is some other way to address this issue, but it worked for me, hope it can help you too. -
ERROR ORA-12154 connecting to Oracle 9i
Hi,
I've downloaded the Oracle Developer Tools for Visual Studio .net and when connecting to an Oracle 9i database I get error: ORA-12154... I'm new to Oracle and I know that is related to the âtnsnames.oraâ file.The location of my file is on the Oracle\ora92\network\admin directory. Do I need a copy of this file to any other directory? I can still connect to the database using SQL+.
Any help will be appreciated.
Many thanks
JustoHi Justo,
If ODT was installed correctly, it should have gone into a new Oracle10g Oracle home. This would mean that you need to copy your tnsnames.ora from your Oracle9 Oracle home into your Oracle10g Oracle home so that you can continue to use the same aliases from ODT.
Christian Shay
Oracle -
Oracle Forms 11g - ORA-12154: TNS error
Okay, before I post my info, I searched and searched everywhere via Google, OTN, Experts-Exchange, etc...to try to figure this one out and I'm stumped. So here goes. I get the dreaded "*ORA-12154: TNS:could not resolve the connect identifier specified*" error. Here's my environment:
Server: Red Hat Enterprise Linux 5 version runs the following:
Oracle Database 11g (Rel 1): 11.2.0.10
Oracle Fusion Middleware Forms Server 11g (Rel. 11.1.1.2.0)
I can connect via SQL+ no problem
Client: My Windows XP Professional PC.
I can TNSPING the database SID no problem.
I can connect via SQL+ no problem
I can connect via TOAD to the db no problem
I can connect to Oracle Enterprise Manager via the web interface no problem
I do have 2 Oracle Homes (Oracle 8.0.6, Oracle 11.1.0.1) on my PC. Currently the current home is the 11g one. I do have my paths on my PC setup fine.
The problem is when I try to run a sample form via the web I created, the login prompt comes up and I enter my username/password/database SID and that's when I get the error. Any clues as to what I should look for? Eventually this will be an app that all the users will be accessing and they shouldn't have to worry about having anything setup on their PCs.
Thanksashosheh wrote:
Also keep in mind that tnsnames.ora file in forms 11g is under $ORACLE_INSTANCE/configBINGO!!!!!!!!!! We have a winner! Thank you so much "ashosheh". I looked and there WAS a tnsnames in the directory "Oracle/Middleware/asinst_1/config"....*BUT* it was a sample one. Meaning there was no entry just comments showing you a sample version of a TNS Names entry. So I copied my entry from another TNSNAMES and put it in there and voila...I was able to connect.
Thank you very much. This was driving me nutz all of last week!
Gio -
Hi all,
I have a strange problem (for me) while getting connected to Oracle.
I can get connected to Oracle through SqlPlus window using
USER/PWD@HOST
But when i try to get connected through command prompt for importing
with the same connection details, I am getting the following
error message...
IMP-00058: ORACLE error 12154 encountered
ORA-12154: TNS:could not resolve the connect identifier specified
IMP-00000: Import terminated unsuccessfully
Please help me to solve this issue.
thanks.check your environment variable
echo $ORACLE_SID is properly set or not....if it is correct then check your tnanames.ora entry wherer that entry is having your database details with the connect string you using to startup....
better to give more details as mohammad said...
Regards,
Karthik -
ORA-28500: connection Error
I am using Oracle gateway for sqlserver 11.2 on Oracle 11.2 database on Linux.
When i run the following query:
select * from prc.PrcIsr@sqlserver;
then after displaying about 10,000 rows, i get the following error message:
ERROR:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
ORA-02063: preceding line from SQLSERVERThis error comes for all the tables except for minor tables having less than 1000 rows.
Followings are the contents from the trace file:
hgopoer, line 233: got native error 5701 and sqlstate 01000; message follows...
[Oracle][ODBC SQL Server Driver][SQL Server]Changed database context to 'qai'. {01000,NativeErr = 5701}[Oracle][ODBC SQL Server Driver][SQL Server]Changed language setting to us_english. {01000,NativeErr = 5703}[Oracle][ODBC SQL Server Driver]Invalid connection string attribute {01S00}
Exiting hgopoer, rc=0 at 2011/10/12-07:01:30
hgocont, line 2685: calling SqlDriverConnect got sqlstate 01000
Entered hgolosf at 2011/10/12-07:01:30
Exiting hgolosf, rc=0 at 2011/10/12-07:01:30
DriverName:HGmsss23.so, DriverVer:06.00.0056 (b0041, U0039)
DBMS Name:Microsoft SQL Server, DBMS Version:09.00.4060
Exiting hgocont, rc=0 at 2011/10/12-07:01:30 with error ptr FILE:hgocont.c LINE:2685 FUNCTION:hgocont() ID:SQLDriverConnect
SQLGetInfo returns Y for SQL_CATALOG_NAME
hgopoer, line 233: got native error 104 and sqlstate 01000; message follows...
[Oracle][ODBC SQL Server Driver][libssclient24]ConnectionRead (recv()). {01000,NativeErr = 104}[Oracle][ODBC SQL Server Driver][libssclient24]General network error. Check your network documentation. {08S01,NativeErr = 11}
Exiting hgopoer, rc=0 at 2011/10/12-07:03:27
hgoftch, line 730: calling SQLFetch got sqlstate 01000
0 rows fetched
Exiting hgoftch, rc=28500 at 2011/10/12-07:03:27 with error ptr FILE:hgoftch.c LINE:730 FUNCTION:hgoftch() ID:Fetch resultset data
Listener.ora
# listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.18.2.134)(PORT = 1521))
ADR_BASE_LISTENER = /u01/app/oracle
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = dg4msql)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)
(PROGRAM = dg4msql)
sqlnet.ora
# sqlnet.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
ADR_BASE = /u01/app/oracle
initdg4msql.ora
# This is a customized agent init file that contains the HS parameters
# that are needed for the Database Gateway for Microsoft SQL Server
# HS init parameters
HS_FDS_CONNECT_INFO=[zeus.lhr.com]:1433//qai
# alternate connect format is hostname/serverinstance/databasename
HS_FDS_TRACE_LEVEL=DEBUG
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
# custom init parameters
HS_KEEP_REMOTE_COLUMN_SIZE=LOCAL
HS_NLS_LENGTH_SEMANTICS=CHAR
HS_LANGUAGE=AMERICAN_AMERICA.WE8MSWIN1252
HS_NLS_NCHAR=UCS2the provided trace file doesn't even show the read error.
It suddenly ends in the middle of a fetch:
SQLFetch: row: 27, column 4, bflsz: 16, bflar: -1
SQLFetch: row: 27, column 4, bflsz: 16, bflar: SQL_NULL_DATA
SQLFetch: row: 27, column 5, bflsz: 16, bflar: 16
SQLFetch: row: 27, column 5, bflsz: 16, bflar: 16, (bfl: 16, mbl: 16)
00: B80B0200 1C000000 00000000 00000000 [................]
SQLFetch: row: 27, column 6, bflsz: 4, bflar: 2
SQLFetch: row: 27, column 6, bflsz: 4, bflar: 2
Just to clarify - did you abort the fetch?
What about your network environment - are all machines located in the same network or is for example the SQL Server located outside of your network?
Is there an rdbms/log directory in your OH /u01/app/oracle/product/11.2.0/db_1?
If yes, does it contain a dump file dated with 2011/10/12-08:04:54?
If there is no rdbms/log directory, please create it and retry the select.
BTW, there's already dg4msql 11.2.0.2 and for some platforms also 11.2.0.3 available. Could you also please make sure you use the latest release? -
Newbie ORA-12500 Connection Error
I am attempting to connect to the Oracle 10g database with JDeveloper, and whenever I attempt to connect, I receive this message:
Listener refused the connection with the following error:
ORA-12500, TNS:listener failed to start a dedicated server process
The Connection descriptor used by the client was:
192.168.0.101:1521:ORCL
I have tried using the computer name, localhost, 127.0.0.1, I get either an error saying that the network adapter can not resolve the connection, or the error message above. When connecting, I use Net Manager to configure the addresses. Any help would be greatly appreciated since I am a complete newbie to Oracle tecnologies.
Thank you in advance
RyanI am logged into SQLPLUS with no problem as the SYSTEM account, (I only receive the problem when trying to log in through JDeveloper) and I altered the spfile processes to 200, however...
bounce the database.I do not know how to do this, what command do you use to bounce the database and what does it do, also...
Then just restart the Listener from the command prompt
lsnrctl stop
lsnrctl startWhen I attempt to do any lsnrctl functions, including help, I receive this error in SQLPLUS: SP2-0734: "unknown command beginning "lsnrctrl s..." - rest of line ignored."
Any suggestions?
Check if the problem is solved.The problem is still the same after altering the spfile, hopefully after I bounce the database and reset the Listener, this will be fixed.
Thank you for all your help so far
Ryan -
Hello,
I have installed Oracle Express 10 on a windows server 2008 but I can´t connect the database XE from PHP or TOAD
I try something but I don´t know what´s wrong. I post the valid files.
My Windows related PATH Variables for oracle are set to:
C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\oraclexe\app\oracle\product\10.2.0\server\network\admin
tnsping works, and I can connect the database with web interface and with sqlplus, but otherwise I receive ora TNS:could not resolve the connect identifier
Does anyone know where is the error in my system? Thanks for help.+*
+1. tnsping works fine+
C:>tnsping xe
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 01-DEZ-2
010 18:32:48
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Parameterdateien benutzt:
C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
Adapter TNSNAMES zur Aufl÷sung des Alias benutzt
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = CT9344)(
PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
OK (0 ms)
*2. TNSNAMES.ora*
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = CT9344)(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)
+3. listener.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 = CT9344)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
+4. 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)user3186564 wrote:
Hello,
I have installed Oracle Express 10 on a windows server 2008 but I can´t connect the database XE from PHP or TOAD
I try something but I don´t know what´s wrong. I post the valid files.
My Windows related PATH Variables for oracle are set to:
C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\oraclexe\app\oracle\product\10.2.0\server\network\admin
tnsping works, and I can connect the database with web interface and with sqlplus, but otherwise I receive ora TNS:could not resolve the connect identifier
So it would seem that you are not supplying the correct connect descriptor to Toad or PHP.
See my extensive description at Re: Connect PHP to ORACLE 10g XE
Does anyone know where is the error in my system? Thanks for help.+*
+1. tnsping works fine+
C:>tnsping xe
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 01-DEZ-2
010 18:32:48
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Parameterdateien benutzt:
C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
Adapter TNSNAMES zur Aufl÷sung des Alias benutzt
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = CT9344)(
PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
OK (0 ms)
*2. TNSNAMES.ora*
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = CT9344)(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)
+3. listener.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 = CT9344)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
+4. 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) -
ORA-12154 TNS resolve error with ProC
<p>Hi all,
<br>
<p>
I have a program written in ProC which works fine when it connects to a local database. However, it is unable to connect to a remote database. The code for making the connection is:
<p>
<i>
EXEC SQL BEGIN DECLARE SECTION;<br>
char name[20];<br>
char pwd[20];<br>
char dbname[20];<br>
char dbstring[20];<br>
EXEC SQL END DECLARE SECTION;<br>
strcpy(name, "admin");<br>
strcpy(pwd, "adminadmin");<br>
strcpy(dbname, "userdb");<br>
strcpy(dbstring, "userdb");<br>
EXEC SQL WHENEVER SQLERROR DO printf( "Connection Error = %s", sqlca.sqlerrm.sqlerrmc);<br>
EXEC SQL CONNECT :name IDENTIFIED BY :pwd AT :dbname USING :dbstring;<br>
</i>
<p>
The content of fthe file tnsnames.ora:<br>
<i>
userdb =<br>
(DESCRIPTION =<br>
(ADDRESS_LIST =<br>
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.30.21)(PORT = 1521))<br>
)<br>
(CONNECT_DATA =<br>
(SID = userdb)<br>
)<br>
)<br>
</i>
<p>
I can "tnsping userdb" and "telnet 192.168.30.21 1521" but the program keeps generating the ORA-12154 connection error.
The version of my oracle client is 9.2.0.1.0
The version of the db server is 8.1.7
Could any one give me some advice please. I had been searching for the solutions for days but failed. Please help. Thanks.<p>
i do a file search "find / -name tnsnames.ora", here is the result:
<p>
/home/oracle/dbscript/database/tnsnames.ora<br>
/u00/app/oracle/product/9.2.0.1.0/network/admin/samples/tnsnames.ora<br>
/u00/app/oracle/product/9.2.0.1.0/network/admin/tnsnames.ora<br>
<p>
the first one is not found in the path -
TNS error ORA-12154 : can connect to one server but not to another.
Hello,
I have a Forms 6.0 application running on a Solaris box. It connects
fine to an Oracle 9.0 server but fails with ORA-12154 when trying to
connect to Oracle 10g running on a different server.
'sqlplus' can connect fine to both servers .
'tnsping'result is succesful from the Solaris client to both servers.
Configuration details are as follows. (IP Addresses have been
sanitised. I've included the client side listener and also entries for
the 'local' Oracle 8i server running on the Solaris 'client' although
I think some of this may be not relevant):
1. Connecting to Server 9.0 : application CAN connect successfully:
a. application URL
http://host_ip_address:7778/dev60cgi/if60cgi?config=rack : application
runs successfully
b. client's formsweb.cfg excerpt:
[rack]
pageTitle=yadayada
form=login01
userid=user/pass@nn_rackspace
archive=f60all.jar, oracle_ice-4_03_1.jar
c. client's tnsnames.ora excerpt (local services not excluded):
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = sun1)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = orcl)
RR =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = sun1)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = RR)
NN_RACKSPACE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 1.2.33.44)(PORT =1521))
(CONNECT_DATA =
# (SERVER = DEDICATED)
(SERVICE_NAME = QQ1.QONNECTIS.COM)
NN_QQ3 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 2.3.44.55)(PORT = 1521))
(CONNECT_DATA =
# (SERVER = DEDICATED)
(SERVICE_NAME = orcl.qonnectis.com)
NN_QQ3.qonnectis.com =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 2.3.44.55)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 2.3.44.55)(PORT = 1521))
(CONNECT_DATA =
# (SERVER = DEDICATED)
(SERVICE_NAME = orcl.qonnectis.com)
d. client's sqlnet.ora: contains ONLY:
NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
e. client's listener.ora excerpt:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /space/oracle/OraHome1)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = /space/oracle/OraHome1)
(SID_NAME = orcl)
(SID_DESC =
(GLOBAL_DBNAME = NN)
(ORACLE_HOME = /space/oracle/OraHome1)
(SID_NAME = NN)
(SID_DESC =
(GLOBAL_DBNAME = RR)
(ORACLE_HOME = /space/oracle/OraHome1)
(SID_NAME = RR)
f. remote server's tnsnames.ora excerpt:
QQ1.QONNECTIS.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)
(HOST = qanasta1.qonnectis.com)
(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = QQ1.qonnectis.com)
QQ1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)
(HOST = qanasta1.qonnectis.com)
(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = QQ1)
QQ3.QONNECTIS.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 2.3.44.55)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = orcl.qonnectis.com)
g. remote server's sqlnet.ora contains only:
NAMES.DEFAULT_DOMAIN = qonnectis.com
NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
h. remote server's listener.ora excerpt:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)
(HOST =qanasta1.qonnectis.com)
(PORT = 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /opt/oracle/product/9.2.0.1.0)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = QQ1.qonnectis.com)
(ORACLE_HOME = /opt/oracle/product/9.2.0.1.0)
(SID_NAME = QQ1)
i. on Solaris client, tnsping nn_rackspace : succeeds
j. on Solaris client, sqlplus user/pass@nn_rackspace: succeeds
k. on server, Oracle server processes have names like ora_d000_QQ1.
l. on server, Oracle connected listener processes show up in ps
listing like oracleQQ1 (LOCAL=NO)
m. On server, lsnrctl status reports amongst other things
Service "QQ1.qonnectis.com" has 2 instance(s).
Instance "QQ1", status UNKNOWN, has 1 handler(s) for this service...
Instance "QQ1", status READY, has 1 handler(s) for this service...
2. Connecting to Server 10g : application does NOT connect successfully:
a. application URL
http://host_ip_address:7778/dev60cgi/if60cgi?config=rack2
b. client's formsweb.cfg excerpt:
[rack2]
pageTitle=yadayada
form=login01
userid=user/pass@nn_qq3
archive=f60all.jar, oracle_ice-4_03_1.jar
c. client's tnsnames.ora excerpt (local services not excluded):
-as above-
d. client's sqlnet.ora: contains ONLY:
-as above-
e. client's listener.ora excerpt:
-as above-
f. remote server's tnsnames.ora excerpt:
# default sid 'orcl' : for local access
orcl =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.qonnectis.com)
# QQ3_Vlan : default sid 'orcl' : access over 10. private net from qq1
QQ3_VLAN =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.99.99.99)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.qonnectis.com)
# nn_qq3 : default sid 'orcl' : access from external sites by public
# external IP - specifically sun admin dba tool in twx
NN_QQ3 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 2.3.44.55)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.qonnectis.com)
g. remote server's sqlnet.ora contains only:
NAMES.DIRECTORY_PATH= (TNSNAMES)
NAMES.DEFAULT_DOMAIN = qonnectis.com
h. remote server's listener.ora excerpt:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/OraHome_1)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = /u01/app/oracle/OraHome_1)
(SID_NAME = orcl)
i. on Solaris client, tnsping nn_qq3 : succeeds
j. on Solaris client, sqlplus user/pass@nn_qq3: succeeds
k. on server, Oracle server processes have names like ora_d000_orcl .
l. on server, Oracle connected listener processes show up in ps
listing like oracleorcl (LOCAL=NO)
m. On server, lsnrctl status reports amongst other things
Service "orcl" has 1 instance(s).
Instance "orcl", status UNKNOWN, has 1 handler(s) for this
service...
Service "orcl.qonnectis.com" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
As you can see, I have tried adding an alias for the default domain
name suffix '.qonnectis.com' in the tnsnames.ora files on the solaris
client and on the new 10g server.
Just to add to the fun, the 'new' server running Ora 10g CANNOT connect
to the old server running Ora 9:
sqlplus user/pass@nn_qq3
sqlplus user/pass@nn_qq3.qonnectis.com both fail.
While the old 9.0 server CAN connect to the new 10g one:
sqlplus user/[email protected] succeeds.
Sorry this is such a mess. TBH I find this whole area extremely
confusing.
All suggestions welcome. Unfortunately I am away on holiday next week
but will follow up any leads when I get back.
thanks!
Victor Churchill.Hi DianeinBirmingham,
Welcome to the Apple Discussions
The Log goes further
Chat ended with error -8
Video Conference Error Report:
Video Conference Support Report:
Video Conference User Report:
Binary Images Description for "iChat":
This bit suggests the ports are not open.
Intermittent success like this And the ports not being open suggests a Modem that might be SIP aware such a Thomson-Alcatel Speedtouch device.
Can you tell us what modem you have ?
7:55 PM Friday; July 13, 2007 -
I got the error ORA-12154 trying to connect my app but not with the SQLplus
Hello! i need your help,
I have a client (Win XP SP2) and i'm trying to connect to the database in the server (Windows 2003, Oracle 10G) using the SQL plus, this is ok, but i try to do it throught the application developed in Developer 6i and i cannot, i got the error: ORA-12154 TNS:could not resolve service name. I tried to solve it by setting the env. var TNS_ADMIN and i still have the same error.
Could anyone help me?, pleaseHi,
Check for following file TNSNAMES.ORA at location;
C:\<Forms-directory>\NET80\ADMIN
See, if your service name is added to your file. If not then add a new entry like;
gsm.world =
(DESCRIPTION =
(ADDRESS = (COMMUNITY = tcp)(PROTOCOL = TCP)(Host = 10.0.1.22)(Port = 1521))
(CONNECT_DATA = (SID = gsm))
Where:
gsm.world = your service through which you connect to databse.
Host = ip address of machine where oracle server is running.
sid = name of your database
If you already have entry of service in TNSNAMES.ora file then paste you service here as is did , so that we can check because the error you are facing is only due to service problem. Please update........ -
ORA-12154 error when trying to connect to Oracle 11g DB from Excel 2010
All,
I am trying to set up Excel 2010 64-bit to connect to an Oracle 11g database, but am having some trouble due to an "ORA-12154 could not resolve the connect identifier specified" error. I am able to TNSping the SID name, as well as connect to SQLplus. The TNS entry works, and the Oracle Home is in the right spot. I am even able to put the full connection string in the "Data Source" field when creating a data link in Excel and have it connect to the DB. But I would like to be able to create one that used the SID rather than the full connection string, as other users will have to use this. The developer behind the Excel solution created a number of .odc files to connect to various databases, so this gives extra weight behind figuring out how to connect via a SID rather than a full connection string. Any suggestions?user10832104 wrote:
All,
I am trying to set up Excel 2010 64-bit to connect to an Oracle 11g database, but am having some trouble due to an "ORA-12154 could not resolve the connect identifier specified" error. I am able to TNSping the SID name, as well as connect to SQLplus. The TNS entry works, and the Oracle Home is in the right spot. I am even able to put the full connection string in the "Data Source" field when creating a data link in Excel and have it connect to the DB. But I would like to be able to create one that used the SID rather than the full connection string, as other users will have to use this. The developer behind the Excel solution created a number of .odc files to connect to various databases, so this gives extra weight behind figuring out how to connect via a SID rather than a full connection string. Any suggestions?
If you are able to connect with sqlplus, then this really becomes a question of how to define a data connection in Excel.
But after quickly googling ..
In excel ...
"Data" tab
"from other sources"
"from data connection wizard"
select ODBC DSN
On data link properties, select the "connection" tab
select "Use Data Source Name" and hit the drop-down
select a dsn that you had previously set up to point to the oracle database.
Anyway, that looks like how it is supposed to be done. I'm getting a dll initialization error. Probably due to the fact I have both 32-bit and 64-bit oracle clients, and windows never handles that very gracefully. But then Windows never graceffully handles anything that isn't MicroSoft. To paraphrase Forest Gump, "My momma always said Windows was like a box of chocolates. You never know what you're going to get."
In any event, the error you report means it was actually tying to look it up in tnsnames, but what you supplied wasn't found there. That can also be a big issue when dealing with MS products, because they don't use the same terminology, so lead people into entering something other than what Oracle expects. Are you referencing an ODBC DSN? If so, have you tested that apart from Excel? -
ORA-12154 Error - NET8 Connection Tester Works Though
I have copied over a tnsnames.ora file from another machine I know that works fine. It has one Oracle home.
When I try to connect via SQLPlus or Oracle DBA studio, I get told that it cannot resolve the service name and the ORA-12154 error. However, when I go into Net8 Assistant and test the connection, it work without an issue no matter what login/password I use, from a developers to the system login and password.
Any ideas?I have copied over a tnsnames.ora file from another machine I know that works fine. It has one Oracle home.
When I try to connect via SQLPlus or Oracle DBA studio, I get told that it cannot resolve the service name and the ORA-12154 error. However, when I go into Net8 Assistant and test the connection, it work without an issue no matter what login/password I use, from a developers to the system login and password.
Any ideas? -
Unable to Connect, ORA 12154, Setup routine for Microsoft ODBC errors
Hi all,
I have a Windows 7 Enterprise 64bit SP1 system and I wanted to be able to connect to an oracle database server. However, I am facing a problem with ODBC configuration.
I have currently installed both below in ... product\11.2.0\client_1 folder:
1. Oracle Database 11g Release 2 Client (11.2.0.1.0) for Microsoft Windows (x64) - http://www.oracle.com/technetwork/database/windows/downloads/index-090165.html
2. 64-bit Oracle Data Access Components (ODAC) - http://www.oracle.com/technetwork/database/windows/downloads/index-090165.html
I launched ODBC Data Source Administrator and added a User DSN but resulted to two errors:
1. The setup routines for the Microsoft ODBC for oracle ODBC driver could not be found. Please reintall the driver.
2. The specified DSN contains an architecture mismatch between the driver and application.
On top of that, if I go to System DSN tab, and tried to test the connection it give me an error:
1. Unable to connect SQLState = 08004 [Oracle][ODBC][Ora]ORA-12154: TNS: Could not resolved the identifier specified.
Can someone please guide me through this? Thanks in advance!
Edited by: VTech on Feb 26, 2013 2:13 PMVTech wrote:
Hi all,
I have a Windows 7 Enterprise 64bit SP1 system and I wanted to be able to connect to an oracle database server. However, I am facing a problem with ODBC configuration.
I have currently installed both below in ... product\11.2.0\client_1 folder:
1. Oracle Database 11g Release 2 Client (11.2.0.1.0) for Microsoft Windows (x64) - http://www.oracle.com/technetwork/database/windows/downloads/index-090165.html
2. 64-bit Oracle Data Access Components (ODAC) - http://www.oracle.com/technetwork/database/windows/downloads/index-090165.html
You only need one of these (the second one should suffice).
I launched ODBC Data Source Administrator and added a User DSN but resulted to two errors:
1. The setup routines for the Microsoft ODBC for oracle ODBC driver could not be found. Please reintall the driver."Microsoft ODBC for Oracle" is a different provider than "Oracle ODBC". Make sure you're not using the Microsoft one.
2. The specified DSN contains an architecture mismatch between the driver and application.This can happen if you're mixing 32-bit and 64-bit. There's two ODBC control panels in Windows 7:
- the 64 bit one is the one in control panel
- the 32 bit one is c:\windows\syswow64\odbcad32.exe
Since you're using a 64 bit Oracle driver, you should be using the 64 bit ODBC administrator, and 64 bit applications. If you're trying to use this ODBC connection with a 32 bit application, you'll need to use the 32 bit ODBC (and the 32 bit Oracle driver).
On top of that, if I go to System DSN tab, and tried to test the connection it give me an error:
1. Unable to connect SQLState = 08004 [Oracle][ODBC][Ora]ORA-12154: TNS: Could not resolved the identifier specified.Well that actually means it's loading Oracle correctly, so that's something. You need to add an entry for the server you want to connect to into tnsnames.ora, located in the \network\admin folder inside of your Oracle client installation. Since it sounds like someone else set up the server you want to connect to, your DBA should be able to provide the information that goes into the file. -
Sporadic ORA-12154 errors when connecting
We are occasionally receiving "ORA-12154: TNS:could not resolve service name" errors in all of the applications running on our W2K web server connected to an 8.1.6 database on a Sun server. Does anyone have any idea what is causing this and how we can prevent it?
Try using an IP address in your tnsnames.ora instead of a machine name for a tns entry.
Maybe you are looking for
-
i created blanket purchase order with item category B and account assignment as K PO created and i am trying to enter invoice can any one tell me how to do this..i failed several times finally in material tab of invoice receipt i entered material nu
-
I have been facig this issue for last few days and it's absolutely insane to retreive my own BB Z30 backup via Blackberry Link. I beleived this is 1 User Interface which connect BB to computer (Win. or Mac or Other devices ) and make your life easy.
-
Open a PDF file using PDF reader
Hi All, How to open a dynamique adresse of pdf files with adobe reader and not with the browser using URLLoader Thanks, Amine
-
CS5 getting stuck at "scanning for pluggins" stage at start up
I am having aproblem with cs5 not starting. It wont go past the above stage of the initialising stage... anyone help?
-
How to recover data from corrupt redo
Hi All, I have one qurey regarding redo file. My database is in Noarchive mode and all redo files size is 1G, there are 3 groups and all group having 1 member each. Now in case my all redo corrupt/dropped then can I recover my data from corrupt redo?