Hello everyone,
I am really not an expert on linux and have some problems. I installed Oracle Linux 7.4 on virtualbox 5.2.8 running on windows 10. after installation, I created an oracle user to install db. I wanted to set ORACLE_BASE environment variable and as I remember I added it into .bash_profile file in /home/oracle. this is the entry I added:
ORACLE_BASE=/u01/app/oracle
export ORACLE_BASE
I saved .bash_profile then open a new terminal which as far as I know it should be read the .bash_profile and check ORACLE_BASE with echo $ORACLE_BASE but it was empty. I checked .bash_profile file but my entry was exist.
after that point, if I run "source .bash_profile" on the terminal, it works and I can see ORACLE_BASE variable but if start a new terminal I have to run source command again. if I restart the OS then it works again permanently.
beyond that if I write my variable into .bashrc it works directly on a new terminal.
so what am I doing wrong? is there a bug, missing in my knowledge or a new feature that I don't know?