Mike EmletSarah Gammage

Stories from Saints, Sufferers, & Sinners – Episode 3: Sarah

February 25, 2021

0:00
0:00

Install Oracle Client 12c Info

SQLNET.OUTBOUND_CONNECT_TIMEOUT = 10 TRACE_LEVEL_CLIENT = OFF LOG_DIRECTORY_CLIENT = /u01/app/oracle/log Create response file client_install.rsp :

PROD = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = db-server.example.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = proddb) ) ) sqlplus scott/tiger@PROD sqlplus /nolog SQL> connect scott/tiger@PROD 5.4 Optional: Configure sqlnet.ora For connection timeout, logging: install oracle client 12c

oracle.install.responseFileVersion=/oracle/install/rspfmt_clientinstall_response_schema_v12.2.0 UNIX_GROUP_NAME=oinstall INVENTORY_LOCATION=/u01/app/oracle/oraInventory SELECTED_LANGUAGES=en ORACLE_HOME=/u01/app/oracle/product/12.2.0/client_1 ORACLE_BASE=/u01/app/oracle oracle.install.client.installType=Administrator oracle.install.client.customComponents= Run silent install: SQLNET

export LD_LIBRARY_PATH=/opt/oracle/instantclient_12_2:$LD_LIBRARY_PATH export PATH=/opt/oracle/instantclient_12_2:$PATH export TNS_ADMIN=/opt/oracle/instantclient_12_2/network/admin 5.1 Set Environment Variables ( ~oracle/.bash_profile ) export ORACLE_HOME=/u01/app/oracle/product/12.2.0/client_1 export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH export PATH=$ORACLE_HOME/bin:$PATH export TNS_ADMIN=$ORACLE_HOME/network/admin 5.2 Configure tnsnames.ora Create $TNS_ADMIN/tnsnames.ora : Silent installation via response file enables automation and

unzip instantclient-basic-linux.x64-12.2.0.1.0.zip -d /opt/oracle unzip instantclient-sqlplus-linux.x64-12.2.0.1.0.zip -d /opt/oracle unzip instantclient-tools-linux.x64-12.2.0.1.0.zip -d /opt/oracle cd /opt/oracle/instantclient_12_2

Administrator installation using ZIP distribution on dedicated Linux server or VM. Report prepared for: System Administration / Database Team Oracle Client Version: 12.2.0.1 Last validated: [Current Date]

./runInstaller -silent -responseFile /path/to/client_install.rsp -waitforcompletion | Check | Command | |-------|---------| | Oracle Home exists | ls $ORACLE_HOME | | sqlplus works | sqlplus -V | | TNS ping | tnsping PROD | | Library linking | ldd $ORACLE_HOME/bin/sqlplus | | OCI version | grep "Oracle Client" $ORACLE_HOME/install/.patch_history | 8. Common Issues & Resolutions | Issue | Solution | |-------|----------| | /lib64/libaio.so.1: cannot open | yum install libaio | | DISPLAY not set | export DISPLAY=:0 or use silent install | | ORA-12154: TNS could not resolve | Check TNS_ADMIN and tnsnames.ora syntax | | ORA-12541: TNS no listener | Verify DB listener is running ( lsnrctl status on server) | | GLIBC version mismatch | Upgrade OS or use older client version | 9. Uninstallation $ORACLE_HOME/deinstall/deinstall rm -rf /u01/app/oracle/product/12.2.0/client_1 rm -rf /u01/app/oracle/oraInventory userdel oracle groupdel dba oinstall 10. Conclusion Oracle Client 12c can be installed successfully using either the full GUI installer for administrative environments or the lightweight Instant Client for runtime-only deployments. Proper pre-installation OS configuration, environment variables, and network setup are critical for connectivity. Silent installation via response file enables automation and repeatability in production deployments.

Related Resources

Closeness Comes Through Fire: How Suffering Conforms Us to Christ
Blog
August 4, 2022

Closeness Comes Through Fire: How Suffering Conforms Us to Christ

An Open Letter to a Discouraged Saint
Blog
January 14, 2021

An Open Letter to a Discouraged Saint

install oracle client 12c

Free Audio Download: Marriage

Sign up for our weekly email and receive access to 5 conference sessions on the topic of marriage.