Oracle 11g test the user's. bash_profile environment variable, path settings

Source: Internet
Author: User

1. After logging on to Oracle, enter the following command:

  1. [Oracle @ localhost ~] $ Vi. bash_profile

2. Add from # huzia.

  1. #. Bash_profile
  2. # Get the aliases and functions
  3. If [-f ~ /. Bashrc]; then
  4. .~ /. Bashrc
  5. Fi
  6. # User specific environment and startup programs
  7. PATH= $ PATH: $ HOME/bin
  8. Export PATH
  9. # Huzia 2011.08.28
  10. # User specific enviroment and startup programs
  11. TMP=/Tmp; export TMP
  12. TMPDIR= $ TMP; export TMPDIR
  13. Umask 022
  14. #ORACLE_HOSTNAME=Dbs1; Export ORACLE_HOSTNAME
  15. ORACLE_BASE=/U01/app/oracle; export ORACLE_BASE
  16. ORACLE_HOME= $ ORACLE_BASE/product/11.2.0/dbhome_1; export ORACLE_HOME
  17. ORACLE_SID=Orcl; Export ORACLE_SID
  18. ORA_CRS_HOME= $ ORACLE_BASE/crs; export ORA_CRS_HOME
  19. PATH= $ ORACLE_HOME/bin: $ ORA_CRS_HOME/bin:/usr/sbin: $ PATH; export PATH
  20. LD_LIBRARY_PATH= $ ORACLE_HOME/lib:/usr/lib; export LD_LIBRARY_PATH
  21. CLASSPATH= $ ORACLE_HOME/JRE: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlib; export CLASSPATH
  22. ORACLE_UNQNAME= $ ORACLE_SID; export ORACLE_UNQNAME
  23. ~
  24. ~
  25. ~
  26. ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.