Howto install Oracle Instant Client 10.2.0.5 on Blackbuntu

来源:互联网 发布:倒立杨辉三角c语言程序 编辑:程序博客网 时间:2024/05/28 05:16

If you are running Inguma on Blackbuntu you will see something like this

c1ph3r@blackbuntu-dev:/pentest/exploits/inguma$ ./inguma.py
Inguma Version 0.0.9.1
Copyright (c)2006-2008 Joxean Koret <joxeankoret@yahoo.es>
 
libclntsh.so.10.1: cannot open shared objectfile: No such fileor directory
inguma>

Because you don't have oracle instant client, but blackbuntu have been set default environment for oracle instant client and install cx_Oracle already.
c1ph3r@blackbuntu-dev:~$ cat /etc/profile | grep ORACLE
export ORACLE_HOME=/opt/oracle/instantclient_10_2
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME

You just have install oracle instant client,and this how i did it.

1.Start out by becoming root. If you don't like to be root, that's fine, just prepend all commands with sudo.

c1ph3r@blackbuntu-dev:~$ sudo su -

2.Create a directory to install Oracle Instant Client into.
root@blackbuntu-dev:~# mkdir /opt/oracle

3.Download basic-10.2.0.5.0-linux.zip and sdk-10.2.0.5.0-linux.zip from http://www.oracle.com/technetwork/topics/linuxsoft-082809.html and extract the files to the directory you created earlier.
root@blackbuntu-dev:~# unzip -d /opt/oracle basic-10.2.0.5.0-linux.zip
root@blackbuntu-dev:~# unzip -d /opt/oracle sdk-10.2.0.5.0-linux.zip

4.Make a couple of symbolic links in the instantclient directory that you unzipped the instant client into.
root@blackbuntu-dev:~# source /etc/profile
root@blackbuntu-dev:~# cd $ORACLE_HOME
root@blackbuntu-dev:~# ln -s libclntsh.so.10.1 libclntsh.so
root@blackbuntu-dev:~# ln -s libocci.so.10.1 libocci.so
root@blackbuntu-dev:~# ldconfig

5.Opening th interactive python shell to test python and cx_Oracle
root@blackbuntu-dev:/opt/oracle/instantclient_10_2# python
Python 2.6.6 (r266:84292, Sep 152010, 15:52:39)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits"or"license"for more information.
>>>import cx_Oracle
>>>

6. and Inguma
root@blackbuntu-dev:/pentest/exploits/inguma# ./inguma.py
Inguma Version 0.0.9.1
Copyright (c)2006-2008 Joxean Koret <joxeankoret@yahoo.es>
inguma>

 

原创粉丝点击