This is a quick and dirty installation of sql*plus in debian based systems.
1. Download sql plus
oracle-instantclient12.1-basic-12.1.0.1.0-1.i386.rpm
oracle-instantclient12.1-sqlplus-12.1.0.1.0-1.i386.rpm
oracle-instantclient12.1-devel-12.1.0.1.0-1.i386.rpm
2. Install 'alien'
#apt-get install alien
3. Install rpms
#alien -i oracle-instantclient12.1-basic-12.1.0.1.0-1.i386.rpm
#alien -i oracle-instantclient12.1-sqlplus-12.1.0.1.0-1.i386.rpm
#alien -i oracle-instantclient12.1-devel-12.1.0.1.0-1.i386.rpm
4. Install Linux kernel AIO library
# apt-get install libaio1
5. oracle.conf
# touch /etc/ld.so.conf.d/oracle.conf
# echo "/usr/lib/oracle/12.1/client/lib/" >> /etc/ld.so.conf.d/oracle.conf
6. configure dynamic linker run-time bindings
# ldconfig
7. Edit ~/.bash_profile and export oracle client path.
export ORACLE_HOME=/usr/lib/oracle/12.1/client64
7. Create the following file.
# touch $ORACLE_HOME/network/admin/tnsnames.ora
8. connect to a db
# sqlplus user/password@192.168.1.8:1521/orcl
No comments:
Post a Comment