Windows ve Linux üzerinde Oracle Instant Client kurulumu ve konfigurasyonunu kolaylaştırmak için hazırladığım scriptler.
Redhat / Centos ( x64 )
wget https://download.oracle.com/otn_software/linux/instantclient/oracle-instantclient-basic-linuxx64.rpm
wget https://download.oracle.com/otn_software/linux/instantclient/oracle-instantclient-sqlplus-linuxx64.rpm
wget https://download.oracle.com/otn_software/linux/instantclient/oracle-instantclient-tools-linuxx64.rpm
wget https://download.oracle.com/otn_software/linux/instantclient/oracle-instantclient-devel-linuxx64.rpm
wget https://download.oracle.com/otn_software/linux/instantclient/oracle-instantclient-jdbc-linuxx64.rpm
wget https://download.oracle.com/otn_software/linux/instantclient/oracle-instantclient-odbc-linuxx64.rpm
for file in *.rpm
do
rpm -ivh $file
done
export LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib;
export TNS_ADMIN=/usr/lib/oracle/12.1/client64;
export ORACLE_HOME=/usr/lib/oracle/12.1/client64;
export ORACLE_SID=;
vi /usr/lib/oracle/12.1/client64/tnsnames.ora;
sqlplus username/password@SID
Ubuntu / Debian ( x64 )
sudo apt-get install libaio1 libaio-dev
mkdir -p /oracle/
cd /oracle/
wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basic-linuxx64.zip
wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-sqlplus-linuxx64.zip
wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-tools-linuxx64.zip
wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-sdk-linuxx64.zip
wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-jdbc-linuxx64.zip
wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-odbc-linuxx64.zip
for file in *.zip
do
unzip $file
done
export ORACLE_HOME=/oracle/instantclient_19_19;
export LD_LIBRARY_PATH=$ORACLE_HOME:/lib:/usr/lib:/usr/lib64;
export TNS_ADMIN=$ORACLE_HOME/network/admin;
export PATH=$PATH:$ORACLE_HOME
Windows 11 ( x64 )