Installing the Oracle AI Database Software

This section explain how to run Oracle Universal Installer to perform most database installations.

Note:

If you plan to use Oracle Restart or Oracle ASM, then you must install Oracle Grid Infrastructure for a standalone server before you install and create the database. Otherwise, you must manually register the database with Oracle Restart.

You can install Oracle AI Database by using the silent or response file installation method, without the GUI. This method is useful to perform multiple installations of Oracle AI Database.

Setup Wizard Installation Options for Creating Images

Gold image-creation options to use with your Oracle AI Database or Oracle Grid Infrastructure installation setup wizards.

Options

In image-based installations, you can start your Oracle AI Database installation or Oracle Grid Infrastructure installations by running the setup wizards runInstaller and gridSetup.sh respectively. Both these wizards come with the following image-creation options.

Table 11-1 Image-Creation Options for Setup Wizard

OptionDescription
-createGoldImageCreates a gold image from the current Oracle home.
-destinationLocationSpecify the complete path, or location, where the gold image will be created.
-exclFilesSpecify the complete paths to the files to be excluded from the newly created gold image.
-helpDisplays help for all the available options.

For example:

cd $ORACLE_HOME
./runInstaller -createGoldImage -destinationLocation /tmp/my_db_images -exclFiles /u01/app/oracle/product/23.0.0/dbhome_1/relnotes
cd Grid_home
./gridSetup.sh -createGoldImage -destinationLocation /tmp/my_grid_images -exclFiles /u01/app/oracle/product/23.0.0/dbhome_1/relnotes

Where:

/tmp/my_db_images is a temporary file location where the image zip file is created.

/tmp/my_grid_images is a temporary file location where the image zip file is created.

/u01/app/oracle/product/23.0.0/dbhome_1/relnotes is the file to be excluded from the newly created gold image.

Refer to runInstaller -createGoldImage and gridSetup.sh -createGoldImage for more examples.

Applying Patches During an Oracle AI Database Installation or Upgrade

Starting with Oracle Database 18c, you can download and apply Release Updates (RUs) during an Oracle Database installation or upgrade.

  1. Download the patches you want to apply from My Oracle Support:

    https://support.oracle.com

  2. Select the Patches and Updates tab to locate the patch.

    Oracle recommends that you select Recommended Patch Advisor, and enter the product group, release, and platform for your software.

  3. Move the patches to an accessible directory like /tmp.
  4. Change to the Oracle AI Database home directory:

    $ cd $ORACLE_HOME
  5. Apply Release Updates (RUs) during the installation or upgrade process:

    $ ./runInstaller -applyRU patch_directory_location
  6. Complete the remaining steps in the Oracle AI Database configuration wizard to complete the installation or upgrade.

Running Oracle AI Database Setup Wizard to Install Oracle AI Database

Install Oracle AI Database using the gold image-based installation with Oracle AI Database setup wizard.

Have all the information you need to provide regarding users groups, and storage paths before you start installation. Oracle recommends that you have your My Oracle Support credentials available during installation. You should also be prepared to run root scripts or provide information to automate root scripts.

  1. Log in as the Oracle installation owner user account (oracle) that you want to own the software binaries.
  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 AI Database installation image files (db_home.zip) to a directory of your choice. For example, you can download the image files to the /tmp directory.
  4. Create an OFA-compliant Oracle home directory and extract the image files that you have downloaded in to this Oracle home directory. For example:

    mkdir -p /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:

    • Ensure 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.
  5. From the Oracle home directory, run the runInstaller command to start the Oracle AI Database Setup Wizard.

    cd /u01/app/oracle/product/23.0.0/dbhome_1
    ./runInstaller

    Note:

    • Run the runInstaller command from the Oracle home directory only. Do not use the runInstaller command that resides at $ORACLE_HOME/oui/bin/, or any other location, to install Oracle AI Database, Oracle Database Client, or Oracle Grid Infrastructure.
    • Use the runInstaller command with the -applyRU option to install Release Updates (RUs) during an Oracle AI Database installation or upgrade.
  6. In the Select Configuration Option screen, select Create and configure a single instance database.
  7. Select your installation type.

    Starting with Oracle Database 21c, installation of non-CDB Oracle Database architecture is no longer supported.

    The non-CDB architecture was deprecated in Oracle Database 12c. It is desupported in Oracle Database 21c. Oracle Universal Installer can no longer be used to create non-CDB Oracle Database instances.

    Installation screens vary depending on the installation option you select. Respond to the configuration prompts as needed.

  8. Provide information to automate root scripts, or run scripts as root when prompted by the setup wizard.

    If you configure automation for running root scripts, and a root script fails, then you can fix the problem manually, and click Retry to run the root script again.

Note:

Click Help if you have any questions about the information you are asked to submit during installation.

Note:

Oracle Enterprise Manager Database Express (EM Express) is desupported in Oracle AI Database 26ai.

Instead of EM Express, Oracle recommends that you choose a tool that fits the requirements and deployment type (cloud, on-premises, or hybrid) from OCI Database Management service, Oracle Enterprise Manager Cloud Control or Oracle SQL Developer Web or Oracle SQL Developer desktop products.

Related Topics

Installing Oracle AI Database Using Command-Line Interface

Install Oracle AI Database software and create an Oracle AI Database using the gold image-based installation with the command-line interface.

Have all the information you need to provide regarding users groups, and storage paths before you start installation. Oracle recommends that you have your My Oracle Support credentials available during installation. You should also be prepared to run root scripts or provide information to automate root scripts.

  1. Log in as the Oracle installation owner user account (oracle) that you want to own the software binaries.
  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 AI Database installation image files (db_home.zip) to a directory of your choice. For example, you can download the image files to the /tmp directory.
  4. Create an OFA-compliant Oracle home directory and extract the image files that you have downloaded in to this Oracle home directory. For example:

    mkdir -p /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:

    • Ensure 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.
  5. From the Oracle home directory, start the Oracle AI Database software installation and database creation:

    cd /u01/app/oracle/product/23.0.0/dbhome_1
    ./runInstaller -createDatabase -OSDBA dba -OSBACKUPDBA backupdba -OSDGDBA dgdba -OSKMDBA kmdba -OSRACDBA racdba 
    -ORACLE_BASE /u01/app/oracle -diskGroup DATA -gdbName mydb.example.com -pdbName mypdb1 -dbSID mydb -memoryLimit 24457 
    -OSOPER oper -installEdition EE -enableAutoMemoryManagement -INVENTORY_LOCATION /u01/app/oraInventory 
    -executeConfigTools -executeRootScript -configMethod ROOT

    Note:

    Run the runInstaller command from the Oracle home directory only. Do not run the runInstaller from $ORACLE_HOME/oui/bin/, or any other location, to install Oracle AI Database.

  6. Provide the root user password when prompted.

Related Topics