in reply to Need help urgent....
If you want to set up ORACLE_SID and ORACLE_HOME for the parent program, that will not work. It's impossible to set up environment variables for the calling program from a child.
The one thing you can do is output shell code which your parent then evaluates again via eval or . (depending on the shell).
In general, you should replace all instances of sed, awk and grep by s///, split and grep.
As an idiom, instead of writing grep -v grep|grep XXX, you can shorter write grep [X]XX.
|
|---|