I have written below mentioned code and given oracle path but still I am unable to run the .sh
file through the cronjob:
export PATH
export PS1='$PWD>';
export LANG=C;
export LC_ALL=C;
export EDITOR=vi;
export ORACLE_BASE=/home/app
export ORACLE_HOME=/home/app/oracle/product/19.3
export TNS_ADMIN=$ORACLE_HOME/network/admin
#export LD_LIBRARY_PATH=
sqlplus username/password@servicename @abc.sql
exit;
please help to set oracle path as well as to run the program
Can the cronjob reach and access the abc.sql file?
Which PATH are you exporting? How did you find out that you need all the given exported environment variables?
– cyberbrain Nov 03 '21 at 07:46