odp.net

ODP.NET Managed library does resolve alias, but 32-bit library does

馋奶兔 提交于 2019-11-27 04:54:31
问题 I have 32-bit drivers installed on my box (they were installed and configured by some DBAs) I wrote a simple script to test the drivers which pretty much is as follows using (DataTable table = new DataTable()) { using (OracleConnection connection = new OracleConnection()) { connection.ConnectionString = "Data Source=alias;User id=user;Password=password"; connection.Open(); using (OracleCommand command = connection.CreateCommand()) { command.CommandType = CommandType.Text; command.CommandText

Is it ok to use oracle 11g client with a 10g server?

狂风中的少年 提交于 2019-11-27 03:50:35
问题 I am creating a .NET program that uses odp.net, specifically the 11g version. Our oracle server is running 10g. I am too late in the development process to make a change. Am I heading for trouble? Have you had any experience running 11g client against a 10g server? 回答1: You can use odp.net 11 with Oracle server 9, 10 and 11. And yes I have tried all those combinations. You can use for example odp.net 11 for retrieving geographical information (datatype=mdsys.sdo_geometry) from the Oracle

Oracle.DataAccess.Client Dependencies

戏子无情 提交于 2019-11-27 03:28:45
问题 First of all, I want to use the Oracle.DataAccess.dll to use OracleBulkCopy . I want to know all the dlls that I need to be able to read from a database and then perform a bulkcopy in Oracle. Currently, we are using only one dll to perform all the reads from databases, we are using Oracle.ManagedDataAccess.Client . But I can't use it to perform a bulkCopy. I don't want to install ODP.NET for the users, I want to include the dll directly in the program. So I want to know the minimum required

Binding query parameters by name with ODP.NET

为君一笑 提交于 2019-11-27 03:12:10
问题 I'm currently using the Microsoft ADO.NET provider for Oracle ( System.Data.OracleClient ). I'm aware that it is certainly not the best Oracle provider available and that it will soon be deprecated, I should be using Oracle's ODP.NET instead. The reason why I still use the MS provider is because ODP.NET binds parameters by position , not by name. This can really be a PITA when you use many parameters in a query, because you have to be careful to add them in the right order, which can easily

Managed ODP.NET driver does not show up in Data Source dialog

老子叫甜甜 提交于 2019-11-27 02:10:33
Having installed managed ODP.NET on my computer, the ODP.NET Managed Driver does not appear inside the Choose Data Source dialog in Visual Studio 2013 Professional. This is how it should look like: This is how it actually looks on my machine: I've followed the steps described in the " An Easy Drive to .NET " article on the Oracle website. I've also installed the Oracle Developer Tools for Visual Studio . Still no managed driver to select. My question: Is there anything I forgot to do in order to make the data provider appear? Open your Registry editor and check if RegKey HKEY_LOCAL_MACHINE

ORA-03113: end-of-file on communication channel after long inactivity in ASP.Net app

邮差的信 提交于 2019-11-27 01:05:23
问题 I've got a load-balanced (not using Session state) ASP.Net 2.0 app on IIS5 running back to a single Oracle 10g server, using version 10.1.0.301 of the ODAC/ODP.Net drivers. After a long period of inactivity (a few hours), the application, seemingly randomly, will throw an Oracle exception: Exception: ORA-03113: end-of-file on communication channel at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx,

How to return a RefCursor from Oracle function?

一曲冷凌霜 提交于 2019-11-26 23:22:02
问题 I am trying to execute a user-defined Oracle function that returns a RefCursor using ODP.NET. Here is the function: CREATE OR REPLACE FUNCTION PKG.FUNC_TEST (ID IN TABLE.ID%type) RETURN SYS_REFCURSOR AS REF_TEST SYS_REFCURSOR; BEGIN OPEN REF_TEST FOR SELECT * FROM TABLE; RETURN REF_TEST; END; / I can call this function in Toad (select func_test(7) from dual) and get back a CURSOR. But I need to get the cursor using C# and ODP.NET to fill a DataSet, but I keep getting a NullReferenceException

Oracle ODP.net Managed vs Unmanaged Driver

断了今生、忘了曾经 提交于 2019-11-26 22:43:02
问题 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) 回答1: 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,

Deploying and Configuring ODP.NET to work without installation with Entity Framework

被刻印的时光 ゝ 提交于 2019-11-26 21:21:48
How do you deploy and configure ODP.NET to work without installation with Entity Framework? A. How to deploy and configure Oracle.DataAccess.Client? B. How to deploy and configure Oracle.ManagedDataAccess.Client? C. What do you need to do in order to make builds with EDMXs with Oracle SSDLs work? D. What do you need to install for designer support? This answer summarizes (hopefully) all the steps required, many of which documented in various places online and might save someone hours of Googling. A. How to deploy and configure Oracle.DataAccess.Client. A.1. Download ODAC112030Xcopy_64bit.zip

ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file

痞子三分冷 提交于 2019-11-26 20:59:58
问题 Overview I want to replace Oracle.DataAccess with Orcale. Managed DataAccess, but opening a connection with the latter throws an ORA-12537 network session end of file exception. Exception message / stack trace {OracleInternal.Network.NetworkException (0x000030F9): ORA-12537 : Netzwerksession: Dateiende at OracleInternal.Network.ReaderStream.Read(OraBuf OB) at OracleInternal.TTC.OraBufReader.GetDataFromNetwork() at OracleInternal.TTC.OraBufReader.Read(Boolean bIgnoreData) at OracleInternal.TTC