odp.net

ORA-01005 error connecting with ODP.Net

邮差的信 提交于 2019-12-11 03:55:46
问题 I am trying to access an Oracle database (version 10.2.0.4.0) using the following code but an "ORA-01005: Null password given; logon denied" exception is raised by the connection when it's open method is called. var connBuilder = new OracleConnectionStringBuilder(); connBuilder.DataSource = "(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = MyHost.Address)(PORT = ####)) )(CONNECT_DATA =(SERVICE_NAME = MyService)))"; connBuilder.UserID = "validUserId"; connBuilder.Password =

any free linq provider available for oracle?

我的未来我决定 提交于 2019-12-11 02:08:56
问题 I am looking for a free linq provider for oracle. I dont need advanced features. What all I need is CRUD operations + ability to generate model from oracle db. I would like to use this on production web site(using ASP.NET & Silverlight). Any pointers & suggestions will be appreciated. 回答1: You should check out a few things: LinqToOracle at CodePlex http://linqtooracle.codeplex.com/ Supposedly there is some .NET 4.0 beta related activity going on. [Update: "Supposedly" looks to actually have

Oracle data access version issue

冷暖自知 提交于 2019-12-11 00:25:42
问题 I am connecting to oracle using ODP.NET. My testing server has two versions of Oracle(v4 and v2) installed. I have a third party application which is connected to one version(v4) and my application is connected to the other(v2). When I run my application using a Visual studio, it works perfectly without any errors. But, when I publish and run from IIS it throws error saying Could not load file or assembly 'Oracle.DataAccess, Version=4.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342'

Oracle.DataAccess (ODP.NET) Array Binding “Value does not fall within the expected range”

本秂侑毒 提交于 2019-12-10 19:14:16
问题 my scenario i'm using ODP.NET oracle provider with c# 3.5, and i am trying to pass an array as parameter for a procedure...like this: var paramNames = new OracleParameter(); paramNames.CollectionType = OracleCollectionType.PLSQLAssociativeArray; paramNames.ParameterName = "P_JOB_TITLE"; paramNames.Size = 2; paramNames.Value = new string[2]{ "name1", "name1" }; cmd.Parameters.Add(paramNames); when runtime code goes to paramNames.Value = new string[2]{ "name1", "name1" }; it catch with this

ODP.NET / EF6 - CHAR datatype in WHERE clause

白昼怎懂夜的黑 提交于 2019-12-10 18:55:35
问题 I'm starting a project with EF6 and ODP.NET and I'm having trouble performing look-ups based on fixed-length CHAR columns. The following code returns no results, even though this user exists in the database. using (var context = new Entities()) { var search = "testuser"; var result = context.Users .Where(u => u.UserName == search) .FirstOrDefault(); } I know I can get around this by padding the search string or by trimming the database column, but I'm looking for an alternate solution. I

Creating 32-bit ODP.Net OracleConnection object is very slow

不羁的心 提交于 2019-12-10 18:06:23
问题 I'm using the Oracle ODP.Net 11.2.0.2 provider to connect to an Oracle database. When I run the following code as a Console application, the creation of the OracleConnection object takes over 2 minutes: using System; using Oracle.DataAccess.Client; namespace OracleConnectionTest { class Program { static void Main(string[] args) { Console.WriteLine("Creating connection..."); OracleConnection conn = new OracleConnection("Data Source=mydatabase;User Id=myuserid;Password=mypassword"); Console

ODP.NET Integrated Security Invalid Connection String Argument

若如初见. 提交于 2019-12-10 17:57:34
问题 What am I missing? <add name="test" connectionString="Data Source=TEST_ORACLE;Integrated Security=Yes;" /> [ArgumentException: 'Integrated Security' is an invalid connection string attribute] Oracle.DataAccess.Client.OracleConnection.ParseConnectionString() +2707 Oracle.DataAccess.Client.OracleConnection.set_ConnectionString(String value) +533 Oracle.DataAccess.Client.OracleConnection..ctor(String connectionString) +210 ODP.NET: Oracle.DataAccess - 2.102.2.20 (I am using a bindingRedirect to

Nuget package for Oracle Unmanaged Provider with Entity Framework

此生再无相见时 提交于 2019-12-10 17:46:53
问题 According to the latest documentation from Oracle (Data Provider for .Net developer's guide, 12c Release 1) The Chapter "Installing Oracle Data Provider for .NET, Unmanaged Driver" states that the entity framework provider for the unmanaged driver is available on NuGet http://docs.oracle.com/database/121/ODPNT/InstallODP.htm#ODPNT152 ODP.NET, Unmanaged Driver Entity Framework 6 and Code First functionality are available through a NuGet package. OUI and Xcopy installations include this package

Oracle ODP.NET problems calling package procedure with parameters

一世执手 提交于 2019-12-10 17:29:01
问题 Problem: Trying to call a packaged stored procedure, but the call is failing depending on the values of the parameters. ORA-06502: PL/SQL: numeric or value error ORA-06512: at line 1 Procedure Definition: procedure DUP_EXACT ( SSN in VARCHAR2, LASTNAME in VARCHAR2, FIRSTNAME in VARCHAR2, MASTERRECORD IN VARCHAR2 DEFAULT NULL, C_Table out sp_cursor) Parameter Creation: For Each SearchParameter In SearchParameters ValueParameter = New OracleParameter ValueParameter.Direction =

Row count from OracleDataReader

岁酱吖の 提交于 2019-12-10 16:39:00
问题 Can any one tell me how to find row count from OracleDataReader in .net 2.0? 回答1: An OracleDataReader object represents a forward-only, read-only, in-memory result set. Unlike the DataSet , the OracleDataReader object stays connected and fetches one row at a time. So, it does not know how many rows there will be. If you use the data adapter, then you will be able to get a row count since it fetches the rows. In your case you have to fetch all the rows (if you need to fetch the data only) to