Help to getrid off "ORA 12154 error"

??Why i am getting "DBMS Driver Exception was: java.sql.SQLException Error while trying to retrive text for error ORA-12154-(xyz/******@pqr)"

You have to make sure you set the ORACLE_HOME environment variable.
sree
"M.N.Jagadeesh" <[email protected]> wrote in message
news:3c457fc1$[email protected]..
??Why i am getting "DBMS Driver Exception was: java.sql.SQLException Error
while trying to retrive text for error ORA-12154-(xyz/******@pqr)"

Similar Messages

  • Ora 12154 error help needed

    Hi,
    I am a newbie in oracle forms. I have installed oracle database 10gr2 on windows xp in c directory. In D drive i have installed oracle developer suite 10g. When i try to connect database from developer suite i receive ORA 12154 error.
    Do i need to change tnsnames.ora in developer suites 'D' directory or in database'C' directory.
    Please explain me in steps so that i can configure developer suite.
    Thank You

    Forms will use its own Tnsnames.ora file so create alias for it
    Run NetCA from
    START > PROGRAMS > ORACLE - Oracle HOME name > Configuration and Migration tools > Net Configuration Assistant
    and create Alias for Local naming
    also make sure the Listener and Database is up and running
    Baig,
    [My Oracle Blog|http://baigsorcl.blogspot.com/]

  • Ora 12154 error when trying to add a database to VS Server Explorer

    Hi Everyone,
    I get the Ora 12154 error when trying to add a database to VS Server Explorer.
    How do I get around this problem.
    The database service is running and I can connect to the database with pl/sql.
    I can also tnsping the database and that is also ok.
    Looks like a problem with the odp.net software.
    I am running the 32 bit Oracle 11g on a Windows7 Home Premium 64 bit PC.
    I am new to this stuff so please help me step by step.
    Thanks.
    Emad

    Hi J. B.
    I have a question related to this. After you told me about the //host:1521/database alias I tried it in a VB 2008 program and it worked and returned data. At least I know that it can be used in a VB program without issues. I just now need to be able to add a connection with the Server Explorer.
    Anyway here is the VB coding I used. I'm new to this and still learning:
    Imports Oracle.DataAccess.Client ' Visual Basic ODP.NET Oracle managed provider
    Public Class Form1
    ' String to connect to the database.
    Dim strConnectionString As String = _
    "Data Source=//emad-pc:1521/emadeva;User ID=scott;Password=tiger;" '
    ' Associate the connection string with a connection object.
    Dim objOracleConnection As New OracleConnection(strConnectionString)
    ' SQL query for returning data rows.
    Dim strSqlQuery As String = _
    "Select dname, deptno " & _
    "From dept " & _
    "Where deptno = 10" '
    ' Command object to make this query work.
    Dim objOracleCommand As New OracleCommand(strSqlQuery, objOracleConnection)
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    ' Identify what type of command is being used.
    objOracleCommand.CommandType = CommandType.Text
    Try
    objOracleConnection.Open()
    ' Set up a Data Reader and load it with data.
    Dim objOracleDataReader As OracleDataReader = _
    objOracleCommand.ExecuteReader()
    objOracleDataReader.Read()
    ' Convert the department number to a string.
    lblDepartmentNumberFromOracle.Text = _
    CStr(objOracleDataReader.Item("deptno"))
    Catch ex As Exception
    MessageBox.Show(ex.Message, "Error")
    End Try
    End Sub
    End Class
    I still want to thank you for the help you are providing.
    Truly,
    Emad

  • ORA-12154 Error loading the I$

    Hi All,
    When I try to run an interface it is failing with below error when loading the data to I$ table. It succesfully created the I$ table but failing when loading the data only. Can anyone help me with this
    ORA-12154: TNS:could not resolve the connect identifier specified,
    Thanks

    Hi Phil,
    I am running the interface with a linux agent. Below is the code which is failing. staging area is same as the target. source an target conection is the same. I checked the TNS file also for the connection details. It is good.
    insert /*+ APPEND */ into MANHATTANDR.I$_ASN_HDR
         SHPMT_NBR,
         TO_WHSE,
         MANIF_NBR,
         MANIF_TYPE,
         BOL,
         SHIP_VIA,
         TRLR_NBR,
         WORK_ORD_NBR,
         CUT_NBR,
         MFG_PLNT,
         ASN_DTL_TYPE,
         ASN_ORGN_TYPE,
         RECV_AGAINST_ASN,
         BUYER_CODE,
         REP_NAME,
         PRO_NBR,
         DC_ORD_NBR,
         CONTRAC_LOCN,
         WHSE_XFER_FLAG,
         QUAL_CHK_HOLD_UPON_RCPT,
         QUAL_AUDIT_PCNT,
         CASES_SHPD,
         UNITS_SHPD,
         CASES_RCVD,
         UNITS_RCVD,
         SHPD_DATE,
         ARRIVAL_DATE_TIME,
         FIRST_RCPT_DATE_TIME,
         LAST_RCPT_DATE_TIME,
         VERF_DATE_TIME,
         VOL,
         TOTAL_WT,
         AUDIT_STAT_CODE,
         STAT_CODE,
         LABEL_PRT,
         REF_CODE_1,
         REF_FIELD_1,
         REF_CODE_2,
         REF_FIELD_2,
         REF_CODE_3,
         REF_FIELD_3,
         MISC_INSTR_CODE_1,
         MISC_INSTR_CODE_2,
         CREATE_DATE_TIME,
         MOD_DATE_TIME,
         USER_ID,
         CNTRY_OF_ORGN,
         IMPORT_VESSEL,
         IMPORT_VYGE_NBR,
         EXPORT_DATE_TIME,
         IMPORT_DATE_TIME,
         ZONE_ADMSN_NBR,
         PORT_OF_LADING,
         PORT_OF_UNLADING,
         CUST_SEAL_NBR,
         INWARD_FWD_MANIF,
         IN_BOND_CARR,
         IN_TRANSIT_NBR,
         IN_TRANSIT_DATE_TIME,
         IN_TRANSIT_PORT,
         ZONE_PAYMENT_STAT,
         PLAN_ID,
         ASN_SHPMT_TYPE,
         SUPP_FTZ_ASN,
         STOP_SEQ,
         TRACTOR_NBR,
         INITIATE_FLAG,
         ILM_APPT_NBR,
         INBD_LOAD_ID,
         TMS_SHPMT_NBR,
         SOURCE_ID
    select     
         ASN_HDR.SHPMT_NBR,
         ASN_HDR.TO_WHSE,
         ASN_HDR.MANIF_NBR,
         ASN_HDR.MANIF_TYPE,
         ASN_HDR.BOL,
         ASN_HDR.SHIP_VIA,
         ASN_HDR.TRLR_NBR,
         ASN_HDR.WORK_ORD_NBR,
         ASN_HDR.CUT_NBR,
         ASN_HDR.MFG_PLNT,
         ASN_HDR.ASN_DTL_TYPE,
         ASN_HDR.ASN_ORGN_TYPE,
         ASN_HDR.RECV_AGAINST_ASN,
         ASN_HDR.BUYER_CODE,
         ASN_HDR.REP_NAME,
         ASN_HDR.PRO_NBR,
         ASN_HDR.DC_ORD_NBR,
         ASN_HDR.CONTRAC_LOCN,
         ASN_HDR.WHSE_XFER_FLAG,
         ASN_HDR.QUAL_CHK_HOLD_UPON_RCPT,
         ASN_HDR.QUAL_AUDIT_PCNT,
         ASN_HDR.CASES_SHPD,
         ASN_HDR.UNITS_SHPD,
         ASN_HDR.CASES_RCVD,
         ASN_HDR.UNITS_RCVD,
         ASN_HDR.SHPD_DATE,
         ASN_HDR.ARRIVAL_DATE_TIME,
         ASN_HDR.FIRST_RCPT_DATE_TIME,
         ASN_HDR.LAST_RCPT_DATE_TIME,
         ASN_HDR.VERF_DATE_TIME,
         ASN_HDR.VOL,
         ASN_HDR.TOTAL_WT,
         ASN_HDR.AUDIT_STAT_CODE,
         ASN_HDR.STAT_CODE,
         ASN_HDR.LABEL_PRT,
         ASN_HDR.REF_CODE_1,
         ASN_HDR.REF_FIELD_1,
         ASN_HDR.REF_CODE_2,
         ASN_HDR.REF_FIELD_2,
         ASN_HDR.REF_CODE_3,
         ASN_HDR.REF_FIELD_3,
         ASN_HDR.MISC_INSTR_CODE_1,
         ASN_HDR.MISC_INSTR_CODE_2,
         ASN_HDR.CREATE_DATE_TIME,
         ASN_HDR.MOD_DATE_TIME,
         ASN_HDR.USER_ID,
         ASN_HDR.CNTRY_OF_ORGN,
         ASN_HDR.IMPORT_VESSEL,
         ASN_HDR.IMPORT_VYGE_NBR,
         ASN_HDR.EXPORT_DATE_TIME,
         ASN_HDR.IMPORT_DATE_TIME,
         ASN_HDR.ZONE_ADMSN_NBR,
         ASN_HDR.PORT_OF_LADING,
         ASN_HDR.PORT_OF_UNLADING,
         ASN_HDR.CUST_SEAL_NBR,
         ASN_HDR.INWARD_FWD_MANIF,
         ASN_HDR.IN_BOND_CARR,
         ASN_HDR.IN_TRANSIT_NBR,
         ASN_HDR.IN_TRANSIT_DATE_TIME,
         ASN_HDR.IN_TRANSIT_PORT,
         ASN_HDR.ZONE_PAYMENT_STAT,
         ASN_HDR.PLAN_ID,
         ASN_HDR.ASN_SHPMT_TYPE,
         ASN_HDR.SUPP_FTZ_ASN,
         ASN_HDR.STOP_SEQ,
         ASN_HDR.TRACTOR_NBR,
         ASN_HDR.INITIATE_FLAG,
         ASN_HDR.ILM_APPT_NBR,
         ASN_HDR.INBD_LOAD_ID,
         ASN_HDR.TMS_SHPMT_NBR,
         #MANHATTAN.VERIFY_SOURCE
    from     MANHATTANDR.SYN_ASN_HDR ASN_HDR
    where     (1=1)

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

  • ORA-12154 Error After Install of Enterprise Manager

    I have a new new laptop with minimal software installed. Everything was fine and I was able to connect to 4 different Oracle 9i databases.
    This morning I installed Oracle Enterprise Manager (10g) and now I get the dreaded ORA-12154 error.
    I now find a copy of TNSNAMES.ORA in three places. I have copied the correct version to the two new 10G locations and I have verified that all three copies of TNSNAMES.ORA and SQLNET.ORA are correct and identical.
    Do anybody have any idea what else could be wrong?

    I am certain the TNSNAMES.ORA file is fine as it is "pushed" from a central IT department. I have compared it to the one on a second computer (which has only 9i installed) in my office and they are identical.
    I examined the Oracle 9i directories and there was no LISTENER.ORA anywhere. On the 9i only computer the command - C:\>dir listener.ora /s /p executed in a DOS window returned no files.
    Everything was working fine until I installed Enterprise Manager 10g (10.2.0.2.1).
    I have TOAD installed and it connects to both of the 9i development and production databases, so I know the TNSNAMES.ORA is okay.
    It woudl seem that there is a conflict between 10g and 9i Developer/2000.

  • A question about CREATE PUBLIC DATABASE LINK and ORA-12154 error

    Dear all,
    I have a problem about public database link creation and I would appreciate if you could kindly give me a hand. I have the following connection parameters in my
    tnsnames.ora file:
    DGPAPROD.WORLD =
         (DESCRIPTION =
           (ADDRESS_LIST =
            (ADDRESS = (COMMUNITY=tcp.world)
              (PROTOCOL=TCP)(HOST=ORASR001)(PORT=1521)
           (CONNECT_DATA = (SID = DGPAPROD))
    ...Having the above mentioned parameters I can connect to this remote database directly in a SQL*Plus shell:
    $ sqlplus username/[email protected] works pretty well and the connection is established without any problem.
    Now, what I would like to do is to create a public database link to this remote database in order to avoid the user/connection switching for viewing the
    content of this database. I proceeded according to the syntax indicated in the Oracle online documentation:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_5005.htm#SQLRF01205
    Therefore I run the following in order to create a public database link
    CREATE PUBLIC DATABASE LINK SR001_dblink CONNECT TO user IDENTIFIED BY password USING 'DGPAPROD.WORLD';Apparently there is no error and the link is created successfully. However it cannot resolve the remote host and whenever I run the following query
    (myenterprise is the name of a table in that remote database)
    SELECT *
    FROM myenterprise@SR001_dblink
    ERROR at line 1:
    ORA-12154: TNS:could not resolve the connect identifier specifiedWhat causes this problem?
    Thanks in advance,
    Kind Regards,
    Dariyoosh

    spajdy wrote:
    You must have defined DGPAPROD.WORLD in tnsnames.oar on server where you DB is runnig.Hello there,
    Thanks a lot for this nice solution. In fact I had to add the connection parameters into the tnsnames.ora file of the server on which the link was created (not the tnsnames.ora of my oracle client stored on the localhost)
    After a bit googling I found another solution that allows to create the database link:
    CREATE PUBLIC DATABASE LINK SR001_dblink CONNECT TO user IDENTIFIED BY password USING '(DESCRIPTION =  (ADDRESS_LIST =  (ADDRESS = (COMMUNITY=tcp.world)
    (PROTOCOL=TCP)(HOST=ip_adresse)(PORT=1521)))(CONNECT_DATA = (SID = GPAPROD)))';Thanks a lot for your help!
    Kind Regards,
    Dariyoosh
    Edited by: dariyoosh on 18 nov. 2009 07:15

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

  • Hi...Please help...Getting ORA 12154 TNS Listener could not resolve...

    Hi,
    I have just loaded Oracle 10g Rel 2 in Win 2003 Enterprise Edition.
    But when I try to connect to sqlplus, I am getting ORA -12154 : TNS: Listener could not resolve the connect identified specified.
    I have registered the database, the listener and tnsnames have been set correctly.
    I have also set the Oracle Home environment variable.
    Still getting the error.
    Any help will be highly appreciated.
    Thanks,

    I agree
    ORA-12145: (does not exist in the standard manuals)
    ORA-12154: TNS:could not resolve the connect identifier specified
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    ORA-12541: TNS:no listener
    It is pretty easy to fat-finger these 4 message numbers. As a result, when a person has the actual and complete error message and an error number for a different message, it is usually not a bad idea to use the actual message. (Based on transposing only 3 digits compared to typing over 50 characters correctly.)
    In this case the OP has really bollixed things: Subject implies a true 12154, text in the thread is an actual 12514 but mentions 12154.
    As a result, there are several potentially correct answers, depending on the interpretation of the question.
    - sb92075 gave the correct answer based on the number
    - I gave the correct answer based on the message in the thread
    - Anurag and Ed gave the correct answer based on 'the question is not formed correctly'
    Edited by: Hans Forbrich on Jan 24, 2010 7:13 AM
    (BTW - ORA-12415 and ORA-12451 are the other permutations ... described http://download.oracle.com/docs/cd/B19306_01/server.102/b14219/e12400.htm#sthref3357)

  • ORA-12154: Error when connecting to asm instance

    hi all, I am now facing new problem with asm of clusterware, I failed to connect to asm instance, there is how I did it:
    sqlplus /nologSQL*Plus: Release 11.2.0.1.0 Production on Wed Jul 7 04:58:52 2010
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    SQL> connect sys@+ASM as sysasm
    Enter password:
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    I consider listener is correct configed.
    lsnrctl statusLSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 07-JUL-2010 08:51:49
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Produ
    ction
    Start Date 05-JUL-2010 22:12:29
    Uptime 1 days 6 hr. 39 min. 23 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File E:\app\11.2.0\grid\network\admin\listener.ora
    Listener Log File e:\app\11.2.0\grid\log\diag\tnslsnr\rac1\listener\aler
    t\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\LISTENERipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.110)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.112)(PORT=1521)))
    Services Summary...
    Service "+ASM" has 1 instance(s).
    Instance "+asm2", status READY, has 1 handler(s) for this service...
    Service "itpub" has 1 instance(s).
    Instance "itpub2", status READY, has 1 handler(s) for this service...
    Service "itpubXDB" has 1 instance(s).
    Instance "itpub2", status READY, has 1 handler(s) for this service...
    The command completed successfully
    How to resolve the promblem? Best regards..

    thank you for you kind.. I forgot it... but after I modify tnsname.ora, Error number changed..
    tnsname.ora:
    # tnsnames.ora Network Configuration File: E:\oracle\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ITPUB =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = rac-cluster-scan)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = itpub)
    +ASM =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = rac-cluster-scan)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = +ASM)
    *>sqlplus /nolog*
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Jul 7 12:50:07 2010
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    SQL> connect sys@+asm as sysasm
    Enter password:
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    SQL>
    tnsping +asmTNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 07-JUL-2
    010 12:51:09
    Copyright (c) 1997, 2010, Oracle. All rights reserved.
    Used parameter files:
    E:\oracle\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = rac-clus
    ter-scan)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = +as
    m)))
    OK (20 msec)

  • ORA-12154 error when logging into SQL*Plus

    I installed Oracle 10g (10.2.0.3.0) server on a Hyper-V virtual machine running Windows Server 2008 Enterprise as a standalone server. I did a software only install and then ran the Database Configuration Assistant to create a database. I also ran the Oracle Net Configuration Assistant to configure the Listener, Naming Methods, and Local Net Service Name. I ran the test in the Net Configuration Assistant and it was successful after I changed the login credentials to use the SYSTEM account and password. TNSPING of the net service name is successful. I can also successfully connect to the database via Enterprise Manager using the SYSTEM account and password. What I can NOT do is connect locally to the database via SQL*Plus (either through the gui or command line). I get the following error:
    ERROR:
    ORA-12154: TNS: Could not resolve the connect identifier specified
    I've checked and double-checked the LISTENER.ORA, SQLNET.ORA, and TNSNAMES.ORA files. They all seem correct to me, especially since I used the configuration assistants to create them.
    Anyone have an idea what might be wrong or what I can check next? Any help would be appreciated!
    Thanks!

    They all seem correct to me, especially since I used the configuration assistants to create them. Garbage In, Garbage Out.
    Since Oracle throws an error, I strongly suspect you are mistaken.
    Simply put, you are using something like "@REMOTE" someplace & somehow and the error indicates SQL*Net does not know to what @REMOTE refers.
    How many systems are involved, names, OS version, etc?
    post connection string & post contents of tnsnames.ora file.

  • If your getting the ora-12154 error...

    If you have followed the directions provided and swear you have done everything right... then try this.
    Check to make sure the tnsnames.ora and sqlnet.ora files are actually .ORA files. I recently started a new job and was tasked with getting instant client working with a VB app. Anyhow, I installed instant client and added the enviroment variables etc etc. I kept getting the 12154 error when testing a sqlplus connection and I couldn't understand why.
    Well since this was a new computer I was working on, I hadn't change the setting when viewing files so it was hiding the file type from me and all I could see was "tnsnames.ora" when the file was really "tnsnames.ora.txt". A day later I figured it out and felt pretty stupid!
    Windows Explorer | Tools | Folder Options | View | Uncheck "Hide extensions for known file types"
    Check those file types people...

    I think you had done a "terrific" job helping novices like me to check/fix the error with the hidden tnsnames.ora.txt extension. I think it is very useful information.
    Thank a lot.

  • 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

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

Maybe you are looking for