odp.net

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

喜夏-厌秋 提交于 2019-12-04 19:24:30
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, thus grabbing the pooled connection, the MODIFIED_BY is still USER1 despite passing in USER2 to the

Returning cursor from PL/SQL anonymous block in C#

▼魔方 西西 提交于 2019-12-04 18:00:43
I'm working on converting an existing application from SQL Server over to Oracle, and I've hit a roadblock. I'm trying to execute an anonymous block as dynamic SQL and return a result set. However nothing I've tried seems to be able to return any values. Stored procedures are out due to design constraints. My query is defined as: DECLARE type id_array IS TABLE OF number; t_Ids id_array; BEGIN UPDATE CSM_RECORDS SET MIGRATION_STATE = 1, LAST_UPDATE = CURRENT_DATE WHERE OBJECT_UID IN (SELECT OBJECT_UID FROM CSM_RECORDS obj WHERE MIGRATION_STATE = 0 AND ROWNUM <= :BatchSize) AND (:BatchName IS

Problems switching .NET project from unmanaged to managed ODP.NET assemblies

与世无争的帅哥 提交于 2019-12-04 17:37:17
I'm trying to switch my .NET project over to the manage oracle to make deployments easier. However I'm getting the following error in my test Win Server 2013 environment: Unable to determine the provider name for connection of type 'Oracle.ManagedDataAccess.Client.OracleConnection'. Steps I've taken so far: Removed all Oracle.DataAccess dll's and references from the solution Added the Oracle Data Provider for .NET (ODP.NET) Managed Driver in the NuGet package manager Switched all Imports Oracle.DataAccess statements over to Imports Oracle.ManagedDataAccess I'm not getting any build errors, and

What is the difference between “ORA-12571: TNS packet writer failure” and “ORA-03135: connection lost contact”?

孤街醉人 提交于 2019-12-04 15:53:30
问题 I am working in an environment where we get production issues from time to time related to Oracle connections. We use ODP.NET from ASP.NET applications, and we suspect the firewall closes connections that have been in the connection pool too long. Sometimes we get an "ORA-12571: TNS packet writer failure" error, and sometimes we get "ORA-03135: connection lost contact." I was wondering if someone has run into this and/or has an understanding of the difference between the 2 errors. 回答1: Using

Could not load file or assembly 'Oracle.DataAccess' 64 bit ODP.NET

我们两清 提交于 2019-12-04 14:50:46
I am using ODP.NET in my asp.net project in order for the application to talk to oracle 11 g Express on Windows 2008 server (32 bit). While on development machine I had Windows 7 (32 bit). I installed Windows 8 (64 bit) on the development machine and tried to run the application from visual studio 2012, It gave the error 'Could not load file or assembly 'Oracle.DataAccess''. After a little search I realized that I have to install ODP.NET (64 bit) in order to use it on 64-bit machine, so I uninstalled the 32 bit version and installed 64-bit ODP.NET. Removed the reference to old Oracle

Oracle Data Provider to CLR type mapping

99封情书 提交于 2019-12-04 14:42:54
Where can I find the listing of ODP to CLR type mapping? On Oracle database, the NUMBER(9,0) type comes out in .NET app as System.Decimal from the MS Oracle driver, but as System.Int32 from ODP driver. I need an exact specification of types coming out from database (not the CLR to DB parameter mapping). Run this simple test to get mappings for SqlServer and Oracle (both MS and ODP.NET drivers): using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using Oracle.DataAccess.Client; namespace DbOutTypeTest { public class Program {

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

最后都变了- 提交于 2019-12-04 14:00:01
问题 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

Is ODP.NET redistributable? [closed]

你离开我真会死。 提交于 2019-12-04 13:00:33
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Are the Oracle ODP.NET libraries redistributable? As in, can I simply include the Oracle.DataAccess.dll with my application & reference it without getting into any legal hot water? The download license for the ODAC on OTN is fairly incomprehesible legalese that doesn't make it clear whether I can or can't include the dll directly. What you want to distribute is the Oracle Instant Client . This is a

Oracle.ManagedDataAccess with Oracle 8.1.7 DB

a 夏天 提交于 2019-12-04 05:03:29
问题 Is it at all possible to use Oracle.ManagedDataAccess with Oracle DB v.8.1.7? I've searched for hours, but failed to find a definitive answer anywhere. 回答1: No. ODP.NET Managed Driver only supports databases back to 10.2. As it is a relatively new product, there aren't old versions to fall back on. The problem is the networking protocol changes over time and Oracle promises backward compatibility for two major versions. If you must use ODP.NET and Oracle Database 8.1.7, consider using ODP.NET

ODP.NET Connection exception

主宰稳场 提交于 2019-12-04 04:53:38
First I would like to say that I am not familiar at all with Oracle databases, so my words might be poorly chosen and my understanding of some concept might be wrong... Anyway, I am trying to connect to an Oracle 11g database using ODP.NET and every time it gives me this exception : System.TypeInitializationException occurred HResult=-2146233036 Message=The type initializer for 'OracleInternal.Network.AddressResolution' threw an exception. Source=Kiwi.ServiceBase TypeName=OracleInternal.Network.AddressResolution StackTrace: at OracleInternal.ConnectionPool.PoolManager`3.CreateNewPR(Int32