odp.net

ORA-12571: TNS:packet writer failure with ASP.NET

旧城冷巷雨未停 提交于 2019-12-04 03:29:59
My development team is experiencing numerous ORA-12571: TNS:packet writer failure errors using ASP.NET 3.5 and 4.0 against Oracle 11g. These errors are inconsistent as to when they occur, and are generated by numerous applications. This exception happens while calling random stored procedures, packets, and inline SQL statements. The Oracle 11 client is installed on the web server. Some applications use Microsoft System.Data.OracleClient to connect to Oracle, and some use the .NET components provided by oracle (ODP.NET). Both data access objects come up with the same error. There are other non

Oracle.DataAccess mismatch error

家住魔仙堡 提交于 2019-12-04 02:50:58
I installed the odp.net 32 bit installation for Visual Studio 2012. I set a reference to the Oracle.DataAccess.dll and my connection to Oracle seems to be working. When I build the project (.net 4) I get the following error. The project is set to build AnyCPU (my workstation is 64 bit and the server where we will ultimately deploy to is 32bit) 'There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference Oracle.DataAcess, Version 4.112.3.0, Culture=neutral, PublicKeyToken=89b483f429c47342, processorArchitecture=x86,

Connecting Oracle using ODP.NET with Enterprise Library DAAB

蓝咒 提交于 2019-12-04 02:13:08
问题 Our application is using Enterprise Library DAAB to support both oracle and sql databases. One of the Stored Procedure is for uploading Image to Table. It's a BLOB field and the parameter is set to DbType.Binary. This functionality works without any problem for SQL, But when comes to Oracle I hit the 32K parameter size limit issue. As suggested in SO, I moved the code to ODP.NET, but I am still facing the same problem. My App.config file setting: <configuration> <configSections> <section name

Usage of Oracle binding variables with LIKE in C#

我的未来我决定 提交于 2019-12-04 01:35:56
As part of an effort to stop using dynamic SQL generation and encourage use of bind variables, I am running into some problems. I am querying an Oracle 9i database from an ASP.NET page using Oracle Data Providers for .NET The query is sql = "SELECT somedata FROM sometable WHERE machine = :machineName "; I define the Oracle Parameter as follows OracleParameter parameter = new OracleParameter(); parameter.ParameterName = "machineName"; parameter.OracleDbType = OracleDbType.Varchar2; parameter.Value = machine; //machine is a variable of type string parameterList.Add(parameter); This works fine

ODP.NET error Unable to find the Requested .Net Framework Data Provider

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 01:32:59
I am trying to develop an ASP.NET MVC 4.0 application using Oracle 11g Express and the .NET 4.0 framework. I can connect to the DB using the ODP.NET provider and can also generate my EDMX against the database. What I can't do is query the underlying DB using entity framework. When instantiating my DbContext using the connectionString Visual Studio generated, I get the following error: Unable to find the requested .Net Framework Data Provider. It may not be installed However, it is installed because I can see the dll in the GAC. It is mentioned in machine.config. It is referenced by my project.

Unable to find the requested .Net Framework Data Provider in Oracle

喜欢而已 提交于 2019-12-04 01:18:51
问题 string constr = "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=spp01)(PORT=1521))(CONNECT_DATA=(SID=Global)));User Id=SYSMAN;Password=testman3"; string ProviderName = "Oracle.DataAccess.Client"; DbProviderFactory factory = DbProviderFactories.GetFactory(ProviderName); I am able to connect to oracle in console and winforms application. The code above is in a seperate class library. I have installed 64bit ODAC. The ORACLE.DATAACCESS is set to 2.x ver 2.112.3.0. I have checked machine

Connecting to Oracle using Oracle.ManagedDataAccess

无人久伴 提交于 2019-12-03 23:28:42
I am using Oracle.ManagedDataAccess Nuget Package Version 12.1.022 in my C# (.NET 4.0) project. The package automatically creates entries in the app.config file. How can I read the datasource string from this file to be able to connect to the data base? System.Configuration.ConfigurationManager.AppSettings.Get("dataSource"); is not working for me <?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <section name="oracle.manageddataaccess.client" type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken

OracleCommand with OracleDependency waiting forever

大憨熊 提交于 2019-12-03 22:51:54
问题 Note: Relevant question over here has no solution Keep in mind that I am no expert on Oracle or programming against Oracle. This is my test environment. I have a single table in the schema STVM called STVM_NOTIFICATION. This is what it looks like: CREATE TABLE STVM_NOTIFICATION ( "ID" NUMBER NOT NULL, "PROPERTYNAME" VARCHAR2(16 BYTE) NOT NULL, "PROPERTYVALUE" VARCHAR2(16 BYTE) NOT NULL, "ACTION" VARCHAR2(32 BYTE) NOT NULL, "POSTDATE" TIMESTAMP (6) NOT NULL, "SENT" CHAR(1 BYTE) NOT NULL, ADD

ODP.NET Procedure Compilation

那年仲夏 提交于 2019-12-03 20:15:46
When I try to execute a create procedure using ODP.NET I get back ORA-24344: success with compilation error. However, when I run the same statement in SQL Developer it compiles successfully. Does anyone know what I need to change to get my procedure to compile? Is it a character set issue? I am using Oracle 10g Express, .NET 3.5 SP 1, and ODP.NET 2.111.7.20 (version from Oracle.DataAccess.dll) [TestMethod] public void OdpNet_CreateProcedure() { ConnectionStringSettings settings = ConfigurationManager.ConnectionStrings["ODP.NET"]; using (var con = new OracleConnection(settings.ConnectionString)

ODP.NET deployment without installation

孤街醉人 提交于 2019-12-03 17:00:56
I want to deploy a client application that uses Oracle's ODP.net but I don't want to install ODP.net on every machine. Rather I'd like to copy the managed dll oracle.dataaccess.dll on every machine and have the native dlls on which it depends available, on a shared disk. By decompiling the oracle.dataaccess.dll code I have seen that it calls a method that gets the location of the native dlls from the registry. So, in addition to copying the oracle.dataaccess.dll on every machine I would have to add the registry keys that would point to the native dlls on the shared disk. My question: does one