No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

KunLun Mission Critical Server Oracle Database Oracle 12c R1 (RAC) Best Practice 02

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring Environment Variables

Configuring Environment Variables

Procedure

  1. When configuring Oracle environment variables for each Oracle RAC node, Ensure that a unique ORACLE_SID is assigned to each RAC node (such as dbn01 and dbn02).

    dbn01: ORACLE_SID=dbn01  
    dbn02: ORACLE_SID=dbn02     

  2. Open the .bash_profile file as user oracle and add the following content. The following uses dbn01 as an example. When adding the content for the other node, you need to change the value of ORACLE_SID.

    NOTE:

    When adding the content for the other node, change the value of ORACLE_SID to dbn02. If the system has more database nodes, change the values accordingly (such as dbn03 and dbn04).

    [root@dbn01~]# su - oracle  
    [oracle@dbn01 ~]# vi .bash_profile  
    
    export PATH
    export TMPDIR=$TMP
    export ORACLE_HOSTNAME=dbn01
    export ORACLE_UNQNAME=dbn0
    export ORACLE_BASE=/u01/app/oracle
    export ORACLE_HOME=$ORACLE_BASE/product/12.1.0/db
    export ORACLE_SID=dbn01
    export PATH=/usr/sbin:$PATH
    export PATH=$ORACLE_HOME/bin:$PATH
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
    export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

  3. Open the .bash_profile file as user grid add the following content. When adding the content for the other node, you need to change the value of ORACLE_SID. (The following uses dbn01 as an example.)

    NOTE:

    To add the content for the other node, change the value of ORACLE_SID to +ASM2. If the system has more database nodes, change the values accordingly (such as +ASM3 and +ASM4).

    [root@dbn01~]# su - grid  
    [grid@dbn01 ~]# vi .bash_profile   
    export PATH
    export TMP=/tmp
    export TMPDIR=$TMP
    export ORACLE_HOSTNAME=dbn01
    export ORACLE_BASE=/u01/app/grid
    export ORACLE_HOME=/u01/app/12.1.0/grid
    export ORACLE_SID=+ASM1
    export PATH=/usr/sbin:$PATH
    export PATH=$ORACLE_HOME/bin:$PATH
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
    export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

  4. Set environment variables for user root by adding the following content (the following uses dbn01 as an example):

    [root@dbn01 ~]# vi .bash_profile  
    export GRID_HOME=/u01/app/12.1.0/grid  
    export ORACLE_HOME=/u01/app/oracle/product/12.1.0/db  
    export PATH=$GRID_HOME/bin:$GRID_HOME/OPatch:/sbin:/bin:/usr/sbin:/usr/bin     

Download
Updated: 2019-02-01

Document ID: EDOC1100053123

Views: 13917

Downloads: 14

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next