odp.net

How to Make ODP.NET 4.0 (64 bit) working on 64 bit machine Windows 7?

核能气质少年 提交于 2019-12-09 07:04:57
问题 I have installed the Oracle Client for the 64 bit machine using the XCopy 11.2 provided by Oracle (Installed everything as per the read me instructions). I am using Visual Studio 2010 and the project is of type ASP.NET Website. When I tried to execute my ASP.NET Website using the Oracle Connection installed above..it is giving me the error from the web.config file during compile time. ** "Could not load file or assembly 'Oracle.DataAccess, Version=4.112.2.0, Culture=neutral, PublicKeyToken

PLS-00306: wrong number or types of arguments in call to

旧城冷巷雨未停 提交于 2019-12-09 03:46:11
问题 I'm invoking an Oracle function from a .NET application and I always get following exception: PLS-00306: wrong number or types of arguments in call to 'TF_GETNODES' Here is the definition of the Oracle function: FUNCTION "IMPACTNET"."TF_GETNODES" ( DIMENSIONKEY IN NVARCHAR2, PARENTNODE IN NVARCHAR2, PARASTRING IN NVARCHAR2 ) RETURN IMPACTNET.TREE_NODE_TABLE IS treeNodes IMPACTNET.TREE_NODE_TABLE; BEGIN treeNodes:=IMPACTNET.TREE_NODE_TABLE(); for i in 1..2 loop treeNodes.extend; treeNodes(i) :

Calling a function with user defined type parameters (Oracle ODP.NET)

半城伤御伤魂 提交于 2019-12-08 08:34:32
I'm using a function : fu_has_permissions(udt_person('johny','superman'),'fly_away') udt_person is a user defined type : create or replace TYPE udt_person AS OBJECT (name VARCHAR2(3), id VARCHAR2(18)); I want to use bind variables whan calling this function, but i'm not really sure what am i doing wrong ... Here's the code : ...... OracleParameter udtPersParam = new OracleParameter(); udtPersParam.ParameterName = ":pUdtPers"; udtPersParam.UdtTypeName = "UDT_PERS"; string[] paramValues = { name, id }; udtPersParam.Value = paramValues; OracleParameter pAction = new OracleParameter(":pAction",

Calling a function with user defined type parameters (Oracle ODP.NET)

核能气质少年 提交于 2019-12-08 05:38:33
问题 I'm using a function : fu_has_permissions(udt_person('johny','superman'),'fly_away') udt_person is a user defined type : create or replace TYPE udt_person AS OBJECT (name VARCHAR2(3), id VARCHAR2(18)); I want to use bind variables whan calling this function, but i'm not really sure what am i doing wrong ... Here's the code : ...... OracleParameter udtPersParam = new OracleParameter(); udtPersParam.ParameterName = ":pUdtPers"; udtPersParam.UdtTypeName = "UDT_PERS"; string[] paramValues = {

What is needed for working with Oracle from Visual Studio 2010?

天涯浪子 提交于 2019-12-08 05:38:22
问题 What is needed for working with Oracle from Visual Studio 2010? Environment: 1 - On development pc: Windows 7 Ultimate 64 bit (4 GB ram, Dual-Core 2.6 GHz) Windows 7 Ultimate 64 bit (4 GB ram, Dual-Core 2.6 GHz) Visual Studio 2010 Ultimate ODAC (from package ODTwithODAC112012.zip) (also ODAC10203x64.zip does not install on Windows 7 64) 2 - On server: Windows 2003 Oracle 11g (11.2.0.1.0) .NET (2.0, 3.0, 3.5, 4.0) (SPs are installed) Problem: (Simple) If i create a console app in vs and set

Cannot see Oracle Data Provider for .NET in Visual Studio 2012 RC

百般思念 提交于 2019-12-08 03:58:08
问题 I am porting a web application to Entity Framework 4.5. My main goal is to support both MSSQL and Oracle databases and be able to tell the ORM which data source to target programmatically (in the Global.asax). The SQL and Oracle schemas are obviously functionally identical; this is an approach we already use in production with another ORM we want to throw away. NOTE: The machine we are testing it on has Windows 8 Release Preview Build 8400 64 bit, Visual Studio Professional 2012 RC 11.0.50706

ODP .NET Parameter problem with uint datatype

不问归期 提交于 2019-12-08 02:49:46
问题 After updating from the native .NET oracle data provider to Oracles ODP.NET, I've run into the following issue. I have a stored procedure that is part of a package, and it accepts 32 parameters, all IN but one, designated as an OUT parameter. Anyway, here is the issue I'm having. I have a date parameter passed in as a varchar2 and then 3 other parameters that are varchar2 as well. As for the rest, they are all NUMBER types. In my .NET code all the values passed to the stored procedure are

Fluent NHibernate 3 and Oracle.DataAccess

给你一囗甜甜゛ 提交于 2019-12-08 01:31:46
问题 my question: I am trying to use Oracle.DataAccess.Client Provider with NHibernate (Fluent), and I configured it as follows: Fluently.Configure().Database(OracleClientConfiguration.Oracle10.Provider("Oracle.DataAccess.Client").ConnectionString(c => c.FromConnectionStringWithKey("ORACLE1"))). and I have this error: "Could not load type Oracle.DataAccess.Client. Possible cause: no assembly name specified.":" I already add Reference to Oracle.Dataaccess dll (ODAC) with copy local = true, but

Subsonic support for Oracle ODP.NET?

戏子无情 提交于 2019-12-07 16:50:16
问题 I'm new to Subsonic and I work primarily with Oracle databases. Can subsonic be used against an Oracle database and does it support the use of Oracle's ODP.NET data provider. If yes, can you point me to a good example? Thanks in advance. Scott 回答1: Marve is a little misleading. Subsonic can be used with Oracle but SubSonic 2.x actually uses System.Data.OracleClient . Subsonic 3.0 does not have any .tt files for Oracle yet as no one has stepped forward to do it. I have been using Subsonic 2.2

ADO.Net best practice - Single vs multiple Connections when making asynchronous db calls

笑着哭i 提交于 2019-12-07 16:40:50
问题 I am using ADO.Net for connecting to some Sql Server and Oracle databases, and I want to run some of my queries concurrently. I use classes from SqlClient namespace for Sql Server and ODP.Net for Oracle. For Sql Server I added MARS option to the connection string, and call asynchronous APIs on SqlCommand. ODP.Net does not provide asynchronous API, so I have to give my concurrent Oracle commands separate threads. My question is, how should I handle connection objects? Should I create one