odp.net

To close or not to close an Oracle Connection?

我只是一个虾纸丫 提交于 2019-12-03 15:57:27
My application have performance issues, so i started to investigate this from the root: "The connection with the database". The best practices says: "Open a connection, use it and close is as soon as possible", but i dont know the overhead that this causes, so the question is: 1 -"Open, Use, Close connections as soon as possible is the best aproach using ODP.NET?" 2 - Is there a way and how to use connection pooling with ODP.NET? I thinking about to create a List to store some connections strings and create a logic to choose the "best" connection every time i need. Is this the best way to do

Oracle query is slow (or fails) from .NET app but is fast from SQL Developer

岁酱吖の 提交于 2019-12-03 11:53:47
We use ODP.NET to perform queries on Oracle databases, and normally it works fine. There is a particular database, and a particular view in that database, though, that we just can't complete a query on from .NET. For example: SELECT some_varchar_field FROM the_view WHERE ROWNUM < 5; If I execute this query from within Oracle SQL developer, it finishes in less than a second. If I do an identical query from our .NET application using ODP.NET, it hangs and eventually produces an "ORA-03135: connection lost contact" error. I think that limiting it to just a few rows eliminates the possibility that

Oracle ODAC 12c Release 3 32-bit beta supports EF 6.x?

这一生的挚爱 提交于 2019-12-03 09:45:11
I have Windows 8.1 64-bit with Visual Studio 2013. I've installed the latest Oracle ODAC 12c Release 3 32-bit beta which claims to supports EF 6. When I add the ADO.NET Entity Framework to my project and choose my Oracle data connection, it doesn't allow me to select the Entity Framework 6.0 version. It has Entity Framework 5.x selected and version 6.x is greyed out. It says 'An Entity Framework database provider compatible with the latest version of the Entity Framework could not be found for your data connection'. Why is that? I did the following to make it work :- First Installing ODAC 12c

How to Make ODP.NET 4.0 (64 bit) working on 64 bit machine Windows 7?

假装没事ソ 提交于 2019-12-03 09:05:37
I have installed the Oracle Client for the 64 bit machine using the XCopy 11.2 provided by Oracle (Installed everything as per the read me instructions). I am using Visual Studio 2010 and the project is of type ASP.NET Website. When I tried to execute my ASP.NET Website using the Oracle Connection installed above..it is giving me the error from the web.config file during compile time. ** "Could not load file or assembly 'Oracle.DataAccess, Version=4.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified" ** It worked if

Oracle.Dataaccess is in the GAC. Can I control the version I use?

半城伤御伤魂 提交于 2019-12-03 08:41:47
I have a XCOPY deployable .NET application using Oracle.DataAccess (ODP.NET). We also deploy the Oracle Instant client in the application directory. Everything works OK, but I worry.. From the Oracle ODP.NET FAQ: Beginning with ODP.NET 10.1.0.3, the Oracle installer will register the following publisher policy DLLs in the Global Assembly Cache (GAC) that redirect 9.2, 10.1 and 10.2 ODP.NET applications to use the last installed version of ODP.NET: Policy.9.2.Oracle.DataAccess.dll and Policy.10.1.Oracle.DataAccess.dll This means that on machines where the Oracle ODP.NET is installed, the

Could not load file or assembly Oracle.DataAccess

微笑、不失礼 提交于 2019-12-03 06:36:20
问题 I have an asp.net mvc (EF) project , I had downloaded oracle data provider with version 4.112.2.50 -32bit on my pc when moving project to windows server 2008 (I have the same version of odp-64bit) I have the below problem: Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. An attempt was made to load a program with an incorrect format. when I toke Oracle the "Oracle.DataAccess.dll" from the server and make it with my project reference I have another error message

Replacing System.Data.OracleClient to Oracle.DataAccess (ODP.NET)

孤者浪人 提交于 2019-12-03 06:06:57
问题 I have a project which is using System.Data.OracleClient at the moment and since it is being deprecated so I want to switch to the ODP.NET latest version for Oracle 11g. Please let me know if the following steps would work for me or there are certain other actions required to get it working without any errors: Remove the reference to the SYstem.Data.OracleClient Adding the reference to Oracle.DataAccess dll Replacing OracleType enum with OracleDbType and updating the references to datatypes

Oracle.DataAccess.dll not shown in explorer although it is installed in GAC

血红的双手。 提交于 2019-12-02 21:15:11
问题 Does anybody know why my Oracle.DataAccess.dll Version 4 assemblies are not shown in explorer view. It is installed in GAC and working without any problems. gacutil shows it as expected. C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC>gacutil /l Oracle Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.18020 Copyright (c) Microsoft Corporation. All rights reserved. The Global Assembly Cache contains the following assemblies: Number of items = 0 C:\Program Files (x86)

Could not load file or assembly Oracle.DataAccess

为君一笑 提交于 2019-12-02 20:13:20
I have an asp.net mvc (EF) project , I had downloaded oracle data provider with version 4.112.2.50 -32bit on my pc when moving project to windows server 2008 (I have the same version of odp-64bit) I have the below problem: Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. An attempt was made to load a program with an incorrect format. when I toke Oracle the "Oracle.DataAccess.dll" from the server and make it with my project reference I have another error message like the above with a file "Oracle.Web" Could not load file or assembly 'Oracle.Web' or one of its

ODP.Net - OracleDataReader.Read very slow

半世苍凉 提交于 2019-12-02 19:56:21
问题 I'm having a lot of trouble with the OracleDataReader in ODP.Net. Basically, I have a parameterized query that takes anywhere from 1-5 seconds to run (returning around 450 records) and then takes 60-90 seconds to loop over (with no code even running in the loop, literally iterating over the recordset and doing nothing). When I run it from Aqua Data Studio it takes 1-5 seconds. When I run it from .Net it takes 1-5 seconds for cmd.ExecuteReader() to return. When I loop over the 450 records with