Oracle11gR2 Client for linux安装
Oracle11gR2
Client for linux安装
环境:CentOS6.8 X64
官方网站:
http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-linx8664soft-100572.html
提示:非静默安装(client.rsp)时,安装需要图形化支持
1.linux以root身份运行xhost +,再以非root用户,如oracle的身份login后进行安装,以root身份su - oracle的话也是不能看到图形的
2.xshell,启用X server后即可
1.安装
![Oracle11gR2 <wbr>Client <wbr>for <wbr>linux安装 Oracle11gR2 <wbr>Client <wbr>for <wbr>linux安装](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
![Oracle11gR2 <wbr>Client <wbr>for <wbr>linux安装 Oracle11gR2 <wbr>Client <wbr>for <wbr>linux安装](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
![Oracle11gR2 <wbr>Client <wbr>for <wbr>linux安装 Oracle11gR2 <wbr>Client <wbr>for <wbr>linux安装](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
注意: oracle client的安装也有类似oracle server的安装前环境检查(依赖包,内核参数等),比如centos6.8 iso源里是libaio-0.3.107,但环境检查时要求libaio-0.3.105,会阻止下一步,没关系,"ignore all"后可下一步,对安装没什么影响
![Oracle11gR2 <wbr>Client <wbr>for <wbr>linux安装 Oracle11gR2 <wbr>Client <wbr>for <wbr>linux安装](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
安装期间会弹框,要求以root身份运行
/u01/app/oraInventory/orainstRoot.sh
2.加载so
cat >/etc/ld.so.conf.d/oracle.conf <<HERE
/u01/app/oracle/product/11.2.0/db_1
HERE
ldconfig
3.加入PATH路径
export PATH=/u01/app/oracle/product/11.2.0/db_1:$PATH
![Oracle11gR2 <wbr>Client <wbr>for <wbr>linux安装 Oracle11gR2 <wbr>Client <wbr>for <wbr>linux安装](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
提示:
对于ubuntu14.04 可以直接将centos上安装好的文件 /u01/app/oracle/product/11.2.0/db_1拷贝一份后加入到LD_PATH,再apt-get -y install libaio-dev即可使用sqlplus
又或者通过alien将rpm转为deb
http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html