1833173 Members
3009 Online
110051 Solutions
New Discussion

Re: User profile

 
peterchu
Super Advisor

User profile

I have my own user profile settting in ~mydir/.bash_profile , but when I connect to the database , there is a global setting will overwrite my own setting , can I prohibit any global setting will overwrite my profile setting even I connect to the database ? thx
4 REPLIES 4
twang
Honored Contributor

Re: User profile

how do you connect to your database, if you are using a script to connect to the database, take a look at the script, it may source a env file.
peterchu
Super Advisor

Re: User profile

yes , it through the script to connect to the db , but how can I set to part of my setting ( eg. TERM ) will not be changed even run the env ? thx
Pete Randall
Outstanding Contributor

Re: User profile

Unfortunately, environment variables are set to whatever value was expressed last. If you set variable BLAH=blue in your profile and a subsequent script sets BLAH=red, then it's going to be red. The only way around this that I can think of is to figure out a way to get your profile re-executed right after the script.


Pete

Pete
RAC_1
Honored Contributor

Re: User profile

I think you can always do
readonly XX=yy
export XX

This should take care of your problem.

Anil
There is no substitute to HARDWORK