- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
oracle的oci和thin区别
oracle的oci和thin区别
经过上网查询,得到如下结果:
jdbc:oracle连接的是oracle数据库
thin是一种方法
angel/oracle那个angel是用户名,oracle是密码
192.168.55.11是你要连的电脑ip
1530是oracle的连端口(1521貌似是默认端口)
monitordb这是数据库的名字
下面是我转载的文章,是关于tomcat数据源中oracle的oci和thin区别:
前几天同事跑过来跟我说, 机房中的一台tomcat服务器跟oracle数据库机连接很慢,查看控制台中的hibernate日志, 基本上是一条sql出来要等个1-2秒再出第二条。但同样的程序在他自己机器上的tomcat运行,同样是连那台数据库机器,就快很多,不会出现前面的每执行1条sql就卡一次壳的情况。
初步分析,我就想到可能是网络原因, 机房两台机器连接不畅通, 程序和机器差的原因基本可以排除, 机房的tomcat机比我们开发机要强多了, 而且程序在他的机器上运行又没有问题。于是我就劝他到机房去检查一下网络状态, 但他一时也无法进入,因为机房的管理人员不在。
过了一会, 他告诉我问题解决了, 把数据库访问的url更换成了oci方式就好了, oci对我来说有些陌生, 我一直是用的thin,也没想过其他连接方式。对于oci我也只能想到oracle 的client中貌似是有oci什么的,当时有其他事情也没管了。
今天有意了解一下区别,先看看thin和oci的url写法上的区别:jdbc:oracle:thin:@server ip: service jdbc:oracle:oci:@service看来oci的还更加简洁,ip可以省掉不写了。
接下来再找找oci和thin的其他区别,发现有如下解释:引用
Oracle provides four different types of JDBC drivers, for use in different deployment scenarios. The 10.1.0 drivers can access Oracle 8.1.7 and higher. While all Oracle JDBC drivers are similar, some features apply only to JDBC OCI drivers and some apply only to the JDBC Thin driver.
JDBC OCI client-side driver: This is a JDBC Type 2 driver that uses Java native methods to call entrypoints in an underlying C library. That C library, called OCI (Oracle Call Interface), interacts with an Oracle database. The JDBC OCI driver requires an Oracle client installation of the same version as the driver.
The use of native methods makes the JDBC OCI driver platform specific. Oracle supports Solaris, Windows, and many other platforms. This means that the Oracle JDBC OCI driver is not appropriate for Java applets, because it depends on a C library.
Starting from 10.1.0, the JDBC OCI driver is available for install with the OCI Instant Client feature, which does not require a complete Oracle client-installation. Please refer to Oracle Call Interface for more information.
JDBC Thin client-side driver: This is a JDBC Type 4 driver that uses Java to connect directly to Oracle. It implement
您可能关注的文档
- Modelling the two point correlation function of galaxy clusters in the Sloan Digital Sky Su.pdf
- Modelling the US housing bubble.pdf
- Modelling the webspace of an intranet.pdf
- Modelling TwoRoton Bound State Formation in Fractional Quantum Hall System.pdf
- Modelling with ContextDependent Causality Maria Lee.pdf
- Modelling unknown words in spontaneous speech.pdf
- Modifying CSCW Environments Dynamically for Supporting Virtual Enterprises.pdf
- MODISReprojectionTool使用方法.doc
- MODIS图像与处理.docx
- Modular Modelling with Monads.pdf
- Oracle高级安全性钥匙键管理,数据加密和整合性检查.pdf
- Orbital Effects of InPlane Magnetic Fields Probed by Mesoscopic Conductance Fluctuations.pdf
- oracle表的管理与存储过程语法.doc
- OrCAD 建part时Power PIN 的注意事项.doc
- Ordering Dynamics of Topological Defect Networks.pdf
- order_by_group_by_having的用法区别[.doc
- Orcad中调整Value和partreference位置的宏.doc
- Orem自理模式在直肠癌超低吻合术后排便功能评价及康复护理中的运用.pdf
- Oscillatory Instability in TwoDimensional Dynamic Fracture.pdf
- origin制作并列图教程.doc
文档评论(0)