Quote:
I believe my question is not clear
|
No, I found the question to be perfectly clear, hence my response is, what are you stuck on when looking at the documentation provided by Oracle to do the exact thing you are trying to do?
Others have already asked you about your file editing skills, which as you have created 2 scripts already I assumed you know how to edit a file.
So, if you read the documentation it will clearly tell you what you need to run / source to make the variables you are after available to the user in question.
Having done this in the work place the usual method is to have a stand-alone script which you run upon logging in, however, I see no reason to not have this done in the .bashrc
assuming that only one environment is available to this user, ie. should you need access to both a DEV and TEST environment, this method will only work for one.