ORA-12154 when connects. Instant client installed.

Hi. I am installed instant client 10.2 and cannot connect to database : give error ORA-12154: TNS:could not resolve the connect identifier specified. I am using Linux. I am set TNS_ADMIN and put into this directory file tnsnames.ora with all necessary instances, but have not no one result.

Add the following line to sqlnet.ora in the directory to which TNS_ADMIN points:
TRACLE_LEVEL_CLIENT = SUPPORT
Then try again and examine the *.trc file created. This should tell you what's wrong.
Yours,
Laurenz Albe

Similar Messages

  • ORA-12154 when connect to Ora10 using an odbc from visual C++

    Hello
    I have the follong problem , I have a machine that must access to an oracle database , I have made an Odbc Conection and if I make atest there is no one problem and the test is sucessfully . My problem is when I 'm trying to access using my visual c++ program in this case I get an ORA -12154 error , using the same odbc connection that I have probe, also I have probe this program over others machines and there is no problem to access to the database . Can anyone tell me something ??
    The machine is an windows XP and the programa is a Visual C++.net .

    Well we have find the problem , was the path of the application . this has 84 characters we have put our program in a shortest path and now works!!!!

  • Ora-12154 when trying to connect to database from fortran application

    I am trying to connect to database and run an simple select query to a table(without any where clause) using pro*fortran code.
    the connect strng is like
    exec sql connect :uidpwd
    where uidpwd = username/password@SID
    SID and tnsnames connect string are the same.
    The fortran (profortran) code is placed in the database server and there are no errors when make is run.
    Tnsping is working fine, also i am able to conect using sql*plus and run the same query.
    Please help
    Thanks and Regards
    Nitin

    Hi Nitin
    Thanks for the helpful! With your point I'm now Pro! Great thanks.
    By the way have your seen that?
    Files such as LISTENER.ORA, TNSNAMES.ORA, SQLNET.ORA, if configured manually, or copied and edited from earlier releases of Oracle Database may have record attributes that are incompatible with Oracle Database 10g release 2. The software cannot read such files. The required record format is stream_lf and the record attributes are carriage_control and carriage_return.
    This may result in:
    Inability to start the listener
    Services not registered with the listener
    Inability to connect to other databases
    ORA-12154: TNS:could not resolve service name
    Run the following command on each file affected:
    $ DIR/FULL filename
    An output similar to the following may be displayed:
    Record format: Variable length, maximum 255 bytes
    Record attributes: Carriage return carriage control
    If the output includes the preceding entries, then run the following command:
    $ CONVERT/FDL=SYS$INPUT filename filename
    RECORD
    CARRIAGE_CONTROL CARRIAGE_RETURN
    FORMAT STREAM_LF
    ^Z
    Otherwise herewith an interesting metalink note. Doc ID:      Note:437597.1
    Subject:      Ora-12154 When Executing Pro*Fortran Code Compiled With Oracle 10g.
    Hope this will also help you...
    Cheers
    Hubert

  • 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

  • ORA-12154 when try to connect oracle 9i with forms9i

    Hi everybody,
    I install oracle database 9i AS in:c:\ora9ias folder, with ora9ias database name.
    and I install oracle developer suite in c:\ora9ids, and both installation were successfull.
    in oracle with sql+, I connect with system/manager@ora9ias it's working,
    but when I work with forms, I have this error mesage:
    ORA-12154, can't resolve symbolique adresse TNS?
    Thanks for your help...
    best regards

    In Oracle 9i Release 2 onwards, passwords for SYS and SYSTEM are entered by you when you install Oracle 9i R2.
    In order to connect to SQL Plus via Host String, e.g. ora9i
    User name: sys
    Password: YOUR_NEW_PASSWORD (this is he actual password that you entered when you installed Oracle 9i)
    Host String: ora9i as sys

  • Can I install Oracle XE on a system that has the Instant Client installed?

    Hello,
    After installing Oracle XE (Oracle Database Express Edition 11g Release 2 for Windows x64) on my Windows 8.1 64-bit system, I can not connect to the "Get started" url (http://127.0.0.1:8080/apex/f?p=4950).
    The output of "Start database" shows:
    The OracleXETNSListener-service is being started.
    The OracleServiceXE-service is being started.
    The OracleServiceXE-service has been started.
    The OracleXETNSListener service refuses to start. Could the presence of the Instant Client have something to do with this?
    The Instant Client is installed in C:\Apps\Oracle, with a tnsnames.ora in C:\Apps\Oracle\network\admin.
    Oracle XE is installed in C:\Apps\OracleXE.
    There is a system wide environment variable ORACLE_HOME, pointing to C:\Apps\Oracle.
    In the registry under HKLM\Oracle there are keys KEY_odac, KEY_ORACLE_HOME, KEY_XE, ODP.NET and OracleMTSRecoveryService.
    HKLM\Oracle\KEY_ORACLE_HOME\ORACLE_HOME = C:\Apps\Oracle
    HKLM\Oracle\KEY_XE\ORACLE_HOME = C:\Apps\OracleXE\app\oracle\product\11.2.0\server
    Thanks,
    George

    XE was the last installed Oracle product. I installed it on my development laptop, so I can use an Oracle database when not connected to the company network.
    The instant client was broken by the XE install. Uninstalling Xe fixes this, even without a reboot.
    The output of tnsping is:
    TNS Ping Utility for 64-bit Windows: Version 11.2.0.2.0 - Production on 21-APR-2015 07:18:00
    Copyright (c) 1997, 2014, Oracle.  All rights reserved.
    Message 3511 not found; No message file for product=NETWORK, facility=TNSTNS-03505: Message 3505 not found; No message file for prod
    uct=NETWORK, facility=TNS
    The Oracle related directories in the PATH environment variable are (in this order):
    C:\Apps\OracleXE\app\oracle\product\11.2.0\server\bin
    C:\Apps\Oracle\
    C:\Apps\Oracle\bin\

  • Strange problem with ORA-12154 from only one client

    Hi all,
    I have a strange problem.
    I have three 11.2.0.1 databases on three different hosts.
    For simplicity lets say:
    Host1: database ovm1a
    Host2: database ovm7a
    Host3: database ovm8a
    I have a database schema in all three databases named EHJ. In all three databases, there are fixed user
    database links to the other databases. So EHJ in ovm1a has two links, one to ovm7a and one to ovm8a. The EHJ schema in ovm7a has two fixed user links to the EHJ schema in the ovm1a and ovm8a databases. And the same is true for the EHJ schema in the third database, ovm8a.
    If I log into the EHJ schema for each of the three databases, I can successfully select over the database links. I've been using the SQL statement: select count(*) from user_users@dblink_name;
    For each of the two links in each of the three databases, the query returns 1 so I know the database links are working properly and I have my networking setup properly.
    Now, here is the weirdness.
    I have an Oracle Application Server where our Oracle Forms and Reports run. The Oracle client on this install is 10.1.0.5. I've got a tnsnames.ora file setup on this Oracle App server to connect to all three databases ovm1a, ovm7a and ovm8a. I can successfully use the 10.2.0.5 client SQL*PLUS to connect to the EHJ schema in the ovms1, ovms7 and ovms8 databases.
    However, (and only when) connected to the ovm1a database from this client, attempts to select over the link throw the famous error: ORA-12154: TNS:could not resolve the connect identifier specified
    This error happens with both links in the ovm1a database when connected via this one client.
    BUT, if I connect using the same 10.1.0.5 client to the EHJ schema in the ovm7a or ovm8a databases, the database links in those two databases are working just fine.
    I'm pulling my hair out trying to figure this out.
    I've tried using SQL*PLUS from my desktop machine (10g R2 client) connecting to the EHJ schema on all three databases and the db links all work fine.
    Any help in trying to troubleshoot this would be greatly appreciated.
    Cheers

    JSebastian wrote:
    I have an Oracle Application Server where our Oracle Forms and Reports run. The Oracle client on this install is 10.1.0.5. I've got a tnsnames.ora file setup on this Oracle App server to connect to all three databases ovm1a, ovm7a and ovm8a.But the client (and tnsnames.ora) in question here is actually one (each) of the three databases, right? I.e. error is thrown by the db server, acting as client (db link side).
    >
    However, (and only when) connected to the ovm1a database from this client, attempts to select over the link throw the famous error: ORA-12154: TNS:could not resolve the connect identifier specified Connected how, as opposed to when you "successfully select..."?
    This error happens with both links in the ovm1a database when connected via this one client.Does Oracle config files on ovma1 host differ from the other two db hosts?
    Does
    SQL> select property_name,property_value from database_properties
      2  where property_name in ('GLOBAL_DB_NAME','NLS_RDBMS_VERSION');
    SQL> select owner,db_link,host from dba_db_links;return as expected on all three db's?
    I've tried using SQL*PLUS from my desktop machine (10g R2 client) connecting to the EHJ schema on all three databases and the db links all work fine.Make sure you are connecting to correct databases. (Simply, three tns aliases could all be pointing to the same database.)
    Edited by: orafad on May 25, 2011 11:24 PM

  • ORA-12154 when using Database Link

    We're running 11r2 on our servers. I have a primary db and a standby db, using Data Guard. The standby is open for read-only querying. We are not using ASM.
    The primary (and thus the standby) have a PUBLIC database link to a third db server.
    When I run a query against the database link on the primary: select * from test@MyDBlink; Everything works fine.
    When I run the same query against the database link on the standby: select * from test@MyDBlink; I get ORA-12154: TNS:could not resolve the connect identifier.
    I check that the db link exists on the standby. It does.
    I go to command prompt on the standby and run "tnsping MyDBlink". It executes fine. It says "Used TNSNAMES adapater to resolve the alias" and sure enough, MyDBlink is referenced in the TNSNAMES.ORA.
    I also run "tnsping IP-of-MyDBlink" to doublecheck. No issues.
    What is going on that is blocking the db link on the standby? Many reports utilize that standby and I'd hate to deny them the functionality of a db link.
    Thanks

    893968 wrote:
    We're running 11r2 on our servers. I have a primary db and a standby db, using Data Guard. The standby is open for read-only querying. We are not using ASM.
    The primary (and thus the standby) have a PUBLIC database link to a third db server.
    When I run a query against the database link on the primary: select * from test@MyDBlink; Everything works fine.
    When I run the same query against the database link on the standby: select * from test@MyDBlink; I get ORA-12154: TNS:could not resolve the connect identifier.
    I check that the db link exists on the standby. It does.
    I go to command prompt on the standby and run "tnsping MyDBlink". It executes fine. It says "Used TNSNAMES adapater to resolve the alias" and sure enough, MyDBlink is referenced in the TNSNAMES.ORA.
    I also run "tnsping IP-of-MyDBlink" to doublecheck. No issues.
    What is going on that is blocking the db link on the standby? Many reports utilize that standby and I'd hate to deny them the functionality of a db link.
    ThanksMost people with this problem don't understand that the dblink is just another client, no different than sqplus running on the same machine - and therefore the link uses the tnsames in the ORACLE_HOME of the database containing the link. But it seems from the steps you've described that you've grasped that. The only thing I can think of off the top of my head is when you try sqlplus from the standby server you are hitting a different tnsnames than the one the database is using.

  • ORA-12154 using Oracle.DataAccess.Client

    I am experiencing an ORA-12154 exception when accessing a remote Oracle database using ADO.NET called from c# code running on a Windows 2003 system. The code functions correctly on our internal (remote) database using the Oracle XE 10.2 Client. At the customer site with Oracle 10.1 Client the same code generates the 12154 error.
    At the customer site, I can connect without errors with the customer's connection information (Hostname, port, SID) using Navicat 8 Lite for Oracle and SQL-Plus. I can also connect with no problems using ODBC (except I can't use ODBC because it causes other problems when accessed from ASP.NET).
    The connection string is correctly formulated i.e. "Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=myServerName)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=myServiceName)));User Id=myUserName;Password=myPassword"
    When I run TNSPING on the client's system I get the following result (server and SID name altered for confidentiality reasons):
    Adapter TNSNAMES zur Auflösung des Alias benutzt
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = myServerName)(PORT = 1521)) (CONNECT_DATA = (SERVER = dedicated) (SERVICE_NAME = myServiceName)))
    OK (10 ms)
    I can't determine anything about the listener since I don't have access to teh datbase server.
    To summarize, my .net code fails when I use the Oracle Data Access Client, but works fine with ODBC, and Navicat, SQL Plus also work fine.
    Can anyone suggest the cause and possible solution for this problem? - thanks in advance for any help :)

    user8609285 wrote:
    I am experiencing an ORA-12154 exception when accessing a remote Oracle database using ADO.NET called from c# code running on a Windows 2003 system. The code functions correctly on our internal (remote) database using the Oracle XE 10.2 Client. At the customer site with Oracle 10.1 Client the same code generates the 12154 error.
    At the customer site, I can connect without errors with the customer's connection information (Hostname, port, SID) using Navicat 8 Lite for Oracle and SQL-Plus. I can also connect with no problems using ODBC (except I can't use ODBC because it causes other problems when accessed from ASP.NET).
    The connection string is correctly formulated i.e. "Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=myServerName)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=myServiceName)));User Id=myUserName;Password=myPassword"
    When I run TNSPING on the client's system I get the following result (server and SID name altered for confidentiality reasons):
    Adapter TNSNAMES zur Auflösung des Alias benutzt
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = myServerName)(PORT = 1521)) (CONNECT_DATA = (SERVER = dedicated) (SERVICE_NAME = myServiceName)))
    OK (10 ms)
    I can't determine anything about the listener since I don't have access to teh datbase server.
    To summarize, my .net code fails when I use the Oracle Data Access Client, but works fine with ODBC, and Navicat, SQL Plus also work fine.
    Can anyone suggest the cause and possible solution for this problem? - thanks in advance for any help :)ora-12154 means one thing and one thing only.
    [oracle@vmlnx01 ~]$ 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.Bottom line is the net service name you presented is not found in the tnsnames that was being used. Which may not be the tnsnames you think was being used.
    And since it never resolved that on the client side, there is no need to look to anything (like the listener) on the host side. You never got out of your driveway, so there is no need to see if the entrance to your destination is open.

  • ORA-12154 in new oracle client installation (ASP applications)

    Hello,
    I've got a test server with an Oracle 10.2 client that has some web services running on it. They connect using the oracle client to a database in another server. Untill this morning they were working great but then I has some trouble and I had to reinstall the Oracle client again. Now I have installed once any Web Service tries to open a connection to my oracle database I get an ORA-12154.
    I've tried to run (in my test server) a simple console application that opens a connection to the same database with the same connectionstring and queries a table and it works great, so I think that there might be some problem with asp.net applications or something like that....
    Does somebody know how can I solve that??
    Thanks in advance!

    after you reinstall Oracle client, run netca to configure your tnsnames again. Or if you have copy of old tnsnames.ora file put under new client ORACLE_HOME/network/admin

  • ORA-12154 error connecting CR 2008 to Oracle XE on Windows 7

    I have Crystal 2008 SP3 running on Windows 7. I have Oracle Database Express Edition installed and running. Using the DirectData CR Oracle ODBC Driver 5.1 I test connect fine to Oracle but when I try to use Database Expert to connect to my Oracle database I fail to connect.
    The error I get is Failed to open the connection. Details: ORA-12154: TNS:could not resolve the connect identifier specified. [Database Vendor Code: 12154].  I've spent a lot of time here trolling for information. My TNSnames.ora file appears to be correctly formatted but I'm not sure if it has the correct information in it. I checked my Path and that may be the problem but I am not technical enough to know what to put there so that this 32-bit driver is the first in the list. It's the driver in Windows/SysWOW64. I just need to be able to run a SQL statement in Oracle and create RPTs in CR - not be an OS Expert. Any help would be greatly appreciated.
    TNSNAMES.ORA
    XE =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = Owner-VAIO)(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)
    PATH
    PATH=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program File
    s (x86)\Common Files\Microsoft Shared\Windows Live;C:\oraclexe\app\oracle\produc
    t\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\W
    indows\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Softw
    are\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)
    \Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files (x86)\Common Files\R
    oxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Intuit\QBPOSSDKRuntim
    e;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Windows Live
    \Shared

    Hello,
    This should work, XE is not lsited in our supported platforms PDF but it's still 10.2 which is supported.
    There are more tools you can use to debug, third party Connection tests and ProcessMonitor as well as our database logging dll but if you are running out of time I suggest you purchase a single case and a Rep will contact you directly to resolve the problem.
    To get a single support case got to:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=38156200
    And No, the ORA file should be in the that folder.
    Thanks again
    Don

  • Automation scripts for Instant client install\ add TNS entry

    Guys,
    I'm trying to develop an VB application,which uses data from an Oracle server residing in my neighbour's system.
    My system doesn't have oracle client installed.
    So, I've made use of Oracle Instant Client package-OCBC.
    Now, I'm looking for an automation script that would do the following in order
    1)Uzip the instant client into a directory. (say C:\ondemand\instantclient)
    2)Add this directory into the PATH environment variable
    3)Set up Service Names with tnsnames.ora ie. Create a TNSNAMES.ORA file to configure my Oracle instance connection.
    4)Set the TNS_ADMIN environment variable to be the path to the tnsnames.ora
    Can someone help me out with automated scripts?
    Thanks,
    Bhagat

    Don't worry. I've solved it.
    One of the files I was using stated: Always set the TNS_ADMIN environment variable or registry setting to the full path of the tnsnames.ora file.
    I took that to mean including the "tnsnames.ora". It doesn't. It really does mean just the PATH part.
    However, with this corrected, I got the pulldown populated. But with only the first part of the name, from the tnsnames.ora file. tnsnames.ora had mydb.<domain>.com. The pulldown only had mydb. Manually adding the .<domain>.com to it worked.
    Now on to the next problem. <GRIN>
    Cheers,
    Eddie

  • ORA-12154 when migrating from 6 to 6i

    When starting RAU-migration-tool I always get "ORA-12154: TNS: could not resolve service name". With SQL I can connect to this instance. I tried to connect to the 6-repository with designer 6i and got this error-msg: "CDR-20004: Your are attempting to connect to a previous release of the repository". So I think designer "knows" the connection, but not the migration-tool. Is there another tnsnames?

    Sorry I forgot, the designer is running on Windows NT and Database runs on HP-UX
    bye Karl

  • Oci_password_change() ORA-1017 gotcha and Instant Client 11.2.0.3

    Since Instant Client 11.2.0.3 is available and many people might be thinking of upgrading, I just blogged about a gotcha with oci_password_change() that occurs unless the client libraries and Oracle DB are upgraded at the same time: http://blogs.oracle.com/opal/entry/php_oci_password_change_ora

    Hi!
    What you did is correct,
    To install odbc you just have to copy the files inside instantclient-odbc-windows.x64-11.2.0.3.0.zip to C:\OracleClient64 as you already did.
    When you run odbc_install.exe it popup a cmd prompt for very short period of time. It´s fine.
    What it does is to create the values you saw in the registry, an thats why if you run it a second time it said that already exist. With that, you have installed odbc, now you can test it following this link:
    http://www.sparxsystems.com/enterprise_architect_user_guide/8.0/projects_and_teams/connect_to_oracle_via_odbc.html
    Hope it helps
    Regards

  • Initial Instant Client Install

    I've downloaded the latest instant client, Version 11.2.0.3.0, unzipped it - but cannot get it to install. There is no setup/install executable or batch file. What do I run to get it installed?
    I have no /Oracle directory, or installed Oracle products on my laptop.
    I'm running Windows 7, 32 bit.
    Thanks!

    989334 wrote:
    Am I even getting close to having this installed? If not can someone please, in a step by step process a two year old could follow, tell me what to do next?I guess I cannot comply with that request, since Oracle software is not designed to be installed by two-year-olds (and I have two of those at home, so I know what I'm talking about).
    I grant that the installation instuctions provided by Oracle are minimal, they are probably supposted to emphasize how simple it is (compared to installing any other Oracle product).
    Here they are: http://www.oracle.com/technetwork/database/features/instant-client/index-100365.html#Package%20Description
    It is really just unzipping the software and configuring the environment.
    The ODBC driver needs special installation steps (the exexutabe you started), but that is described
    in the file ODBC_IC_Readme_Win.html in the ODBC driver download.
    To connect to an Oracle database, you must understand a little of Oracle Net configuration.
    There are a few hints here:
    http://docs.oracle.com/cd/E11882_01/server.112/e16604/apd.htm#sthref3167
    The complete story is here:
    http://docs.oracle.com/cd/E11882_01/network.112/e10836/toc.htm
    Yours,
    Laurenz Albe

Maybe you are looking for

  • I'm starting to get very frustrated with the lack of help on this issue!!!

    Ok, someone please help! I have tagged several songs off the radio from my IPod and am trying to purchase them. I have been able to purchase songs on a previous version of ITunes, but not now after upgrading to the latest version.  I have tried the f

  • Secondary index not getting picked

    Hello All, I am seeing stange behaviour of picking of secondary indexes. Example: Index - I1 is having two fields and the same two fields in giving in where clause of the select and this fields are unque and not used in any other secondary index. Res

  • Need help on Migration

    i'm going to migrate SQL Server 7 to Oracle 10g. Could you please help me whether any tools are available for migration. whether Oracle SQL Developer 1.2 Migration Workbench tool, would be helpful..? My SQL server is resides in Window 2000 whereas Or

  • Error -1073807252 occurs intermittently

    All, I am using a LV program to receive a comma delimited string (approx. 16KB) from an embedded board. I have been using the "Advanced Serial Read Write VI" to read the data after proper handshaking. And XON/XOFF flow control is in place. This progr

  • STATUS_SHOW_CHANGE_DOCUMENTS -export

    I have a requirement to get the status details -service order and notification also. Can I use the function module STATUS_SHOW_CHANGE_DOCUMENTS I can get the Service order no from AUFK and object no and passing input as object no for the above Funtio