Wednesday, June 1, 2016

install oracle client on ubuntu 64

1: download oracle packages
oracle-instantclient12.1-basic-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-devel-12.1.0.2.0-1.x86_64.rpm

2, install:
 alien -i oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm
 alien -i oracle-instantclient12.1-sqlplus-12.1.0.2.0-1.x86_64.rpm
 alien -i oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm

3: install libaio1
  apt-get install libaio1

4:

export LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib/${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}

5: test:
sqlplus64 anacs/tkat@//analycsjus-west-2.rds.amazonaws.com:1521/IX


SQL*Plus: Release 12.1.0.2.0 Production on Wed Jun 1 22:34:01 2016

Copyright (c) 1982, 2014, Oracle.  All rights reserved.

Last Successful login time: Wed Jun 01 2016 22:33:40 +00:00

Connected to:
Oracle Database 12c Release 12.1.0.1.0 - 64bit Production

SQL>