vi .bash_profile

export ORACLE_HOME=/oracle/app/oracle/product/12.2.0/dbhome_1
export ORACLE_SID=ORCL122
export PATH=$ORACLE_HOME/bin:$PATH