PDA

View Full Version : Oracle Instant Client


BadKarmaPR
03-24-2008, 05:16 AM
While on a pentest where I needed access to the Oracle DB using sqlplus I found that the client wa present but not working, here are the steps to fix it

mv /usr/lib/oracle/11.1.0.1/client/lib/* /usr/lib/
mv /usr/lib/oracle/11.1.0.1/client/bin/* /usr/bin
wget ftp://fr2.rpmfind.net/linux/fedora/development/source/SRPMS/libaio-0.3.106-4.2.src.rpm
rpm2tgz libaio-0.3.106-4.2.src.rpm
tar xfz libaio-0.3.106-4.2.src.tgz
cd libaio-0.3.106-4.2
tar xvzf libaio-0.3.106.tar.gz
cd libaio-0.3.106
make prefix=/usr/local install
ldconfig
rm -rf libai*


I hope it helps

after this you can run sqlplus form the shell to connect to Oracle RDBMS Servers

BadKarmaPR
03-24-2008, 05:43 AM
if you need sidguess you can copy it from Backtrack2 in /pentest/database/oracle/ and copy it to Backtrack3
then in BT3:


cd /usr/lib
ln -s libclntsh.so.11.1 libclntsh.so.10.1
ldconfig


after this sidgess should work in BT3, its a shame that the latest version is only for Windows or OSX