5.1.4.3 Configure Environment Variables

Do the following changes in the .profile file.

Table 5-2 .profile File Changes

Description Example Value
set ORACLE_HOME pointing to the appropriate Oracle Client installation. export ORACLE_HOME=/scratch/oraofss/app_client19c/product/ 19.0.0/client_1
Set the PATH export PATH=/scratch/oraofss/app/product/19.0.0/dbhome_1/bin:$PATH
Set the STARTER_KIT_HOME export STARTER_KIT_HOME=/scratch/iutusrext/shome
Set TNS_ADMIN pointing to the folder where tnsnames.ora file exists. TNS_ADMIN=$HOME/tns

Example (.profile)

#!/bin/bash
export ORACLE_HOME=/scratch/oraofss/app/product/19.0.0/dbhome_1
export PATH=/scratch/oraofss/app/product/19.0.0/dbhome_1/bin:$PATH
echo "PATH $PATH"
export STARTER_KIT_HOME=/scratch/iutusrext/shome
export TNS_ADMIN=$HOME/tns

Login to the Linux terminal and execute the .profile.

. ./.profile