Hello. I have 13.1-STABLE OS version and oracle instant client 64-bit for linux. I have enabled linux binary compatibility and unpacked client's files into /compat/linux/opt/oracle/instantclient_10_2 (i need exactly this version):
With oracle instruction I've done:
Install the libaio package:
and export some env variables:
Now I can use sqlplus, but when I try use
Anyone has any advices where I'm wrong?
Code:
ls -l /compat/linux/opt/oracle/instantclient_10_2/
total 112634
-r--r--r-- 1 root wheel 1621582 20 апр. 2010 classes12.jar
-rwxrwxr-x 1 root wheel 70742 20 апр. 2010 genezi
-r--r--r-- 1 root wheel 1525 20 апр. 2010 glogin.sql
lrwxr-xr-x 1 root wheel 17 13 сент. 15:07 libclntsh.so -> libclntsh.so.10.1
-rwxrwxr-x 1 root wheel 25306574 20 апр. 2010 libclntsh.so.10.1
-r-xr-xr-x 1 root wheel 7856305 20 апр. 2010 libnnz10.so
lrwxr-xr-x 1 root wheel 15 13 сент. 15:07 libocci.so -> libocci.so.10.1
-rwxrwxr-x 1 root wheel 1669888 20 апр. 2010 libocci.so.10.1
-rwxrwxr-x 1 root wheel 72703820 20 апр. 2010 libociei.so
-r-xr-xr-x 1 root wheel 150417 20 апр. 2010 libocijdbc10.so
-r-xr-xr-x 1 root wheel 1345921 20 апр. 2010 libsqlplus.so
-r-xr-xr-x 1 root wheel 1436497 20 апр. 2010 libsqlplusic.so
lrwxr-xr-x 1 root wheel 18 14 сент. 14:57 libsqora.so -> ./libsqora.so.10.1
-rwxrwxr-x 1 root wheel 1016119 20 апр. 2010 libsqora.so.10.1
drwxr-xr-x 3 root wheel 3 13 сент. 15:14 network
-r--r--r-x 1 root wheel 3589 20 апр. 2010 odbc_update_ini.sh
-r--r--r-- 1 root wheel 1569316 20 апр. 2010 ojdbc14.jar
-r-xr-xr-x 1 root wheel 9317 20 апр. 2010 sqlplus
Code:
ln -s libclntsh.so.10.1 libclntsh.so
ln -s libocci.so.10.1 libocci.so
Code:
# pkg version | grep linux
linux-c7-libaio-0.3.109 =
linux_base-c7-7.9.2009 =
Code:
sudo sh -c "echo /compat/linux/opt/oracle/instantclient_10_2 > /compat/linux/etc/ld.so.conf.d/oracle-instantclient.conf
sudo ldconfig
Code:
$ env
ODBCSYSINI=/usr/local/etc
ODBCINI=/home/zabbix/.odbc.ini
ORACLE_HOME=/compat/linux/opt/oracle/instantclient_10_2
PATH=/compat/linux/opt/oracle/instantclient_10_2:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/zabbix/bin
LD_LIBRARY_PATH=/compat/linux/lib:/compat/linux/lib64:/compat/linux/opt/oracle/instantclient_10_2
isql - i
get this error (I wrote driver settings right in ~/.odbc.ini:Driver=/compat/linux/opt/oracle/instantclient_10_2/libsqora.so
):
Code:
$ isql -v SR
[01000][unixODBC][Driver Manager]Can't open lib '/compat/linux/opt/oracle/instantclient_10_2/libsqora.so' : file not found
[ISQL]ERROR: Could not SQLConnect