How to set up ORACLE_SID and ORACLE_HOME on ubuntu

1. step Open the .profile hidden file which is located in /yourname/home/.profile

2. step add the following lines to end of the .profile file

export ORACLE_HOME=Oracle/app/<strong>yourname</strong>/product/11.1.0/db_1/bin
export ORACLE_SID=lnr

3. step save the changes , restart your computer

4. step you can check your environment variable

$ echo $ORACLE_SID
$ echo $ORACLE_HOME

Path : Oracle/app/yourname/product/11.1.0/db_1/bin