odp.net

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

大城市里の小女人 提交于 2019-12-06 14:48:41
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 .NET version to 3.5 and plateform to x86, it works on development pc but not on the server. If I set

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

时间秒杀一切 提交于 2019-12-06 13:17:51
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.0 and .NET framework 4.5.50501. It is not a standard development machine (the others have XP and 7 w

Function imports for entity framework with odp.net managed driver

三世轮回 提交于 2019-12-06 12:26:14
问题 I recently switched from ODP Unmanaged to ODP Managed (in conjunction with Entity Framework). The Unmanaged drivers were working fine after adding the necessary information in the web.config section. I could add the stored procedures and generate the complex types using the Function Import - Get Column information (I'm trying to import a stored procedure with an OUT refcursor parameter). After the switch the config section was updated to reflect the new format and everything works at runtime

Problems switching .NET project from unmanaged to managed ODP.NET assemblies

痴心易碎 提交于 2019-12-06 12:03:06
问题 I'm trying to switch my .NET project over to the manage oracle to make deployments easier. However I'm getting the following error in my test Win Server 2013 environment: Unable to determine the provider name for connection of type 'Oracle.ManagedDataAccess.Client.OracleConnection'. Steps I've taken so far: Removed all Oracle.DataAccess dll's and references from the solution Added the Oracle Data Provider for .NET (ODP.NET) Managed Driver in the NuGet package manager Switched all Imports

ODP .NET Parameter problem with uint datatype

梦想的初衷 提交于 2019-12-06 10:20:13
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 either string or int, with 4 exceptions. I have 4 items of data of type UInt32. The value they hold is too

Why does this oracle bulk insert not work?

半世苍凉 提交于 2019-12-06 10:04:53
问题 I am trying to bulk insert some data into an oracle db. I followed the example in the documentation. this.DataBaseAccess = new OracleConnection(connString); var dataAdapter = new OracleDataAdapter(); var insertCmd = DataBaseAccess.CreateCommand(); insertCmd.CommandType = CommandType.Text; insertCmd.BindByName = true; var names = new List<string>(); foreach (DataTable table in product.Contracts.Tables) { foreach (DataRow row in table.Rows) { names.Add(row["Contract"].ToString()); } const

Is ODP.NET redistributable? [closed]

别来无恙 提交于 2019-12-06 08:04:32
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Are the Oracle ODP.NET libraries redistributable? As in, can I simply include the Oracle.DataAccess.dll with my application & reference it without getting into any legal hot water? The download license for the ODAC on OTN is fairly incomprehesible legalese that doesn't make it clear whether I can or can't

Fluent NHibernate 3 and Oracle.DataAccess

丶灬走出姿态 提交于 2019-12-06 06:58:43
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 error persist... Any suggestions? Here's a working code snippet: public static void InitializeNHibernate()

How to get tracing info for binding variables passed through OracleParameter in ODP.NET?

北战南征 提交于 2019-12-06 06:18:39
问题 After Googling a lot and not finding what I'm looking for I decided to ask this question. I'm using binding variables as demonstrated in this awesome article from 2005 titled The Values That Bind by Mark A. Williams, like this: OracleParameter p_APP_NAME = new OracleParameter("p_APP_NAME", OracleDbType.NVarchar2, ParameterDirection.Input); p_APP_NAME.Size = 50; p_APP_NAME.Value = log.Application.Name; cmd.Parameters.Add(p_APP_NAME); I successfully enabled ODP.NET debug tracing but one key

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

筅森魡賤 提交于 2019-12-06 04:15:52
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 DbConnection per each database instance and execute commands asynchronously against a single connection, or