Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@lukaspili
Created May 1, 2011 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukaspili/950748 to your computer and use it in GitHub Desktop.
Save lukaspili/950748 to your computer and use it in GitHub Desktop.
oracle env
cd /opt/oracle
export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
export ORACLE_BASE=/u01/app/oracle
echo "if [ -f ~/.bashrc ]; then" >> .bash_profile
echo " . ~/.bashrc" >> .bash_profile
echo "fi" >> .bash_profile
echo "PATH=$PATH:$HOME/bin" >> .bash_profile
echo "export PATH" >> .bash_profile
echo "unset USERNAME" >> .bash_profile
echo "umask 022" >> .bash_profile
echo "PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin" >> .bash_profile
echo "LD_LIBRARY_PATH=/usr/lib:/usr/X11R6/lib " >> .bash_profile
echo "ORACLE_BASE=/u01/app/oracle" >> .bash_profile
echo "ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1" >> .bash_profile
echo "ORACLE_SID=orcl" >> .bash_profile
echo "LD_LIBRARY_PATH=$ORACLE_HOME/jdk/jre/lib/i386:$ORACLE_HOME/jdk/jre/lib/i386/server:$ORACLE_HOME/rdbms/lib:$ORACLE_HOME/lib:$LD_LIBRARY_PATH">> .bash_profile
echo "PATH=$ORACLE_HOME/bin:$PATH" >>.bash_profile
echo "export PATH LD_LIBRARY_PATH" >> .bash_profile
echo "export ORACLE_BASE ORACLE_HOME ORACLE_SID" >> .bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment