system.data.oracleclient

OracleCommandBuilder.DeriveParameters() throws OracleException: ORA-06564: object does not exist ORA-06512: at “SYS.DBMS_UTILITY”

守給你的承諾、 提交于 2020-07-10 06:53:11
问题 Using the OracleClient that comes with ADO.NET in .NET Framework, I'm trying to call OracleCommandBuilder.DeriveParameters() method on a procedure in the database, but I keep getting an OracleException with the message: ORA-06564: object CustOrdersOrders does not exist , even though I created the procedure successfully. I'm more familiar with SQL Server, so perhaps I'm missing something here. SQL file 1.sql: create or replace PACKAGE PKGENTLIB_ARCHITECTURE IS TYPE CURENTLIB_ARCHITECTURE IS

C# 一个操作Oracle的简易工具类(通过System.Data.OracleClient)

和自甴很熟 提交于 2020-03-01 17:32:48
一、关于本文 运行本文中的代码,需要 1)需要手动添加引用System.Data.OracleClient 在代码最前面加入这句话:using System.Data.OracleClient; 2)需要安装 Instant Client 安装 Oracle Instant Client(OCI) 的步骤可以参考 这篇文章 注:下载32位的OCI库,则在VS中需要选择x86作为目标平台;下载64位的OCI库,则需要选择x64作为目标平台 二、工具类OracleHelper代码 class OracleHelper { //需要 oci.dll oraociei12.dll oraons.dll /// <summary> /// 协议:默认TCP /// </summary> public static string PROTOCOL = "TCP"; /// <summary> /// 主机地址:默认171.0.0.132 /// </summary> public static string HOST = "171.0.0.132"; /// <summary> /// 端口号:默认1521 /// </summary> public static string PORT = "1521"; /// <summary> /// TNS服务名:默认TESTDB /// <

VS2010不能添加System.Data.OracleClient引用

吃可爱长大的小学妹 提交于 2020-03-01 16:24:56
vs2010里 默认是无法使用oracle的,可以使用以下 解决方法 : 1)右击项目的属性,在弹出窗口中有一个“目标框架”下拉框选项,默认会是.NET FRAMWORK 4 CLIENT PROFILE,当选项是这个的时候,如果添加引用OracleClient这个dll的话是找不到的,将此选项更改为.NET FRAMWORK 4。 2)右击bin文件夹,选择“添加引用”,在弹出的选择框中选择.net选项卡,选择System.Data.OracleClient.dll,点击OK,这样就可以在.cs页面中添加引用了:using System.Data.Oracle; 3)System.Data.OracleClient.dll 保存路径如下,可以通过浏览卡添加引用: C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.OracleClient.dll OracleClient 方式,是微软专门针对Oracle数据库开发的,仅在 .NET Framework 1.1 版中受支持。据说速度快、性能好,是推荐使用的方式。但根据我的经验,当Oracle数据库服务器端采用英文字符集比如 US7ASCII 时,客户端不管字符集如何设置,读出的中文都是乱码

Get oracle output parameter using OracleCommand

两盒软妹~` 提交于 2020-01-05 08:48:16
问题 I have a oracle stored procedure which will return a value. I need to get the OUTPUT value in my C# program. I need to know how we can get the OUTPUT parameter using the OracleCommands AddWithValue method. The way i have written now is: OracleCommand Ocmd = new OracleCommand(_StoredProcedure, OraCon); Ocmd.CommandType = CommandType.StoredProcedure; Ocmd.Parameters.AddWithValue("Filed1", "Value1"); Ocmd.Parameters.AddWithValue("OUTPUTParam","").Direction = ParameterDirection.Output; OraCon

Issue with System.Data.OracleClient and ODP.Net 11g together used in .net 2.0 web site

走远了吗. 提交于 2019-12-29 09:26:07
问题 In our .net framework 2.0 based application we were using System.Data.Oracleclient and now migrating to ODP.Net, the volume of the project is too high, so we cannot do the entire migration on one go, as a result the application is using 2 providers System.Data.Oracleclient & ODP.Net as of now. Now we are changing our OS, from Windows xp 32bit to Windows 7 64bit. While doing so we observed the following, 1) A query executes in < 1 sec using System.Data.Oracleclient & ODP.Net 10g 64bit (Oracle

ORA-00911: invalid character

只愿长相守 提交于 2019-12-28 03:51:28
问题 I create two table in my oracle (11g) database like this: create table "test" ("id" int); create table test ("id" int); Then in my C# program there is a problem : OracleConnection conn = new OracleConnection(-myConnectionString-); conn.Open(); OracleCommand command = new OracleCommand("select * from test;", conn); var v = command.ExecuteReader(); OracleCommand command = new OracleCommand("select * from \"test\";", conn); var v = command.ExecuteReader(); for both command.ExecuteReader() I have

System.data.OracleClient with 32 bits oracle client driver on Seven 64 bits Operating system

守給你的承諾、 提交于 2019-12-13 00:35:59
问题 I have a Web application migrating from asp.net 1.1 (VS 2003) to Asp.net 2 ( VS 2008). I have a problem to execute Oracle connexion on the new version . The dev environnement is 64 bits Seven. When generate application with all CPU , i have a probleme on System.Data.OracleClient, exception System.BadImageFormatException: Tentative de chargement d’un programme de format incorrect. (Exception de HRESULT : 0x8007000B). . I generate on x86 CPU and i have this error on start :

How Do You Insert Large Blobs Into Oracle 10G Using System.Data.OracleClient?

馋奶兔 提交于 2019-12-08 00:08:29
问题 Trying to insert 315K Gif files into an Oracle 10g database. Everytime I get this error "ora-01460: unimplemented or unreasonable conversion requested" whe I run the stored procedure. It appears that there is a 32K limit if I use a stored procedure. I read online that this does not apply if you are doing a direct insert, but I do not know how to create the insert string for a Byte Array. This is a thick client running on the server so not worried about SQL Injection attacks. Any help would be

The type or namespace name 'OracleClient' does not exist in the namespace 'System.Data'

丶灬走出姿态 提交于 2019-12-07 05:30:02
问题 When trying to run my code, I receive the following error: CS0234: The type or namespace name 'OracleClient' does not exist in the namespace 'System.Data' (are you missing an assembly reference?) I have included references to System.Data.dll and System.Data.OracleClient.dll , but I am still getting this error. The error is being caused by the line using System.Data.OracleClient in my namespace declaration. 回答1: The using System.Data.OracleClient directive means that that namespace should be

ORA-12571: TNS:packet writer failure with ASP.NET

穿精又带淫゛_ 提交于 2019-12-05 22:00:18
问题 My development team is experiencing numerous ORA-12571: TNS:packet writer failure errors using ASP.NET 3.5 and 4.0 against Oracle 11g. These errors are inconsistent as to when they occur, and are generated by numerous applications. This exception happens while calling random stored procedures, packets, and inline SQL statements. The Oracle 11 client is installed on the web server. Some applications use Microsoft System.Data.OracleClient to connect to Oracle, and some use the .NET components