odp.net

Enterprise Library ODP.NET call returns ORA-06502: PL/SQL: numeric or value error

馋奶兔 提交于 2019-12-11 20:28:31
问题 I have the following Oracle Stored Procedure: PROCEDURE SP_ITEMEXISTS(pID IN NUMBER, pExists OUT CHAR) IS BEGIN select CASE count(*) WHEN 0 THEN 'N' ELSE 'Y' END into pExists from items where id = pID; END SP_ITEMEXISTS; I'm calling it from Enterprise Library 6.0 with ODP.NET with the following code: public bool ItemExists(int itemID) { string procedureName = "SP_ItemExists"; var database = new DatabaseProviderFactory().CreateDefault(); bool returnValue = false; using (OracleCommand command =

Oracle Odp.net Driver Deploy

醉酒当歌 提交于 2019-12-11 19:00:00
问题 We have installed the 32bit odp.net driver for Oracle. Our server currently hosts applications that are using the deprecated Microsoft Oracle driver. To use the new odp.net driver on the server will there be any conflicts with the older deprecated driver from microsoft? What needs to be installed on the server? (how to avoid conflicts with existing web applications?) 回答1: System.Data.OracleClient relies on the unmanaged Oracle client software in the same way that odp.net does: http://msdn

Generating Code First Views with Oracle

女生的网名这么多〃 提交于 2019-12-11 18:18:46
问题 I am using Code First EF with Oracle ODP.Net, and am trying to re-generate the Views via "EF Powertools Beta 3" within VS2012. I have recently started getting errors on the view generation which I didn't before, so I'm guessing that I have some config wrong, as the error relates to SQL Server rather than Oracle. The error in full is given as: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.ProviderIncompatibleException:

Input string was not in a correct format and ORA-01465: invalid hex number

允我心安 提交于 2019-12-11 17:26:46
问题 Development Platform/Tools I use: (OS: XP with SP3 IDE: VS2010 with SP1 / ASP.NET 4.0 ADD-IN: Oracle ODT with ODAC 11.2 Database: Oracle 10.2g This is a continuation of my yesterday's concern (please see How To Insert USERID (Type: Raw, Size: 16) from Ora_aspnet_users to Another Table ). I am now able to insert the Raw datatype if I will use HARDCODED username/userid in DropDownList. However, if I create a Datasource to become DYNAMIC the username/userid, it will thrown error as indicated in

ODP.net + VB = Table not found

心已入冬 提交于 2019-12-11 16:53:54
问题 I am new to Oracle and I have just installed Oracle 10g XE,and its ODAC package for .NET. I am making a simple connect-and-get-table app in VB,however,it always throws a "Table not found" error. I created the "Test" table in Oracle Home (the web admin thing) and here is the code I'm using in VB : Dim oraCmd As New OracleCommand("Select * From Test") oraCmd.Connection = oraCon oraCon.Open() oraCmd.ExecuteReader() 'Reader code supressed EDIT When I try the same query in Database Home, it works.

Parameter issue with Oracle RefCursor

随声附和 提交于 2019-12-11 16:47:45
问题 I'm using ODP.NET (migrating from Microsoft's provider), and I have got stuck on a stored procedure that returns a refcursor. I have the following PL/SQL procedure (I have changed it a little bit to make it more general): PROCEDURE MyProc(parameter_no1 IN NUMBER, parameter_no2 IN NUMBER, RETCURSOR OUT ret_type) AS BEGIN OPEN RETCURSOR FOR SELECT ad.logo logo FROM tab_a a, tab_h h WHERE a.id IS NOT NULL AND a.h_id = h.id AND a.no1 = parameter_no1 AND a.no2= parameter_no2; END HanteraLogotype;

How to uninstall deprecated Oracle Data Provider?

北战南征 提交于 2019-12-11 14:38:40
问题 I am trying to install Oracle Developer Tools for Visual Studio 2015 so that I can connect to a remote 11g database from SSRS/Visual Studio Projects in general, from my dev machine. When I go to the downloads page, I see this: So I went to Visual Studio to determine whether I already had ODT, and found this: However, I don't think I installed this ODP, and it just came with the Visual Studio installation. Is there a way to uninstall this provider, or am I OK to just install the new ODT over

Getting web.config to specify version of ODP.net that's different from installed version

强颜欢笑 提交于 2019-12-11 14:26:56
问题 I have the following in my web.config file <DbProviderFactories> <remove invariant ="Oracle.DataAccess.Client" /> <add name="ODP.NET, Unmanaged Driver" invariant="Oracle.DataAccess.Client" description="Oracle Data Provider for .NET, Unmanaged Driver" type="Oracle.DataAccess.Client.OracleClientFactory, Oracle.DataAccess, Version=4.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342" /> </DbProviderFactories> My development machine is using OPD.net version 4.121.1.0 and I have added the

Oracle's ODP.Net can't handle newlines .Net newlines? [closed]

心已入冬 提交于 2019-12-11 14:05:00
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . For a .Net 4.0 application i'm using the OracleClient class from the ODP.Net 11 library. After a bit of research some people note that the ODP.net library can't handle the Windows newlines, but only the unix ones

How do I get an older version of OracleClient to work locally with .NET?

喜夏-厌秋 提交于 2019-12-11 12:09:33
问题 When I create a new .NET app with Oracle.DataAccess.dll, it works fine. However, I need to edit an existing web application with an older version of Oracle.DataAccess.dll installed, and when I try to run it locally, it throws our old friend, the "The provider is not compatible with the version of Oracle client" exception. The existing version on the app is 2.112.1.2. I have two versions available; 4.112.4.0 and 2.112.4.0. (The apps I create that work use 4.112.4.0.) The "obvious" answer would