Created
May 1, 2011 19:06
-
-
Save lukaspili/950748 to your computer and use it in GitHub Desktop.
oracle env
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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