odp.net

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

六眼飞鱼酱① 提交于 2020-01-06 19:24:39
问题 I am trying to run my ASP.NET 4.0 WebSite using the ODP.NET 4.0 Client in Windows 7 64 bit machine..but no luck so far. I have downloaded the ODP.NET 4.0 from http://www.oracle.com/technetwork/database/windows/downloads/index-090165.html and installed using the instructions provided. I am able to see both the Oracle.DataAccess.dll and Oracle.Web.dll in C:\Windows\Microsoft.NET\assembly\GAC_64\Oracle.DataAccess\v4.0_4.112.2.0__89b483f429c47342 and C:\Windows\Microsoft.NET\assembly\GAC_64

How do you insert 9 MB file into a Blob Field Using Oracle.DataAccess?

匆匆过客 提交于 2020-01-06 15:38:06
问题 Trying to insert a large audio file into an Oracle 10g database and keep getting this error: ORA-01460: unimplemented or unreasonable conversion requested The byte array length of the audio file is 2702577. The procedure works with smaller array lengths, but not the larger ones. Here is my code and Thanks! Dim oracleConnection As New OracleClient.OracleConnection Dim Cmd As New OracleClient.OracleCommand Dim oracleDataAdapter As New OracleDataAdapter oracleConnection.ConnectionString = System

Exception while executing stored procedure odp.net

允我心安 提交于 2020-01-05 09:34:22
问题 I've executed around 5 stored procedures with the below code (parameters will vary with respect to Stored procedure). Those are working fine except the below SP. output of the below code is: p_out=2 p_msg= 'exception while execution' In SP, it going to exception block. Can anybody let me know the exact issue. Code: Database db = DatabaseFactory.CreateDatabase("OracleDBConnectionString"); OracleCommand oracleCommand = new OracleCommand(); oracleCommand.CommandType = CommandType.StoredProcedure

How to connect to a remote Oracle database

邮差的信 提交于 2020-01-03 15:56:14
问题 I have to connect to a remote Oracle DBMS into my .NET C# web service Is request the client Oracle installation? Why? When you have to use ODP.NET Thanks 回答1: I recommend using ODP.NET, as it's free and is the "official" ADO.NET compatible provider for connecting to Oracle. 1 To spare your users from having to separately install the Oracle Client, download the Oracle Instant Client, take the following files from there... oci.dll Oracle.DataAccess.dll (the managed ODP.NET assembly itself)

Does the Managed Oracle ODP.NET driver utilize network encryption?

南楼画角 提交于 2020-01-02 06:53:30
问题 I've read recently that Oracle supports network encryption between Oracle clients and servers. I assume that if servers support this, clients can accomplish connections in the full Oracle client drivers that are used from various Oracle data access provider libraries. However, my application is using the more independent Managed ODP.NET driver from Oracle, which does not require the full Oracle client install. Does anyone know if this driver supports network encryption? This page seems to

How can I update data in CLOB fields using a >> prepared query << with ODP (Oracle.DataAccess)?

与世无争的帅哥 提交于 2020-01-02 03:12:26
问题 I'm trying to execute a prepared sql query which updates CLOB fields in an Oracle 10g database (10.2.0.1). If I execute the following query from inside SQL Developer and supply the values for the placeholders, there is no prblem. If I however execute it through an OracleCommand (Oracle.DataAccess.dll, version 1.102.0.1 (I think), .NET Framework 3.5), I get the error message below. Note that we are not using the default oracle client as we require bulk insertion. The given ODP version and .NET

ODP.net Connection Pooling: ClientID, Client Identifier never changes from first user who logs in

╄→尐↘猪︶ㄣ 提交于 2020-01-01 19:35:12
问题 Scenario : We have an application that is using Oracle 10g and the latest version of ODP.net within an ASP.net application. We are utilizing the .ClientID WriteOnly property on the OracleConnection object to pass in a specific UserID to the database for auditing purposes. When Connection Pooling is disabled, this works perfectly. When it is enabled, the first person who logs in (ex: USER1) updates a record and the MODIFIED_BY is USER1, but when a different user heads into the website after,

ODP.NET Connection Pooling Issues - Fault Tollerance After Database Goes Down

不打扰是莪最后的温柔 提交于 2020-01-01 18:21:13
问题 I have an WebAPI service using ODP.NET to make connections to several oracle databases. Normally the web service would be hit several times a second and will never have long periods on inactivity. In our test site however, we did not use it for 2-3 days. This morning, we hit the service and got "connection request timeout" exceptions from ODP.NET, suggesting that the connection pool was out of available connections. We are closing the connections after use. The service was working fine before

ORA-21700: object does not exist or is marked for delete for Associative Array as input parameter called from ODP.NET

偶尔善良 提交于 2019-12-30 10:24:10
问题 I have this package code on Oracle 12c CREATE OR REPLACE PACKAGE Support_Data_Types AS TYPE ttDate IS TABLE OF DATE END Support_Data_Types; PROCEDURE GetData ( tabDates IN SUPPORT_DATA_TYPES.TTDATE, ) AS BEGIN SELECT count(*) INTO n FROM table(tabDates); END GetData; If I call it from PL/SQL code it works declare dates SUPPORT_DATA_TYPES.TTDATE; begin dates(1) := To_DATE('12/31/2005','MM/DD/YYYY'); dates(2) := To_DATE('03/31/2006','MM/DD/YYYY'); dates(3) := To_DATE('06/30/2006','MM/DD/YYYY');

Oracle Entity Framework - Call custom function (EDIT_DISTANCE)

妖精的绣舞 提交于 2019-12-30 09:31:56
问题 I am using Entity Framework 6 and Oracle Database 11g (ODP.NET Manage Driver). How to call UTL_MATCH.EDIT_DISTANCE function in LINQ query? 回答1: There is an awesome Library to help with mapping Database functions and Stored Procedures to Entity Framework. Install the Nuget package - Install-Package EntityFramework.Functions Create Extension Methods for functions: public static class OracleFunctions { [Function(FunctionType.BuiltInFunction, "TO_NUMBER")] public static int? ToNumber(this string