Installing Oracle RAC Database Software Using Command-Line Interface

Install Oracle RAC or Oracle RAC One Node software using the gold image-based installation with the command-line interface.

Oracle Real Application Clusters Database installation is a two-step process. This procedure describes the first step — to install Oracle RAC software.
If you have an existing Oracle installation, then write down the version numbers, patches, and other configuration information, and review upgrade procedures for your existing installation. Review Oracle Database Upgrade Guide before proceeding with the installation.
Ensure that you have su or sudo credentials, because you will be required to either provide root credentials to automatically run the root scripts or run a script as the root user during installation.
  1. Ensure that you can access other nodes with SSH. The installer requires that the user account running the Oracle RAC installation is permitted to set up passwordless SSH. The installer can set this up for you automatically, or your system administrator can set this up for you before installation is started.
  2. Open the terminal from which you intend to run the installer, and log in as the user account that you want to own the Oracle Database installation (for example, oracle).

    If you are not able to turn off stty commands, or have other restrictions that prevent automatic SSH configuration from within the installer, then you must ensure that SSH is configured and enabled before you proceed to start installation.

  3. Download the Oracle Database installation image files (db_home.zip) and extract the files into a new Oracle home directory. For example:
    $ mkdir -p /u01/app/oracle/product/23.0.0/dbhome_1
    $ chgrp oinstall /u01/app/oracle/product/23.0.0/dbhome_1
    $ cd /u01/app/oracle/product/23.0.0/dbhome_1
    $ unzip -q /tmp/db_home.zip

    Note:

    • Oracle recommends that the Oracle home directory path you create is in compliance with the Oracle Optimal Flexible Architecture recommendations. Also, unzip the installation image files only in this Oracle home directory that you created.

    • Oracle home or Oracle base cannot be symlinks, nor can any of their parent directories, all the way to up to the root directory.

  4. From the Oracle home directory, start the Oracle Database software installation:
    $ cd /u01/app/oracle/product/23.0.0/dbhome_1
    $ runInstaller -setupDBHome -OSDBA dba -OSBACKUPDBA backupdba -OSDGDBA dgdba -OSKMDBA kmdba -OSRACDBA racdba 
    -ORACLE_BASE /u01/app/oracle -OSOPER oper -clusterNodes node1,node2,node3 -installEdition EE 
    -INVENTORY_LOCATION /u01/app/oraInventory -executeRootScript -configMethod ROOT

    Note:

    Run the runInstaller command from the Oracle home directory only. Do not run runInstaller command that resides at $ORACLE_HOME/oui/bin/, or any other location, to install the Oracle Real Application Clusters software.
  5. Provide the root user password when prompted.
After installing Oracle RAC software, run Database Configuration Assistant (DBCA) from the ORACLE_HOME/bin/dbca directory to create and configure Oracle RAC databases.