Set environment variables in Oracle in Linux

Source: Internet
Author: User
You need to set two environment variables: ORACLE_HOME and ORACLE_SID, and then add the bin directory of ORACLE to PATH. Generally, ORACLE_SIDorcl and O are installed by default.

You need to set two environment variables: ORACLE_HOME and ORACLE_SID, and then add the bin directory of ORACLE to PATH. Generally, ORACLE_SID = orcl, O is installed by default.

You need to set two environment variables: Oracle_HOME and ORACLE_SID, and then add the bin directory of ORACLE to PATH. Generally, ORACLE_SID = orcl is installed by default, ORACLE_HOME =/home/oracle/product/10 ...... in this form ,,

Procedure:

1. su oracle and press enter to switch to the oracle user;

2. cd and press enter to return to the oracle user directory;

Cd/home/oracle

Ls-

3. vi. bash_profile, press enter to edit the file, press I to enter the insert status, and add the following lines at the end:

Export ORACLE_SID = orcl

Export ORACLE_HOME =/u01/app/oracle/product/11.2.0/dbhome_1

Export PATH = $ ORACLE_HOME/bin: $ PATH

Press ESC to exit vi editing,

Enter wq and press enter to save the disk and exit.

Log out of all oracle users, and then log on to oracle.

Note that before wq is entered, there is a colon. First enter this: you can enter the command at the bottom of the editor.

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.