Installing Oracle Grid Infrastructure for a Standalone Server 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.

You should have your network information, storage information, and operating system users and groups available to you before you start the installation. You should also be prepared to run root scripts or provide information to automate root scripts.

  1. Log in as the Oracle Restart software owner user (oracle).
  2. If this is the first time you are installing Oracle software, then create the Oracle base and the Oracle inventory directories as per the Oracle Optimal Flexible Architecture (OFA) recommendations. Specify the correct owner, group, and permissions for these directories.
    # mkdir -p /u01/app/oracle
    # mkdir -p /u01/app/oraInventory
    # chown -R oracle:oinstall /u01/app/oracle
    # chown -R oracle:oinstall /u01/app/oraInventory
    # chmod -R 775 /u01/app
  3. Download the Oracle Grid Infrastructure for a standalone server installation image files, create the grid home directory, and extract the image files in this grid home directory.

    For example:

    $ mkdir -p /u01/app/oracle/product/23.0.0/grid
    $ cd /u01/app/oracle/product/23.0.0/grid
    $ unzip -q /tmp/grid_home.zip

    Note:

    • Ensure that the Grid home directory path you create is in compliance with the Oracle Optimal Flexible Architecture recommendations. Also, unzip the installation image files only in this Grid 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. As the grid user, run the gridSetup.sh command with the -silent option and specify the configuration parameters.
    gridSetup.sh -configureStandaloneServer -OSDBA sysdba -OSASM osasm -OSOPER osoper -ORACLE_BASE /u01/app/oracle -dbDiskGroupName DATA 
    -diskList /dev/sdb,/dev/sdc,/dev/sdd -executeConfigTools -executeRootScript -configMethod ROOT -redundancy NORMAL -auSize 8 -diskString ORCL* -managementOption NONE -INVENTORY_LOCATION /u01/app/oraInventory
  5. Provide the root user password when prompted.