odp.net

Oracle Connection Pooling in .Net

本小妞迷上赌 提交于 2019-12-01 03:43:34
We have a system that uses an Oracle database. I've been asked if the system makes use of connection pooling which I'm not sure about. We are using the Oracle.DataAccess.Client.OracleConnection When reading up on the subject I've found that connection pooling is set to true in the connection string and that it is set to true by default. Our connection string does not include any pooling settings. Does this imply that we are using pooling and if so what would the default min and max pool size be? I've not been able to find any information on what these values would be in the case of using

ORA-01460: unimplemented or unreasonable conversion requested

坚强是说给别人听的谎言 提交于 2019-12-01 02:54:25
问题 When I run the following .Net code: using (var c = Shared.DataSources.BSS1.CreateCommand()) { c.CommandText = "\r\nSelect c1, c2, c3, rowid \r\nFrom someSpecificTable \r\nWhere c3 = :p0"; var p = c.CreateParameter() as Oracle.DataAccess.Client.OracleParameter; c.Parameters.Add(p); p.OracleDbType = Oracle.DataAccess.Client.OracleDbType.Varchar2; p.DbType = System.Data.DbType.AnsiString; p.Size = 20; p.Value = "007"; p.ParameterName = ":p0"; using (var r = c.ExecuteReader()) { r.Read(); } } I

Is there a way to force OracleCommand.BindByName to be true by default for ODP.NET?

只谈情不闲聊 提交于 2019-12-01 02:36:09
问题 Since the System.Data.OracleClient library has been deprecated, we are in the process of migrating our code base to use Oracle Data Provider for .NET (ODP.NET) instead. One of the issues that we have encountered is that the System.Data.OracleClient uses parameter name binding as opposed to binding by position and all of the code directly access the System.Data.OracleClient.OracleCommand as opposed to using an intermediate data layer. Since there is quite a bit of code, is there an easy way to

C# 2010, ODP.net, call stored procedure passing array

半世苍凉 提交于 2019-11-30 21:45:34
I have a PL/SQL stored procedure that takes 4 inputs. One of those inputs is an associative array (Oracle Type: Table of VARCHAR2(1) index by PLS_INTEGER). I want to have a C# program that calls this stored procedure with the proper inputs including the associative array. I am using ODP.net 11.2 with Visual C# 2010 Express and Oracle 11gR2. I cannot find any good examples of how to pass an array to a pl/sql procedure from C#. Can anybody give me an example? Following Oracle Documentation exactly gives me error saying Wrong number or type of arguments. My C# Code: OracleCommand cmd = new

Problem on using ODP.Net

戏子无情 提交于 2019-11-30 19:39:48
I've successfully used Oracle Database 11g Release 2 (11.2.0.1.0) to connect oracle from .Net. (in reference Oracle.DataAccess.dll version was 2.112.1.0). But when I installed ODP.NET and when I am trying to connect to oracle, it gives me an error: "ORA-12154: TNS:could not resolve the connect identifier specified". How can I solve this problem? Thanks! This usually occurs when your oracle client is not in the PATH of your computer. Make sure that the PATH environment variable contains both <Oracle client path> and <Oracle client path>\bin . Also, this can happen if the SID of the database you

Poor performance getting clob field from Oracle in .Net

断了今生、忘了曾经 提交于 2019-11-30 17:01:36
问题 I am trying to read a clob column from oracle in .Net and observing very poor performance and lots of network traffic. I have tried ODP+OCI, devArt+OCI ways to access the data with the same results - it takes around 20 seconds to get 1000 rows in a data reader and read the clob value for each row. Examining wireshark traces, it turns out that every time I try to read the clob field for a single row in the reader, there are additional multiple tcp packets sent between client and server. So for

Oracle.DataAccess still try to access oraops12.dll after uninstall

蹲街弑〆低调 提交于 2019-11-30 14:00:56
First I have both 11 and 12 oracle client on my machine. But when i try to use 11g version of oracle.dataacess.dll . I already remove a 12c register on regedit and stop service and machince.config related. but the program was throw "Unable to load oraops12.dll..". Which path that oracle.dataacess find a config for dll? Why did it still try to load oraops12 not oraops11. Thank you in advance. There is a policy file in your GAC that is using the "bindingRedirect" tag Policy.2.112.Oracle.DataAccess.config Do a search for the file (I use Agent Ransack) then edit it. The contents of the file look

The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception

自闭症网瘾萝莉.ら 提交于 2019-11-30 11:19:24
I have developed an application that uses Oracle Data Provider for .NET. I copy the application file (.exe) and ODP library (Oracle.DataAccess.dll) on another computer that Oracle client and ODP.NET are NOT installed on. When I run the application, I got the error msg: The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception. *****************Exception Text*************** System.TypeInitializationException: The type initlializer for 'Oracle.DataAccess.Client.OracleConnection at Oracle.DataAccess.Client.OracleConnection..cctor() --- End of inner exception stack

How to write a .Net application that works with both SqlServer and Oracle (now that System.Data.OracleClient is deprecated)

自作多情 提交于 2019-11-30 10:29:39
问题 see also System.Data.OracleClient namespace discontinued? (Firstly don’t panic yet, System.Data.OracleClient is not being removed by Microsoft yet, however it is not in the client version of .net 4) This use to be possible by using System.Data.OracleClient, however Microsoft has decided to deprecate OracleClient. (OracleClient is the ADO.NET provider for Oracle developed by Microsoft and ships as a part of the .NET Framework.) You could use ODP.Net, however do you wish your Sql Server

Error using oracle.dataaccess.dll

你离开我真会死。 提交于 2019-11-30 09:32:02
I have a web application which uses Oracle.DataAccess.dll to communicate with an Oracle db. The web application deployed on 32 bit windows system works but not on windows server 2008 64 bit. I installed 10204_vista_win2k8_x64_production_db package, referenced the installed dll (version 2.102.4.0) from the project but I get the following error: Could not load file or assembly 'Oracle.DataAccess, Version=2.102.4.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified. Philippe Leybaert Same here. The Oracle.DataAccess assembly