Oracle.DataAccess 4.112.3.0 Slow in Windows 7

Hi,
We are having a data retrieval performance problem in our NET4 app using ODP.net 4. This problem seems to manifest itself only on win7 pcs, most recently/just installed.
Some notes:
Developments has/is being done in one year old win7x32 and win7x64 pcs which have no problems retrieving the data. These pcs are NOT top of the line: core2duo 8400 with 4gb ram, so it seems the problem is not related to machine specs.
The app has entered production about a month ago (about 600 concurrent users), and the symptoms are almost always the same: most of the clients have winxp where performance is ok, while almost all clients with win7x32 (either old or newlly installed) are very slow retrieving data.
Example query: "select * from some_table" retriieves approximately 400 rows.
With two computers having the same hardware, 4gb ram:
- retrieving the data in the winxp pc takes 4 seconds
- retrieving the data in the Win7x64 takes 3 minutes
- retrieving data in other win7x32 new installations (with different hardware) takes the same time: about 3 minutes.
- just for reference, in all the developer pcs with win7 (with vs2010 installed) the speed is the same as on the winxp clients. Installing a vs2010 on a problematic win7 pc didn't change anything.
Tech specs:
NET4 csharp app built with x86.
ODP.net 4.112.3.0 xcopy 32bits using only the dlls copied to the app directory (Oracle.DataAccess.dll, OraOps11w.dll, oci.dll, oraociicus11.dll). Oracle client has not been installled in any client pc.
Oracle 11gr2 on a hp ux server, 700 miles away with a dedicated 100MB dedicated line.
Thanks for any help.

Just a guess, but what have you set as the value for the "enlist" connection parameter (it defaults to true)? If possible you may try setting to "false" and verify. Also, it might be worth investigating the FetchSize value if there are lots of roundtrips due to small value.

Similar Messages

  • Oracle.DataAccess 2.112.1.0 - Connection Pool Problem

    Hi,
    Oracle.DataAccess 2.112.1.0 is having connection pool problem. The no. of TCP connections to Oracle database keep increasing untill the server's session run out of limit. My application created connections, use them, close them, and dispose them properly. When using previous Oracle.DataAccess 2.111.6.20, the no. of TCP connections do not increase.
    My database connection string has "Min Pool Size = 3 and Max Pool Size = 150".
    With 2.111.6.20 version, TCP connection stays at 3.
    With 2.112.1.0, TCP connection keep increasing for every 5 minutes. I've tried to disable Self Tuning, but still can't prevent the connections from increasing.
    Later today, I downloaded Oracle.DataAccess 2.112.1.2 (it comes with ODAC 11.2.0.1.2) and test again, the problem is resolved... no more connection increases... but.... it is only for 32 bit Windows.
    Unfortunately, there is no Oracle.DataAccess 2.112.1.2 for 64 bit Windows Server 2008.
    May I know how can i resolve this problem on 64bit Window installed with Oracle 11g R2 client, which comes with Oracle.DataAccess 2.112.1.0, which has serious problems...(according to this 11.2 ODP.NET causing test runner failures )
    Many thanks for your time and answers!
    Edited by: user1502907 on 04-Sep-2010 23:01

    Hi,
    The only thing that jumps out within your problem description is that connections are being increased every 5 minutes. Are you sure its every 5 minutes and not 3 minutes which is the timing interval used by the Connection Pool facility to perform connection pool maintenance. If this occurs even when the application is idle then you could be running into the following known issue filed against 11.2.0.1.0 and fixed in 11.2.0.1.2.
    Bug 9711600 - CONNECTIONS INCREASE BEYOND MAX POOL SIZE EVERY 3 MINUTE
    This is specific to using the option CommandBehavior.CloseConnection when calling execute reader. Are you using this option and then also closing the connection in code before the datareader object is closed, if so you may be hitting this bug. You can also generate an ODP trace at level 15 of the behavior and if you see negative pool counts, that is also a diagnostic that points to this bug.
    This is fixed in 11.2.0.1.0 Patch 3 or later for x64. If you have support, I recommend you open a service request to verify if this is your issue and if a patch set may help you.
    Regards
    Jenny B.

  • Oracle.DataAccess 4.112.2.0 and EnterpriseLibrary 5.0.414.0

    Hello,
    I use ODP.NET and version 4.1 of the Enterprise Library, vs 2008. And all is OK.
    Now, migrate using ODP.NET Oracle.DataAccess 4.112.2.0 and version 5.0.414.0 of the Enterprise Library, vs 2010, .net 4.0.
    Following a recent upgrade from version 4.1 to 5.0 of the Enterprise Library, once we get the following error:
    "The type Database cannot be constructed. You must configure the container to supply this value."
    Microsoft.Practices.ServiceLocation.ActivationException: Activation error occured while trying to get instance of type Database, key "ConnectionStrings.Oracle.xxx" ---> Microsoft.Practices.Unity.ResolutionFailedException: Resolution of the dependency failed, type = "Microsoft.Practices.EnterpriseLibrary.Data.Database", name = "ConnectionStrings.Oracle.xxx".
    Exception occurred while: while resolving.
    Exception is: InvalidOperationException - The type Database cannot be constructed. You must configure the container to supply this value.
    References EntLib Forum: http://entlib.codeplex.com/discussions/215290
    any solution about it ??
    my config
    <configSections>
    <section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=709072f976b4c05b"/>
    <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings,Microsoft.Practices.EnterpriseLibrary.Data, Version=5.0.414.0, Culture=neutral, PublicKeyToken=709072f976b4c05b" />
    </configSections>
    <dataConfiguration defaultDatabase="ConnectionStrings.Oracle.xxx"/>
    <connectionStrings>
    <add name="ConnectionStrings.Oracle.xxx" connectionString="DATA SOURCE=des;PASSWORD=zzz;PERSIST SECURITY INFO=True;USER ID=aaa;"
    providerName="Oracle.DataAccess.Client" />
    My Code
    var key = "ConnectionStrings.Oracle.xxx";
    Database db = Microsoft.Practices.EnterpriseLibrary.Common.Configuration.EnterpriseLibraryContainer.Current.GetInstance<Database>(key); //~(EntLib 5 recommended)
    using (DbCommand cm = db.GetStoredProcCommand("TBL_FRKDATA.TBL_FRKDATA_FND_ALL"))
    cm.Parameters.Add(CreateCursorParameter("P_REFCURSOR"));
    // Using "using" will cause both the DataReader and connection to be
    // closed. (ExecuteReader will close the connection when the
    // DataReader is closed.)
    using (IDataReader dataReader = db.ExecuteReader(cm))
    while (dataReader.Read())
    builder.Add(dataReader);
    return builder.EntityList;
    full error stacktrace
    Microsoft.Practices.ObjectBuilder2.DynamicMethodConstructorStrategy.GuardTypeIsNonPrimitive(IBuilderContext context, SelectedConstructor selectedConstructor)
    Microsoft.Practices.ObjectBuilder2.DynamicMethodConstructorStrategy.PreBuildUp(IBuilderContext context)
    Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context)
    Microsoft.Practices.ObjectBuilder2.DynamicMethodBuildPlanCreatorPolicy.CreatePlan(IBuilderContext context, NamedTypeBuildKey buildKey)
    Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context)
    Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context)
    Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides)
    Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides)
    Microsoft.Practices.Unity.UnityContainer.Resolve(Type t, String name, ResolverOverride[] resolverOverrides)
    Microsoft.Practices.Unity.UnityServiceLocator.DoGetInstance(Type serviceType, String key)
    Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key)
    Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key)
    Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance[TService](String key)
    Update
    this code works for me:
    [TestMethod]
    public void Conectar_con_EntLib_y_OdpNet_Test()
    var key = "ConnectionStrings.Oracle.xxx";
    string connectionString = ConfigurationManager.ConnectionStrings[key].ConnectionString;
    string providerName = ConfigurationManager.ConnectionStrings[key].ProviderName;
    //Database db = Microsoft.Practices.EnterpriseLibrary.Common.Configuration.EnterpriseLibraryContainer.Current.GetInstance<Database>(key);
    TestContext.WriteLine("connectionString: " + connectionString);
    TestContext.WriteLine("providerName: " + providerName);
    DbProviderFactory factory = DbProviderFactories.GetFactory(providerName);
    using (DbConnection connection = factory.CreateConnection())
    connection.ConnectionString = connectionString;
    connection.Open();
    TestContext.WriteLine("Estado Conexión: " + connection.State);
    connection.Close();
    Edited by: 886608 on 13-ene-2012 10:54

    Hi,
    Did you progress in getting ODP.NET working with Microsoft Enterprise Library 5.0 ?
    Thanks

  • Very slow first connection with Oracle.DataAccess 4.112.1.2

    Hello, I'm having some troubles with connecting using Oracle DataAccess component. In particular, when using .Net 4 Framework, the first connection to the database takes about 20-25 seconds!
    Here's my setup:
    - Web server running 64-bit Windows Web Server 2008 SP2 with IIS 7.0
    - Oracle server running 64-bit Windows Server Standard 2008 SP2 with Oracle 11g
    The version of ODAC component is 2.112.1.2 / 4.112.1.2
    The first strange thing is that, when I set an application on .NET 4 in IIS, I need to "Enable 32-bit Application" in order for it to work.
    I made some tests with a very simple query: "SELECT 1 FROM dual" and here's the results:
    - Classic ASP (ADODB.Connection): a fraction of a second to connect
    - .NET 2 with System.Data.OracleClient: a fraction of a second to connect
    - .NET 4 with Oracle.DataAccess: 20-25 seconds
    Moreover, if I launch the first connection thru Classic ASP, then the .NET 4 connection is very fast, as it happen in any case from the second connection on...
    This way, I excluded the problem is in the connection string, since it's always pretty much the same. I also excluded it could be a TNS problem, since they all use the same TNS (I think).
    That's all I've come up with, and I'm not a big Oracle expert so I hope someone here can help me sorting the situation out!
    Thanks,
    Stefano

    Thanks for your reply.
    I already tried messing around with that parameter.
    At the moment, it was set as:
    SQLNET.AUTHENTICATION_SERVICES= (NONE)
    I commented it and nothing changed.
    Thanks anyway :)

  • Oracle.DataAccess 2.112.2.0 ,oracleconnection create need 20 seconds?

    Everybody,
    I want to use odp.net to connect the timesten in-memory database in vs2008 vc#.net. However, the creation of OracleConnection last 20 seconds.
    Code:
    Stopwatch sw = new Stopwatch(); sw.Start();
    OracleConnection conn = new OracleConnection();//last 20 seconds
    sw.Stop();
    Console.WriteLinesw.ElapsedMilliseconds.ToString());
    Could someone encounts the same problem? Or that condition is normal?
    Thank you very much.

    Hi,
    The only thing that jumps out within your problem description is that connections are being increased every 5 minutes. Are you sure its every 5 minutes and not 3 minutes which is the timing interval used by the Connection Pool facility to perform connection pool maintenance. If this occurs even when the application is idle then you could be running into the following known issue filed against 11.2.0.1.0 and fixed in 11.2.0.1.2.
    Bug 9711600 - CONNECTIONS INCREASE BEYOND MAX POOL SIZE EVERY 3 MINUTE
    This is specific to using the option CommandBehavior.CloseConnection when calling execute reader. Are you using this option and then also closing the connection in code before the datareader object is closed, if so you may be hitting this bug. You can also generate an ODP trace at level 15 of the behavior and if you see negative pool counts, that is also a diagnostic that points to this bug.
    This is fixed in 11.2.0.1.0 Patch 3 or later for x64. If you have support, I recommend you open a service request to verify if this is your issue and if a patch set may help you.
    Regards
    Jenny B.

  • Oracle.DataAccess.dll on Windows 7 64 bit

    Hi,
    I am migrating a .Net 3.5 windows class library from WinXP 32 bit to Win7 64 bit. I use Oracle 11g 64 bit client to connect to database.
    my code works in Debug build but not in Release build. here is the error message:
    "An attempt was made to load an assembly with an incorrect format:"
    I did not complete uninstall by Oracle Deinstall, and re-install it.
    Debug build have a waring:
    "Assembly generation -- Referenced assembly 'Oracle.DataAccess.dll' targets a different processor."
    Release build still the same incorrect format error.
    here is more information:
    under C:\Windows\assembly
    Oracle.DataAccess     2.112.1.0     89b483f429c47342     AMD64
    Oracle.Web          2.112.1.0     89b483f429c47342     AMD64
    How should I fix it? should I download and install "64-bit Oracle Data Access Components (ODAC)"? What's difference between ODP.net in Oracle client and in ODAC?
    Thank you,
    Wes
    Windows 7 Pro, 64 bit, Visual Studio 2010, Oracle 11g 64 bit client

    What do you have /32BIT flag set to in the assembly? Ie, was it compiled with AnyCPU, x86, etc? You can use corflags.exe with the .net sdk to find out.
    Prior to VS2010, the default was AnyCPU which meant it ran as 64 bit on 64 bit OS, and 32 bit on 32 bit OS.
    As of VS2010, the IDE defaults to x86, which means it runs as 32 bit no matter what.
    32 bit apps need 32 bit odp/client. 64 bit apps need 64 bit odp/client.
    The error you're getting usually means you have the wrong bits (32/64) of the Oracle client installed.
    Assuming you have the wrong client bits installed, you could either
    a) make the app run as the other bits by setting/clearing the 32BIT flag (also by using corflags.exe)
    b) install the other bits of Oracle client software. a 32 bit home and a 64 bit home play rather nicely together for the most part, but you need to install them into separate homes.
    Hope it helps,
    Greg

  • Oracle.DataAccess.Client.OracleDataAdapter exists in both v2 and v4

    Hi there,
    I am developing ASP Net application with ODP.NET 11.2.0.2.1 and VS 2010. The target framework is .Net framework 3.5 and I've explicitly Oracle.DataAccess reference to v.2, with
    <add assembly="Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89B483F429C47342"/>
    , but when it compiled, it throw error
    The type 'Oracle.DataAccess.Client.OracleDataAdapter' exists in both
    'c:\WINDOWS\assembly\GAC_32\Oracle.DataAccess\2.112.2.0__89b483f429c47342\oracle.dataaccess.dll'
    and 'c:\WINDOWS\Microsoft.NET\assembly\GAC_32\Oracle.DataAccess\v4.0_4.112.2.0__89b483f429c47342\oracle.dataaccess.dll'     
    c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\esptweb\df172a69\e974c60e\App_Code.eoge0t0f.4.cs
    How can I fixed it?
    Thanks for the help.

    Did you try adding that reference using the Add Reference command in Visual Studio instead? I've never seen it behave like this before.
    There are two versions of the assembly, but it shouldn't be trying to load the .net 4 version if you have a reference to the .net 2 version and you're in a 2 (or 3.5) app.

  • Problems with Oracle.DataAccess assembly after installing Oracle 11gR2

    Windows 7 x64 SP1
    Visual Studio 2010
    ODAC112012
    Oracle 11gR2 11.2.0.1.0 for Windows x64
    Oracle Patch 12429529
    IIS 7.0
    I had my development machine setup and working with all of the above items except for the Oracle 11gR2(and patch), I was using a separate Oracle server. However everything went bad after the installation of 11gR2, I get the following error when trying to run the web application: "Could not load file or assembly 'Oracle.DataAccess, Version=2.111.7.10, Culture=neutral'"...
    My application is built in .NET 3.5 and the application pool is in 32 bit mode in IIS 7.
    Do I have to do something with the assembly rebind trick?:
    C:\Windows\assembly\GAC_32\Policy.2.102.Oracle.DataAccess\2.112.1.2__89b483f429c47342>Policy.2.102.Oracle.DataAccess.config
    Any help is very appreciated.

    I don't run Oracle server locally just avoid stuff like this, but since you installed an x64 server while having the application running in x86 mode, one potential issue is that the binding redirect you were using is no longer working because it's set for the 64 bit version instead. You don't have 2.111.7.10 on the machine at all, so try deleting that reference and pointing directly at your ODAC version.
    Alternately reconfigure the project to compile for x64 and disable 32 bit mode in IIS, then use the 64 bit client.

  • Interop.ORADCLib.dll and Oracle.DataAccess.dll for 64 bit Windows Server

    Sirs / Ma'ams,
    Are there 64 bit versions of Interop.ORADCLib.dll and Oracle.DataAccess.dll which can be used in Windows Server 2003 and 2008?
    Thanks.

    11.2 is beta at the moment. There is no official release date so far.
    As DG4ODBC is independant from the Oracle database (or the target database) you can use a 3 machine model:
    On the first machine you have your Oracle database, on a second machine running 32bit Windows you can install DG4ODBC and on the 3rd machine you can run your foreign database.
    If the SQL Server 2k is installed on a 32bit Windows machine, then you can also install DG4ODBC on this machine.
    In general the connection from an Oracle database to the DG4ODBC machine is done using SDQL*Net. The listener responsible for DG4ODBC will then load the DG4ODBC executable which will connect to the SQL Server using SQL Server ODBC driver.

  • Oracle.DataAccess.dll v2.112.2.40 or v4.112.2.40?

    After installing 11.2.0.2.40 BETA I noticed that the odp.net bin folder contained two versions of Oracle.DataAccess.
    2.x: v2.112.2.40
    4: v4.112.2.40
    Only the version from the 2.x folder was added to the GAC.
    I'm using EF on .Net framework 4 and wanted to make sure I was using the correct assembly version. Should I be using v4.112.2.40 or is v2.112.2.40 correct?

    If you want to use EF, you should be using the 4.x version as that's the .net 4 version of the assembly. That version was GAC'd for me, is your project running in .net 4?

  • Oracle provider Oracle.DataAccess not find. Version - ODAC 4.112.2.0

    Hello,
    Please to help me!!!!...??? I don’t know more what to do.
    I have an application ASP.NET, C# with access to the database Oracle by ODAC.
    It was worked without problem on the platform x86. I have tried to put it on the server Windows 2008 R2 without of the success.
    Than on the other PC I have installed:
    -Windows 7 platform 64 bit.
    -ODAC 11.2 Release 3 (11.2.0.2.1) with Oracle Developer Tools for Visual Studio and I have put this -path in the system path
    -Visual Studio 10
    -Framework 2 (v2.0.50727) and 4 (v4.0.30319)
    - I have configured IIS server two “Pools Classic” for Framework 2 and 4
    In the debugging by Visual Studio 10 it is working with Framefork 4 and with use of Framework 3.5 too, by using the assembly (Version=2.112.2.0 or Version=4.112.2.0):
    <add assembly="Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />
    In the web.config.
    But it’s problem when I try to start it directly from IIS (it’s not changed if I use “batch build” AnyCPU, x86 or x64):
    Erreur de configuration
    Description : Une erreur s'est produite lors du traitement d'un fichier de configuration requis pour répondre à cette demande. Veuillez consulter ci-dessous les détails relatifs à l'erreur en question, puis modifier votre fichier de configuration de manière appropriée.
    Message d'erreur de l'analyseur: Impossible de charger le fichier ou l'assembly 'Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342' ou une de ses dépendances. Le fichier spécifié est introuvable.
    Erreur source:
    Ligne 55 : <add assembly="Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />
    Ligne 56 : </assemblies></compilation>
    Fichier source : C:\inetpub\wwwroot\fcharges_web\web.config Ligne : 55
    Suivi du chargement de l'assembly: Les informations suivantes peuvent permettre de déterminer la raison pour laquelle l'assembly 'Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342' n'a pas pu être chargé.
    === Informations d'état de liaison préalable ===
    JRN : utilisateur = IIS APPPOOL\FrameWork2_Classique
    JRN : DisplayName = Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342
    (Fully-specified)
    JRN : Appbase = file:///C:/inetpub/wwwroot/fcharges_web/
    JRN : PrivatePath initial = C:\inetpub\wwwroot\fcharges_web\bin
    Assembly appelant : (Unknown).
    ===
    JRN : cette liaison démarre dans le contexte de chargement de default.
    Equal error With Framework 4
    Configuration Error
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
    Parser Error Message: Could not load file or assembly 'Oracle.DataAccess, Version=4.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. Le fichier spécifié est introuvable.
    Source Error:
    Line 43: <add assembly="Oracle.DataAccess, Version=4.112.2.0, Culture=neutral, PublicKeyToken=89B483F429C47342"/>
    Line 44: </assemblies></compilation>
    Source File: C:\inetpub\wwwroot\fcharges_web\web.config Line: 43
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Oracle.DataAccess, Version=4.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342' could not be loaded.
    === Pre-bind state information ===
    LOG: User = IIS APPPOOL\ASP.NET v4.0 Classic
    LOG: DisplayName = Oracle.DataAccess, Version=4.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342
    (Fully-specified)
    LOG: Appbase = file:///C:/inetpub/wwwroot/fcharges_web/
    LOG: Initial PrivatePath = C:\inetpub\wwwroot\fcharges_web\bin
    Calling assembly : (Unknown).
    When I look to GAC, I don’t know exactly all of the links, but I think that all is in order :
    C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin>gacutil /l
    Microsoft (R) .NET Global Assembly Cache Utility. Version 3.5.30729.1
    Copyright (c) Microsoft Corporation. All rights reserved.
    The Global Assembly Cache contains the following assemblies:
    System.Data.OracleClient.resources, Version=2.0.0.0, Culture=de, PublicKeyToken=b77a5c561934e089, pr
    ocessorArchitecture=MSIL
    System.Data.OracleClient.resources, Version=2.0.0.0, Culture=fr, PublicKeyToken=b77a5c561934e089, pr
    ocessorArchitecture=MSIL
    System.Data.OracleClient.resources, Version=2.0.0.0, Culture=it, PublicKeyToken=b77a5c561934e089, pr
    ocessorArchitecture=MSIL
    System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, process
    orArchitecture=AMD64
    Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342, processorArc
    hitecture=x86
    Oracle.DataAccess.resources, Version=2.112.2.0, Culture=fr, PublicKeyToken=89b483f429c47342, process
    orArchitecture=x86
    Oracle.Web, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342, processorArchitectu
    re=x86
    Oracle.Web.resources, Version=2.112.2.0, Culture=fr, PublicKeyToken=89b483f429c47342, processorArchi
    tecture=x86
    Policy.2.102.Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342,
    processorArchitecture=x86
    Policy.2.111.Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342,
    processorArchitecture=x86
    Policy.2.111.Oracle.Web, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342, proces
    sorArchitecture=x86
    Policy.2.112.Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342,
    processorArchitecture=x86
    Policy.2.112.Oracle.Web, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342, proces
    sorArchitecture=x86
    When I put Oracle.DataAccess.dll in the directory bin of the application the error is:
    Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. Tentative de chargement d’un programme de format incorrect.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.BadImageFormatException: Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. Tentative de chargement d’un programme de format incorrect.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Oracle.DataAccess' could not be loaded.
    === Pre-bind state information ===
    LOG: User = IIS APPPOOL\Classic .NET AppPool
    LOG: DisplayName = Oracle.DataAccess

    Hi all,
    I have find the option to “Create new project platform”. It was the line
    “<identity impersonate="true"/>»
    in the web.config file, who have blocked this option.
    But the problem is that it’s nothing to bee changed.
    In the Visual studio with debugging it’s all of the version who work
    X64, x86, Any CPU and all of this versions with Framework 3.5 or 4.
    But when I try to run it, directly by IIS it’s not working.
    The same error for:
    <add assembly="Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />
    As for
    <add assembly="Oracle.DataAccess, Version=4.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />
    Please anybody to help my.
    I really don’t know what to do!!!

  • Could not load file or assembly 'Oracle.DataAccess, Version=4.112.4.0

    Hello Everyone,
    I am simply trying to insert into an oracle database table. When I try to run the insert from my visual studio program after a button is clicked the program stops and I get "Could not load file or assembly 'Oracle.DataAccess, Version=4.112.4.0" error.
    Why is this? I have added the reference and put "using Oracle.DataAccess;" in the file. The code is below. Any suggestions?
    OracleConnection Con = new OracleConnection(ConfigurationManager.ConnectionStrings["ConnectionString1"].ToString());
    OracleCommand sqlCmd = new OracleCommand();
    //OracleDataReader dr;
    sqlCmd.Connection = Con;
    Con.Open();
    sqlCmd.CommandText = "INSERT INTO FGID values (0, 0, 0, ' ', sysdate)";
    sqlCmd.ExecuteNonQuery();
    sqlCmd.Clone();
    MessageBox.Show("Record Inserted!");
    M.N.

    Hi Boa_nerges,
    >>Could not load file or assembly 'Oracle.DataAccess, Version=4.112.4.0" error.
    Whether all projects have the same issue?
    Please make sure that it is not the platform target issue in your project property. Or the setup version issue.
    Reference:
    https://social.msdn.microsoft.com/Forums/en-US/9827bb73-a58b-415d-ad93-8e08f3a1258b/need-urgent-help-could-not-load-file-or-assembly-39oracledataaccess-version411220?forum=csharpgeneral
    http://forums.asp.net/t/1661229.aspx?How+to+change+assembely+reference+to+Oracle+DataAccess+in+prod+
    In addition, if still no help, since the oracle is the third party tool, I suggest you post this issue to the Oracle forum:
    https://community.oracle.com/community/database
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Could not load file or assembly Oracle.DataAccess, Version=4.112.2.0

    Hi There..
    I'm running the follows:
    1. OS : XP SP3
    2. VS 2010
    3. ODP Net 11.2.0.2.0
    When I set the ASP NET target framework to .NET 4 all running normally. However, if the set target to .NET 2 appears error "Could not load file or assembly Oracle.DataAccess, Version=4.112.2.0".
    What could be the problem ?
    Thanks,
    Iqbal

    Just figure it out..
    use assembly binding when targetted framework is 2.0
    <runtime>
              <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
                   <dependentAssembly>
                        <assemblyIdentity name="Oracle.DataAccess" publicKeyToken="89b483f429c47342"/>
                        <bindingRedirect oldVersion="4.112.2.0" newVersion="2.112.2.0"/>
                   </dependentAssembly>
              </assemblyBinding>
         </runtime>
    .. and all running back normally :D

  • Could not load file or assembly 'Oracle.DataAccess, Version=2.112.3.0

    Hi,
    I am using windows 7 64 bit Enterprise Edition, Visual Studio 2010 Premium, and my app is built using .net framework 4.0. I downloaded and install ODP.NET 11.2.0.32 but when I add reference Oracle.DataAccess to my app, its giving me the following error, *"Could not load file or assembly 'Oracle.DataAccess, Version=2.112.3.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified."*
    I have checked other threads on this same topic, but I found that I have proper version (64bit) of ODP.NET as per my OS, Visual Studio & .net framework.
    Am I missing something, please help.

    Hi,
    I manage to resolve the error, the error is though due to a different reason,
    I was trying to add ODP.Net 64bit reference directly to a Web Site project in Visual Studio 2010, then find out that this is not possible as the web site builds based on aspnet worker process, and that is 32bit, hence there was a problem referencing the 64bit ODP.NET assembly.
    So I created a class library project for any cpu and refer the 64bit assembly in there, and refer the class library project in the main web site, and the problem solved.

  • DBProviderFactories.GetFactory("Oracle.DataAccess.Client") very slow

    The call to System.Data.Common.DBProvidersFactories.GetFactory("Oracle.DataAccess.Client") is taking over 2 minutes to return on my computer. By comparison, calls to GetFactory() for the System.Data.SqlClient and IBM.Data.DB2 takes less than a second.
    Even more strange, the same call is very fast if I am running the code inside of the VS2010 debugger.
    ODAC version 11.2.0.1.2 (32bit version)
    Windows 7 64 bit
    .NET 3.5 SP1
    Oracle server - not relevant since test pgm is not connecting to a serve.
    Code developed with VS 2010.
    Test pgm built with:
    - Target CPU=32 (so app runs as 32bit mode, instead of 64)
    - Target Framework = .NET 3.5 SP1
    The call has not always been this slow. I have been running with ODAC 11.2.0.1.2 since it's release. But, IIRC, the slowness just started several weeks ago.
    Below is the test pgm:
    Imports System.Configuration
    Imports System.Data.Common
    Module Module1
        Sub Main()
            CreateFactory("Oracle.DataAccess.Client")
            CreateFactory("System.Data.SqlClient")
            CreateFactory("IBM.Data.DB2")
        End Sub
        Sub CreateFactory(ByVal providerName As String)
            Dim sw = New Stopwatch
            sw.Start()
            Dim factory = DbProviderFactories.GetFactory(providerName)
            sw.Stop()
            If factory Is Nothing Then
                Throw New Exception(String.Format("DbProviderFactories.GetFactory({0}) failed", providerName))
            End If
            Console.WriteLine("DbProviderFactories.GetFactory({0}) call took {1} secs", providerName, sw.Elapsed.TotalSeconds)
        End Sub
    End ModuleThe output I get is:
    DbProviderFactories.GetFactory(Oracle.DataAccess.Client) call took 130.1584958 secs
    DbProviderFactories.GetFactory(System.Data.SqlClient) call took 0.0001462 secs
    DbProviderFactories.GetFactory(IBM.Data.DB2) call took 0.1252213 secs
    Please let me know if you need any more information. All help is appreciated.
    Jim

    As I mentioned before, if I loaded the DBProviderFactory object, for the IBM.Data.DB2 provider, loading the Oracle.DataAccesss.Client provider ran quickly. The IBM.Data.DB2 provider always using a distributed transaction to communicate with the database. So, my guess is that the IBM DBProviderFactory was doing work to prepare for a distributed transaction. And this prep work allows the Oracle DBProviderFactory to run much faster.
    So to test my theory, I created a TransactionScope object, before creating the Oracle DBProviderFactory. See new code below:
    <pre>
    Sub Main()
    Using ts = New Transactions.TransactionScope()
    CreateFactory("Oracle.DataAccess.Client")
    End Using
    End Sub
    Sub CreateFactory(ByVal providerName As String)
    Dim sw = New Stopwatch
    sw.Start()
    Dim factory = DbProviderFactories.GetFactory(providerName)
    sw.Stop()
    If factory Is Nothing Then
    Throw New Exception(String.Format("DbProviderFactories.GetFactory({0}) failed", providerName))
    End If
    Console.WriteLine("DbProviderFactories.GetFactory({0}) call took {1} secs", providerName, sw.Elapsed.TotalSeconds)
    End Sub
    </pre>
    And this was the result:
    DbProviderFactories.GetFactory(Oracle.DataAccess.Client) call took 0.1925129 sec
    a dramatic speedup.
    Is this expected behavior? More importantly, is there a fix to make loading the Oracle DbProviderFactory faster without requiring the creation of a TransactionScope object?
    Thanks,
    Jim
    Edited by: thompkin on Nov 18, 2010 10:55 AM

Maybe you are looking for

  • Load from flat file confusion

    hi i have to load data using 2 flat files with different level of details file 1 has data::: Order...........ordertypes....amount$....Rule... 111.................z11.................100.........XYZ1 111.................z12.................100........

  • Saved as tax form PDF shift to the right

    I copied PDFs of tax forms from the IRS web site. I then filled them out in Preview mode and tried to save these files on my hard drive. When I did the copy of the pdf shifted to the right and erased part of the document on the far right side. How ca

  • Vip configuration

    Hi, While configuring vip network configuration using vipca, i am getting one window that is "Network Interfaces" As i seen in so many cluster ware installations screen shorts there they got eth0 (public) and eth1 (private) in "This page displays sup

  • Best Airport Basestation settings for iPhone speed

    Hi all, I thought I'd start a thread to capture the best settings for the Airport Basestations to get max speed for iPhone when using Wifi. I've found there is a big difference in network speed between a Mac and the iPhone even when on the same WiFi

  • Dynamic Tab UI - Tab Removal Property

    Hi, Using JDev 11.1.2.4 Is there a way I can launch a tab and specify it to NOT have the close button? Perhaps there is an additional property I can add to the TabContext or Tab class? I can remove the close button by modifying the dynamicTabShell.js