.bash_profile [message #638327] |
Tue, 09 June 2015 09:19 |
|
krish96
Messages: 74 Registered: October 2012
|
Member |
|
|
Hello Experts,
Is there a way to automatically execute .bash_profile or propmts for setting evironment variables after you login into server, Instead of running executing .bash_profile manually everytime you login to server..
Thanks in advance..
krish
|
|
|
|
|
|
|
|
|
|
|
Re: # .bash_profile of linux server [message #638777 is a reply to message #638759] |
Sat, 20 June 2015 09:38 |
|
EdStevens
Messages: 1376 Registered: September 2013
|
Senior Member |
|
|
BlackSwan wrote on Fri, 19 June 2015 18:17
Some, many, most professional DBAs maintain their own database specific configuration files; like DEV.env, QA.env, PROD.env, DWH.env, etc. & source in the desired file prior to initiating activity against the specific database.
I'd agree with the "some" and even perhaps the "many". Not so sure about the "most". Maybe I'm in the vast minority and don't know it (who really is in a position to know for sure?)but I just rely on oraenv. Not sure of the advantage, if any, of a series of custom scripts when oracle has already provided a good one.
That said, I do have a series of 'env' scripts to be executed at the command line on my one pair (prod and test) of Windows boxes.
Quote:Depending upon .bash_profile to establish Oracle environment is amateurish at best.
To that I agree completely.
|
|
|