Installing Oracle Grid Infrastructure Using Command-Line Interface

Starting with Oracle Grid Infrastructure 23ai, you can install and configure Oracle Grid Infrastructure using the command-line interface.

Note:

Oracle ASM Filter Driver (ASMFD) is desupported on both Linux and Oracle Solaris beginning with Oracle Database 23ai.

On Linux systems running kernel 5.14 or higher (including Oracle Linux, RedHat Enterprise Linux, and SUSE Linux Enterprise Server), ASMFD filtering was disabled and is unsupported. Oracle recommends moving to ASMlib v3 for those environments, as it provides equivalent functionality. For details, see My Oracle Support Document 2806979.1. Migration steps are available for Oracle Restart and Oracle Grid Infrastructure. On Oracle Solaris, ASMFD is now desupported.

  1. As the grid user, download the Oracle Grid Infrastructure image files and extract the files into the Grid home.
    mkdir -p /u01/app/23.3.0/grid 
    chown grid:oinstall /u01/app/23.3.0/grid 
    cd /u01/app/23.3.0/grid 
    unzip -q download_location/grid.zip
    grid.zip is the name of the Oracle Grid Infrastructure image zip file.

    Note:

    • You must extract the zip image software into the directory where you want your Grid home to be located.

    • Download and copy the Oracle Grid Infrastructure image files to the local node only. During installation, the software is copied and installed on all other nodes in the cluster.

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

  2. As the grid user, run the gridSetup.sh command with the -silent option and specify the configuration parameters.
    /u01/app/23.3.0/grid/gridSetup.sh -silent -configureCluster -OSDBA sysdba -OSOPER osoper -OSASM osasm -ORACLE_BASE /u01/app/grid -clusterName myrac 
    -scanName cluster-scan -scanPort 1521 -clusterNodes myrac1,myrac2 -networkInterfaceList ens3:100.70.80.0:1,ens4:192.168.1.0:5,ens5:192.168.2.0:3 
    -clusterUsage RAC -storageOption FLEX_ASM_STORAGE -diskGroupName DATA -diskList /dev/sda,/dev/sdb,/dev/sdc -redundancy NORMAL-auSize 8 -diskString 'ORCL:*' 
    -executeRootScript -configMethod ROOT -enableAutoFixup -managementOption NONE -INVENTORY_LOCATION /u01/app/oraInventory
  3. Provide the root user password when prompted.