Instant Client with Entity Framework (ODAC 11.2.0.2.40 Beta)

Is this at all possible (with the current Beta version of ODAC) using the Instant Client installation?
I have got this working using the ODAC1120240 innstallation. But it would be nice for our customers to not having go through this (not all of them are tech savvy:-).
I would like to avoid spending hours hunting for documentation, forums etc if this is simply not possible at the moment.
IF it is possible, why do I get the following error:
===============================================================================
"Unhandled Exception: System.ArgumentException: The specified store provider cannot be found in the configuration, or is
not valid. ---> System.ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be inst
alled.
at System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName)
at System.Data.EntityClient.EntityConnection.GetFactory(String providerString)
--- End of inner exception stack trace ---
at System.Data.EntityClient.EntityConnection.GetFactory(String providerString)
at System.Data.EntityClient.EntityConnection.ChangeConnectionString(String newConnectionString)
at System.Data.EntityClient.EntityConnection..ctor(String connectionString)
at System.Data.Objects.ObjectContext.CreateEntityConnection(String connectionString)
at System.Data.Objects.ObjectContext..ctor(String connectionString, String defaultContainerName)
at KDO.MessageCenterModel.Entities..ctor(String connectionString)
at ConsoleApplication2.Program.Main(String[] args)"
===============================================================================
In the same directory as my application, I have these DLLs:
oci.dll
Oracle.DataAccess.dll
orannzsbb11.dll
oraociei11.dll
OraOps11w.dll
Connecting to Oracle by using "standard" OracleConnection is fine, only when I try to access my Entity model do I recieve the error.
Any help greatly appreciated!
~Rolf

Hi Rolf,
It's works when you don't have a oracle.dataaccess.client settings(like to change oracle types).
At the end I had to install ODAC using Beta 2, because i am using mapping settings(oracle.dataaccess.client).
I am looking to test the new version 11.2.0.2.50, it's looks like have a XCopy version.
Let us know if you test the new version.
Thanks,
Jorge

Similar Messages

  • Instant Client with full client (Solaris)

    Hi,
    Does the Instant Client come with the full install of Oracle on Solaris, or if there is an option to? Any resources explaining this; I have had a good search on the net but cannot find anything.
    I would like to know when libociei.so would be provided, whether this is ever available with the full client. I know this comes with the Instant Client but wasn't sure if it would ever come with the full client/database, or if there was an alternative file that should used.
    Thanks.
    Message was edited by:
    Epoc

    You are a bit vague.
    What do you mean by "Oracle"? Client, Server, ...?
    And what Solaris do you have?
    You can install Instant Client with the Client installation CD, see
    http://download.oracle.com/docs/cd/B19306_01/install.102/b15692/install_overview.htm#i1106622
    or
    http://download.oracle.com/docs/cd/B19306_01/install.102/b15699/install_overview.htm#i1106622
    depending on your taste of Solaris.
    Alternatively, cou can download Instant Client from http://www.oracle.com.
    libociei.so is part of the Instant Client installation, and of Instant Client only.
    It is a replacement for the message files and other resource files that come with other Oracle products.
    Does that answer your question?
    Yours,
    Laurenz Albe

  • Instant Client With MS VS-2005

    Hi all,
    does anyone have an idea how to install Oracle Instant client to work with MS Visual Studio 2005 on client machines.
    I am working on a VB application using Oracle 10gR2 database. Should I install Full Oracle Client on each Client PC , or can I install Instant Client ?
    Thanks

    I tested the Oracle Instant Client with a Oracle 9i release 2 server running on Windows with Visual Studio.net 2005 enterprise.
    Here are my tips concerning environment variables:
    1. make sure no other oracle directory is in your PATH
    2. set your PATH to point to your instant client
    3. set your TNS_ADMIN to point to where you tnsnames.ora file is located
    4. set your NLS_LANG
    5. set your ORACLE_HOME to your instant client
    For me, I set NLS_LANG to
    http://download-east.oracle.com/docs/html/A95493_01/gblsupp.htm#634282
    I verified this was using the correct client software by using the sqlplus add-on to the instant client.
    For me, I set:
    SET NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
    Note: before you make any changes, back up your Oracle registry key (if exist) and backup the string for any environment variables.
    Read the Oracle Instant Client FAQ here:
    http://www.oracle.com/technology/tech/oci/instantclient/ic-faq.html

  • Instant Client with SQL Server - HELP!!

    G'day all...
    My goal is to connect to a server using Oracle Database version 8.1.7.4, from a server which does not have either Oracle Database or the full Oracle Client, preferrably using SQL Server DTS packages.
    With that said, I have installed instant client basic and instant client ODBC suppliment on our first development server using the instructions at the following link without any difficulties, although I do admit that I only have a tnsnames.ora file and not a sqlnet.ora file:
    http://www.oracle.com/technology/tech/oci/instantclient/instantclient.html
    The trouble is, when I attempt to deploy it on any of our other servers it fails. When I attempt to connect using Microsoft ODBC Driver for Oracle in a DTS package in SQL Server I get the following error message:
    HResult of 0x8004005 (-2147467259) returned Unexpected error occurred. An error result was returned without an error message.
    (Note: This is seen on all other servers I've tried this on except for the first one).
    I have also tried setting up a System ODBC connection using the Instant Client driver but it returned this error message:
    Unable to connect
    SQLState=S1000
    [Oracle][ODBC][Ora]ORA-12705: invalid or unknown NLS parameter value specified
    In desperation I have also tried installing the Oracle RDB Driver and the Oracle 8.1.7.8.1.0 ODBC driver. Both appear to install successfully yet nothing seems to work.
    As far as I can tell,l these are the differences between the first server and the other servers:
    - First server is MS SQL Server 2000 version: 8.00.760, rest are 8.00.818
    - First server is running MS SQL Server Analysis services, rest are not
    - First server is MS Windows 2000 Advanced Server, rest are MS Windows 2000 Server
    So my first question: Does anyone know if the Instant Client tool works with SQL Server version: 8.00.818?
    My second question: Can anyone else suggest something that I haven't tried yet, short of installing the Full Oracle Client on this server? Not that I'm opposed to doing that, it's just that it's a last resort idea as of now...
    Please help - need to roll this into production soon...

    Kent, I see that many others have reported that error (doing
    a google search), but I see no ready answers. I saw something that
    reminded me of a connection string value that I've seen answer some
    problems. May be worth a shot for you: try adding this string to
    the connection string (in "advanced options") for your datasource:
    AuthenticationMethod=Type2
    If it doesn't solve it, remove it. But keep it handy in case
    it ever may help with some other problem.
    Here's one other possible answer for you:
    http://www.webmasterkb.com/Uwe/Forum.aspx/coldfusion-server/3206/SQL-Server-2000-Windows-A uth
    Sorry I can't be more clear for you.

  • Instant client with ODBC driver

    Hi, I have problem with the instant client version 10.2 with ODBC driver. I have the instant client base package and ODBC package installed in my computer. the Oracle ODBC driver did appear in the ODBC driver list, when I test the connection with driver, it gives error "Unable to connect, SQLState=08004 [ORACLE] [ODBC] ORA-12154 TNS could not resolve the connect identifier specified" I have another computer which has Oracle 8i client installed and works fine. I copied sqlnet.ora and tnsnames.ora to the instantclient installation folder, same error appears. here is the contents of sqlnet.ora:
    # SQLNET.ORA Network Configuration File: c:\oracle8i\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES)
    here is the contents of tnsname.ora:
    # TNSNAMES.ORA Network Configuration File: c:\oracle8i\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    barkeep =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xxx)(PORT = 1521))
    (CONNECT_DATA =
    (SID = barkeep)
    I test the host connection with telnet, it works.
    can anybody out there walk me through how to set up instant client?
    thanks.

    Thanks Sanjay - I had this problem and your suggestion fixed it: setting the TNS_ADMIN did the trick.
    Note: This was on a development PC which already had the Oracle Client drivers installed (so I already had a different TNS_NAMES.ORA in that installation).
    It is worth noting that on my target deployment machine which DOESN'T have the Oracle Client drivers (just the InstantClient + Instant-ODBC) I didn't need to set TNS_ADMIN
    I'm using the 11g InstantClient (11.1.0.6.0 32 bit)
    Hope this helps someone, and thanks again Sanjay for posting :o)

  • Instant Client with SQLServer2005 Linked Server

    I have successfully installed Instant Client 11.2.0.1.0 on my Windows Server2008. I am able to create an ODBC data source selecting the driver "Oracle in instantclient_11_2". I have also been able to link tables from Access to Oracle. I can logon to Oracle through SQLPlus and execute a query against the Oracle database. I am unsure how to set a Linked Server object in SqlServer 2005. When I use "Microsoft OLE DB Provider for ODBC Drivers" and supply the Product - DBName and Data Source - ODBC data source previously created here is the error I receive:
    TITLE: Microsoft SQL Server Management Studio
    "The linked server has been created but failed a connection test. Do you want to keep the linked server?"
    ADDITIONAL INFORMATION:
    An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
    Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "DB1".
    OLE DB provider "MSDASQL" for linked server "DB1" returned message "Specified driver could not be loaded due to system error 1114 (Oracle in instantclient_11_2).". (Microsoft SQL Server, Error: 7303)
    Thanks!

    Although the 10.1.0.3 instant client for windows doesn't appear to be "officially out", if I try to download
    http://download.oracle.com/otn/nt/instantclient/instantclient-basic-win32-10.1.0.3.zip and similar files, the files do exist.
    Unfortunately this version still can't connect to my corporate Oracle database:
    Oracle8i Enterprise Edition Release 8.1.6.0.0, 64 bit - Production
    With the Partitioning option
    JServer Release 8.1.6.0.0 - Production
    Oh well, back to a full client install of Oracle 9i.
    Perhaps the official release when its documented on the Instant Client download page will work.
    Jamie

  • Problem using instant client with Win 7

    Hi,
    I have a Powerbuilder application that runs very well with Win XP and Oracle client 8 to 10.
    With new computers (Win 7), we try to use instant client... but there are problems with accents ! In fact, all accents are replaced by a "¿" in the database.
    It only appears when we are using our programs from a Win 7 machine with instant client.
    Do you know if there is something to configure to solve this problem ?
    Best regards.

    user1931557 wrote:
    Hi,
    I have a Powerbuilder application that runs very well with Win XP and Oracle client 8 to 10.
    With new computers (Win 7), we try to use instant client... but there are problems with accents ! In fact, all accents are replaced by a "¿" in the database.
    It only appears when we are using our programs from a Win 7 machine with instant client.
    Do you know if there is something to configure to solve this problem ?
    Best regards.
    If the characters only appear on certain clients, then they are NOT being "replaced ... in the database".  What you are seeing is an issue with presentation, not data.

  • Good or Bad: Repository pattern with Entity framework??

    Suggestions about not to use enttity framework because:
    1) entity framework is itself a Repository pattern
    2) So, what the use of having one more repository pattern over an exisitng repositroy pattern (i.e Entity framework)
    Please suggest.
    Thanks in advance!!

    I've used both nHibernate and the Entity Framework 6 and nHibernate wins hands down as the best orm, despite it's learning curve. ORMs can be massive timesavers as you don't end up writing boiler plate db access code.
    I used 3 different versions on nHibernate over the years. I didn't paticulalry care for any version of nHibernate. I much prefer EF over nHibernate any day of the week, month or year.
    Unlike the previous responder I disagree with testability, each repository should have it's own interface. And if implemented correctly it can save tones of time as you need only mock one or two repository methods rather than 10s or 100s of database
    gateway call using one class per table.
    What? Like a  DAO can't  have an interface, which is just as testable as any repository pattern using an interface when using a test harnerss and testproject to test the DAO? And one has to go beyond some generic repository pattern in
    unit, functional and intergation testing when it comes to data access. 
    Unlike you, I want complete control of the object all aspects of it even in its usage of other DAO(s) that could or would be used, which the  repository pattern doesn't cut it for me. 
    Like I said, I'll take EF over nHibernate, which is much like talking MS SQL Server over Oracle with Oracle being a PITA to work with it.

  • How to use Application Roles with Entity Framework

    How does one call sp_setapprole before a connection used by an Entity Framework object context closes, since the context opens and closes its own connection automatically, as needed? The only relevant event available on a store connection
    (DbConnection ) is StateChange , which does not include a
    ConnectionState of Closing . Attempting to call
    sp_setapprole when ConnectionState is Closed results in, "A severe error occurred on the current command. The results, if any, should be discarded."

    Yes, I realize that I need to call sp_setapprole on an open connection and that I can use
    ExecuteNonQuery or similar mechanisms. What I need to determine is how to do this
    automatically while using the entity framework.
    As I mentioned in my initial inquiry, the EF store connection, which is simply a DbConnection under the covers, does not expose an event (such as Closing) that would allow me to invoke
    sp_setapprole before a connection is closed. The only close event we are given is
    Closed , which is too late to do any good. I'm hoping to avoid burdening our systems with having to manually manage the connection.

  • Instant client with sqlldr (win32)

    Hi all,
    I am successfully using the instant client(IC) for sqlplus in winXP (32) machines.
    Now I would very much need to use the sqlldr in the same IC-environment. Does anybody know, which additional DLLs of the full-client I need?
    If I have the choice I could possibly live without certain feature of the sql-loader.
    Many thanks in advance for any help in this issue.
    Xenofon

    You cannot have sqlldr with Instant Client.
    Install the regular client.
    Yours,
    Laurenz Albe

  • Instant client with Oracle 8i server

    I am pretty new to Oracle.
    I just installed instant client on my xp workstation, and set up all the variable. I am trying to connect to a Oracle 8i server.
    Can instant client connect to Oracle 8i?
    Thank you!

    Although the 10.1.0.3 instant client for windows doesn't appear to be "officially out", if I try to download
    http://download.oracle.com/otn/nt/instantclient/instantclient-basic-win32-10.1.0.3.zip and similar files, the files do exist.
    Unfortunately this version still can't connect to my corporate Oracle database:
    Oracle8i Enterprise Edition Release 8.1.6.0.0, 64 bit - Production
    With the Partitioning option
    JServer Release 8.1.6.0.0 - Production
    Oh well, back to a full client install of Oracle 9i.
    Perhaps the official release when its documented on the Instant Client download page will work.
    Jamie

  • Instant Client with Windows98

    I have some problems with a computer having Windows98. Does Instant Client work fine with this OS? If YES: how I can to set the Path and the TNS_ADMIN? (On Windows 2003, right-click "My Computer", click Properties, click the Advanced tab, click the "Environment Variables" button, select the "path" variable and click the Edit button. In Windows98 how can I do?)
    Thanks

    According to Re: Instant Client does not work on Windows98, why?
    Windows 98 is not supported.
    -- CJ

  • Collision of Instant Client with other Clients (by registry key ORACLE)

    Hello,
    i'm trying to use Instant Client Basic Lite and Instant Client sqlplus on my Windows XP to connect to Oracle server.
    Client files and sqlplus files are in the same directory. I also have installed client 8, 9i 10g and database xe on my PC.
    If I try to start sqlplus I receive following errors:
    c:\a\-e>sqlplus ntpl/[email protected]:1522/xe
    SP2-1503: Unable to initialize Oracle call interface
    SP2-0152: ORACLE may not be functioning properly
    But if I rename regitry key HKLM\SOFTWARE\ORACLE to HKLM\SOFTWARE\-ORACLE
    it works fine. It seems there is a collision with registry values.
    I have already tried to set:
    set nls_lang=AMERICAN_AMERICA.AL32UTF8
    but it haven't helped.
    Could you help me please?
    Thank you very much
    Viktor

    As far as I know, Instant Client does not use the Windows registry at all.
    Is there a chance that you accidentally use the other client?
    Which access method do you use? sqlplus? Some API? Which API?
    Are both clients in your PATH? In which order?
    It's really difficult to sort out problems with multiple Oracle clients on
    one Windows machine. I had to resort to Process Monitor in one instance
    to figure out what was really going on.
    Yours,
    Laurenz Albe

  • Sorting is wrong with Entity Framework for oracle

    Hi,
    I've downloaded the Entity Framework for Oracle beta and I found a bug. It's easy to repro:
    - Create a model with a simple table
    - Create a dynamic data web app
    - display the content of your table and try to sort
    -> the sql generated is wrong and only sorts on the currently displayed rows and not the entire data.
    Did anyone else notice that?
    Edited by: lnu on 14 févr. 2011 05:51

    Before ODP.NET beta with EF was available I was working with OracleEFProvider from CodePlex (sample alpha version but works with VS2010).
    I found the same issue there. Since I had a source code I managed to find the solution.
    In class which implemented the base class DbExpressionVisitor there was a method: public override ISqlFragment Visit(DbSkipExpression e)
    I had to add sort clause AFTER visiting the expression (which was done too early in previous code).
    As the main idea of DbExpressionVisitor should be the same in case of Oracle provider, this can be the reason of improper sorting in queries with paging.

  • Instant Client with ADO on VBA -- Run-time error '-2147467259 (80004005)' -

    VB 6.0 uses Instant Client and Win XP Pro sp2 operating system. The MDAC has been checked and it is 2.8 sp1.
    The same project works on Win 2000 pro.
    Installing the run-time, thick, client makes the application work.
    We are getting the following error:
    Run-time error '-2147467259 (80004005)';
    Oracle error occurred, but error message could not be retrieved from Oracle.
    Any ideas?
    We have tried privleges, ORACLE_HOME variable, all kinds of things. Bring us your suggestions we are weary.....
    Thanks,
    Linda

    It looks like some sort of overflow. Instant Client does not support ADO.NET yet, if that is what is causing the problem. I hope that helps.

Maybe you are looking for

  • Fios Internet connection is very bad! Please help!

    Hello, I play an online game called Final Fantasy XIV.  I use a program called WTFast in order to have a solid gaming experience, one without or very little lag or disconnects. Recently, within the last 3-4months, I have noticed I get EXTREME lag and

  • How To Create Logical column For Lastyear To Till Date

    Hi All, I Have to calculate Lastyear to Till Date for Logical Column. Ex:I have Time Dime and Fact column and Dimension columns. jan 2011 to oct 2012. Please Let me know. Thanks, Abhi

  • How do i update a ipod 1st generation ?

    How do I update a ipod 1st generation or 2nd generation ?  MB528LL

  • How can i start several oc4j services?

    Dear, I will start several oc4j services in one computer.how can I do it? for example: 1.oc4j directory is: oc4j_pcc and oc4j_ims 2.I modify the files,jndi.properties,jms.xml,rmi.xml and http-web-site.xml,which port is different. then oc4j_pcc and oc

  • Itunes says I have 7 app updates but only 6 show

    For the past couple weeks my itunes window displays that i have 1 more update then actually displays. For instance tonight in the top left "Library" section of iTunes besides Apps the number 8 is displayed (meaning there are 8 updates to apps). Howev