ORA-12154 on WinXP x64

Hello,
I have a WinXP x64 with Oracle Client 9.2
it works fine with SQLplus,SQL Navigater and XAMPP server
but with Golden and Crystal I get everytime an error
"ORA-12154 could not resolve service name error"
with a normal WinXP SP2 I did not have problems
Has anyone a solution for my problem?

Did you ever find a solution? I have the same problem.
I have tried the Oracle 32 bit and 64 bit client applications. Both were installed in C:\oracle\product... when I tried them. The 32 bit client was 10.1.0.2 and the 64 bit was 10.2.0.1. Both will not allow me to use an ODBC connection in MS Access.
MS Access is part of Office 2003 and is installed in the C:\Program Files (x86) folder. I even tried installing Access from Office XP in C:\Program Files and had the same results.
I have tried creating the ODBC connection from Control Panel>Administrative Tools and from C:\Windows\SysWOW64\odbc32.exe. Both would let me connect to Oracle successfully, but when I try to use them in MS Access I get errors. For the 64 bit ODBC driver I get an error that it isn't installed, and for the 32 bit ODBC driver I get an ORA-12154 TNS names error.
HELP!

Similar Messages

  • 64-bit OCILogon() is fine, but 32-bit version always gives ORA-12154

    Hello,
    I am porting an application from Oracle 9.2 on Solaris 8 on Sparc to
    Oracle 10.2 on Solaris 10 on x64, using Sun C++ 5.8 on both.
    The Oracle installation was quite straightforward, and everything works fine, except that if I compile my app for 32-bit all I ever get from
    OCI is 'ORA-12154: TNS:could not resolve the connect identifier specified'
    sqlplus and tnsping, which are both 64-bit executables are also fine.
    Here is a little example program which writes a few BLOBs into
    an existing table:
    sun03%
    sun03% printenv
    HOME=/d0/sj
    SHELL=/bin/csh
    PATH=/usr/bin:/usr/ucb:/usr/bin:/etc:/usr/local/bin:/opt/csw/bin:/opt/sfw/bin:/u
    sr/dt/bin:/usr/ccs/bin:/usr/xpg4/bin:/opt/v11/SUNWspro/bin:/usr/openwin/bin:/usr
    /sbin:/usr/local/samba/bin:/opt/sfw/sbin:/usr/platform/sun4u/sbin:/usr/ccs/bin:/
    usr/sfw/bin:/d0/adam/Rational/releases/PurifyPlus.7.0/sun4_solaris2/bin:/usr/ORA
    /bin:/usr/sbin
    USER=sj
    PWD=/d0/sj/handover
    ORACLE_SID=oradev1
    ORACLE_HOME=/opt/oracle/product/10.2.0/db_1
    LD_LIBRARY_PATH=/usr/ORA/lib
    THREADS_FLAG=native
    LOGNAME=sj
    LIBPATH=/usr/ORA/lib:/usr/local/lib
    LANG=en_GB
    sun03%
    sun03%
    sun03% cat ora_prog1.h
    #define USERNAME "sj"
    #define PASSWORD "sj"
    #define ORASID "oradev1"
    #define NUM_OF_BLOBS 3
    #define BLOB_SIZE 32766
    sun03%
    sun03% cat ora_prog1.cpp
    #include <stdlib.h>
    #include <stdio.h>
    #include <assert.h>
    #include <oci.h>
    #include <oratypes.h>
    #include <string>
    #include "ora_prog1.h"
    using namespace std;
    #define OCI_CHECK(errhp, htype, status, OCIfunc) \
    do { if (OCI_SUCCESS != ((status) = (OCIfunc)))                                             \
    string msg = checkerr((dvoid *)(errhp), (ub4)(htype), (sword)(status), (text *)0, \
    (sb4)0, (text *)__FILE__, (sb4)__LINE__); \
    cleanup(msg); \
    } } while(0)
    // get the error from the DB
    void errprint(dvoid errhp, ub4 htype, sb4 errcodep,
    string& msg)
    text errbuf[512];
    if (errhp)
    sb4 errcode;
    if (errcodep == (sb4 *)0)
    errcodep = &errcode;
    (void) OCIErrorGet((dvoid *)errhp, (ub4) 1, (text *) NULL, errcodep,
    errbuf, (ub4) sizeof(errbuf), htype);
    char outBuffer[1024];
    (void) sprintf(outBuffer, "Error - %.*s\n", 512, errbuf);
    msg += outBuffer;
    // generate and return the appropriate error message
    string checkerr(dvoid errhp, ub4 htype, sword status, text note,
    sb4 code, text *file, sb4 line)
    string msg = "";
    // make sure that each print fits into this buffer
    char outBuffer[1024];
    sb4 errcode = 0;
    if (status != OCI_SUCCESS)
    (void) sprintf(outBuffer, "OCI Error %ld occurred at File %s:%ld\n",
    (long)status, (char *)file, (long)line);
    msg += outBuffer;
    if (note)
    (void) sprintf(outBuffer, "File %s:%ld (code=%ld) %s\n",
    (char *)file, (long)line, (long)code, (char *)note);
    msg += outBuffer;
    switch (status)
    case OCI_SUCCESS:
    break;
    case OCI_SUCCESS_WITH_INFO:
    (void) sprintf(outBuffer, "Error - OCI_SUCCESS_WITH_INFO\n");
    msg += outBuffer;
    errprint(errhp, htype, &errcode, msg);
    msg += outBuffer;
    break;
    case OCI_NEED_DATA:
    (void) sprintf(outBuffer, "Error - OCI_NEED_DATA\n");
    msg += outBuffer;
    break;
    case OCI_NO_DATA:
    (void) sprintf(outBuffer, "Error - OCI_NO_DATA\n");
    msg += outBuffer;
    break;
    case OCI_ERROR:
    errprint(errhp, htype, &errcode, msg);
    break;
    case OCI_INVALID_HANDLE:
    (void) sprintf(outBuffer, "Error - OCI_INVALID_HANDLE\n");
    msg += outBuffer;
    break;
    case OCI_STILL_EXECUTING:
    (void) sprintf(outBuffer, "Error - OCI_STILL_EXECUTE\n");
    msg += outBuffer;
    break;
    case OCI_CONTINUE:
    (void) sprintf(outBuffer, "Error - OCI_CONTINUE\n");
    msg += outBuffer;
    break;
    default:
    break;
    return msg;
    // Display info or fail
    void cleanup(string& msg)
    fprintf(stderr, "Oracle failed message:\n%s",
    msg.c_str());
    exit(1);
    int main()
    sword ociret;
    OCIEnv *envhp;                  // environment handle
    OCIError *errhp;                // error handle      
    OCISvcCtx *svchp;               // service context
    OCIStmt *stmthp;                // statement handle  
    OCILobLocator *lobLoc;
    OCIBind *bindp = 0;
    OCIDefine *defnp = 0;
    char stmt[1024];
    char data = (char )malloc(BLOB_SIZE);
    OCI_CHECK((dvoid *)0, (ub4)0, ociret,
    OCIEnvCreate(&envhp, OCI_DEFAULT, (dvoid *)0,
    0, 0, 0, (size_t)0, (dvoid **)0));
    OCI_CHECK(envhp, OCI_HTYPE_ENV, ociret,
    OCIHandleAlloc((dvoid *)envhp, (dvoid **)&errhp,
    OCI_HTYPE_ERROR, 0, (dvoid **) 0));
    // Create a handle for writing SQL statements - this is reused with various stmts
    OCI_CHECK(envhp, OCI_HTYPE_ENV, ociret,
    OCIHandleAlloc((dvoid *)envhp, (dvoid **)&stmthp,
    OCI_HTYPE_STMT, (size_t)0, (dvoid **)0));
    // Simplified logon for a single user session for one DB connection
    OCI_CHECK(errhp, OCI_HTYPE_ERROR, ociret,
    OCILogon(envhp, errhp, &svchp,
    (CONST OraText *)USERNAME, strlen(USERNAME),
    (CONST OraText *)PASSWORD, strlen(PASSWORD),
    (CONST OraText *)ORASID, strlen(ORASID)));
    // Allocate the LOB descriptors
    OCI_CHECK(envhp, OCI_HTYPE_ENV, ociret,
    OCIDescriptorAlloc((CONST dvoid *)envhp,
    (dvoid **)&lobLoc, OCI_DTYPE_LOB, 0, 0));
    for(int i = 0; i < NUM_OF_BLOBS; i++)
    memset(data, 'A'+i, BLOB_SIZE);
    sprintf(stmt, "INSERT INTO TEST_TABLE VALUES (%d, :1)", i);
    // Set the LOB to empty in order that it may be involved in an insert
    ub4 lobEmpty = 0;
    OCI_CHECK(errhp, OCI_HTYPE_ERROR, ociret,
    OCIAttrSet(lobLoc, OCI_DTYPE_LOB, &lobEmpty, 0,
    OCI_ATTR_LOBEMPTY, errhp));
    // Prepare to insert the empty LOBs
    OCI_CHECK(errhp, OCI_HTYPE_ERROR, ociret,
    OCIStmtPrepare(stmthp, errhp,
    (text *)stmt, (ub4)strlen(stmt),
    OCI_NTV_SYNTAX, OCI_DEFAULT));
    // Bind the BLOB to the parameter
    OCI_CHECK(errhp, OCI_HTYPE_ERROR, ociret,
    OCIBindByPos(stmthp, &bindp, errhp,
    (ub4)1, (dvoid *)&lobLoc, (sb4)-1,
    SQLT_BLOB, 0, 0, 0, 0, 0, OCI_DEFAULT));
    // Execute the statement
    OCI_CHECK(errhp, OCI_HTYPE_ERROR, ociret,
    OCIStmtExecute(svchp, stmthp, errhp,
    (ub4)1, (ub4)0,
    (CONST OCISnapshot *)NULL, (OCISnapshot *)NULL,
    OCI_DEFAULT));
    // Lock the row for update
    sprintf(stmt, "SELECT DATA FROM TEST_TABLE WHERE ID=%d FOR UPDATE", i);
    // Prepare a statement that will read the LOB
    OCI_CHECK(errhp, OCI_HTYPE_ERROR, ociret,
    OCIStmtPrepare(stmthp, errhp,
    (text *)stmt, (ub4)strlen(stmt),
    OCI_NTV_SYNTAX, OCI_DEFAULT));
    // Define space to hold the result of the query
    OCI_CHECK(errhp, OCI_HTYPE_ERROR, ociret,
    OCIDefineByPos(stmthp, &defnp, errhp,
    (ub4)1, &lobLoc, -1,
    SQLT_BLOB, 0, 0, 0, OCI_DEFAULT));
    // Execute the statement
    OCI_CHECK(errhp, OCI_HTYPE_ERROR, ociret,
    OCIStmtExecute(svchp, stmthp, errhp,
    (ub4)1, (ub4)0,
    (CONST OCISnapshot *)NULL, (OCISnapshot *)NULL,
    OCI_DEFAULT));
    ub4 expected_len = BLOB_SIZE;
    // Write data in one go
    OCI_CHECK(errhp, OCI_HTYPE_ERROR, ociret,
    OCILobWrite(svchp, errhp, lobLoc,
    &expected_len, (ub4)1,
    data, BLOB_SIZE, OCI_ONE_PIECE, 0, 0, 0, SQLCS_IMPLICIT));
    assert(expected_len == BLOB_SIZE);
    OCI_CHECK(errhp, OCI_HTYPE_ERROR, ociret,
    OCITransCommit(svchp, errhp, OCI_DEFAULT));
    // Cleanup by freeing the descriptor
    (void)OCIDescriptorFree(lobLoc, OCI_DTYPE_LOB);
    sun03%
    sun03%
    sun03% CC -xtarget=native64 -I/usr/ORA/rdbms/public -L/usr/ORA/lib -lclntsh -o ora_prog1 ora_prog1.cpp
    sun03% ora_prog1
    Compiled for 64-bit the program runs silently.
    But if I redirect my paths to the 32-bit libraries and
    recompile for 32-bit, OCILogon always fails:
    sun03%
    sun03%
    sun03% setenv LIBPATH /usr/ORA/lib32:/usr/local/lib
    sun03% setenv LD_LIBRARY_PATH /usr/ORA/lib32
    sun03% CC -I/usr/ORA/rdbms/public -L/usr/ORA/lib32 -lclntsh -o ora_prog1 ora_prog1.cpp
    sun03% ora_prog1
    Oracle failed message:
    OCI Error -1 occurred at File ora_prog1.cpp:143
    Error - ORA-12154: TNS:could not resolve the connect identifier specified
    sun03%
    Recompiling for 32-bit like this works fine on Oracle 9.2 on Solaris 8,
    so I have obviously missed something simple in my installation.
    Any help would be appreciated.
    Thanks
    -- Steve

    Hi prajithparan,
    I am facing the same problem on my Dual Core AMD running Solaris 11.06 x96-64. As long as I compile and link using the flag '-m64' everything work fine. But I use '-m32' or none getting 32 bit binaries I got the same error:
    'ORA-12154: TNS:could not resolve the connect identifier specified'
    even my LD_LIBRARY_PATH is set as below:
    echo $LD_LIBRARY_PATH
    /oracle/app/product/10.2.0/lib32
    Also I have to mention that SQLPLUS and TNSPING works fine on my side too. So I suppose that there is something wrong with trying to use 32 bit ORACLE libraries. Any idea?
    Please find attached my output (my APP is OCI / C based but not OCCI / C++):
    ./cdemouni user comext password noftnc dblink test stmt "select table_name from all_tables"
    option --user (-u) with value  comext
    option --password (-p) with value  noftnc
    option --dblink (-d) with value  test
    option --stmt (-s) with value  select table_name from all_tables
    OCIServerAttach( test -- 4 )
    FAILED: OCIServerAttach(), RC = -1
    Error [ OCI error 12154 ]- ORA-12154: TNS:could not resolve the connect identifier specified
    Regards,
    Ioan

  • ORA-12154 Error

    Hi there,
    I am having a problem connecting to a database that we have just created on a new server. The connection is fine using SQL*PLus, Enterprise Manager or SQL Developer, but we have an application that connects to this database sitting on the same server and this returns the error listed above. The username / pwd etc are all correct in the config file, and is a .NET app, but I cannot understand why it won't connect. I am using the standard oracle client (Oracle.Client) in .NET, the only real difference is that I am running the software on a x64 OS, could this be causing a problem?
    Many thanks for any help that you might be able to provide
    Dan

    Hi Dan,
    It sounds like the local sqlnet.ora or listener.ora file is wrong . . .
    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;
    The query value should match your init.ora parms for db_name and db_domain, You can change the global_name with an alter database commend, as follows:
    alter database rename global_name to xxx;
    ORA-12154: 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.

  • 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,
    Sachin

    Hi 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 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:04

    Hi,
    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.

  • 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 PM

    VTech 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.

  • The server could not be found on the network ORA-12154

    Hi All,
    I have problem with one application. She run with Oracle DB. I installed Win2008R2 x64 and Oracle DB 32bit on the same server. I tried connect to DB via Oracle SQL Developer and SQL Plus and both run without problem, but when I insert the same parameters into application OpenText Content Server 10, then I see this Error:
    Content Server Error:
    [Error: The server could not be found on the network. ----> Error stack ----> 1) E675414020:The server could not be found on the network.:ORA-12154: TNS:could not resolve the connect identifier specified ]
    This application need only 3 parameters (System User Name, password and service name). I compare it with ORA files (listener, sqlnet and tnsnames) and I think that all is right. Here are this three files
    listener:
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = WIN-R0OEE0OAE5Z)(PORT = 1521))
    sqlnet:
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES)
    tnsnames
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = WIN-R0OEE0OAE5Z)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    Do you have any idea where is problem?
    Thank you
    Vaclav

    893964 wrote:
    Hi All,
    I have problem with one application. She run with Oracle DB. I installed Win2008R2 x64 and Oracle DB 32bit on the same server. I tried connect to DB via Oracle SQL Developer and SQL Plus and both run without problem, but when I insert the same parameters into application OpenText Content Server 10, then I see this Error:
    Content Server Error:
    [Error: The server could not be found on the network. ----> Error stack ----> 1) E675414020:The server could not be found on the network.:ORA-12154: TNS:could not resolve the connect identifier specified ]
    This application need only 3 parameters (System User Name, password and service name). I compare it with ORA files (listener, sqlnet and tnsnames) and I think that all is right. Here are this three files
    listener:
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = WIN-R0OEE0OAE5Z)(PORT = 1521))
    sqlnet:
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES)
    tnsnames
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = WIN-R0OEE0OAE5Z)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    Do you have any idea where is problem?
    Thank you
    VaclavYou listener has nothing to do with this error. Your request for a connection never left the client machine.
    http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/

  • ORA-12154(Urgent PLZ)

    I have installed oracle app. server Rel2 on winXP professional, after installation when i try to connect through PLSQL editor it says error ORA-12154 unable to resolver service name. I have checked for tnsnames.ora file in ORA_HOME/network/admin and i cant find it. so what to do ?

    Hi,
    <br>Sorry, I'm confusing, do you install Oracle database server, or Oracle application server ?</br>
    <br>Perhaps the Oracle Application Server - General is more suitable in your case.</br>
    <br>Nicolas.</br>
    Message was edited by:
    N. Gasparotto

  • Error while trying to retrieve text for error ORA-12154

    Hello,
    I try to install php 5.1.2 on a WIN2003 server and IIS6 with the OCi8 extension without success from several days.
    On my server I've a 920 oracle client and the 10.1 instant client, I copy the tnsnames.ora in the instant client's directory.
    I've declare many environnement variables :
    - NLS_LANG : AMERICAN_AMERICA.WE8MSWIN1252
    - TNS_ADMIN : E:\...\oracle\instantclient_10_1
    - ORA_NLS33 : E:\..\oracle\920\ocommon\nls\ADMIN\DATA
    With the php command line the oci_connect function correctly works : the php command line use the instant client's tnsnames.ora. I can query with success my database.
    When I try to load a web php script (the same as the php command line script) I have the following error " Error while trying to retrieve text for error ORA-12154" ( oci_connect( $user , $pass, $sid ) . The $sid variable have the value of an alias declared in the tnsnames.ora.
    If I replace the sid's alias by something like this " (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=xx.xx.xx.xx)(PORT=1521)))(CONNECT_DATA=(SID=xx)" in the oci_connect function, I have another error : Error while trying to retrieve text for error ORA-12705.
    A web page with the phpinfo function displays the following messages about oci8 extension : It seems to be correct.
    oci8
    OCI8 Support enabled
    Revision $Revision: 1.269.2.8 $
    Active Persistent Connections 0
    Active Connections 0
    Temporary Lob support enabled
    Collections support enabled
    Do you have any idea ? Thanks a lot

    The web server is not seeing the Oracle environment correctly. You need to set PATH to the instant client libraries. ORA_NLS33 is not used for Oracle 10g clients. Perhaps you have some library conflict with two versions of Oracle on the machine?
    These may help:
    http://www.oracle.com/technology/tech/php/htdocs/php_troubleshooting_faq.html#envvars
    http://blogs.oracle.com/opal/2006/05/01

  • DNS Set Up system throw as ORA-12154; TNS :could not resolve the connect id

    Hi,
    While i'm creating DNS set up system throws below message
    unable to connect
    SQLState=08004
    DNS Set Up for instantclient(win32-10.2.0.4) system throw as ORA-12154; TNS :could not resolve the connect identified specified.
    operationg system:xp
    dir path:C:\Oracle\instantclient10_2
    TNSNAMES.ORA(C:\Oracle\instantclient10_2\NetWork\ADMIN) Contants
    YourTNSName =sankar
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST =localhost)(PORT =1521))
    (CONNECT_DATA =
    (SID =sankar)
    (SERVER = DEDICATED)
    dir contains:
    sqresus.dll,
    sqresja.dll
    sqoras32.dll
    sqora32.dll
    oraociei10.dll
    oraocci10.dll
    orannzsbb10.dll
    ojdbc14.jar
    ocijdbc10.dll
    ociw32.dll
    oci.dll
    classes12.jar

    user7197586 wrote:
    Hi
    I have been created one DBLink it's created but when i am trying to access the data through the link it's raise error as
    "ORA-12154: TNS:could not resolve the connect identifier specified"
    CREATE
    PUBLIC DATABASE LINK
    Vrd_tcplink
    CONNECT TO
    "SAPVRD"
    IDENTIFIED BY
    "manager123"
    USING
    'VRD_TCP.WORLD'
    created this above dblink
    Kindly Suggest to wau out.
    Regards,
    Sachin
    When using a dblink, the database with the link is acting as a client to the remote database ... exactly like sqlplus running on the db server.
    read: http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/ ora-12154tns-03505

  • 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.

  • Sql@loader-704  and ORA-12154: error messages when trying to load data with SQL Loader

    I have a data base with two tables that is used by Apex 4.2. One table has 800,000 records . The other has 7 million records
    The client recently upgraded from Apex 3.2 to Apex 4.2 . We exported/imported the data to the new location with no problems
    The source of the data is an old mainframe system; I needed to make changes to the source data and then load the tables.
    The first time I loaded the data i did it from a command line with SQL loader
    Now when I try to load the data I get this message:
    sql@loader-704 Internal error: ulconnect OCISERVERATTACH
    ORA-12154: tns:could not resolve the connect identifier specified
    I've searched for postings on these error message and they all seem to say that SQL Ldr can't find my TNSNAMES file.
    I am able to  connect and load data with SQL Developer; so SQL developer is able to find the TNSNAMES file
    However SQL Developer will not let me load a file this big
    I have also tried to load the file within Apex  (SQL Workshop/ Utilities) but again, the file is too big.
    So it seems like SQL Loader is the only option
    I did find one post online that said to set an environment variable with the path to the TNSNAMES file, but that didn't work..
    Not sure what else to try or where to look
    thanks

    Hi,
    You must have more than one tnsnames file or multiple installations of oracle. What i suggest you do (as I'm sure will be mentioned in ed's link that you were already pointed at) is the following (* i assume you are on windows?)
    open a command prompt
    set TNS_ADMIN=PATH_TO_DIRECTOT_THAT_CONTAINS_CORRECT_TNSNAMES_FILE (i.e. something like set TNS_ADMIN=c:\oracle\network\admin)
    This will tell oracle use the config files you find here and no others
    then try sqlldr user/pass@db (in the same dos window)
    see if that connects and let us know.
    Cheers,
    Harry
    http://dbaharrison.blogspot.com

  • ORA-12154 while installing Oracle 10g on windows 7

    Hi,
    I am trying to install Oracle 10g express edition on my machine (core 2 duo 2.93) running on Windows 7.
    The installation moves on perfectly for the 1st step and while running the 2nd step (Net configuration Assistant), it gives the ORA-12154 error.
    The contents of my configuration files at this point are as follows:
    Listener.ora
    =============
    SID_LIST_ORCL =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = ORCL)
    (ORACLE_HOME = F:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    ORCL =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    =============
    And that of tnsnames.ora is:
    =============
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = ORCL)
    =============
    After some googling around, I have found and installed the Microsoft Loopback adapter too (since my LAN is DHCP enabled) and also tried to turn on the firewall on my machine to check if it is not a problem with the port 1521 being blocked by the firewall.
    However, even after all that I still get the error "ORA-12154: TNS:could not resolve the connect identifier specified." while running the Net configuration Assistant and/or running SQL Plus to connect to the SID - ORCL.
    I can only see one service running in my services by the name : OracleOraDb10g_home1TNSListenerORCL
    Any suggestions or advice on the error would be much welcome.
    Is it anything related to Windows 7 ? Because I have managed to install using the same installer on another machine which runs Windows XP and everything seems fine there.
    Thanking you all in anticipation.
    Shreyas

    user12753151 wrote:
    Hmmm.. but then I'd have expected some installation error. I have read around that people have managed to install oracle on windows 7.
    The error displayed seems to be indicating that there is some configuration or permissions issue.Check that the user has permission to write in the ORACLE_HOME\network\admin - UAC might be blocking that.
    Install with software only, and run netca & dbca separately to create the database after the s/w install. (That's the way it is done in production anyway, so get used to it.)
    But yes - you still may have problems. Those who did fake it out on Windows 7 usually understand what to do. If you are smart enough to actually do it, my hat is off to you.

  • While logging I am getting error ORA-12154:

    I am getting this error, while logging.
    ERROR:
    ORA-12154: TNS:could not resolve service namePls Wat I need to do,

    hi coolguy,
    my sqlnet.ora file is
    # SQLNET.ORA Network Configuration File: C:\oracle\ora92\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)and my tnsnames.ora file is
    # TNSNAMES.ORA Network Configuration File: C:\oracle\ora92\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    EXTPROC_CONNECTION_DATA.ASTSERVER40.COM =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
        (CONNECT_DATA =
          (SID = PLSExtProc)
          (PRESENTATION = RO)
    SANDB.ASTSERVER40.COM =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = ast16)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = sandb)
    INST1_HTTP.ASTSERVER40.COM =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = ast16)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = SHARED)
          (SERVICE_NAME = MODOSE)
          (PRESENTATION = http://HRService)
      )and my computer name:
    Full computer name:  ast16.astserver40.com
    Domain                  :  astserver40.comand I tested in command prompt, with tnsping which is mentioned you I am getting this error
    C:\>tnsping sandb
    TNS Ping Utility for 32-bit Windows: Version 9.2.0.1.0 - Production on 21-NOV-20
    07 11:20:22
    Copyright (c) 1997 Oracle Corporation.  All rights reserved.
    Used parameter files:
    C:\oracle\ora92\network\admin\sqlnet.ora
    TNS-03505: Failed to resolve namewhere's the problem....
    Message was edited by:
    user594309

  • Error while trying to retrieve text for errror ORA-12154

    Hi,
    I have an Oracle8 database installed and able to connect it from my Desktop running Windows 2000 Server.
    I have setup my PL/SQL developer ver 6 on my laptop running Windows XP Pro SP2 and the oracle client with Net8 service setup. Able to logon via sqlplus command.
    However, when i run the PL/SQL program and enter the logon info, it couldn't connect and prompt me this error.
    Thanks for your help in advance.
    Warmest regards,
    Tony Ang
    Singapore
    MSN: [email protected]

    Tony,
    Can you please post the error details that you are getting while connecting from PL/SQL developer.
    The error ORA-12154 is generaly TNS:could not resolve service name .
    Also perfrom these steps
    1)Verify that a tnsnames.ora file exists.
    2)Verify that there are not multiple copies of the tnsnames.ora file.
    3)In the tnsnames.ora file, verify that the net service name specified in your connect string is mapped to a connect descriptor.
    4)Verify that there are no duplicate copies of the sqlnet.ora file.
    5)If you are using domain names, verify that your sqlnet.ora file contains a NAMES.DEFAULT_DOMAIN parameter. If this parameter does not exist, you must specify the domain name in your connect string.
    6)If you are not using domain names, and this parameter exists, delete it or disable it by commenting it out.
    7)If you are connecting from a login dialog box, verify that you are not placing an "@" symbol before your connect net service name.
    Hope this helps.
    Thanks
    Rajeev

Maybe you are looking for

  • Excel spreadsheets with macro's

    Good day Excel spreadsheets with macro's created in Windows does not work on my Macbook (excel for mac 2011), even if I enable macro's. I do not create these spreadsheets myself. Cn anyone assist please? Thank you for your time.

  • Delete Emails from Web Server

    Hello, Is it possible to delete my emails from the BB web-server before they are "pushed" to my handheld? I have not used my phone in a while due to some travels and it is unnecessary for all my messages to get downloaded to my handheld. Thank you fo

  • Is there a good advanced review on applet-servlet communication

    I am working on a web application and unfortunately experiencing a lot of trouble trying to use an applet as front end which interacts with a couple of servlets running on Tomcat. I need to get data from one servlet and send data to another. There is

  • Apache 2.0.5.5 and WebLogic 9.1 on Solaris 10

    Good day. We were setting up an Apache 2.0.55 server as the web server for a WebLogic 9.1 server. They are on different machines. We were able to setup successfully both servers and tried them on their own server. The problem begin when we connect th

  • Send ADOBE FORM as email

    hi all, Does anybody knows what all parameters to be passed to FM 'FP_JOB_OPEN' to send the adobe form as an email .