My Linux server is running Cent OS 6.7. I have followed instructions from https://oracle-base.com/articles/12c/oracle-db-12cr1-installation-on-oracle-linux-7 to complete my installation on my server. However during the installation I missed the step that creates dba, oper and other groups. I did created the group oinstall and added the user oracle to the group though. My installation is good and nothing is wrong with it.
MY questions:
1. Now post-installation, I create the OS groups dba, oper and other groups and added a new OS user oracle_admin to dba group. How can I grant the OS groups dba, oper the required permissions on oracle database ?
2. I added the following lines at the end of the "/home/oracle/.bash_profile" file. Do I need to add this to every users .bash_profile ?
# Oracle Settings
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=ol7.localdomain
export ORACLE_UNQNAME=orcl
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/12.1.0.2/db_1
export ORACLE_SID=orcl
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib