Linux 免安装Oracle客户端软件 连接 Oracle数据库
1、mkdir -p /opt/oracle
2、cd /opt/oracle
3、去oracle官网下载如下三个压缩包(最好下载与orcale服务器对应版本的)
然后传到/opt/oracle目录
oracle-instantclient11.2-basic-11.2.0.1.0-1.x86_64.zip
oracle-instantclient11.2-sqlplus-11.2.0.1.0-1.x86_64.zip
oracle-instantclient11.2-sdk-11.2.0.1.0-1.x86_64.zip
官方地址如下:
http://www.oracle.com/technetwork/topics/linuxsoft-082809.html (32位)
http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html (64位)
下载需要oracle账户,没有就免费注册一个吧。
4、将如下内容,复制粘贴到install.sh
#!/bin/bash
#author loopeelee
yum install -y libaio*
#不装这个包,连接的时候会报错如下:
#/opt/oracle/lib/sqlplus: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
cd /opt/oracle
unzip oracle-instantclient11.2-basic