Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Help Shell Script Woes
Van Messner wrote in message
<006fb0e0.68a5070d_at_usw-ex0106-047.remarq.com>...
>Thus I assume the assigment to ORACLE_SID is ok.
>But when I look at my environment variables, the ORACLE_SID is
>not changed to GSP2.
>
>Can anyone think why not?
Environment variables in shell scripts are not available to the calling shell (command line). There is quite a good reason for this, but it's quite difficult to explain without getting into some very dull technical details...
However, your script is okay. Rather than calling it like this:
script.sh
Call it like this:
. script.sh
HTH,
--> Steve
Stephen Darlington (http://www.zx81.org.uk) "Never put a sock in a toaster" ---------------------------------------------------------------Received on Fri Feb 04 2000 - 09:53:01 CST