Performing a Silent Installation

You can install Oracle AI Database Free using silent mode. You can use this mode to perform an embedded install of Oracle AI Database Free with your application, or unattended operation.

To perform a silent installation, you must enter a password for the administrative accounts as a parameter to the script, or specify it in the configuration file.

Note:

The database is configured with the default settings. It is not necessary to modify these parameters unless you have specific requirements. Make a copy of the configuration file /etc/sysconfig/oracle-free-26ai.conf before modifying it. Make your modifications after the RPM install and before configuring the database.

  1. Create a wrapper shell script to perform the silent installation. The script should contain commands similar to the following:

    For Oracle Linux 8:

    #!/bin/bash
    
    yum -y install /downloads/oracle-ai-database-free-26ai-23.26.2-1.el8.x86_64.rpm > /free_logs/FREEsilentinstall.log 2>&1
    
    /etc/init.d/oracle-free-26ai configure >> /free_logs/FREEsilentinstall.log 2>&1

    For Oracle Linux 9:

    #!/bin/bash
    
    yum -y install /downloads/oracle-ai-database-free-26ai-23.26.2-1.el9.x86_64.rpm > /free_logs/FREEsilentinstall.log 2>&1
    
    /etc/init.d/oracle-free-26ai configure >> /free_logs/FREEsilentinstall.log 2>&1

    For Oracle Linux 10:

    #!/bin/bash
    
    yum -y install /downloads/oracle-ai-database-free-26ai-23.26.2-1.el10.x86_64.rpm > /free_logs/FREEsilentinstall.log 2>&1
    
    /etc/init.d/oracle-free-26ai configure >> /free_logs/FREEsilentinstall.log 2>&1

    For Oracle Linux 8 on Linux for Arm (aarch64):

    #!/bin/bash
    
    yum -y install /downloads/oracle-ai-database-free-26ai-23.26.2-1.el8.aarch64.rpm > /free_logs/FREEsilentinstall.log 2>&1
    
    /etc/init.d/oracle-free-26ai configure >> /free_logs/FREEsilentinstall.log 2>&1

    For Oracle Linux 9 on Linux for Arm (aarch64):

    #!/bin/bash
    
    yum -y install /downloads/oracle-ai-database-free-26ai-23.26.2-1.el9.aarch64.rpm > /free_logs/FREEsilentinstall.log 2>&1
    
    /etc/init.d/oracle-free-26ai configure >> /free_logs/FREEsilentinstall.log 2>&1

    Alternatively, you can enter the password in the script, such as:

    (echo "password"; echo "password";) | /etc/init.d/oracle-free-26ai configure >> /free_logs/FREEsilentinstall.log 2>&1

    Replace password with a secure password. The password entered should be at least 8 characters in length and contain at least one uppercase character, one lowercase character, and one digit [0-9].

  2. Make the wrapper script executable.

    chmod +x myscript.sh
  3. Run the script as root using sudo.

    sudo ./myscript.sh

The Oracle AI Database Free Oracle home is /opt/oracle/product/26ai/dbhomeFREE.

For details of the installation, review the /free_logs/FREEsilentinstall.log file.

The /etc/sysconfig/oracle-free-26ai.conf configuration file sets the following:

  • LISTENER_PORT: A valid listener numeric port value for the database listener. Do not specify any value for automatic port assignment.
  • CHARSET: Character set of the database. This is set to AL32UTF8.
  • DBFILE_DEST: Database file directory. By default, the database files are stored in the Oracle base /opt/oracle/oradata subdirectory. You can also create your own database file directory. However, the permissions for this file path should be owned by the oracle user.
  • SKIP_VALIDATIONS: Skip validation for memory and disk space. The default is false.
  • CONFIGURE_TDE: Set CONFIGURE_TDE=true to configure Transparent Data Encryption (TDE). The default value is false.
  • ENCRYPT_TABLESPACES: Leave this value empty for user tablespaces. Set this value to ALL to encrypt all the tablespaces. For specific tablespaces, use SYSTEM:true,SYSAUX:false. The default value is empty.

Caution:

When you modify and save a file containing the plain-text password, provide ownership of the file only to the Oracle software installation owner (oracle) user. Change the permissions on the file to 600. Oracle recommends that database administrators or other administrators delete or secure such files containing plain-text passwords when they are not in use.

Note:

The password should conform to Oracle-recommended standards. See Oracle AI Database Security Guide for more information about guidelines for securing passwords.

The database creation logs are located under Oracle base in the /opt/oracle/cfgtoollogs/dbca/ subdirectory.