odp.net

Oracle Managed ODP.NET can't find tnsnames.ora

て烟熏妆下的殇ゞ 提交于 2019-12-18 13:37:13
问题 My managed ODP.net webapp works locally but when deploying it to a server, it fails with the error: "TNS:listener does not currently know of service requested in connect descriptor" From looking around, it seems like this is because it can't get to the tnsnames.ora file. I have tried the following with no success: Placing a tnsnames.ora file (the same one that works locally) into an [oracle home][product]...\network\admin folder. Setting a TNS_ADMIN setting in the Managed ODP's web.config

Error using oracle.dataaccess.dll

岁酱吖の 提交于 2019-12-18 13:25:45
问题 I have a web application which uses Oracle.DataAccess.dll to communicate with an Oracle db. The web application deployed on 32 bit windows system works but not on windows server 2008 64 bit. I installed 10204_vista_win2k8_x64_production_db package, referenced the installed dll (version 2.102.4.0) from the project but I get the following error: Could not load file or assembly 'Oracle.DataAccess, Version=2.102.4.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies.

Parser Error Message: Failed to generate code. Exception of type 'System.Data.Design.InternalException' was thrown

◇◆丶佛笑我妖孽 提交于 2019-12-18 07:23:05
问题 I am getting this error when I am using ODP.net The error is appearing when I include a connection <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="BannerCS" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="BannerCS (Web.config)" ParameterPrefix=":" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.BannerCS.ConnectionString" Provider="Oracle.ManagedDataAccess.Client" /> in the .XSD file in the

ODP.NET connection pooling: How to tell if a connection has been used

不问归期 提交于 2019-12-18 07:10:27
问题 I'm modifying a Winforms app to use connection pooling so data access can occur in background threads. The business logic is implemented in PL/SQL and there are a couple of security related stored procedures that have to be called in order to make use of the business logic. What I need is a way to tell if the connection has been used without a round-trip to the database. I don't think I can keep track of them in a HashSet because I doubt Equals or even ReferenceEquals could be relied upon.

OracleConnection is throwing empty exception

人盡茶涼 提交于 2019-12-18 07:07:09
问题 I'm trying to connect to my Oracle Database from my new PC. I've just installed Visual Studio and the ODAC. But when I try to do a simple connect Im getting an exception with an empty message, empty source, empty number, just with the error code which is -2147467259 . OracleConnection Prueba; Prueba = new OracleConnection("Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=XXX.XXX.XXX.XXX)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=XXXX)));User Id=XXX;Password

Can an Oracle stored procedure that has a nested table parameter be called from ODP.NET?

自闭症网瘾萝莉.ら 提交于 2019-12-18 07:05:04
问题 I've got a stored procedure that has a couple parameters that are nested tables. CREATE TYPE FOO_ARRAY AS TABLE OF NUMBER; CREATE TYPE BAR_ARRAY AS TABLE OF INTEGER; CREATE PROCEDURE Blah( iFoos IN FOO_ARRAY, iBars IN BAR_ARRAY, oResults OUT SOMECURSORTYPE ) AS BEGIN OPEN oResults FOR SELECT * FROM SomeTable T JOIN TABLE(iFoos) foos ON foos.column_value = T.foo JOIN TABLE(iBars) bars ON bars.column_value = T.bar; END Using ODP.NET (Oracle.DataAccess.dll), is there a way to call this stored

OracleBulkCopy Class in Oracle.ManagedDataAccess.dll?

ε祈祈猫儿з 提交于 2019-12-18 05:47:07
问题 I am using OracleBulkCopy Class with reference to Oracle.DataAccess.dll. I want to use Oracle.ManagedDataAccess.dll for easy deployment. But then I got build error "OracleBulkCopy not found" Does anyone know why OracleBulkCopy is not included in Oracle.ManagedDataAccess.dll? 回答1: You are correct. At the time of this writing OracleBulkCopy is not supported in ODP.NET, Managed Driver. The reason is is not included was simply a matter of feature priority. As the Managed Driver becomes more

Problem on using ODP.Net

岁酱吖の 提交于 2019-12-18 04:52:35
问题 I've successfully used Oracle Database 11g Release 2 (11.2.0.1.0) to connect oracle from .Net. (in reference Oracle.DataAccess.dll version was 2.112.1.0). But when I installed ODP.NET and when I am trying to connect to oracle, it gives me an error: "ORA-12154: TNS:could not resolve the connect identifier specified". How can I solve this problem? Thanks! 回答1: This usually occurs when your oracle client is not in the PATH of your computer. Make sure that the PATH environment variable contains

ODP.NET and ClickOnce possible?

丶灬走出姿态 提交于 2019-12-18 04:17:10
问题 We have a sqlserver (WinForms) application that is deployed with ClickOnce that talks directly to the database. If we are forced to port it to oracle, can ODP.NET be used with ClickOnce. (The users may not have admin rights on their PCs) Background This data import application is used by a handful of users at each customer’s site it uses intergraded logon to connect to SQL Server. Most users access the system var an Asp.net application, or a WinForms (clickOnce) application that talks to a

ODP.NET Connection Pooling Parameters

ぐ巨炮叔叔 提交于 2019-12-17 19:00:02
问题 I am trying to configure connection pooling for my .NET application using ODP.NET version 2.111.6.20. The database is Oracle 11.1. I am using the following connection string in my .NET 2.0 application: Data Source=prod; User Id=FAKE_USER; Password=FAKE_PASS; Pooling=true; Min Pool Size=2; Max Pool Size=5; Connection Timeout=30;" According to the documentation the connection pool should initialize with 2 connections and and increment up to 5 connections as needed. It should never get higher