odp.net

How do you Configure the Connection String for ODP.NET Connection String with FailOver?

老子叫甜甜 提交于 2019-12-23 21:58:43
问题 Converting to ODB.NET from System.Data.OracleClient and need help converting my connection string. Here is what I use with System.Data.OracleClient. SERVER=(DESCRIPTION_LIST=(LOAD_BALANCE=yes)(FAILOVER=ON)(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=172.26.140.80)(PORT=9960))(ADDRESS=(PROTOCOL=TCP)(HOST=172.26.140.81)(PORT=9960)))(CONNECT_DATA=(SERVICE_NAME=tactota))));uid=XXXXXXX;pwd=XXXXXXXX" Here is what I have gotten to work with ODB.NET, but does not implement the other

Unsupported column datatype ODP.NET

人走茶凉 提交于 2019-12-23 21:01:36
问题 I am trying to upgrade my existing application built on ODP.NET 11g to ODP.NET 12c in the hope that it'll improve performance of database calls and data retrieval. In this regard, I installed the latest ODP.NET 12c and changed all Oracle project references to point to the latest Oracle.ManagedDataAccess.dll instead of Oracle.DataAccess.dll . While the project builds successfully, I'm seeing an exception, "Unsupported column datatype" being thrown from the ExecuteReader method when trying to

OCIEnvCreate failed with return code -1 but error message text was not available with ODP.net

对着背影说爱祢 提交于 2019-12-23 18:51:24
问题 I'm trying to study ORP.net and looking over this article on Deploying ODP.NET with Oracle Instant Client. I have downloaded and copied all DLLs in project as the article explains, however on the testing step, when the app is built I get the following error: OCIEnvCreate failed with return code -1 but error message text was not available I am using oraclexe and I have an Oracle client. I have given full permission for authenticated users. How can I solve this problem? 回答1: When trying to

How to pass a table-valued parameter from C# to Oracle stored procedure

穿精又带淫゛_ 提交于 2019-12-23 11:52:55
问题 I have an Oracle stored procedure named CREATE_CASE_EXL : PROCEDURE CREATE_CASE_EXL(P_RICdata RICTab, P_sACTION_TYPE IN VARCHAR2); where RICTab is a custom type: TYPE RICTab IS TABLE OF MMSRRicRec INDEX BY BINARY_INTEGER; TYPE MMSRRicRec IS RECORD ( RIC VARCHAR2(32), FID_NO NUMBER(8), REC_ID NUMBER(8), MMS_ACTION VARCHAR2(1) ); I run this code in PL/SQL to execute CREATE_CASE_EXL : DECLARE pTE_RICS RICTab BEGIN pTE_RICS(1).RIC := 'RIC1'; pTE_RICS(1).FID_NO := NULL; pTE_RICS(1).REC_ID := 3;

Error: Could not load file or assembly 'Oracle.ManagedDataAccessDTC' or one of its dependencies

江枫思渺然 提交于 2019-12-23 10:54:43
问题 Background I have a solution containing a Console project and an MVC4 Webapp. Both Reference Oracle.ManagedDataAccess (the managed ODP.NET data access provider). The reference is to the same file. Neither reference Oracle.ManagedDataAccess DTC. In VS Configuration Manager, the platform is listed as "Any CPU" for all configuration options. The platform target for both is "Any CPU" Problem The console application executes perfectly fine. When I try to use the MVC4 application, I see: Could not

Invalid binding for Oracle UDT in procedure parameter

余生颓废 提交于 2019-12-23 09:47:26
问题 I'm attempting to call a procedure that takes a custom data type of table of numbers as one of the parameters. Here is the definition of the type: create type num_list as table of number; And the definition of the procedure: create or replace procedure my_procedure (listofnumbers num_list, v_value char) is begin update my_table set my_column = v_value where my_row_id in (select column_value from table(listofnumbers)); end; Using ODP.NET and C#, I'm declaring it as follows: var row_ids = new

Kerberos error when trying to connect to remote Oracle database using ODP.NET

一世执手 提交于 2019-12-23 05:32:52
问题 this is a follow-up to my previous question. I am trying to use ODP.net in Visual Studio 2015 to connect to a remote Oracle 11gr2 server. The specific reason is for SSRS reports. I have installed this version of ODT/ODAC, as recommended by Visual Studio: http://www.oracle.com/technetwork/topics/dotnet/whatsnew/vs2012welcome-1835382.html (for more info, please see my previous question). Without even opening up a solution, on the landing page of VS2015 I tried using the ODP.net driver by using

OracleCommand timeout

帅比萌擦擦* 提交于 2019-12-23 05:22:09
问题 ODP.NET documentation for OracleCommand.CommandTimeout says Default is 0 seconds, which enforces no time limit. When the specified timeout value expires before a command execution finishes, the command attempts to cancel. If cancellation is successful, an exception is thrown with the message of ORA-01013: user requested cancel of current operation. If the command executed in time without any errors, no exceptions are thrown. In a situation where multiple OracleCommand objects use the same

Managed Oracle Client with Oracle Advanced Security Options

南笙酒味 提交于 2019-12-23 02:17:18
问题 On October 14th, Oracle release the latest version of their Oracle Managed Client which was described to support Network Data Encryption. http://www.oracle.com/technetwork/topics/dotnet/tech-info/odac12cr4ds-2704217.pdf https://www.nuget.org/packages/Oracle.ManagedDataAccess/ Although for some reason after trying multiple configuration, we still weren't able to get it to work. We keep getting the infamous ORA-12570: Network Session: Unexpected packet read error exception wrapped in The

Effects of changing NLS_LANG setting in the registry for Oracle Client

北城以北 提交于 2019-12-22 09:47:48
问题 We are in the process of moving from the .NET Microsoft oracle driver to the ODP.NET driver. One of the problems we have had is this error: ORA-12705: Cannot access NLS data files or invalid environment specified We were able to stop the error by modifying the registry and changing the setting (see this question) In our case we changed HKEY_LOCAL_MACHINE - SOFTWARE - ORACLE - NLS_LANG which was set to NA to be the same as HKEY_LOCAL_MACHINE - SOFTWARE - ORACLE - HOME0 - NLS_LANG which was set