odp.net

Issue with System.Data.OracleClient and ODP.Net 11g together used in .net 2.0 web site

走远了吗. 提交于 2019-12-29 09:26:07
问题 In our .net framework 2.0 based application we were using System.Data.Oracleclient and now migrating to ODP.Net, the volume of the project is too high, so we cannot do the entire migration on one go, as a result the application is using 2 providers System.Data.Oracleclient & ODP.Net as of now. Now we are changing our OS, from Windows xp 32bit to Windows 7 64bit. While doing so we observed the following, 1) A query executes in < 1 sec using System.Data.Oracleclient & ODP.Net 10g 64bit (Oracle

When opening an oracle connection, connection object is null

时光怂恿深爱的人放手 提交于 2019-12-29 07:41:52
问题 I am trying to connect to an oracle database in my controller: using Oracle.DataAccess.Client; using Oracle.DataAccess.Types; // Other code OracleConnection con; con = new OracleConnection(); con.ConnectionString = "DATA SOURCE=<DSOURCE_NAME>;PERSIST SECURITY INFO=True;USER ID=******;PASSWORD=*******"; con.Open(); The connection test is successful and I can navigate through tables, functions, etc. in Visual Studio's Server Explorer, but when I try to execute the above code I consistently get

How to execute a update statement using Oracle ODP.Net in C#

泄露秘密 提交于 2019-12-29 06:55:27
问题 I am using Oracle.DataAccess.Client to work with Oracle database in my ASP.Net application. There is no help documentation in MSDN for ODP.Net and Oracle 's documentation is really really bad. I am not able find the answer to this simple question. Is it not possible to execute a simple update statement without having to build a dataset object and updating the dataset ? How to execute an update statement using Oracle ODP.Net in C# ? 回答1: I will need to check the exact syntax, but here is some

Oracle number to C# decimal

给你一囗甜甜゛ 提交于 2019-12-29 01:33:11
问题 I know there are several threads and posts regarding this issue in the internet and I've read them (not every article, I have to admit) but none of them did fully satisfy me. My situation: I'm using ODP.net (dll version 2.111.6.0) to access the Oracle DB (version 10 + 11) and a DataReader to retrieve the data (.NET 3.5, C#). Using this code results in a ' System.OverflowException (Arithmetic operation resulted in an overflow.) ' decimal.TryParse(oraReader.GetOracleDecimal(0).Value.ToString(),

Oracle.ManagedDataAccess.EntityFramework - ORA-01918: user 'dbo' does not exist

不问归期 提交于 2019-12-28 03:05:25
问题 I am trying to implemente code First Migrations with Oracle.ManagedDataAccess 6.121.1.0 provider, but with no success at all. As I am receiving a ORA-code, I am assuming that the connection are been opened successfully. But the Migrations are failing because, maybe, the provider are behaving as a SQL Server, instead of Oracle. I think that beacause it is traying to use 'dbo' as default schema. Here is my web.config settings: <configuration> <configSections> <section name="entityFramework"

Oracle.ManagedDataAccess.EntityFramework - ORA-01918: user 'dbo' does not exist

百般思念 提交于 2019-12-28 03:05:07
问题 I am trying to implemente code First Migrations with Oracle.ManagedDataAccess 6.121.1.0 provider, but with no success at all. As I am receiving a ORA-code, I am assuming that the connection are been opened successfully. But the Migrations are failing because, maybe, the provider are behaving as a SQL Server, instead of Oracle. I think that beacause it is traying to use 'dbo' as default schema. Here is my web.config settings: <configuration> <configSections> <section name="entityFramework"

Strange memory usage pattern in C# Windows Form app

折月煮酒 提交于 2019-12-25 14:39:30
问题 I am trying to understand what is going on in app written in C#. Below are several images taken from Performance Monitor. The blue line is #Bytes in all Heaps. The green line is Large Object Heap Size. I start the app and log me in. The app remains idle. The first image shows that LOH increases for some reason and then drops. A pattern is very clear. What is responsible for such behavior? More. I do some heavy processing starting in A (see image below) using an Oracle Database through ODP.NET

C# Call Oracle Stored Procedure with nested UDT

社会主义新天地 提交于 2019-12-25 04:07:23
问题 Is it possible to call a stored procedure with an nested object as a parameter? For example I have a Person class that has an Address instance. Person p1 = new Person(); p1.Name = "John"; p1.Address = new Adress{Street = “StackOverflow”, App = 3} p1.Age = 20; In the database I have created the user defined types, and the stored procedure that takes as parameter a person_type that contains an address_type. create or replace TYPE Person_TYPE AS OBJECT ( Name VARCHAR2(100), Age NUMBER, OBJ

How do I set my Oracle session's globalization to be the same as Windows in .NET?

佐手、 提交于 2019-12-24 03:24:20
问题 For example, it would be great if I could do the following: private void SetSessionGlobalization(Oracle.DataAccess.Client.OracleConnection aConnection) { System.Globalization.CultureInfo lCultureInfo = System.Threading.Thread.CurrentThread.CurrentCulture; aConnection.SetSessionInfo(lCultureInfo); } But that does not work because SetSessionInfo takes a OracleGlobalization class as a parameter, not a CultureInfo! And this does not work either: private void SetSessionGlobalization(Oracle

ORA 03134 error connecting ODP.NET 12 (VS2012) to Oracle database 11

自闭症网瘾萝莉.ら 提交于 2019-12-24 01:44:47
问题 When trying to connect to Oracle 9.2 from VS2012 using ODP.NET 12, I have got this message: ORA-03134: Connections to this server version are no longer supported I have installed ODP.NET 11 and I got the same error, although connecting with Toad is working. Any ideas? 回答1: I solved the issue, uninstalling version 12 of ODP.NET, as version 12 is not supporting Oracle 9.2 databases. ODP.NET version 11 works with version 9.2 and above. 来源: https://stackoverflow.com/questions/19688485/ora-03134