odp.net

Problems with NHibernate and DateTime mappings

↘锁芯ラ 提交于 2019-12-22 08:47:11
问题 I'm having trouble with a query where I select records within a given timespan. The column I'm selecting from is of type DATE. I have mapped this column as a DateTime property, and the query works but is slow. The generated query looks like: (provided by NHProfiler) select kifkalende0_.KALENDER_MEDARBEJDER_ID as KALENDER1_119_0_, kifkalende1_.KALENDER_EMNE_ID as KALENDER1_210_1_, kifkalende0_.OPDATERET_TIDSPUNKT as OPDATERET2_119_0_, kifkalende0_.AENDRET as AENDRET119_0_, kifkalende0_

Could not load file or assembly 'Oracle.DataAccess' - Markup View

折月煮酒 提交于 2019-12-22 08:06:02
问题 I am having a strange problem since installing the latest version of ODAC, 11.2.0.2.1. I installed both the 32-bit and 64-bit versions because I develop applications for both architectures. My computer is Win 7 64-bit. Since installing ODAC and referencing the new 64-bit version of ODP.NET, one of my web application projects in Visual Studio 2010 gives the following warning for all aspx pages and masterpages when I view them in Markup View. ASP.NET runtime error: Could not load file or

Visual Studio ODP Unmanaged Driver - Failed to find the default tnsnames.ora file (12c )

送分小仙女□ 提交于 2019-12-22 05:35:39
问题 I'm developing an app in Visual Studio 2013 that connects to a Oracle Database. I have to use the "Unmanaged Driver". When I'm trying to create a new connection in a dataset, when I chose the "Managed Driver" all work fine: the tnsnames.ora is found. But when I select the "Unmanaged driver" all fails, it send me a message like " Failed to find the default tnsnames.ora file" I already - Uninstalled all old Oracle Clients - Clean all environment variables - Reinstalled Oracle client, ODP tools

How to call Oracle table function (pipelined function) from .NET

旧巷老猫 提交于 2019-12-21 21:19:46
问题 from my .NET application I have to invoke an Oracle pipelined table function. Do I need to map the Oracle UDTs (object and table) and to add a parameter for the table object to the ADO.NET Command object, or should I use a Data Reader? I know that I have to map the Oracle UDTs to .NET classes when I want to pass a table to Oracle procedure. Can I use the same method to invoke a pipelined function? Or should I specify in my ADO.NET Command the Text "SELECT * FROM TABLE(myFunction(...))" and

Could not load file or assembly 'Oracle.DataAccess' 64 bit ODP.NET

梦想的初衷 提交于 2019-12-21 20:16:16
问题 I am using ODP.NET in my asp.net project in order for the application to talk to oracle 11 g Express on Windows 2008 server (32 bit). While on development machine I had Windows 7 (32 bit). I installed Windows 8 (64 bit) on the development machine and tried to run the application from visual studio 2012, It gave the error 'Could not load file or assembly 'Oracle.DataAccess''. After a little search I realized that I have to install ODP.NET (64 bit) in order to use it on 64-bit machine, so I

Oracle Data Provider to CLR type mapping

故事扮演 提交于 2019-12-21 20:10:15
问题 Where can I find the listing of ODP to CLR type mapping? On Oracle database, the NUMBER(9,0) type comes out in .NET app as System.Decimal from the MS Oracle driver, but as System.Int32 from ODP driver. I need an exact specification of types coming out from database (not the CLR to DB parameter mapping). 回答1: Run this simple test to get mappings for SqlServer and Oracle (both MS and ODP.NET drivers): using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient

ODP.NET Connection exception

早过忘川 提交于 2019-12-21 12:17:13
问题 First I would like to say that I am not familiar at all with Oracle databases, so my words might be poorly chosen and my understanding of some concept might be wrong... Anyway, I am trying to connect to an Oracle 11g database using ODP.NET and every time it gives me this exception : System.TypeInitializationException occurred HResult=-2146233036 Message=The type initializer for 'OracleInternal.Network.AddressResolution' threw an exception. Source=Kiwi.ServiceBase TypeName=OracleInternal

Usage of Oracle binding variables with LIKE in C#

ε祈祈猫儿з 提交于 2019-12-21 07:37:17
问题 As part of an effort to stop using dynamic SQL generation and encourage use of bind variables, I am running into some problems. I am querying an Oracle 9i database from an ASP.NET page using Oracle Data Providers for .NET The query is sql = "SELECT somedata FROM sometable WHERE machine = :machineName "; I define the Oracle Parameter as follows OracleParameter parameter = new OracleParameter(); parameter.ParameterName = "machineName"; parameter.OracleDbType = OracleDbType.Varchar2; parameter

Oracle.Dataaccess is in the GAC. Can I control the version I use?

冷暖自知 提交于 2019-12-21 02:38:45
问题 I have a XCOPY deployable .NET application using Oracle.DataAccess (ODP.NET). We also deploy the Oracle Instant client in the application directory. Everything works OK, but I worry.. From the Oracle ODP.NET FAQ: Beginning with ODP.NET 10.1.0.3, the Oracle installer will register the following publisher policy DLLs in the Global Assembly Cache (GAC) that redirect 9.2, 10.1 and 10.2 ODP.NET applications to use the last installed version of ODP.NET: Policy.9.2.Oracle.DataAccess.dll and Policy

Enable ODP.Net logging

心已入冬 提交于 2019-12-21 01:21:25
问题 Can anyone help me with enabling ODP.Net logging on a Windows XP machine? I googled and found following link but it did not work for me. http://download.oracle.com/docs/html/E10927_01/featConfig.htm I set the "TraceLevel" setting to "63" in registry but it did not help Basically I want to capture all the database call happening from my C# code through the log. I wish there was a tool like "SQL Profiler" for Oracle. 回答1: I had the same issues on certain machines when troubleshooting some