设为首页 加入收藏

TOP

Linux配置unixODBC访问Oracle说明(一)
2014-11-24 08:06:47 来源: 作者: 【 】 浏览:7
Tags:Linux 配置 unixODBC 访问 Oracle 说明
一.安装unixODBC
UnixODBC官网:
http://www.unixodbc.org/

[root@rac1 mnt]# yum installunixODBC
[root@rac1 mnt]# yum installunixODBC-devel

确认unixODBC的安装,使用isql命令,其是unixODBC自带的命令。可以使用这个命令验证unixODBC的配置。

[root@rac1 /]# isql --version
unixODBC 2.2.14
[root@rac1 /]# which isql
/usr/bin/isql
[root@rac1 /]# isql

**********************************************
* unixODBC - isql *
**********************************************
* Syntax *
* *
* isql DSN [UID [PWD]] [options] *
* *
* Options *
* *
* -b batch.(no prompting etc) *
* -dx delimit columns with x *
* -x0xXX delimit columns with XX, where *
* x is in hex, ie 0x09 is tab *
* -w wrap results in an HTML table *
* -c column names on first row. *
* (only used when -d) *
* -mn limit column display width to n *
* -v verbose. *
* -lx set locale to x *
* -q wrap char fields in dquotes *
* -3 Use ODBC 3 calls *
* -n Use new line processing *
* --version version *
* *
* Commands *
* *
* help - list tables *
* help table - list columns in table *
* help help - list all help options *
* *
* Examples *
* *
* isql WebDB MyID MyPWD -w < My.sql *
* *
* Each line in My.sql must contain *
* exactly 1 SQL command except for the *
* last line which must be blank (unless *
* -n option specified). *
* *
* Please visit; *
* *
* http://www.unixodbc.org *
* pharvey@codebydesign.com *
* nick@easysoft.com *
**********************************************

[root@rac1 /]#

二. 下载安装unixODBC 连接Oracle 的驱动

ODBC Drivers 下载地址:
http://www.easysoft.com/developer/interfaces/odbc/index. html

这里的驱动也分两种,需要Oracle 客户端的ODBC-Oracle Driver (OCI version)和不需要Oracle客户端的ODBC-OracleDriver ( WP version),
The EasysoftODBC- Oracle Driver (OCI version) uses Oracleclient software to access the Oracle database.
The EasysoftODBC-Oracle Driver (WP version), which does not use Oracle client software,provides direct access to Oracle, for use in solutions where minimising theclient footprint is a requirement.

因为我的测试环境上已经安装了oracle,所以我这里选择需要客户端的驱动。

[root@rac1 u01]# ls
app backup odbc-oracle-3.3.0-linux-x86-64-ul64.tar oswbb oswbb4.0.tar

安装odbc 驱动:
[root@rac1 u01]# tar -xvf odbc-oracle-3.3.0-linux-x86-64-ul64.tar

[root@rac1 u01]# cd odbc-oracle-3.3.0-linux-x86-64-ul64
[root@rac1odbc-oracle-3.3.0-linux-x86-64-ul64]# ls
all.tar
首页 上一页 1 2 3 4 下一页 尾页 1/4/4
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇oracle通过游标方式删除所有以NO.. 下一篇一套Oracle SQL练习题及答案

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·微服务 Spring Boot (2025-12-26 18:20:10)
·如何调整 Redis 内存 (2025-12-26 18:20:07)
·MySQL 数据类型:从 (2025-12-26 18:20:03)
·Linux Shell脚本教程 (2025-12-26 17:51:10)
·Qt教程,Qt5编程入门 (2025-12-26 17:51:07)