I have been trying to run the following script to set and export env variables but I can't get it to work. ( on both RHEL 3 and 4).
export ORACLE_SID=infra
export ORACLE_HOME=$HOME/infra
export PATH=$PATH:$ORACLE_HOME/bin
I have tried using : #!/bin/ksh -x ,#!/bin/bash or #!/bin/sh before the commands but nothing works. I even tried using quotation marks on the variables.
The commands work if I type and execute them individually but not in a script.
Would anybody have an idea or a solution about this?
Thanks