2019年 · Linux

ubuntu上Oracle 客户端安装

root@localhost:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise
root@localhost:~# apt-get install libaio1
root@localhost:~# apt-get install alien
root@ad-webnode1:~# ll oracle-instantclient*
-rw-r–r– 1 root root 34850762 Jun 19 18:07 oracle-instantclient-basic-10.2.0.5-1.x86_64.rpm
-rw-r–r– 1 root root 290107 Jun 19 17:46 oracle-instantclient-devel-10.2.0.5-1.x86_64.rpm
-rw-r–r– 1 root root 794214 Jun 19 17:46 oracle-instantclient-sqlplus-10.2.0.5-1.x86_64.rpm
root@localhost:~# alien -i oracle-instantclient-basic-10.2.0.5-1.x86_64.rpm
root@localhost:~# alien -i oracle-instantclient-sqlplus-10.2.0.5-1.x86_64.rpm
root@localhost:~# alien -i oracle-instantclient-devel-10.2.0.5-1.x86_64.rpm
root@localhost:~# cat /etc/ld.so.conf.d/libc.conf
# libc default configuration
/usr/local/lib
/usr/lib/oracle/10.2.0.5/client64/lib
root@localhost:~# ldconfig
root@localhost:~# sqlplus sys/pwd@ip:1521/test as sysdba

参考:https://help.ubuntu.com/community/Oracle%20Instant%20Client