I have put if else condition in side a ksh scripts its very simple condition but i m not sure why its failing.
expression is like that
ORACLESID=echo $ORACLE_SID if [$ORACLESID="KFBACRMW"] ; then export ORACLE_HOME=/u01/app/oracle/${ORACLE_SID}/dbhome fi
export PATH=$ORACLE_HOME/bin:$PATH
-----------------------------------Its setting default home its not picking mention home in condition "ORACLE_HOME=/u01/app/oracle/${ORACLE_SID}/dbhome"
giving error :
ORACLESID=KFBACRMW
- [KFBACRMW=KFBACRMW] dba_pre_snap_test.ksh[34]: [KFBACRMW=KFBACRMW]: not found
Aucun commentaire:
Enregistrer un commentaire