Setting the Value for `Oracle_Sid`

Setting the Value for `Oracle_Sid`

I have a problem with setting the value for ORACLE_SID as the following:

export ORACLE_SID=orcl

The problem is I have to set the ORACLE_SID every time I login into ubuntu.

How can I keep this value unchanged after I logout ?

1 Answer

Edit your ~/.bashrc to include the line

export ORACLE_SID=orcl

EDIT: If you want it available for all users, add the above line to /etc/environment

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Elena Rostova
Author

Elena Rostova

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.