0

Linux üzerine Oracle ile kullanmak için Tora Kurulumu

Posted by Gökhan Şahin on Mar 23, 2010 in Linux, Pardus

1-> tora-2.1.1.tar.gz indirin

2-> http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxsoft.html

adresinden

  1. instantclient-basiclite-linux32-11.2.0.1.zip
  2. instantclient-sqlplus-linux32-11.2.0.1.zip
  3. instantclient-sdk-linux32-11.2.0.1.zip dosyaları indirin.

3-> ~$ sudo useradd oracle ~$ sudo groupadd dba ile oralce icin gerekli user ve grup olusturulur.

4-> ~$ sudo mkdir /opt/oracle

5-> ~$ sudo unzip -d /opt/oracle/ instantclient-basiclite-linux32-11.2.0.1.zip

~$ sudo unzip -d /opt/oracle/ instantclient-sdk-linux32-11.2.0.1.zip

~$ sudo unzip -d /opt/oracle/ instantclient-sqlplus-linux32-11.2.0.1.zip

6-> ~$ cd /opt/oracle/instantclient_11_2/

~$ sudo ln -s libclntsh.so.11.1 libclntsh.so

~$ sudo ln -s libocci.so.11.1 libocci.so

~$ sudo mkdir bin

~$ cd bin

~$ sudo ln -s ../sqlplus

~$ cd..

7->~$ sudo pisi install kernel-headers

8-> ~$ export QTDIR=/usr/qt/4

9->tnsnames.ora dosyanızı gerekli dizine kopyalayın

~$ sudo cp /mnt/tnsnames.ora /opt/oracle/instantclient_11_2/admin/

10-> ~$ sudo chown -R oracle:dba /opt/oracle

~$ sudo touch /etc/profile.d/oracle.sh

~$ sudo touch /etc/profile.d/oracle.sh

~$ sudo chmod +x /etc/profile.d/oracle.sh

11-> ~$ sudo vi /etc/profile.d/oracle.sh

export ORACLE_HOME=/opt/oracle/instantclient_11_2

export TNS_ADMIN=/opt/oracle/instantclient_11_2/admin

export LD_LIBRARY_PATH=LD_LIBRARY_PATH:$ORACLE_HOME

export PATH=$PATH:$ORACLE_HOME/bin

12-> ~$ sqlplus abone/abone@KOSKI_GERCEK

sqlplus: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory

ÇÖZÜM: paket yöneticisinden libaio ve kernel-source paketi kuruldu.

13-> ~$ ./configure –prefix=/usr –with-instant-client –without-rpath –disable-new-check –with-kde –with-xinerama –with-oracle-includes=/opt/oracle/instantclient_11_2/sdk/include –with-oracle-libraries=/opt/oracle/instantclient_11_2 –enable-libsuffix=

~$ make

~$ make install

Copyright © 2019 Gökhan Şahin All rights reserved. Theme by Laptop Geek.