1 背景:
无他,需要用到。
2 安装说明
环境
[root@omp-xygkt01kf oracle_client]<20180914 15:53:41># uname -a
Linux omp-xygkt01kf 3.10.0-327.36.3.el7.x86_64 #1 SMP Thu Oct 20 04:56:07 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux
用户
所有操作都使用root用户完成,不用考虑用户权限问题。
3 安装步骤:
3.1 软件包下载
首先到oracle官网下载instantclient安装包,其版本最好与你的Oracle数据库Server版本一致,不一致也行(比如我的client是12.1.0.2.0,最后连接别人的server 11.2.0.4.0也能成功)。下载地址:
http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html
主要下载以下三个软件包:
oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm
oracle-instantclient12.1-sqlplus-12.1.0.2.0-1.x86_64.rpm
oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm
软件包说明:
- Basic包:可以理解为基础包,包含所有OCI、OCCI, and JDBC-OCI 应用必须的文件(oracle原话:Basic: All files required to run OCI, OCCI, and JDBC-OCI applications);
- Sqlpus包:提供执行SQL* plus语句必备的库以及可执行文件。(Additional libraries and executable for running SQL*Plus with Instant Client)
- Devel包:API接口包。提供基于