Unable to connect SQLState=08004 Oracle ODBC Ora-12154

Hi Sir/Madam,
I am Wayne, I need your help to resolve my issue in oracle database 11g.
1. I installed Oracle 11g Personal Edition, Release 11.2.0.10, 64bits,
2. Test connection(oracle in oradb11g_home1) is successed in data source, odbc,
2. Then, I tried to connect this with Visual Basic(Visual Studio 2010), data connections, add connections, .net framework data provider for oracle,
3. but I received an error message as "Attempt to load Oracle client libraries threw BadImageFormatException."
4. Then, I download the ODAC(11.2.0.3.0) for 64bits, and installed,
5. I tried to test the connection, but failed with error message as stated above,
"Unable to connect SQLState=08004 Oracle ODBC Ora-12154: TNS:could not resolve the connect identifier specified"
Could you please give me a help on this, do I need to install ODAC for 11g Personal Edition ? Please advice accordingly, thanks.

Hi;
Please review:
https://kr.forums.oracle.com/forums/thread.jspa?threadID=2309520
http://stackoverflow.com/questions/206055/oracle-ora-12154-tns-could-not-resolve-service-name-error
Regard
Helios

Similar Messages

  • 08004:[oracle][odbc][ora]ora-12154: TNS: could not resolve the connect ....

    This error has just recently started happening, and i cannot figure out why, i have not changed anything in tnsnames.ora file.
    i am always able to "test connection" in ODBC. even when i get the error in crystal.
    so i restart Crystal, and i am able to connect to db.
    strange thing is that always when i do a tnsping to db i always get the message :-
    TNS-12541: TNS:no listener
    Any ideas ?

    Re: 08004:[oracle][odbc][ora]ora-12154: TNS: could not resolve the connect ....  
    Posted: Aug 22, 2011 5:56 PM     in response to: John Fleming          
         Edit                          Reply
    I am receiving a similar error.
    Failed to open the connection.
    Details: 08004:[Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve the connect identifier specified [Database Vendor Code: 12154]
    I've seen all sorts of discussion on the intertubes about possible fixes however, none stated are practical or they do not address my error specifically. I've exhausted resources on the net as well as those available to me.
    I'm currently running SAP Crystal Reports 2011 on WIN7 64bit and using Oracle in OraClient 10g_home1.
    Please let me know what insight you have. I cannot roll back to previous versions of Windows nor less encryption.
    Thank you for your time.

  • ODBC - ORA-12154: TNS:could not resolfe service name

    I am receiving the following error when doing a Test Connection on an System DSN (Oracle ODBC Driver Configuration).
    Unable to connect
    SQState=08004
    [Oracle][ODBC][Ora]ORA-12154: TNS:could not resolfe service name
    I am using the Oracle 9.02 ODBC driver. Database server is EE 10.1.0.3.
    An OK status is resturned by TNSPING
    I am able to login to the database using SQLPLUS.
    The Windows user account that has this problem does not have local admin rights. If I use a Windows user account that has local admin rights, the Test Connection works.
    I was ABLE to successfully create other System DSN using the user account that does not have local admin.
    When I first tried to create a System DSN the following error occured:
    ODBC--call failed.
    Specified driver could not be loaded due to system error 5 (Oracle in Oracle920).(#160)
    I did the following to resolve:
    Login as Administrator
    Open MY COMPUTER
    Navigate to the parent of your ORACLE install directory
    Right Click on the ORACLE directory and click PROPERTIES
    Click the SECURITY tab
    Click the ADVANCED button
    Check the “Replace permission entries on all child objects with entries shown here that apply to child objects” box
    Click OK
    This corrected the system error 5 error, but now have the ORA-12154: TNS:could not resolfe service name
    error.
    Any advise on how to correct the problem would be greatly appreciated.
    Thanks.

    For Me no need to change TNS_ADMIN
    but what was indicated 'changing security advanced parameters'. was ok for me :
    ora8i

  • Oracle][ODBC][Ora]Ora-12154:

    Following Proplem
    ODBC Version 3.520.6XXX
    when I test a connection I got the message
    SQLState=08004
    [Oracle][ODBC][Ora]Ora-12154: TNS:could not resolve the connect identifier specified.
    I use a Oracle 10 g Database and Oracle 9.x
    When I try to connect to my localy installed 10g DB the ODBC works fine but if I try to connect to any of the 9.x Databases I got that error.
    Any Ideas
    regards

    Assuming you are using local naming, did you create entries in your tnsnames.ora file for the remote machine(s)?
    Do you have multiple Oracle Home's on this machine? If so, you will need to have multiple tnsnames.ora files or you will have to create a TNS_ADMIN environment variable and point it at the one tnsnames.ora file that you want all the Oracle Home's to use.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Unable to connect SQL State=S1000 [Oracle][ODBC][Ora]ORA-12170:

    Hi all,
    I have an Windows XP OS with SP3.
    I have installed the Oracle 11g server.
    On trying to connect to the ODBC connection, i get the following error message:
    Unable to connect SQL State=S1000 [Oracle][ODBC][Ora]ORA-12170: TNS: Connect timeout occured
    On trying the tnsping,
    TNS Ping Utility for 32-bit Windows: Version 11.1.0.6.0 - Production on 09-OCT-2
    011 13:11:05
    Copyright (c) 1997, 2007, Oracle. All rights reserved.
    Used parameter files:
    E:\app\Gautam\product\11.1.0\db_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.
    5.207)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl))
    TNS-12535: TNS:operation timed out
    On trying to connect with SQL Developer, i get the following error:
    Status: Failure - Test failed: Io Exception: The Network Adapter could not establish the connection
    However i am able to connect to the same using SQL Plus
    Another issue that occurs is that the Oracle Enterprise Manager shows the following error after a while:
    Agent Connection to Instance
    Status Failed
    Details ORA-12505: TNS:listener does not currently know of SID given in connect descriptor (DBD ERROR: OCIServerAttach)
    The following services are all up during this point of time:
    OracleDBConsoleorcl
    OracleOraDb11g_home1TNSListener
    OracleServiceORCL
    Any help in this regard will be very useful as this is hindering the progress of my work.
    Thanks in advance for the help.
    - Gautam

    841683 wrote:
    Hi,
    I did try and delete my listener.ora and then create a new one..
    That did not solve my issue..
    What are the steps for configuring the listener again.
    Thanks for the response..
    - Gautamno listener.ora file is required.
    just do as below
    lsnrctl start

  • Unable to connect to my Oracle Database with Microsoft's ODBC for Oracle driver

    I am unable to connect to my Oracle Database with Microsoft's ODBC for Oracle driver vers.2.573.4202.00 on a Win98 computer.
    First, I create a "Net Service Name" in order for the ODBC Driver to find the Oracle server. I then created a System DSN in the ODBC Data Source Administrator and assigned the "Net Server Name" as the server in the "Microsoft ODBC for Oracle Setup". But when I test this DSN with Oracle's provided "Oracle ODBC 32Bit Test vers.2.5.3.1.0" I get an error:
    SQLSTATE: NA000
    Native Error Code:0
    Driver Message:[Microsoft][ODBC driver for Oracle][Oracle]
    This error occurred on all three Win98 computers I have tried. It does however, seem to work fine on WinNT 4.0, and believe it or not, on the two Win95 computers I have tried.
    Does anyone have any fixes, recomendations, or advice?
    Thank you,
    Eric Edwards
    null

    Why are yu not using the Oracle ODBC driver - these can be downloaded from OTN.
    Have you set up a tnsnames.ora entry for the Oracle database you want to connect to? Does this name have a domain name added to it? Check %ORACLE_HOME%\network\admin\tnsnames.ora for the service name. If it is a name of the form :
    name.domain.subdomain
    then you should try using this full name when configuring the ODBC data source.
    null

  • [S1000][unixODBC][Oracle][ODBC][Ora]ORA-03134: Connections to this server version are no longer supported

    Hello,
    I'm using  unixODBC with ODBC Oracle client 11 (Debian 7) to connect to Oracle database version 9.2.0.6 (Solaris 10),  but show me this message:
    [S1000][unixODBC][Oracle][ODBC][Ora]ORA-03134: Connections to this server version are no longer supported.
    Note: I can connect to Oracle database version 10+.
    Please can you help me.
    Thank you

    Are you positive you're using version 11 Oracle client and 9206 database?  That combination should work, and Ive never seen that error message occur for anything but the expected reason.  
    If you have MOS access you can check the client/database compatibility with the following note:
    Client / Server / Interoperability Support Matrix For Different Oracle Versions (Doc ID 207303.1)
    Hope it helps,
    Greg

  • Unable to connect SQLState=IM004 ODBC Driver Manager] Driver's SQLAllocHand

    Hi All,
    When I have tried to create dsn connection it start throwing the following error,
    do you have any idea how to resolve this..
    Unable to connect SQLState=IM004 ODBC Driver Manager] Driver's SQLAllocHand

    Install an updated version of the Microsoft Data Access Components (MDAC) from Microsoft @ <http://www.microsoft.com/data>. The version of the ODBC Driver Manager on the failing machine isn't aware that ODBC 3.51 is a valid version of the protocol.
    Justin

  • [Oracle][ODBC][Ora]ORA-03114 not connected

    I' have oracle 10g express edition.
    I use a c++ windows service administration connections and a Visual Basic program.
    Vb invoke to c++ service, this create the connection and keep.
    Vb invoke the interface exposed to c++ service to execute sentence and when c++ service want execute, this error appears [Oracle][ODBC][Ora]ORA-03114 not connected.
    What happens???
    Thanks..

    Are you using a Vb .net ?
    if yes look for this link http://support.microsoft.com/default.aspx?scid=kb;en-us;830173
    If no, the connection when using sqlplus works fine ?
    cheers

  • Unable to connect SQLState=IM003

    Hi all
    am new to OBIEE. I have Installed OBIEE and oracle 10g and when am trying to create Datasource connection its giving following error.
    'Unable to connect
    SQLState=IM003
    specified driver could not able to load due to system error 998(oracle in oraDb10g_home1)'
    Please advice me..
    Thanks
    Raj

    Hi,
    Are you able to create DSN for db? Did you test connection?
    Check this....http://forums.oracle.com/forums/thread.jspa?messageID=2556992
    Oracle ODBC driver configuration
    Problem is with path variables.Verify path variables and syntax carefully.At this location...Start -> Control Panel -> System -> Advanced -> Environment Variables
    http://www.dba-oracle.com/t_pc_rac_variables.htm
    Regards,
    Srikanth

  • Unable to connect / SQLState=01000

    New install of
    SQL*Plus 8.1.7.0.0
    and
    Oracle 8i ODBC Driver 8.1.7.2.0
    It works on my personal machine,
    but on the production machine,
    I get following error
    ------- verbatim of error ---
    Unable to connect
    SQLState=01000
    The driver returned invalid (or
    failed to return)
    SQL_DRIVER_ODBC_VER: 03.51
    -------- end verbatim
    null

    Install an updated version of the Microsoft Data Access Components (MDAC) from Microsoft @ <http://www.microsoft.com/data>. The version of the ODBC Driver Manager on the failing machine isn't aware that ODBC 3.51 is a valid version of the protocol.
    Justin

  • Unable to connect Toad for Oracle 9.6 to oracle 10g in a windows 7 64-bit

    Hey friends I am Unable to connect toad with oracle 10 in a windows 7 64 bit environment
    Please Help
    Any advice will be appreciated

    read this one :
    Toad ORA-12154: TNS:could not resolve the connect identifier specified

  • [Oracle][ODBC][Ora]ORA-01017: invalid username/password; logon denied

    ---cmd prompt------------------------
    H:\>sqlplus scott/tiger
    SQL*Plus: Release 10.2.0.3.0 - Production on Sun Mar 28 16:54:53 2010
    Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL>
    -------------ASP -------------------------
    <%@ Language="JScript" %>
    <%
         var uname=Request.Form("un");
         var upwd=Request.Form("pwd");
         Response.Write("User Name is " + uname + "<br>" + "password is " + upwd);
         var sql = "select * from emp";
         var conn = Server.CreateObject("ADODB.Connection");
         var rs = Server.CreateObject("ADODB.Recordset");
         conn.Open = "Driver={Oracle in OraDb10g_home1};DBQ=tcp;UID='uname';PWD='upwd';";
         rs.Open(sql, conn, 3, 3);
    %>
    ------------------Error------------------
    User Name is scott
    Password is tiger
    Microsoft OLE DB Provider for ODBC Drivers error '80040e4d'
    [Oracle][ODBC][Ora]ORA-01017: invalid username/password; logon denied
    /prc/main.asp, line 11
    variable uname has valid username that is 'scott' and variable upwd as valid password ie 'tiger' both entered by the user.
    with the same username and password i am able to connect to the database from the command prompt.
    but when i tried using odbc through ASP(javascript) i am getting above error.
    and one more thing if i mention username and password directly in UID and PWD it works but when i pass it through variables it wont work.
    since variables have username and password it has to take from it directly...........manually i cant give,dynamically it has to take.
    plz help me out....how i can pass the parameter to that UID and PWD.
    conn.Open = "Driver={Oracle in OraDb10g_home1};DBQ=tcp;UID='uname';PWD='upwd';";
    help plz
    conn.Open = "Driver={Oracle in OraDb10g_home1};DBQ=tcp;UID='uname';PWD='upwd';"; --- does not work
    conn.Open = "Driver={Oracle in OraDb10g_home1};DBQ=tcp;UID=scott;PWD=tiger;"; --- works
    but i want the 1st statement to work........since user gives the password and username dynamically.
    Thanks
    Veeresh S

    conn.Open("DSN=tcp;UID="+uname+";PWD="+upwd+";");
    this solved me
    thanks for all who had vied this..
    veeresh

  • UPDATE problem - [Oracle][ODBC][Ora]ORA-01456

    I try to UPDATE a table using following driver, url and syntax :
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); // load driver
    Connection conn = DriverManager.getConnection("jdbc:odbc:JDEV", "salgsinfo", "si"); // get connection
    but receives this answer :
    java.sql.SQLException: [Oracle][ODBC][Ora]ORA-01456: INSERT-, DELETE- or UPDATE-statements cannot be done in READ ONLY-transaction
    the user is granted dba priviliges, what can i do ?
    Niels

    ORA-01456:may not perform insert/delete/update operation inside a READONLY transaction
    Cause:A non-DDL INSERT/DELETE/UPDATE or SELECT FOR UPDATE operation was attempted.
    Action:Commit or roll back the current transaction, then retry the operation.

  • 'VTK-1000: Unable to connect to the Oracle Management Server

    Hello, I installed ORA 8.1.7 on Win2k, everything went smooth apart from I can't run OEM now, brings the following error:
    'VTK-1000: Unable to connect to the Oracle Management Server. Please verify that you have entered the correct host name and the status of the Oracle Management Server'
    I recall it was ok for NT, there was OracleOra817ManagementServer Service and now there is no any for Win2k..
    If you know any way I can make it up and running please help
    Thanks in advance
    Marina

    services: management server service started successfully.
    but OracleOra90Agent not yet started.
    the current scenario with my oem with login as management server has started with the user:sysman
    password:oem_temp
    still OracleOra90Agent has not started.
    inside oem server management,the discovery wizard is not cofiguring the nodes.
    kindly tell me, that is it due to the Agent, or SOMETHING ELSE.
    please do reply, thanks

Maybe you are looking for

  • Adding Internet-Printing role ends with error 0x800f0922

    I spend the last two days googling and troubleshooting the issue but no luck. Tried so far: “sfc /scannow” fsutil resource setautoreset true C:\ DISM /online /Cleanup-Image /restorehealth Still ending up with error 0x800f0922. The machine is a deskto

  • Configure ethernet adapter for MacBook Air

    We use a dock with a MacBook Air.  Both were purchased about six months ago.  The dock has an ethernet port.  Under the Network Preferences I only see a wireless connection. Will I see the ethernet connection when docked?  If not how can I be sure th

  • Printing Business Graphics

    Hi all, Using WD Business Graphics I've generated a Gantt chart in my application. Now I want to print that chart. I tried the simplest way- right clicked the chart and gave print. But it printed only a single page and the chart being a lengthy one,

  • Using constructor

    i want to know how to use constructors to send variables from one class(in file)to another class(in another file) please i want code example for that

  • Error deploying application: error retrieving component [ caching Stub] Pro

    Hi we are using web logic 6.1, everything was working fine untill we restarted the server. once i restarted i got this error... Error deploying application m1_model_responsecurvefacility.jar: error retrieving component [Caching Stub]Proxy for m192:Ap