Good day all
I have a UNIX script that I created to set a couple of environment variables for my Oracle installation.
When I initially run the script, I get the correct values on the inbuilt echo command but when the script completes and I issue an echo statement
echo $ORACLE_SID, the system returns the previous SID. Am i missing something here. I am very new to Linux so please let me know if I need to clarify any details
Yazu
How does this interpret in English - I am very new to UNIX
---------- Post updated at 09:42 AM ---------- Previous update was at 09:23 AM ----------
So are you confirming I am unable to update variables using a shell script? Otherwise this means I have to update everyone of these variables eveytime I restart my Unix box.
I plead for patience on this. In an attempt to run with your suggestion, I have attempted to update the .profile file which to my understanding should be in the home directory
Please see below
If you want it to be available in the current shell, you should source it like this . ./myscript . It is better to put it in .profile if it is required by apps/scripts.