Oracle 11g 測試使用者的 .bash_profile 環境變數,路徑設定

來源:互聯網
上載者:User

1、Oracle 使用者登入後,直接輸入如下命令

  1. [oracle@localhost ~]$ vi .bash_profile   

2、添加從 #huzia這行起開始添加。

  1. # .bash_profile  
  2.   
  3. # Get the aliases and functions  
  4. if [ -f ~/.bashrc ]; then  
  5.         . ~/.bashrc  
  6. fi  
  7.   
  8. # User specific environment and startup programs  
  9.   
  10. PATH=$PATH:$HOME/bin  
  11.   
  12. export PATH  
  13.   
  14. # huzia 2011.08.28  
  15. #User specific enviroment and startup programs  
  16. TMP=/tmp; export TMP  
  17. TMPDIR=$TMP; export TMPDIR  
  18. umask 022  
  19. #ORACLE_HOSTNAME=dbs1; export ORACLE_HOSTNAME  
  20. ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE  
  21. ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1; export ORACLE_HOME  
  22. ORACLE_SID=orcl; export ORACLE_SID  
  23. ORA_CRS_HOME=$ORACLE_BASE/crs;export ORA_CRS_HOME  
  24. PATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:/usr/sbin:$PATH; export PATH  
  25. LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH  
  26. CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH  
  27. ORACLE_UNQNAME=$ORACLE_SID; export ORACLE_UNQNAME  
  28. ~                                                                                                                                                
  29. ~                                                                                                                                                
  30. ~                                                                                                                                                
  31. ~      

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.