ODP.NET
1,什么是ODT?就是Oracle 为 .NET (ODP.NET) 专门编写了 Oracle Data Provider,一个用于 Microsoft .NET 环境下的 Oracle 数据访问 API 。
详细解说 http://www.oracle.com/technetwork/cn/testcontent/o23odp-084525-zhs.html 对于官方的代码,已不存在了!
ODP.NET你不需要安装Oracle,不需要配置oracle.key文件,不需要配置TnsNames.Ora文件 不需要配置环境变量;完全的傻瓜式的在没有安装oracle数据库或者
客户端等任何oracle的产品的机器去访问Oracle数据库!
下面详细解说ODP.NET如何对Oracle的数据操作【可以完成建表,CURD( 增删查改)】
步骤一:获取支持数据库连接的类库文件:Oracle.DataAccess.dll 如何获取呢?
到官网去相应的版本http://www.oracle.com/technetwork/cn/topics/dotnet/index-088718-zhs.html
下载后安装后会在你的安装目录\DP.NET\BIN\2.X(图1)下出现这个Oracle.DataAccess.dll,把它复制到你的解决方案下 引用一下
图1
顺便点击一下Oraprovcfg.exe 自动配置了环境变量(图2)
图2
成功获取所要的dll文件,有些人还要去一个文件的去解压,去配置,我看不需要,如需要的话这个是详细的配置步骤
http://blog.csdn.net/Sunlihgt_love/article/details/5423926
在引用dll库后,可能会引发下列异常:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAk0AAABbCAIAAADhiCagAAAgAElEQVR4nO1dS47qyBK9K8FrAXkf9sTLgBGLgDdkCbAANlBC6nHNe3qlHlzpTfq9Qf7im5k2VNm4Ah21blMmf86Mk5GfOL9+//7n4/FpMBgMBsMq8UvkuT/gM3sRDQaDwWCYDJXn/v2r+fevxnjOYDAYDG8Ngef+/Pnz37//87+PX//7+PXfv/9jVGcwGAyG94XMc//+1Tie+2KX7tI1TXcG35yHzWazPdzpk+eh6S/lBN1j56FphpP01w37+GSlP202m6Zp97eYwn2/y/xv/BJmzX/SxMS7nmYassOPnT+vhzY9szteQ/qnHiQOqpCqfztu4/Pw3++F23Gbefvs3aX+cx7iv2EbsmaXesv34dLNXIB14XbcNnxgGn40KM9BZ67WpTsPzhxX5+rtODfrl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dw/ULJpn0KcCwKeK7bze7bPD8XcPBdArPx3ajyeDk4iRzhsGfIauhQW9jl/Dq9bhoj7g3AEpgC+xXLf75wOQ5rcbTYbrgemB4knEifhsVdpPLLs5Bi+zJ+jp2bGY/QxllFn1UyvdTFjOZyazp63jBNWrZXoYqbYzm/ZPpNH0LtjZp4TjeP3azxiO3jf9+22abcHFpU8/PwKD61NOS2Jj7rdjttdWzzdjsH9OUkQ66GcYpdEkaC6aWD00nrjKI1Hkl1/CUdycMsIQdOHvaKgWwmJ57KeHDq31i5Gk7M6r5+q13o6QJkFed0yLDv7biavsrxQa3RJ7TN5BL075uO5JWk84v2bYNfIthDqOk0qzPM8dx4EfgIVLPkirgzQQxJHrNC24HVI47OovTJK4xHUtyGeBK0LWIGJkrNPuHSj/bnIE7eFaXKaXmtpLNfcKyCaf9lRk23n92sf6aTMD8Bs98QXpfEIz1vCQ/9oywqvP1zPl3DHdtylAtT/mrbrk3yrZIvF9UzUOE0ghqjgiopa9OeounpqT3G1cLrGo28uulwJdQTDBliYZGA10cmrl2N5DrrIYf9fug58M73WxY3l/D0WgedgA+r7c2I7v1/71GlKrw+zxv2SLt6GV1s7x4lQbRl994JeYljWb7Tpnt/romdVgIDhJJCjHxK11Pgx0L9kQyvvz7H4KdKN5tdoPOZ0cTn/nYdtP5DDAuykzIh2LvKcqm/J/gp7Dm5heF7X9FrnGcuj/blH4hVp41lt5/dsH/PnDAaDwWBYHYznDAaDwbBmGM8ZDAaDYc0wnjMYDAbDmmE8ZzAYDIY149fv3//8sY997GMf+9hnpR/jOfvYxz72sRsCipYAAAAUSURBVM+aP8Zz9rGPfexjnzV//g8m7uimU3ZclwAAAABJRU5ErkJggg==" alt="" />
这就需要将项目的平台改成相应的平台即可:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVcAAACKCAIAAACRhJ4KAAAUIElEQVR4nO2d23MT2Z3H+w9J1WbybJypAlTEVN52a5KdXWopdiYVioEeQ9jMVpYtMiTDmzfLxqK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8MUOZJIqS8aH81CyD1DrszASmAK/KrGFZrgOQDICmwTMzlBkmJ1NnKTbNVqb2FLSJP3gn/crPGsZ2V2xaBqAR8cwMZVpM6VOPWFnANDqobc63QPmzhlnMX1bkxGEAeBbPzFBGbhSyiX1LC5DtKj1rGGeaItO8YgA0NJ65d1ASBTHIXAk03dBnPH0bApQa6a/6rGHOiwFoIPA7AkusZg0TSpo4DADPgt8UAuB3YAEA/A4sAIDfgQUA8DuwAAB+BxYAwO/AAgD4HVgAAL8DCwDgd2ABAPwOLACA34EFAPA7sAAAfgcWAMDvwAIA+B1YAAC/81euNKgu5izFjQAAAABJRU5ErkJggg==" alt="" />
步骤二:在正式使用之前,需要在项目中添加引用:
Oracle.DataAccess.Client 设置数据库的连接等等通用功能,
Oracle.DataAccess.Types 设置 oracle自定义的一些数据类型
步骤三:实例解说
如提供以下数据库的信息
数据库服务器地址:192.168.10.20
库名:44410g242
账号:44bikll
密码:487gf,.q
连接oracle的字符串就是这样的(提供我测试的2种方式)
//string conString = "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.10.20)(PORT=1521))" +
//"(CONNECT_DATA=(SERVER = DEDICATED)(SERVICE_NAME = 44410g242)));User Id=44bikll;Password=487gf,.q;";
string conString = "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.10.20)(PORT=1521))" +
"(CONNECT_DATA=(SID=44410g242)));User Id=44bikll;Password=487gf,.q;";
//写连接串以上2方法连接都可以,也可以放到Web.Config中。
以上的连接协议TCP和端口1521都是默认的 ,无需修改,如端口被占用了就需要改下。
本案例中涉及2个表TBLOCKLOG和TBACCOUNT
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Oracle.DataAccess.Client;
using Oracle.DataAccess.Types; namespace DHH_Bill_TBLockLog
{
class Program
{ static void Main(string[] args)
{
#region 测试数据库
Console.WriteLine("获取testid031用户在2013-4-11 15:53:40到2013-04-12 00:00:00的消费清单");
Console.WriteLine();
string conString = "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.10.20)(PORT=1521))" +
"(CONNECT_DATA=(SID=44410g242)));User Id=44bikll;Password=487gf,.q;"; //这个也可以放到Web.Config中。 //实例化OracleConnection对象
try
{
using (OracleConnection conn = new OracleConnection(conString))
{
conn.Open();
string sql = "select TBACCOUNT.username,TBLOCKLOG.accountid,TBLOCKLOG.amount,TBLOCKLOG.locktime FROM TBLOCKLOG,TBACCOUNT WHERE TBLOCKLOG.accountid=TBACCOUNT.accountid ";
sql += " and TBLOCKLOG.serviceid=1 and TBACCOUNT.username='testid031' and TBLOCKLOG.status=1 and TBLOCKLOG.locktime >= to_date('2013-4-11 13:53:40','yyyy-mm-dd hh24:mi:ss') and TBLOCKLOG.locktime <= to_date('2013-04-12 00:00:00','yyyy-mm-dd hh24:mi:ss') order by TBLOCKLOG.locktime"; using (OracleCommand comm = new OracleCommand(sql, conn))
{ using (OracleDataReader rdr = comm.ExecuteReader())
{ while (rdr.Read())
{
Console.WriteLine("UserName:" + rdr.GetString() + ",UserId:" + rdr.GetInt32() + ",点数:" + rdr.GetInt32() + "," + rdr.GetDateTime()); } } } }
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
#endregion Console.WriteLine(); Console.WriteLine();
Console.WriteLine("计算2013-4-11 15:53:40到2013-04-12 00:00:00时间的testid031用户消费的amount的总和");
Console.WriteLine(GetBillByDateAndGameId(conString, "testid031", , Convert.ToDateTime("2013-4-11 13:53:40"), Convert.ToDateTime("2013-04-12 00:00:00"))); } public static int GetBillByDateAndGameId(string conString,string accountId, int gameId, DateTime beginTime, DateTime endTime)
{
try
{
using (OracleConnection conn = new OracleConnection(conString))
{
accountId = accountId.ToLower();//全部转换为小写
conn.Open(); string sql = "select sum(TBLOCKLOG.amount) sumamount FROM TBLOCKLOG,TBACCOUNT WHERE TBLOCKLOG.accountid=TBACCOUNT.accountid ";
sql += " and TBLOCKLOG.serviceid=" + gameId + " and TBACCOUNT.username='" + accountId + "' and TBLOCKLOG.status=1 and TBLOCKLOG.locktime >= to_date('" + beginTime + "','yyyy-mm-dd hh24:mi:ss') and TBLOCKLOG.locktime <= to_date('" + endTime + "','yyyy-mm-dd hh24:mi:ss') order by TBLOCKLOG.locktime"; using (OracleCommand comm = new OracleCommand(sql, conn))
{ using (OracleDataReader rdr = comm.ExecuteReader())//创建一个OracleDateReader对象
{
int sum = ;
while (rdr.Read())//读取数据,如果odr.Read()返回为false的话,就说明到记录集的尾部了
{
if (rdr.GetOracleValue().ToString() == "null")//防止为空
{
sum = ;
}
else
{
sum = int.Parse(rdr.GetOracleValue().ToString());
//sum = int.Parse(rdr[0].ToString());
} }
return sum;
} } }
}
catch (Exception ex)
{
return -;
}
}
} }
显示结果:
以下是: 1. 建立数据库
建立一个名为OracleTypesTable的表
"create table OracleTypesTable (MyVarchar2 varchar2(3000),MyNumber
number(28,4) Primary key ,MyDate date,MyRaw RAW(255))";
插入一行数据
"insert into OracleTypesTable values ('test',4,to_date('2000-01-11
12:54:01','yyyy-mm-dd hh24:mi:ss'),'0001020304')";
其他操作的说明:(使用说明:http://www.oracle.com/technetwork/cn/testcontent/o23odp-084525-zhs.html)
注意:
1,案例中的sql语句还是和mssql有一点区别的;
2,统计的话如果获取不到统计的数据的会报错,这就是我为什么加上if (rdr.GetOracleValue(0).ToString() == "null")//防止为空
3,WebSERVICE的时候不知道为什么他对用户名的大小写也有区分。
步骤四:部署说明
在部署到真实服务器的时候,你也同样按照步骤一中的步骤安装客户端ODP.NET文件,点击执行EXE文件自动配置环境变量,查看一下是否安装成功。
注意版本是否一致,这个是运行你的程序的关键,打开cmd,执行:C:\Documents and Settings\Administrator>sqlplus /nolog 就可以知道版本
我的结果:
以下找了很多与版本相关的文章---版本的问题 ODP.NET开发和部署的相关问题
http://www.cnblogs.com/yjmyzz/archive/2011/04/19/2020793.html
http://www.cnblogs.com/codingsilence/archive/2011/07/14/2146497.html
http://blog.chinaunix.net/uid-20049824-id-1980177.html
补充 其中11.2.0.3.50 Beta的将更合适快速操作Oracle,但是需要win7和.NET Framework 4的支持,一般企业估计还没有把win7当服务器的吧!
http://www.oracle.com/technetwork/database/windows/downloads/odpmbetainstall-1696475.html
网上的这个http://www.bitscn.com/pdb/oracle/200904/160401.html Instant client批量安装Oracle客户端-
安装配置还需要从安装过Oracle的机器上拷贝oracle.key文件还要配置环境变量。
就这么多吧,希望对你有所帮助。,下面是ODP.NET的dll
ODP.NET的更多相关文章
- C# oracle odp.net 32位/64位版本的问题
问题如下: 系统是win7 64位,技术 asp.net mvc 4, 数据库 oracle 11g. 由于某些原因只能使用 32的 ODP.NET ( Oracle Data Provider ), ...
- ODAC (odp.net) 从开发到部署
2013-09-30 16:08 4097人阅读 评论(0) 收藏 举报 分类: Oracle(10) 版权声明:本文为博主原创文章,未经博主允许不得转载. 1. 确定你开发机和服务器的操作系统是 ...
- EF for Oracle,dotConnect for Oracle,ODP.NET
dotConnect for Oracle dotConnect for Oracle是一款为Microsoft .NET Framework提供直接Oracle数据库连接的数据发生器控件.它完全基于 ...
- PetaPoco利用ODP.NET Managed Driver连接Oracle
大概几年之前用PetaPoco做过一个Oracle的项目,开发的时候还需要安装oracle的client,非常麻烦.调试好环境后,一直到项目结束都不敢重装系统.最近又有一个需求需要读取oracle,可 ...
- csharp: ODP.NET,System.Data.OracleClient(.net 4.0) and System.Data.OleDb读取Oracle g 11.2.0的区别
ODP.NET: 引用: using Oracle.DataAccess; //Oracle g 11.2.0 using Oracle.DataAccess.Client; using Oracle ...
- 64位操作系统 通过ODP.NET 访问ORACLE 11g
摘要:64位操作系统部署.NET 程序访问oracle时,无法连接问题.(注意:客户端是64位系统 ,服务端是否64位 还是32位无关.) 1.到oracle 官网搜索相关版本的 ODAC网址: ht ...
- Entity Framework 与ORACLE ODP.Net 在vs2010下的稀奇古怪的问题
不说废话 1.在vs2010数据源中看不到oracle odp.net 数据源,vs2008下可以看到,通过oraprocfg配置多次,重启多次,还是看不到,machine.config里面配置也正常 ...
- .NET Oracle Developer的福音——ODP.NET Managed正式推出
在.NET平台下开发Oracle应用的小伙伴们肯定都知道一方面做Oracle开发和实施相比SqlServer要安装Oracle客户端(XCopy.自己提取相关文件也有一定复杂性),另一方面相比JAVA ...
- ODP方式,大批量数据写入ORACLE数据库
项目中在同步数据的时候,需要把获得的数据DataTable,写入oracle数据库 因为System.Data.OracleClient写入方式写入大批量数据特别慢,改用Oracle.DataAcce ...
- .net中使用ODP.net访问Oracle数据库(无客户端部署方法)
ODP.net是Oracle提供的数据库访问类库,其功能和效率上都有所保证,它还有一个非常方便特性:在客户端上,可以不用安装Oracle客户端,直接拷贝即可使用. 以下内容转载自:http://b ...
随机推荐
- robot framework-databaselibaray库使用(python)(转)
公司做项目用到了databaselibaray,刚开始使用时碰到了很多问题,网上也查阅了很多资料终于是可以用了,现在整理记录下来,有需要的同学可随意使用: 另,本文主要是databaselibaray ...
- osx launchpad删除图标
安装了个parallels desktop之后,OSX中的launchpad中的图标多了不少,但是好多都不是我自己想要的,我们该怎么删除或者改动呢,以下介绍一些方法: ①直接操作Appications ...
- Find a way (BFS)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2612 BFS搜索 目标地 并记录下来 之后再判断两段路程之和 代码: #include < ...
- 深入探讨 Java 类加载器[转]
原文地址:http://www.ibm.com/developerworks/cn/java/j-lo-classloader/index.html 类加载器(class loader)是 Java™ ...
- java_eclipse_设置全局编码_utf-8_编译class指定_运行jar乱码解决_不依赖环境
简述: javac时指定 编码 UTF-8 [ javac -encoding UTF-8 Test.java],运行时 java 指定编码 UTF-8 这样就不会出现乱码问题[ javac ...
- spark(1.1) mllib 源代码分析
在spark mllib 1.1加入版本stat包,其中包括一些统计数据有关的功能.本文分析中卡方检验和实施的主要原则: 一个.根本 在stat包实现Pierxunka方检验,它包括以下类别 (1)适 ...
- pig 的chararry不能用于比较的类型可以comparison operator
pig 的chararry类型可以是由场,通过现场实地比较. element_id 这是chararray种类. 声明: no_app_category_mapping = filter no_ele ...
- Asp.net MVC + EF + Spring.Net 项目实践(一)
准备用几篇文章来做一个MVC的例子,为了给新同事做参考,也为自己做个知识储备. 首先,用VS2013创建一个空白解决方案StudentManageSystem,然后添加一个MVC应用程序(可参考ASP ...
- Hadoop群集设置
Hadoop群集设置 近期特别看了Hadoop的资料.感觉特别好,整理一下发在自己的博客上,希望对想了解集群的网友有所帮助. 參考资料:http://hadoop.apache.org/docs/r1 ...
- Windows下结束tomcat进程,dos命令
Microsoft Windows [版本 6.1.7601]版权所有 (c) 2009 Microsoft Corporation.保留所有权利. C:\Users\Administrator> ...