Hi,
I am trying to set ORACLE environement (SID, HOME) in a shell script but I am getting an error
I am trying to set it it shell as following (example script)
#!/usr/bin/ksh
export $ORACLE_SID=DB01
ORAENV_ASK=NO
. /usr/local/bin/oraenv
ORAENV_ASK=YES
sqlplus -s system/<pwd> << eof >/u04/scripts/logs/arch_curr.log
alter system archivelog current;
eof
exit
I am getting following error
/u04/scripts/arch_curr.sh[4]: dbhome: not found
ORACLE_HOME = [] ? /u04/scripts/arch_curr.sh[7]: sqlplus: not found
I have checked the /etc/oratab as well and DB01 has proper entry init alongwith ORACLE_HOME
what could be the issue?
Thanks and Regards,
Chetana