odp.net

Oracle ODP.net Managed vs Unmanaged Driver

廉价感情. 提交于 2019-11-27 18:44:12
Are there any performance benchmarks between the managed and unmanaged Oracle ODP.Net drivers? (i.e. is there any advantage to moving to the managed driver other than for architectural/deployment simplicity) I would like to share some results. I think that the small lack of performance is worth compared to the easiness of deployment. Note: seg means seconds. Sorry about that. Of course that it is a simple test, and there are several topics that is not covered like connection pool, stability, reliability and so on... It is important to mention, that the scenarios were executed 100 times. So the

How to use an Oracle Associative Array in a SQL query

旧巷老猫 提交于 2019-11-27 15:07:15
问题 ODP.Net exposes the ability to pass Associative Arrays as params into an Oracle stored procedure from C#. Its a nice feature unless you are trying to use the data contained within that associative array in a sql query. The reason for this is that it requires a context switch - SQL statements require SQL types and an associative array passed into PL/SQL like this is actually defined as a PL/SQL type. I believe any types defined within a PL/SQL package/procedure/function are PL/SQL types while

The provider is not compatible with the version of Oracle client error when using Oracle.DataClient

自古美人都是妖i 提交于 2019-11-27 14:45:28
问题 I'm using Visual Studio 2008 Express Edition, and I'm trying my hand in developing a small application using Oracle.DataClient. I'm getting the above mentioned error, when trying to connect to the database in the target system. I've added a reference to Oracle ODP.net provider for Oracle 10gR2, and in the target machine I have a copy of Oracle 10gR2 database installed. Despite this, I'm getting the error. Before posting this, I read this post at SO, and I have installed the instant client,

Entity Framework 6 (5) connection to Oracle

帅比萌擦擦* 提交于 2019-11-27 14:17:26
问题 I am attempting to write a Data Access library for our suite of applications that use Oracle in .net. We currently use NHibernate and are thinking of migrating away as it appears to not be supported all that well. I am working with Visual Studio 2013 and we have already constructed our Oracle Database. We don't have writes to update it (that is the domain of the db guys). So that will not be part of any calculation on our end. The client on the server is 32 bit, so we are going to stick with

In WiX how do I test for the existence of a registry key (not value) for Oracle ODP.Net

喜欢而已 提交于 2019-11-27 13:39:46
问题 More specifically I want to test whether Oracle ODP.Net is installed on a machine. I want to do this by testing for the HKLM\SOFTWARE\ORACLE\ODP.NET registry key. The actual values used by ODP.Net are stored in HKLM\SOFTWARE\ORACLE\ODP.NET\2.111.6.20 however I assume that this lower level key's name will change as updates are released by Oracle. I have tried the following which fails, possibly because the (Default) value doesn't really exist or possibly because it is null (I'm not sure

ODP.NET Oracle.ManagedDataAcess random ORA-12570 errors

一世执手 提交于 2019-11-27 12:18:56
问题 I'm trying to migrate to Oracle.ManagedDataAcess from unmanaged version and receiving randoms ORA-12570 TNS:packet reader failure. I don't know why this error starts, but once it starts, every subsequent request gives the same error for about 10-30 minutes, then it works again for another 10-30 minutes and so on. So it is a random of subsequent failures for some time then subsequent success Already tried a lot of things, to resume: The environment: Oracle.ManagedDataAcess version 12.1.2400 (4

Does ODP.NET require Oracle Client installation

心不动则不痛 提交于 2019-11-27 11:20:42
I have to connect Oracle 11g DB from .NET code. For that purpose I installed ODP.NET bur after reading some forum posts I recognized that I need Oracle Client installation too. Is that true? I see that the Oracle Client has a size of ca. 2GB!!! Do I really need to install such a huge client only to be able to connect Oracle DBs? Kiquenet Alex Keh from Oracle in aug 2013 says: Managed ODP.NET is released. It is currently part of the Oracle DB 12c client. To use managed ODP.NET, you have to download and install the DB client. From there, you can extract just the managed ODP.NET assembly and

Oracle.ManagedDataAccess.EntityFramework - ORA-01918: user 'dbo' does not exist

痞子三分冷 提交于 2019-11-27 09:12:43
I am trying to implemente code First Migrations with Oracle.ManagedDataAccess 6.121.1.0 provider, but with no success at all. As I am receiving a ORA-code, I am assuming that the connection are been opened successfully. But the Migrations are failing because, maybe, the provider are behaving as a SQL Server, instead of Oracle. I think that beacause it is traying to use 'dbo' as default schema. Here is my web.config settings: <configuration> <configSections> <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0,

Can odp.net pass a parameter to a boolean pl/sql parameter?

不问归期 提交于 2019-11-27 07:13:14
问题 Is it possible to correctly pass an OracleParameter to a boolean parameter in a pl/sql stored procedure? 回答1: You can not use boolean parameters in SQL. So calling an stored procedure that takes or returns a boolean value won't work in SQL. There is no problem using such a procedure from within a pl/sql block. ADDED from JCallico answer: I used the following workaround to bypass this limitation: Wrap the function call using an anonymous block. Return an output variable containing 1 or 0. Read

ODP.NET Managed - Unable to find requested .Net Framework Data Provider

佐手、 提交于 2019-11-27 06:47:20
问题 Using Visual Studio 2013, I've added the latest version of ODP.NET Managed to a project using Nuget: Install-Package odp.net.managed http://www.nuget.org/packages/odp.net.managed/121.1.2 Now, when I try to run the following code: Database db = DatabaseFactory.CreateDatabase(); It throws the following exception: An exception of type 'System.ArgumentException' occurred in System.Data.dll but was not handled in user code Additional information: Unable to find the requested .Net Framework Data