Wednesday, 29 October 2025

Oracle 26AI database Silent Mode installation step by step

 Dear All, 

In this post i am going share how to Install oracle AI database Free in Silent Mode.

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.

  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.0-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.0-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 8 on Linux for Arm (aarch64)

    #!/bin/bash
     
    yum -y install /downloads/oracle-ai-database-free-26ai-23.26.0-1.el8.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 password that is secure. The password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character, and 1 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. 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 for encrypting all the tablespaces. For specific tablespaces, use SYSTEM:true,SYSAUX:false. Default value is empty.

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

Setting Oracle AI Database Free Environment Variables

After you install and configure Oracle AI Database Free, set the environment before you use Oracle AI Database Free.

Use the oraenv and coraenv scripts to set your environment variables.

For example, to set your environment variables in Bourne, Bash, or Korn shell without being prompted by the script, log in as the Oracle user and run the following commands:

export ORACLE_SID=FREE export ORAENV_ASK=NO . /opt/oracle/product/26ai/dbhomeFree/bin/oraenv

These commands display an output similar to the following:

ORACLE_HOME = [] ? /opt/oracle/product/26ai/dbhomeFree
The Oracle base has been set to /opt/oracle
For C shell:
setenv ORACLE_SID FREE setenv ORACLEENV_ASK NO source /opt/oracle/product/26ai/dbhomeFree

No comments:

Post a Comment


No one has ever become poor by giving