Environment variable configuration file

Source: Internet
Author: User
For more information about the environment variable configuration file-Linux general technology-Linux programming and kernel, see the following. Recently, When I configured oracle and odex in linux, I found that it was quite uncomfortable because oracle in linux needs to import oracle's own environment variables, for security purposes, we generally set up a dedicated oracle user as the exclusive user of the database. In this way, we need to manually start oracle every time we start oracle, and we can write the environment in oracle $. bashrc file, instead. bash_profile file. When we use an odex user, we only need to su to the oracle user to import the corresponding oracle environment variables. In this case, we can use commands such as aqlplus.

/Etc/profile: sets environment variables for each user in the system. When the user logs on for the first time, the file is executed and shell settings are collected from the configuration file in the/etc/profile. d directory.

/Etc/bashrc: execute this file for every user running bash shell

~ /. Bash_profile: You can use this file to import your own usage information. This file is only executed once.

~ /Bashrc: contains your bash information. When you log on and open a new shell, the file is read.

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.