首页 > Linux操作系统 > Linux操作系统 > RAC--Step-By-Step Installation of RAC on Linux

RAC--Step-By-Step Installation of RAC on Linux

原创 Linux操作系统 作者:vongates 时间:2019-06-30 16:54:04 0 删除 编辑

Step-By-Step Installation of RAC on Linux



1. Configuring the Clusters Hardware. 2

1.1 Minimal Hardware list / System Requirements. 2

1.1.1 Hardware. 2

1.1.2 Software. 2

1.2 Installing the Shared Disk Subsystem.. 2

1.3 Configuring the Cluster Interconnect and Public Network Hardware. 2

2. Creating a Cluster 3

2.1 UNIX Pre-installation tasks. 3

2.2 Configuring the Shared Disks. 7

2.3 Run the Oracle Universal Installer to install the ORACM (Oracle Cluster Manager) 7

2.4 Configure the hangcheck-timer 8

2.5 Install Version of the Oracle Universal Installer 10

2.6 Run the Oracle Universal Installer to patch the Oracle Cluster Manager (ORACM) to 11

2.7 Modify the ORACM configuration files to utilize the hangcheck-timer. 12

2.8 Start the ORACM (Oracle Cluster Manager) 13

3. Installing RAC.. 13

3.1 Install RAC.. 13

3.2 Patch the RAC Installation to 14

3.3 Start the GSD (Global Service Daemon) 15

3.4 Create a RAC Database using the Oracle Database Configuration Assistant 15

4.Administering Real Application Clusters Instances. 17

5. References. 17


1. Configuring the Clusters Hardware

1.1 Minimal Hardware list / System Requirements

Please check the RAC/Linux certification matrix for information on currently supported hardware/software.

1.1.1 Hardware

  • Requirements:

    • Refer to the RAC/Linux certification matrix for information on supported configurations.  Ensure that the system has at least the following resources:
      • /    7G

      • /boot    500M

      • /opt/oracle 7G

      • /opt/web 124M

      • /dev/shm 1.5G

      • 3G of Physical Memory (RAM)

    • Automatically partition->Remove all partitions on this system ->Swap (Fill all space up to 1536M)
    • No firewall -> Asia/Taipei -> root pwd (prodsap)
    • Customize the set of packages to be installed(X Window System, GNOME Desktop Environment, Server Configuration Tools, Development Tools, Kernel Development, GNOME Software Development, Administration Tools)

1.1.2 Software

·         Linux kernel version would be 2.4.21-4.EL   (uname –r)

·         Upgrade kernel

$ rpm -ivh kernel-2.4.9-e.48.i686.rpm

$ rpm -ivh kernel-smp-2.4.9-e.48.i686.rpm

$ rpm -Uvh kernel-headers-2.4.9-e.48.i386.rpm(直接upgrade 舊的不存在)

$ vi /etc/lilo.conf






              lilo –v –v –v

                shutdown –r now





·         Glibc Version Number glibc 2.3.2-95.3   (rpm –qa |grep glibc)

·         Required OS Components (第二片CD)

·         $rpm –qa |grep compat








  • $rpm –qa |grep openmotif



           $ rpm -q gcc cpp compat-libstdc++ glibc-devel kernel-headers binutils vnc-server

        $ rpm –ivh unzip-5.50-2 (第一片)

  • Make sure you have make and rsh-server packages installed, check with:

$rpm –q rsh  make


1.2 Installing the Shared Disk Subsystem

This is highly dependent on the subsystem you have chosen. Please refer to your hardware documentation for installation and configuration instructions on Linux. Additional drivers and patches might be required. In this article we assume that the shared disk subsystem is correctly installed and that the shared disks are visible to all nodes in the cluster.  

1.3 Configuring the Cluster Interconnect and Public Network Hardware

[oracle@opcbrh1 oracle]$ more /etc/hosts                       
Use your favorite tool to configure these adapters. Make sure your public network is the primary (eth0). 


kernel.core_uses_pid = 1

net.core.rmem_default= 262144

net.core.rmem_max= 262144

net.core.wmem_default= 262144

net.core.wmem_max= 262144

net.ipv4.ip_forward = 0

net.ipv4.conf.default.rp_filter = 1

kernel.sysrq = 1

kernel.domainname =

kernel.sem = 250 32000 100 150

kernel.shmmax = 4294967295

kernel.shmmni = 4096

kernel.shmseg = 4096

kernel.shmall = 3279547

fs.file-max = 327679

kernel.msgmni = 2878

kernel.msgmnb = 30000

net.ipv4.ip_local_port_range = 1024 65536



oracle           soft    nofile          4096 

oracle           hard    nofile          63536

oracle           soft    nproc           2047

oracle           hard    nproc           16384


$shutdown –r now

2. Creating a Cluster

On Linux, the cluster software required to run Real Application Clusters is included in the Oracle distribution.  

The Oracle Cluster Manager (ORACM) installation process includes eight major tasks.

  1. UNIX pre-installation tasks.

  2. Configuring the shared disks

  3. Run the Oracle Universal Installer to install the ORACM (Oracle Cluster Manager) 

  4. Configure the hangcheck-timer.

  5. Install version of the Oracle Universal Installer

  6. Run the Oracle Universal Installer to patch the Oracle Cluster Manager (ORACM) to

  7. Modify the ORACM configuration files to utilize the hangcheck-timer.

  8. Start the ORACM (Oracle Cluster Manager)

2.1 UNIX Pre-installation tasks

These steps need to be performed on ALL nodes. 

$groupadd dba

$useradd -g dba oracle

$passwd oracle


$vi /etc/xinetd.d/rsh

disable = no

$ /etc/rc.d/init.d/xinetd restart

$vi .rhosts    (oracle user)





$vi /etc/securetty


  • As oracle user, check for user equivalence for the oracle account by performing a remote copy (rcp) to each node (public and private) in the cluster.  Example:


        $ touch /home/oracle/test
        $ rcp /home/oracle/test sapdbrac2:/home/oracle/test1
        $ rcp /home/oracle/test int-sapdbrac2:/home/oracle/test2


        $ touch /opt/test
        $ rcp /home/oracle/test sapdbrac1:/home/oracle/test1
        $ rcp /home/oracle/test int-sapdbrac1:/home/oracle/test2
        $ ls /opt/test*
        /home/oracle/test /home/oracle/test1 /home/oracle/test2


        $ ls /home/oracle/test*
        /home/oracle/test /home/oracle/test1 /home/oracle/test2

Establish Oracle environment variables: Set the following Oracle environment variables:

export CRS_HOME=/opt/oracle/product/9.2.0/oracm

export ORACLE_BASE=/opt//oracle

export ORACLE_HOME=/opt/oracle/product/9.2.0

export ORACLE_SID=sapprod

export ORACLE_TERM=xterm


export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data




export THREADS_FLAG=native



export PATH


ulimit -n 63536

ulimit -u 16384


It is best to save these in a .login or .profile file so that you do not have to set the environment every time you log in.

  • Create the directory /var/opt/oracle and set ownership to the oracle user.  Example:

        $ mkdir /var/opt/oracle
        $ chown oracle.dba /var/opt/oracle

  • Set the oracle user's umask to "022" in you ".profile" or ".login" file. Example:

        $ umask 022

Note: There is a verification script available which may be downloaded and run prior to the installation of Oracle Real Application Clusters. This script verifies that the system is configured correctly according to the Installation Guide. The output of the script will report any further tasks that need to be performed before successfully installing Oracle 9.x DataServer (RDBMS). This script performs the following verifications:-

  • ORACLE_HOME Directory Verification

  • UNIX User/umask Verification

  • UNIX Group Verification

  • Memory/Swap Verification

  • TMP Space Verification

  • Real Application Cluster Option Verification

  • Unix Kernel Verification

. ./

You are currently logged on as oracle 
Is oracle the unix user that will be installing Oracle Software? y or n 

Enter the unix group that will be used during the installation
Default: dba

Enter the version of Oracle RDBMS you will be installing
Enter either : 901 OR 920 - Default: 920
The rdbms version being installed is 920

Enter Location where you will be installing Oracle
Default: /opt/oracle/product/oracle9i
Your Operating System is Linux
Gathering information... Please wait 
JDK check is ignored for Linux since it is provided by Oracle

Checking unix user ...

Checking unix umask ... 
umask test passed 

Checking unix group ... 
Unix Group test passed

Checking Memory & Swap... 
Memory test passed

/tmp test passed 

Checking for a cluster...

Linux Cluster test section has not been implemented yet
No cluster warnings detected
Processing kernel parameters... Please wait
Running Kernel Parameter Report...
Check the report for Kernel parameter verificationn


/tmp/Oracle_InstallPrep_Report has been generated

Please review this report and resolve all issues before attempting to
install the Oracle Database Software 

Note: If you get an error like this: line 45: syntax error near unexpected token `fi'


./ Command not found.

Then you need to copy the script into a text file (it will not run if the file is in binary format).

2.2 Configuring the Shared Disks 

For more information on setting up OCFS for RAC on Linux, see the following MetaLink Note:


来自 “ ITPUB博客 ” ,链接:,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录