Page 2 of 187

Oracle® AI Database

Database Installation Guide for Linux

26ai

G43069-10

December 2026


Provides configuration information for network and system administrators, and database installation information for database administrators (DBAs) who install and configure Oracle AI Database and Oracle Grid Infrastructure for a standalone server on Linux.

Page 3 of 187

Preface

This guide explains how to install and configure single-instance Oracle AI Database.

This guide also provides information about Optimal Flexible Architecture, cloning an Oracle home, and how to remove the database software.

Audience

This guide is intended for anyone responsible for installing Oracle AI Database 26ai.

Additional installation guides for Oracle AI Database, Oracle Real Application Clusters, Oracle Clusterware, Oracle AI Database Examples, and Oracle Enterprise Manager Cloud Control are available at the following URL:

http://docs.oracle.com

Set Up Java Access Bridge to Implement Java Accessibility

Install Java Access Bridge so that assistive technologies on Microsoft Windows systems can use the Java Accessibility API.

Java Access Bridge is a technology that enables Java applications and applets that implement the Java Accessibility API to be visible to assistive technologies on Microsoft Windows systems.

Refer to Java Platform, Standard Edition Accessibility Guide for information about the minimum supported versions of assistive technologies required to use Java Access Bridge. Also refer to this guide to obtain installation and testing instructions, and instructions for how to use Java Access Bridge.

Command Syntax

Refer to these command syntax conventions to understand command examples in this guide.

ConventionDescription
$Bourne or BASH shell prompt in a command example. Do not enter the prompt as part of the command.
%C Shell prompt in a command example. Do not enter the prompt as part of the command.
#Superuser (root) prompt in a command example. Do not enter the prompt as part of the command.
monospaceUNIX command syntax
backslash \

A backslash is the UNIX and Linux command continuation character. It is used in command examples that are too long to fit on a single line. Enter the command as displayed (with a backslash) or enter it on a single line without a backslash:

dd if=/dev/rdsk/c0t1d0s6 of=/dev/rst0 bs=10b \  count=10000


braces { }

Braces indicate required items:

.DEFINE {macro1}


brackets [ ]

Brackets indicate optional items:

cvtcrt termname [outfile]


ellipses ...

Ellipses indicate an arbitrary number of similar items:

CHKVAL fieldname value1 value2 ... valueN


italic

Italic type indicates a variable. Substitute a value for the variable:

library_name


vertical line |

A vertical line indicates a choice within braces or brackets:

FILE filesize [K|M]


Conventions

The following text conventions are used in this document:

ConventionMeaning
boldfaceBoldface type indicates graphical user interface elements associated with an action, or terms defined in text or the glossary.
italicItalic type indicates book titles, emphasis, or placeholder variables for which you supply particular values.
monospaceMonospace type indicates commands within a paragraph, URLs, code in examples, text that appears on the screen, or text that you enter.

Page 4 of 187

Oracle AI Database Installation Checklist

Use checklists to review system requirements, and to plan and carry out Oracle AI Database installation.

Oracle recommends that you use checklists as part of your installation planning process. Using checklists can help you to confirm that your server hardware and configuration meet minimum requirements for this release, and can help you to ensure you carry out a successful installation.

Server Hardware Checklist for Oracle AI Database Installation

Verify runlevel 3 or 5, network connectivity, and a display resolution of at least 1024 × 768 for graphical installations. Silent installations and remote graphics protocols do not require a server graphics card. Provide at least 1 GB RAM for Oracle AI Database, preferably 2 GB, and at least 8 GB for Oracle Grid Infrastructure.

Read More: Server Hardware Checklist for Oracle AI Database Installation

Operating System Checklist for Oracle AI Database Installation On Linux

Confirm that OpenSSH and a supported Linux kernel are installed, using the documented minimum versions for Linux x86-64 or supported Arm-based Oracle Linux releases. Oracle recommends using the Oracle AI Database Preinstallation RPM on Oracle Linux to configure prerequisites. Verify required packages, consult the virtualization support matrix for KVM and related technologies, and set Transparent HugePages to madvise on UEK7 and later kernels rather than disabling them.

Read More: Operating System Checklist for Oracle AI Database Installation On Linux

Server Configuration Checklist for Oracle AI Database Installation

Prepare at least 1 GB in /tmp, configure swap according to available RAM and deduct HugePages memory when applicable, and establish compliant Oracle Inventory, OINSTALL groups, users, mount points, and ASCII-only Oracle home paths. Unset conflicting Oracle environment variables, configure locale settings as needed, verify that /dev/shm is a writable and executable tmpfs without noexec or nosuid restrictions, and ensure Oracle home, Oracle base, and all parent directories are not symbolic links.

Read More: Server Configuration Checklist for Oracle AI Database Installation

Oracle User Environment Configuration Checklist for Oracle AI Database Installation

Ensure the Oracle Inventory directory and OINSTALL group are available as the primary group for all Oracle software owners, creating required users, groups, resource limits, and security-specific accounts before installation. The Preinstallation RPM can create standard oracle, oinstall, and dba accounts. Unset environment variables from previous installations, set umask to 022, configure DISPLAY, and use only ASCII characters in user and group names.

Read More: Oracle User Environment Configuration Checklist for Oracle AI Database Installation

Storage Checklist for Oracle AI Database Installation

Allocate at least 4.2 GB for standalone Oracle Grid Infrastructure and 8.3 GB for Oracle AI Database software on supported Linux architectures, with approximately 100 GB recommended for future patches. Select database storage on a separate file system, LVM or RAID volume, NFS/NAS file system, or Oracle ASM; install Grid Infrastructure first when using ASM. Define a recovery strategy using either a file-system fast recovery area or an ASM disk group.

Read More: Storage Checklist for Oracle AI Database Installation

Installer Planning Checklist for Oracle AI Database

Before installation, review release notes, certification and licensing requirements, and run OUI, CVU, and current ORAchk checks to identify configuration or upgrade issues. Determine whether Grid Infrastructure is required for ASM or Oracle Restart, account for running database processes and cleanup cron jobs, and prepare My Oracle Support credentials. Decide on management tooling, memory management, root or sudo privilege delegation, and client interoperability, noting that 32-bit clients are desupported for new development in this release.

Read More: Installer Planning Checklist for Oracle AI Database

Deployment Checklist for Oracle AI Database

For a single-instance deployment, install, provision through Fleet Patching and Provisioning, or clone the Oracle AI Database software; these methods can also be used when creating databases. To create a database in an existing Oracle home, use Oracle Database Configuration Assistant or Oracle Fleet Patching and Provisioning.

Read More: Deployment Checklist for Oracle AI Database

Page 5 of 187

Server Hardware Checklist for Oracle AI Database Installation

Use this checklist to check hardware requirements for Oracle AI Database.

Table: Server Hardware Checklist for Oracle AI Database Installation

CheckTask
Runlevel3 or 5
Server Display Cards

At least 1024 x 768 display resolution, which the installer requires.

Note: If you are planning on performing a silent installation, or want to use graphics connectivity like VNC or related protocols, no server graphics card is needed.

Minimum network connectivityServer is connected to a network
Minimum RAM
  • At least 1 GB RAM for Oracle AI Database installations. 2 GB RAM recommended.
  • At least 8 GB RAM for Oracle Grid Infrastructure installations.

Page 6 of 187

Operating System Checklist for Oracle AI Database Installation on Linux

Use this checklist to check minimum operating system requirements for Oracle AI Database.

Table: Operating System General Checklist for Oracle AI Database on Linux

ItemTask
Operating system general requirements

OpenSSH installed manually, if you do not have it installed already as part of a default Linux installation.

A Linux kernel in the list of supported kernels and releases listed in this guide.

Linux x86-64 operating system requirements

Minimum supported versions for Linux x86-64:

  • Oracle Linux 10 with the Unbreakable Enterprise Kernel 8: 6.12.0-104.43.4.2.el10uek.x86_64 or later
    Oracle Linux 10 with the Red Hat Compatible Kernel: 6.12.0-55.40.1.0.1.el10_0.x86_64 or later
  • Oracle Linux 9.6 with the Unbreakable Enterprise Kernel 8: 6.12.0-1.23.3.2.el9uek.x86_64 or later
  • Oracle Linux 9.2 with the Unbreakable Enterprise Kernel 7: 5.15.0-201.135.6.el9uek.x86_64 or later
    Oracle Linux 9.2 with the Red Hat Compatible Kernel: 5.14.0-284.30.1.el9_2.x86_64 or later
  • Oracle Linux 8.8 with the Unbreakable Enterprise Kernel 7: 5.15.0-202.135.2.el8uek.x86_64 or later
  • Oracle Linux 8.6 with the Unbreakable Enterprise Kernel 6: 5.4.17-2136.312.3.4.el8uek.x86_64 or later
    Oracle Linux 8.6 with the Red Hat Compatible Kernel: 4.18.0-372.26.1.0.1.el8_6.x86_64 or later

    Note:

    Oracle strongly recommends that you use a minimum version of Oracle Linux 8.6 Unbreakable Enterprise Kernel 7.

  • Red Hat Enterprise Linux 10: 6.12.0-55.40.1.0.1.el10_0.x86_64 or later
  • Red Hat Enterprise Linux 9.2: 5.14.0-284.30.1.el9_2.x86_64 or later
  • Red Hat Enterprise Linux 8.6: 4.18.0-372.26.1.0.1.el8_6.x86_64 or later
  • SUSE Linux Enterprise Server 15 SP5 (x86_64): 5.14.21-150500.53-default or later

Review the system requirements section for a list of minimum package requirements.

Linux for Arm (aarch64) operating system requirements

Starting with Oracle AI Database 26ai Release Update 23.7, the Linux for Arm (aarch64) operating system is supported with the following minimum supported version:

  • Oracle Linux 8.6 with Unbreakable Enterprise Kernel 7: 5.15.0-205.149.5.1.el8uek.aarch64 or later

Starting with Oracle AI Database 26ai Release Update 23.26.2, the Linux for Arm (aarch64) operating system is supported with the following minimum supported version:

  • Oracle Linux 9.4 with Unbreakable Enterprise Kernel 7: 5.15.0-307.178.5.el9uek.aarch64 or later
Oracle AI Database Preinstallation RPM for Oracle LinuxIf you use Oracle Linux, then Oracle recommends that you run the Oracle AI Database Preinstallation RPM for your Linux release to configure your operating system for Oracle AI Database and Oracle Grid Infrastructure installations.
KVM and Virtualization Technologies

For information about supported virtualization technologies for Oracle AI Database such as KVM, refer to the virtualization matrix:

https://www.oracle.com/database/technologies/virtualization-matrix.html

Set Transparent HugePages to madvise

For optimal performance, Oracle recommends that you set Transparent HugePages to madvise on all Oracle AI Database servers UEK7 and later kernels and not disable Transparent HugePages as was recommended in prior releases.

If you install Oracle AI Database Preinstallation RPM, then it sets Transparent HugePages to madvise on all Oracle AI Database servers UEK7 and later kernels.

Related Topics

Page 7 of 187

Server Configuration Checklist for Oracle AI Database Installation

Use this checklist to check minimum server configuration requirements for Oracle AI Database installations.

Table: Server Configuration Checklist for Oracle AI Database

CheckTask
Disk space allocated to the /tmp directoryAt least 1 GB of space in the /tmp directory.
Swap space allocation relative to RAM (Oracle AI Database)Between 1 GB and 2 GB: 1.5 times the size of the RAM
Between 2 GB and 16 GB: Equal to the size of the RAM
More than 16 GB: 16 GB
Note: If you enable HugePages for your Linux servers, then you should deduct the memory allocated to HugePages from the available RAM before calculating swap space.
Swap space allocation relative to RAM (Oracle Restart)Between 8 GB and 16 GB: Equal to the size of the RAM
More than 16 GB: 16 GB
Note: If you enable HugePages for your Linux servers, then you should deduct the memory allocated to HugePages from the available RAM before calculating swap space.
Oracle Inventory (oraInventory) and OINSTALL Group Requirements
  • For upgrades, the installer detects an existing oraInventory directory from the /etc/oraInst.loc file, and uses the existing oraInventory.
  • For new installs, if you have not configured an oraInventory directory, then you can specify the oraInventory directory during the software installation and Oracle Universal Installer will set up the software directories for you. The Oracle inventory is one directory level up from the Oracle base for the Oracle software installation and designates the installation owner's primary group as the Oracle inventory group. Ensure that the oraInventory path that you specify is in compliance with the Oracle Optimal Flexible Architecture recommendations.

The Oracle Inventory directory is the central inventory of Oracle software installed on your system. Users who have the Oracle Inventory group as their primary group are granted the OINSTALL privilege to write to the central inventory.

The OINSTALL group must be the primary group of all Oracle software installation owners on the server. It should be writable by any Oracle installation owner.

Groups and users

Oracle recommends that you create groups and user accounts required for your security plans before starting installation. Installation owners have resource limits settings and other requirements. Group and user names must use only ASCII characters.

You can use the Preinstallation RPM to automatically create the oracle user and the oraInventory (oinstall) and OSDBA (dba) groups for you.

Mount point paths for the software binariesOracle recommends that you create an Optimal Flexible Architecture configuration as described in the appendix "Optimal Flexible Architecture" in Oracle AI Database Installation Guide for your platform.
Ensure that the Oracle home (the Oracle home path you select for Oracle AI Database) uses only ASCII charactersThe ASCII character restriction includes installation owner user names, which are used as a default for some home paths, as well as other directory names you may select for paths.
Unset Oracle software environment variables

If you have an existing Oracle software installation, and you are using the same user to install this installation, then unset the following environment variables: $ORACLE_HOME,$ORA_NLS10, and $TNS_ADMIN.

If you have set $ORA_CRS_HOME as an environment variable, then unset it before starting an installation or upgrade. Do not use $ORA_CRS_HOME as a user environment variable, except as directed by Oracle Support.

Set locale (if needed)Specify the language and the territory, or locale, in which you want to use Oracle components. A locale is a linguistic and cultural environment in which a system or program is running. NLS (National Language Support) parameters determine the locale-specific behavior on both servers and clients. The locale setting of a component determines the language of the user interface of the component, and the globalization behavior, such as date and number formatting.
Check Shared Memory File System Mount

By default, your operating system includes an entry in /etc/fstab to mount /dev/shm. However, if your Configuration Verification Utility (CVU) or installer checks fail, ensure that the /dev/shm mount area is of type tmpfs and is mounted with the following options:

  • rw and exec permissions set on it
  • Without noexec or nosuid set on it

Note: These options may not be listed as they are usually set as the default permissions by your operating system.

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

Related Topics

Page 8 of 187

Oracle User Environment Configuration Checklist for Oracle AI Database Installation

Use this checklist to plan operating system users, groups, and environments for Oracle AI Database management.

Table: User Environment Configuration for Oracle AI Database

CheckTask
Review Oracle Inventory (oraInventory) and OINSTALL Group Requirements

The physical group you designate as the Oracle Inventory directory is the central inventory of Oracle software installed on your system. It should be the primary group for all Oracle software installation owners. Users who have the Oracle Inventory group as their primary group are granted the OINSTALL privilege to read and write to the central inventory.

  • If you have an existing installation, then OUI detects the existing oraInventory directory from the /etc/oraInst.loc file, and uses this location.
  • If you are installing Oracle software for the first time, then you can specify the Oracle inventory directory and the Oracle base directory during the Oracle software installation, and Oracle Universal Installer will set up the software directories for you. Ensure that the directory paths that you specify are in compliance with the Oracle Optimal Flexible Architecture recommendations.

Ensure that the group designated as the OINSTALL group is available as the primary group for all planned Oracle software installation owners.

Create operating system groups and users for standard or role-allocated system privileges

The Preinstallation RPM automatically creates the oracle user and the oraInventory (oinstall) and OSDBA (dba) groups for you.

Create additional operating system groups and users depending on your security requirements as described in this installation guide.

Set resource limits settings and other requirements for Oracle software installation owners.

Group and user names must use only ASCII characters.

Unset Oracle Software Environment VariablesIf you have had an existing installation on your system, and you are using the same user account for this installation, then unset the ORACLE_HOME, ORACLE_BASE, ORACLE_SID, TNS_ADMIN environment variables and any other environment variable set for the Oracle installation user that is connected with Oracle software homes.
Configure the Oracle Software Owner Environment

Configure the environment of the oracle or grid user by performing the following tasks:

  • Set the default file mode creation mask (umask) to 022 in the shell startup file.
  • Set the DISPLAY environment variable.

Related Topics

Page 9 of 187

Storage Checklist for Oracle AI Database Installation

Use this checklist to review storage minimum requirements and assist with configuration planning.

Table: Storage Checklist for Oracle AI Database

CheckTask
Minimum local disk storage space for Oracle software

For Linux x86-64:
At least 4.2 GB for an Oracle Grid Infrastructure for a standalone server installation.
At least 8.3 GB for Oracle AI Database Enterprise Edition.
For Linux for Arm (aarch64):
At least 4.2 GB for an Oracle Grid Infrastructure for a standalone server installation.
At least 8.3 GB for Oracle AI Database Enterprise Edition.

Note: Oracle recommends that you allocate approximately 100 GB to allow additional space for applying any future patches on top of the existing Oracle home. For specific patch-related disk space requirements, please refer to your patch documentation.

Select Database File Storage Option

Ensure that you have one of the following storage options available:

  • File system mounted on the server. Oracle recommends that the file system you select is separate from the file system used by the operating system or the Oracle software. Options include the following:
    • A file system on a logical volume manager (LVM) volume or a RAID device
    • A network file system (NFS) mounted on a network-attached storage (NAS) device
  • Oracle Automatic Storage Management (Oracle ASM).

    Oracle ASM is installed as part of an Oracle Grid Infrastructure installation. If you plan to use Oracle ASM for storage, then you should install Oracle Grid Infrastructure before you install and create the database.

Determine your recovery plan

If you want to enable recovery during installation, then be prepared to select one of the following options:

  • File system: Configure a fast recovery area on a file system during installation
  • Oracle Automatic Storage Management: Configure a fast recovery area disk group using Oracle ASMCA.

Review the storage configuration sections of this document for more information about configuring recovery.

Related Topics

Page 10 of 187

Installer Planning Checklist for Oracle AI Database

Use this checklist to assist you to be prepared before starting the installer.

Table: Oracle Installer Planning Checklist for Oracle AI Database Installation

CheckTask
Read the Release NotesReview release notes for your platform, which are available for your release at the following URL: Oracle Database Documentation
Review Oracle Support Certification MatrixNew platforms and operating system software versions may be certified after this guide is published. Review the certification matrix on the My Oracle Support website for the most up-to-date list of certified hardware platforms and operating system versions. You must register online before using My Oracle Support.
Review the Licensing InformationYou are permitted to use only those components in Oracle AI Database for which you have purchased licenses. For more information about licenses, refer to the Oracle AI Database Licensing Information User Manual.
Run OUI with CVU and use fixup scriptsOracle Grid Infrastructure is fully integrated with Configuration Verification Utility (CVU), automating many CVU prerequisite checks. Oracle Universal Installer (OUI) runs all prerequisite checks and creates fixup scripts when you run the Oracle AI Database or Oracle Grid Infrastructure installer. You can run OUI up to the Summary screen without starting the installation. You can also run CVU commands manually to check system readiness. For more information, see the [Oracle Clusterware Administration and Deployment Guide]().
Update and run Oracle ORAchk for runtime and upgrade checks, or runtime health checks

Oracle recommends that you update to the latest version of Oracle ORAchk by installing the latest version of Autonomous Health Framework (AHF). The Oracle ORAchk utility provides system checks that can help prevent issues before and after installation. These checks include kernel requirements, operating system resource allocations, and other system requirements. Use the Oracle ORAchk Upgrade Readiness Assessment to obtain an automated upgrade-specific system health check for upgrades to 26ai. For example:
Before you perform a fresh database installation:
./orachk -profile preinstall

To upgrade your existing database to a higher version or release:
./orachk -pregupgrade -targetversion 23.26.0.0.0
The Oracle ORAchk Upgrade Readiness Assessment automates many of the manual pre- and post-upgrade checks described in Oracle upgrade documentation. Check My Oracle Support for more information about Oracle ORAchk support: My Oracle Support Doc ID KB858617.

Verify if Oracle Grid Infrastructure is installedIf you want to use Oracle ASM or Oracle Restart, install Oracle Grid Infrastructure for a standalone server before you install and create the database. Otherwise, to use Oracle ASM, you must complete an Oracle Grid Infrastructure installation and then manually register the database with Oracle Restart.
Check running Oracle processes, and shut down if necessaryOn a standalone database not using Oracle ASM: You do not need to shut down the database while you install Oracle Grid Infrastructure.
On a standalone database using Oracle ASM: The Oracle ASM instances are restarted during installation.
Ensure cron jobs do not run during installationIf the installer is running when daily cron jobs start, you may encounter unexplained installation problems if your cron job performs cleanup and temporary files are deleted before the installation is finished. Oracle recommends that you complete installation before daily cron jobs are run, or disable daily cron jobs that perform cleanup until after the installation is completed.
Obtain your My Oracle Support account informationDuring installation, you may require a My Oracle Support user name and password to configure updates, download software updates, and perform other installation tasks. You can register for My Oracle Support at https://support.oracle.com/.
Decide Oracle AI Database management toolYou can manage Oracle AI Database using Oracle Enterprise Manager Cloud Control.
If you have an existing Oracle Management Agent and decide to use Oracle Enterprise Manager Cloud Control to centrally manage your database, obtain the following information to enter during database installation:
• OMS host
• OMS port
• EM administrator user name
• EM administrator password
• Password of the ASMSNMP user
For more information, see the Oracle Enterprise Manager Cloud Control Administrator's Guide.
Review memory allocation and Automatic Memory Management featureYou can enable automatic memory management either during or after Oracle AI Database installation. If you enable automatic memory management after installation, you must shut down and restart the database.
If the total physical memory of your database instance is greater than 4 GB, you cannot select the Oracle Automatic Memory Management option during database installation and creation. Instead, use automatic shared memory management. Automatic shared memory management distributes the available memory among the various components as required, allowing the system to maximize the use of available SGA memory.
For more information, see the Oracle AI Database Administrator's Guide.
Determine superuser (root) privilege delegation option for installationDuring a database or Grid Infrastructure installation, you are asked to run configuration scripts as the root user.
You can either run these scripts manually as root when prompted, or provide configuration information and passwords using a root privilege delegation option.
To run root scripts automatically, select Automatically run configuration scripts during installation.
Use root user credentials
Provide the superuser password for the cluster member node servers.
Use Sudo
sudo is a UNIX and Linux utility that allows members of the sudoers list to run individual commands as root. Provide the user name and password of an operating system user who is a member of sudoers and is authorized to run sudo on each cluster member node.
To enable sudo, have a system administrator with the appropriate privileges configure a user who is a member of the sudoers list, and provide the user name and password when prompted during installation.
Oracle Database Client and Oracle AI Database interoperability• For information about interoperability between Oracle Database Client and Oracle AI Database releases, see My Oracle Support Doc ID KB141043.
• The 32-bit clients for Oracle databases are desupported in Oracle AI Database 26ai.
Oracle has discontinued developing 32-bit Oracle Database clients. Oracle recommends that you use 64-bit Oracle AI Database clients. If you are using 32-bit applications, you can continue to use older 32-bit Oracle Database clients, subject to the “Client / Server Interoperability Support Matrix for Different Oracle Versions” (Doc ID 207303.1) and the release support lifecycle (My Oracle Support Doc ID 742060.1).

Related Topics

Page 11 of 187

Deployment Checklist for Oracle AI Database

Use this checklist to decide the deployment method for a single-instance Oracle AI Database.

Table: Deployment Checklist for Oracle AI Database (single-instance)

ItemTask
To deploy single-instance Oracle AI Database software

Use one of the following deployment methods:

  • Install Oracle AI Database software using Oracle Universal Installer (OUI).
  • Provision Oracle AI Database software using Oracle Fleet Patching and Provisioning.
  • Clone Oracle AI Database.
To deploy single-instance Oracle AI Database software and create databases

Use one of the following deployment methods:

  • Install Oracle AI Database software using Oracle Universal Installer (OUI).
  • Provision Oracle AI Database software using Oracle Fleet Patching and Provisioning.
  • Clone Oracle AI Database.
To create single-instance Oracle AI Database in an already-installed Oracle home
  • Use Oracle Database Configuration Assistant (Oracle DBCA).
  • Use Oracle Fleet Patching and Provisioning

Related Topics

Page 12 of 187

Checking and Configuring the Server for Oracle AI Database

Verify that servers where you install Oracle AI Database meet the minimum requirements for installation.

This section provides minimum server requirements to complete installation of Oracle AI Database. It does not provide system resource guidelines, or other tuning guidelines for particular workloads.

Logging In to a Remote System Using X Window System

This procedure enables Oracle Universal Installer to run on a remote server when direct GUI logins are prohibited. Start an X Window System session, authorize the remote host with xhost, connect to the installation server using ssh -Y, and switch to root when required; repeat the process for each installation owner account, such as oracle or grid, and consult the X server documentation if platform-specific ordering or configuration differs.

Read More: Logging In to a Remote System Using X Window System

Setting Remote Display and X11 Forwarding Configuration

Configure the DISPLAY environment variable on remote terminals according to the shell in use, using values such as hostname:0. To prevent SSH X11 forwarding from interfering with Oracle installation, create or edit each installation owner’s ~/.ssh/config file, set ForwardX11 no, and restrict .ssh ownership and permissions to the appropriate Oracle installation account.

Read More: Setting Remote Display and X11 Forwarding Configuration

Checking Server Hardware and Memory Configuration

Verify server readiness by checking physical RAM, swap space, /tmp capacity, available memory and swap, processor architecture, and /dev/shm configuration with the specified system commands. Install additional memory or swap, free /tmp space or redirect temporary files using TMP and TMPDIR, and confirm the architecture matches the Oracle software; do not remove Oracle-specific .oracle directories from temporary locations after installation.

Read More: Checking Server Hardware and Memory Configuration

Preventing Installation Errors Caused by Terminal Output Commands

During Grid Infrastructure installation, OUI uses SSH to execute commands across nodes, so hidden shell startup files must not emit terminal output. Modify each Oracle installation owner’s .bashrc, .cshrc, or equivalent files to run terminal commands such as stty only when standard input is a terminal; otherwise, OUI may detect the output and stop the installation.

Read More: Preventing Installation Errors Caused by Terminal Output Commands

About Installing Oracle AI Database Software on Oracle Exadata Database Machine

Oracle recommends using Oracle Exadata Deployment Assistant to install Grid Infrastructure and Oracle AI Database on Exadata. For manual installations, use the Linux packages and configuration supplied with the Exadata system software without installing or upgrading RPMs or changing Linux parameters, and verify supported Oracle AI Database and Exadata software interoperability before proceeding.
Read More: About Installing Oracle AI Database Software on Oracle Exadata Database Machine

Page 13 of 187

Logging In to a Remote System Using X Window System

Use this procedure to run Oracle Universal Installer (OUI) by logging on to a remote system where the runtime setting prohibits logging in directly to a graphical user interface (GUI).

OUI is a graphical user interface (GUI) application. On servers where the runtime settings prevent GUI applications from running, you can redirect the GUI display to a client system connecting to the server.

Note:

If you log in as another user (for example, oracle or grid), then repeat this procedure for that user as well.

  1. Start an X Window System session. If you are using an X Window System terminal emulator from a PC or similar system, then you may need to configure security settings to permit remote hosts to display X applications on your local system.
  2. Enter a command using the following syntax to enable remote hosts to display X applications on the local X server:

    # xhost + RemoteHost

    RemoteHost is the fully qualified remote host name. For example:

    # xhost + somehost.example.com
    somehost.example.com being added to the access control list
  3. If you are not installing the software on the local system, then use the ssh command to connect to the system where you want to install the software:

    # ssh -Y  RemoteHost

    RemoteHost is the fully qualified remote host name. The -Y flag ("yes") enables remote clients to have full access to the original server display. For example:

    # ssh -Y somehost.example.com
  4. If you are not logged in as the root user, and you are performing configuration steps that require root user privileges, then switch the user to root.

Note:

For more information about remote login using X Window System, refer to your X server documentation, or contact your X server vendor or system administrator. Depending on the X server software that you are using, you may have to complete the tasks in a different order.

Page 14 of 187

Setting Remote Display and X11 Forwarding Configuration

If you are on a remote terminal, and the local system has only one visual (which is typical), then use the following syntax to set your user account DISPLAY environment variable:

Remote Display

Bourne, Korn, and Bash shells:

$ export DISPLAY=hostname:0

C Shell:

% setenv DISPLAY hostname:0

For example, if you are using the Bash shell and if your host name is local_host, then enter the following command:

$ export DISPLAY=node1:0

X11 Forwarding

To ensure that X11 forwarding does not cause the installation to fail, use the following procedure to create a user-level SSH client configuration file for Oracle installation owner user accounts:

  1. Using any text editor, edit or create the software installation owner's ~/.ssh/config file.
  2. Ensure that the ForwardX11 attribute in the ~/.ssh/config file is set to no. For example:

    Host * 
        ForwardX11 no
  3. Ensure that the permissions on ~/.ssh are secured to the Oracle installation owner user account. For example:

    $ ls -al .ssh
    total 28
    drwx------  2 grid oinstall 4096 Jun 21 2020
    drwx------ 19 grid oinstall 4096 Jun 21 2020
    -rw-r--r--  1 grid oinstall 1202 Jun 21 2020 authorized_keys
    -rwx------  1 grid oinstall  668 Jun 21 2020 id_dsa
    -rwx------  1 grid oinstall  601 Jun 21 2020 id_dsa.pub
    -rwx------  1 grid oinstall 1610 Jun 21 2020 known_hosts

Page 15 of 187

Checking Server Hardware and Memory Configuration

Use this procedure to gather information about your server configuration.

  1. Use the following command to determine physical RAM size on the server:
    # grep MemTotal /proc/meminfo

    If the size of the physical RAM installed in the system is less than the required size, then you must install more memory before continuing.

  2. Determine the size of the configured swap space:
    # grep SwapTotal /proc/meminfo

    If necessary, see your operating system documentation for information about how to configure additional swap space.

  3. Determine the amount of space available in the /tmp directory:

    # df -h /tmp

    If the free space available in the /tmp directory is less than what is required, then complete one of the following steps:

    • Delete unused files from the /tmp directory to meet the disk space requirement.

      Note:

      If you perform this step after installing Oracle software, then do not remove /tmp/.oracle or /var/tmp/.oracle directories or their files.

    • When you set the Oracle user's environment, also set the TMP and TMPDIR environment variables to the directory you want to use instead of /tmp.
  4. Determine the amount of free RAM and disk swap space on the system:

    # free
  5. Determine if the system architecture can run the software:
    # uname -m

    Verify that the processor architecture matches the Oracle software release to install. For example, you should see the following for a x86-64 bit system:

    x86_64

    If you do not see the expected output, then you cannot install the software on this system.

  6. Verify that shared memory (/dev/shm) is mounted properly with sufficient size:
    df -h /dev/shm

    The df-h command displays the filesystem on which /dev/shm is mounted, and also displays in GB the total size and free size of shared memory.

Page 16 of 187

Preventing Installation Errors Caused by Terminal Output Commands

During an Oracle Grid Infrastructure installation, OUI uses SSH to run commands and copy files to the other nodes. During the installation, hidden files on the system (for example, .bashrc or .cshrc) can cause makefile and other installation errors if they contain terminal output commands.

To avoid this problem, you must modify hidden files in each Oracle installation owner user home directory to suppress all output on STDOUT or STDERR (for example, stty, xtitle, and other such commands) as in the following examples:

Bourne, Bash, or Korn shell:

if [ -t 0 ]; then
   stty intr ^C
fi

C shell:

test -t 0
if ($status == 0) then
   stty intr ^C
endif

Note:

If the remote shell can load hidden files that contain stty commands, then OUI indicates an error and stops the installation.

Page 17 of 187

About Installing Oracle AI Database Software on Oracle Exadata Database Machine

Read about the different methods to install Oracle AI Database on Exadata.

On Exadata, Oracle recommends using the Oracle Exadata Deployment Assistant (OEDA) to install Oracle Grid Infrastructure and Oracle AI Database. See, Oracle Exadata Database Machine Installation and Configuration Guide for more information.

If you choose to perform a manual Oracle AI Database installation on Exadata, note that the Exadata system software includes the required Linux packages and configuration settings for supported Oracle AI Database versions. You should not install or upgrade any Linux packages (RPMs) or change the Linux configuration parameters to install Oracle AI Database on Exadata. See, My Oracle Support for complete Oracle AI Database and Exadata software version interoperability details.

Page 18 of 187

Automatically Configuring Oracle Linux with Oracle AI Database Preinstallation RPM

About the Oracle AI Database Preinstallation RPM

The Oracle AI Database Preinstallation RPM simplifies operating system preparation for Oracle AI Database and Oracle Grid Infrastructure by installing required packages, resolving dependencies, creating the standard Oracle user and groups, configuring kernel and startup parameters, setting resource limits, and enabling recommended Transparent Huge Pages behavior. Install it only once during the initial software installation, do not use it on Oracle Engineered Systems, and manually configure settings for additional software owners because its limits and kernel parameters apply only to the oracle account. It installs X11 client libraries but not an X Window System server.

Read More: About the Oracle AI Database Preinstallation RPM

Overview of Oracle Linux Configuration with Oracle AI Database Preinstallation RPM

The Oracle AI Database Preinstallation RPM automates essential Oracle Linux preparation, including required package installation, kernel parameter configuration, and other operating system requirements. Configure it only during the first Oracle software installation and never on Oracle Engineered Systems. The overall process includes installing Oracle Linux, registering with ULN or configuring the Oracle Linux yum repository, installing and updating the preinstallation RPM, creating identically named role-based users and groups, configuring network interfaces, and preparing shared storage access for cluster nodes before installing Grid Infrastructure and the database.

Read More: Overview of Oracle Linux Configuration with Oracle AI Database Preinstallation RPM

Installing the Oracle AI Database Preinstallation RPM Using ULN

To install the preinstallation RPM through ULN, obtain the latest Oracle Linux update, register the server with ULN, and install the release-specific package as root with dnf, such as oracle-ai-database-preinstall-26ai on Oracle Linux 8, 9, or 10. The package creates standard Oracle users and groups and applies required kernel configuration; review the resulting changes in the RPM log, repeat the procedure on every cluster server, and optionally enable Ksplice when supported by the subscription.

Read More: Installing the Oracle AI Database Preinstallation RPM Using ULN

Installing Oracle AI Database Preinstallation RPM During an Oracle Linux Installation

During Oracle Linux installation, select the option to customize software, open the Servers and System administration tools package selections, and choose the Oracle AI Database Preinstallation RPM appropriate to the operating system release and architecture. Complete the installation on each cluster node so Oracle Linux automatically creates the standard Oracle installation owner and groups and configures required kernel settings. If a current package is unavailable in the installation media, install the matching RPM manually after completing the operating system installation.

Read More: Installing Oracle AI Database Preinstallation RPM During an Oracle Linux Installation

Installing Oracle Oracle AI Database Preinstallation RPM Using the Oracle Linux Yum Server

Install Oracle Linux using the standard documentation, apply current security errata and bug fixes with yum update, restart the system, and install oracle-ai-database-preinstall-26ai as root with dnf. The RPM creates the standard Oracle installation owner and groups and configures required kernel settings; environments using job-role separation must additionally create the required extended database users and groups according to their deployment needs.

Read More: Installing Oracle Oracle AI Database Preinstallation RPM Using the Oracle Linux Yum Server

Configure Additional Operating System Features

Before beginning installation, configure any additional operating system features required by the environment, such as IPMI or supplementary programming environments. Review the relevant preinstallation guidance and complete the configuration for each feature that will be used.
Read More: Configure Additional Operating System Features

Page 19 of 187

About the Oracle AI Database Preinstallation RPM

Use Oracle AI Database Preinstallation RPM to simplify operating system configuration in preparation for Oracle software installations.

Oracle recommends that you install Oracle Linux and use Oracle AI Database Preinstallation RPM to configure your operating systems for Oracle AI Database and Oracle Grid Infrastructure installations.

If your Linux distribution is Oracle Linux or Red Hat Enterprise Linux, and you are an Oracle Linux support customer, then you can complete most preinstallation configuration tasks by using the Oracle AI Database Preinstallation RPM for your release.

Oracle AI Database Preinstallation RPMs are available from the Oracle Linux Network. While not mandatory, Oracle recommends using the Oracle AI Database Preinstallation RPM to expedite cluster server setup.

When installed, the Oracle AI Database Preinstallation RPM performs the following actions:

  • Automatically downloads and installs any additional RPM packages needed for installing Oracle Grid Infrastructure and Oracle AI Database, and resolves any dependencies
  • Creates an oracle user, and creates the oraInventory ( oinstall ) and OSDBA ( dba ) oper, backupdba, dgdba, racdba, and kmdba groups for that user
  • As needed, sets sysctl.conf settings, system startup parameters, and driver parameters to values based on recommendations from the Oracle AI Database Preinstallation RPM program
  • Sets hard and soft resource limits
  • Sets other recommended parameters, depending on your kernel version
  • Sets transparent_hugepages=madvise

Configure the Oracle AI Database Preinstallation RPM once during the initial installation of Oracle AI Database or Oracle Grid Infrastructure on your system. For subsequent installations on the same system, do not install Oracle AI Database Preinstallation RPM again.

Do not install the Oracle AI Database Preinstallation RPM on Oracle Engineered Systems, such as Oracle Exadata Database Machine. Oracle Engineered Systems include integrated system software that contain the required version of the operating system kernel and all software packages.

Note:

The Oracle AI Database Preinstallation RPM designated for each Oracle AI Database release sets kernel parameters and resource limits exclusively for the user account oracle. To use multiple software account owners, manually configure system settings for each additional account.

The Oracle AI Database Preinstallation RPM installs X11 client libraries, but it does not install the X Window System server packages. To use graphical user interfaces such as OUI, configuration assistants, and Oracle Enterprise Manager, set the display to a system with X Window System server packages.

Page 20 of 187

Overview of Oracle Linux Configuration with Oracle AI Database Preinstallation RPM

Use Oracle AI Database Preinstallation RPM to simplify operating system configuration, and to ensure that you have required kernel packages.

Oracle recommends that you install Oracle Linux and use Oracle AI Database Preinstallation RPM to configure your operating systems for Oracle AI Database and Oracle Grid Infrastructure installations.

Configure Oracle AI Database Preinstallation RPM only once on your operating system when you install Oracle AI Database or Oracle Grid Infrastructure for the first time on your system. For subsequent installations on the same system, do not install Oracle AI Database Preinstallation RPM again.

Do not install Oracle AI Database Preinstallation RPM on Oracle Engineered Systems, such as Oracle Exadata Database Machine. Oracle Engineered Systems include integrated system software that contain the required version of the operating system kernel and all software packages.

The Oracle AI Database Preinstallation RPM for your Oracle Linux distributions and database release automatically installs any additional packages needed for installing Oracle Grid Infrastructure and Oracle AI Database, and configures your server operating system automatically, including setting kernel parameters and other basic operating system requirements for installation. For more information about Oracle Linux and Oracle AI Database Preinstallation RPM, refer to:

https://docs.oracle.com/en/operating-systems/oracle-linux/

Configuring a server using Oracle Linux and the Oracle AI Database Preinstallation RPM consists of the following steps:

  1. Install Oracle Linux.
  2. Register your Linux distribution with Oracle Unbreakable Linux Network (ULN) or download and configure the yum repository for your system using the Oracle Linux yum server for your Oracle Linux release.
  3. Install the Oracle AI Database Preinstallation RPM with the RPM for your Oracle Grid Infrastructure and Oracle AI Database releases, and update your Linux release.
  4. Create role-allocated groups and users with identical names and ID numbers.
  5. Complete network interface configuration for each cluster node candidate.
  6. Complete system configuration for shared storage access as required for each standard or core node cluster candidate.

After these steps are complete, you can proceed to install Oracle Grid Infrastructure and Oracle AI Database.

Page 21 of 187

Installing the Oracle AI Database Preinstallation RPM Using ULN

Use this procedure to subscribe to Unbreakable Linux Network (ULN) Oracle Linux channels for your Oracle software.

To obtain Unbreakable Linux Network (ULN) support, subscribe to Oracle Linux channels, and to add the Oracle Linux channel that distributes the Oracle AI Database Preinstallation RPM:

  1. Download the Oracle Linux ISO from one of the following websites:

    Note:

    Ensure that you use the latest available update release for Oracle Linux.

  2. Register your server with Unbreakable Linux Network (ULN). By default, you are registered for the Oracle Linux Latest channel for your operating system and hardware.

  3. Log in to Unbreakable Linux Network.
  4. Start a terminal session and enter the following command as root:
    • Oracle Linux 8, 9, and 10:

      # dnf install oracle-ai-database-preinstall-26ai

      Note:

      Use the -y option if you want dnf to skip the package confirmation prompt.

    You should see output indicating that you have subscribed to the Oracle Linux channel, and that packages are being installed.

    The Oracle AI Database Preinstallation RPM automatically creates a standard (not role-allocated) Oracle installation owner and groups, and sets up other kernel configuration settings as required for Oracle installations.

  5. Check the RPM log file to review the system configuration changes. For example:

    /var/log/oracle-ai-database-preinstall-26ai/backup/timestamp/orakernel.log
  6. Repeat steps 1 through 4 on all other servers in your cluster.

If you have a premier support subscription, you can enable Ksplice to provide zero downtime patching. Refer to the Ksplice User's Guide for installation instructions.

Page 22 of 187

Installing Oracle AI Database Preinstallation RPM During an Oracle Linux Installation

Use this procedure to install a new Oracle Linux installation and to perform system configuration with the Oracle AI Database Preinstallation RPM:

  1. Obtain Oracle Linux by downloading disk images:

    Note:

    Ensure that you use the latest available update release for Oracle Linux.

  2. Start the Oracle Linux installation and respond to installation screens with values appropriate for your environment.
  3. Review the first software selection screen, which lists task-specific software options. At the bottom of the screen, there is an option to customize now or customize later. Select Customize now, and click Next.
  4. On Oracle Linux, select Servers on the left of the screen and System administration tools on the right of the screen (options may vary between releases).

    The Packages in System Tools window opens.

  5. Select the Oracle AI Database Preinstallation RPM package box from the package list. For example, select a package similar to the following:
    • For Oracle Linux 8 on Linux x86-64:

      oracle-ai-database-preinstall-26ai-1.0-1.el8.x86_64.rpm
    • For Oracle Linux 9 on Linux x86-64:

      oracle-ai-database-preinstall-26ai-1.0-1.el9.x86_64.rpm
    • For Oracle Linux 10 on Linux x86-64:

      oracle-ai-database-preinstall-26ai-1.0-1.el10.x86_64.rpm
    • For Oracle Linux 8 on Linux for Arm (aarch64) :

      oracle-ai-database-preinstall-26ai-1.0-1.el8.aarch64.rpm
    • For Oracle Linux 9 on Linux for Arm (aarch64) :

      oracle-ai-database-preinstall-26ai-1.0-2.el9.aarch64.rpm

    If you do not have an Oracle AI Database Preinstallation RPM package option that is current for your Oracle AI Database release, because you are using an Oracle Linux installation that is previous to your Oracle AI Database and Oracle Grid Infrastructure release, then install the RPM for your release manually after completing the operating system installation.

  6. Close the optional package window and click Next.
  7. Complete the other screens to finish the Oracle Linux installation.

    Oracle Linux automatically creates a standard (not role-allocated) Oracle installation owner and groups, and sets up other kernel configuration settings as required for Oracle installations.

  8. Repeat steps 2 through 6 on all other cluster member nodes.

Page 23 of 187

Installing Oracle AI Database Preinstallation RPM Using the Oracle Linux yum Server

Install Oracle Linux and configure your Oracle Linux installation for security errata or bug fix updates using the Oracle Linux yum server.

  1. Refer to the official Oracle Linux documentation to install Oracle Linux:

    Oracle Linux Documentation

  2. After you complete your Oracle Linux installation, run the command yum update as needed to obtain the most current security errata and bug fixes for your Oracle Linux installation.
  3. Restart your system.
  4. Start a terminal session and enter the following command as root:

    • Oracle Linux 8, 9, and 10
      # dnf install oracle-ai-database-preinstall-26ai

      Note:

      Use the -y option if you want yum to skip the package confirmation prompt.

      You should see output indicating that you have subscribed to the Oracle Linux channel, and that packages are being installed.

      The Oracle AI Database Preinstallation RPM automatically creates a standard (not role-allocated) Oracle installation owner and groups and sets up other kernel configuration settings as required for Oracle installations. If you plan to use job-role separation, then create the extended set of database users and groups depending on your requirements.

Page 24 of 187

Configure Additional Operating System Features

Oracle recommends that you configure your operating system before starting installation with additional features, such as IPMI or additional programming environments.

Review the preinstallation sections to ensure that you have completed configuration as needed for the features you want.

Page 25 of 187

Configuring Operating Systems for Oracle AI Database on Linux

Guidelines for Linux Operating System Installation

Complete Linux operating system configuration and hardware checks before installing Oracle software. Ensure the deployment follows the security practices documented by the Linux distribution vendor and verify that the selected operating system is supported.

Read More: Guidelines for Linux Operating System Installation

Completing a Minimal or Default Linux Installation

Perform either a minimal or default Linux installation. Minimal installations require the Oracle AI Database Preinstallation RPM or manual installation of required packages, while default installations include most dependencies and reduce verification effort; Oracle recommends using default packages without customizing the RPM selection.

Read More: Completing a Minimal or Default Linux Installation

About Oracle Linux with the Unbreakable Enterprise Kernel

Oracle Linux includes the Unbreakable Enterprise Kernel (UEK), which is enabled by default and optimized for Oracle database, middleware, and hardware workloads. Oracle strongly recommends UEK, although an RHEL-compatible kernel is available when strict compatibility is required. UEK is the standard kernel for Oracle products, Exadata, benchmarks, and the preinstallation RPM, while Ksplice enables live kernel updates without restarts.

Read More: About Oracle Linux with the Unbreakable Enterprise Kernel

Configuring HugePages on Linux

Configure Linux HugePages to reduce page-management overhead and improve TLB performance for Oracle AI Database. Reserve at least 30 percent of system memory for standard pages and no more than 70 percent for HugePages, configure the oracle user’s memlock limit, assign its group to vm.hugetlb_shm_group, and persist the settings through sysctl configuration. After database creation, calculate the required HugePages value using the recommended script, set vm.nr_hugepages, verify allocation, and restart instances as needed.

Read More: Configuring HugePages on Linux

Restrictions for HugePages and Transparent HugePages Configurations

Use standard HugePages for Oracle AI Database and configure Transparent HugePages as madvise on UEK7 and later kernels for optimal performance rather than disabling it. Transparent HugePages allocate memory dynamically through the kernel, whereas standard HugePages reserve non-swappable memory at startup; memory reserved for standard HugePages must be deducted when calculating available RAM and swap requirements.

Read More: Restrictions for HugePages and Transparent HugePages Configurations

Setting Transparent HugePages to madvise

On Oracle Linux and RHEL systems using UEK7 or later, set the kernel parameter transparent_hugepage=madvise in the GRUB configuration, regenerate the boot configuration, and restart the system. The setting can be applied immediately through the relevant sysfs entry, and its status should be verified using the appropriate Oracle Linux or RHEL Transparent HugePages path.

Read More: Setting Transparent HugePages to madvise

About Installation Fixup Scripts

Oracle Universal Installer generates runfixup.sh scripts when required installation prerequisites are incomplete. These scripts can adjust kernel parameters, create and secure the central inventory directory, correct installation-owner group memberships, and set shell limits without requiring a restart. Fixup scripts do not replace complete prerequisite verification; use the installer’s integrated CVU checks or cluvfy for additional validation.

Read More: About Installation Fixup Scripts

Additional Drivers and Software Packages for Linux

Optional Linux components may be installed according to workload requirements, including the latest PAM library for external scheduler authentication, OCFS2 kernel and tools modules for supported Oracle Linux clusters, Messaging Gateway dependencies, current unixODBC packages for ODBC applications, and LDAP packages for directory-based features when not included in a default installation. Programming environments require supported Java, C/C++, COBOL, Unzip, and Tar versions, while web browsers are needed only for Enterprise Manager Cloud Control; OCFS2, Messaging Gateway, and some related features are not supported on Linux Arm.

Read More: Additional Drivers and Software Packages for Linux

Checking Kernel and Package Requirements for Linux

Verify the installed Linux distribution and release, inspect the running kernel with uname -r to confirm required errata, and query required RPMs with rpm -q or architecture-aware RPM commands. Install any missing or outdated packages and kernel updates from the Linux distributor before beginning the Oracle installation.

Read More: Checking Kernel and Package Requirements for Linux

Setting Clock Source for VMs on Linux x86-64

For Linux x86-64 virtual machines, Oracle recommends using the tsc clock source when available. Confirm availability, set it as the active source, verify the change, and add clocksource=tsc to the GRUB kernel command line so the setting persists after reboot; regenerate the GRUB configuration afterward.

Read More: Setting Clock Source for VMs on Linux x86-64

Confirming Host Name Resolution

Ensure the installation host name resolves through DNS, NIS, or a centrally maintained /etc/hosts file. Use ping with the host name to confirm successful name resolution and network reachability before installing Oracle AI Database.

Read More: Confirming Host Name Resolution

Using Automatic SSH Configuration During Installation

Cluster installations require passwordless SSH and SFTP between all member nodes so Oracle Universal Installer and configuration assistants can execute remote commands and transfer files. OUI can configure SSH automatically for the installation user, but login profiles must not produce terminal output or run commands such as stty; otherwise, configure SSH manually. For rare Clusterware AttachHome failures, set LoginGraceTime 0 in the SSH daemon configuration on every node.

Read More: Using Automatic SSH Configuration During Installation

Verifying the Disk Input Output Scheduler on Linux 8 and Later Systems

Review the disk I/O scheduler on every cluster node and consult the storage vendor for the appropriate Oracle ASM configuration. Oracle generally recommends mq-deadline for rotational disks and none for SSD or NVMe devices on supported Linux 8-or-later and SLES 15-or-later systems; verify the active scheduler through the device’s /sys/block/.../queue/scheduler entry.

Read More: Verifying the Disk Input Output Scheduler on Linux 8 and Later Systems

Verifying Digital Signature and Integrity of Installation Archive Files

Oracle AI Database 26ai installation archives are digitally signed to verify package integrity before extraction. Use Java jarsigner -verify for a quick validation or add -verbose:summary -certs to inspect signer, certificate-chain, timestamp, digest, and signature details; a successful verification reports jar verified.
Read More: Verifying Digital Signature and Integrity of Installation Archive Files

Page 26 of 187

Guidelines for Linux Operating System Installation

Complete operating system configuration requirements and checks for Linux operating systems before you start installation. Also, be aware of operating system guidelines before proceeding with an Oracle installation.

The sections in this chapter also provide information about installing a supported Linux distribution. Complete the minimum hardware configuration before you install the operating system.

Reviewing Operating System Security Common Practices

Secure operating systems are an important basis for general system security.

Ensure that your operating system deployment is in compliance with common security practices as described in your operating system vendor security guide.

Related Topics

Page 27 of 187

Completing a Minimal or Default Linux Installation

You must perform either a minimal or default Linux installation.

To complete a minimal Linux installation, select one of the minimal installation options.

A minimal Linux installation option is either a custom installation where you select the Minimal option from Package Group Selection, or where you deselect all packages except for the Base pack. A minimal Linux installation lacks many RPMs required for database installation, so you must use an RPM package for your Oracle Linux release to install the required packages. The package you use depends on your Linux release, and your support status with Unbreakable Linux Network (ULN).

If you do not install the Oracle AI Database Preinstallation RPM, then Oracle recommends that you install your Linux operating system with the default software packages (RPMs).

A default Linux installation includes most of the required packages and helps you limit manual verification of package dependencies. Oracle recommends that you do not customize the RPMs during installation.

Refer to the official Oracle Linux documentation for more information about installing Oracle Linux:

https://docs.oracle.com/en/operating-systems/oracle-linux/

Page 28 of 187

About Oracle Linux with the Unbreakable Enterprise Kernel

The Unbreakable Enterprise Kernel for Oracle Linux provides the latest innovations from upstream development to customers who run Oracle Linux in the data center.

The Unbreakable Enterprise Kernel is included and enabled by default in Oracle Linux kernels. It is based on a recent stable mainline development Linux kernel, and also includes optimizations developed in collaboration with Oracle AI Database, Oracle middleware, and Oracle hardware engineering teams to ensure stability and optimal performance for the most demanding enterprise workloads.

Oracle highly recommends deploying the Unbreakable Enterprise Kernel in your Oracle Linux environment, especially if you run enterprise applications. However, using Unbreakable Enterprise Kernel is optional. If you require strict Red Hat Enterprise Linux (RHEL) kernel compatibility, then Oracle Linux also includes a kernel compatible with the RHEL Linux kernel, compiled directly from the RHEL source code.

You can obtain more information about the Unbreakable Enterprise Kernel for Oracle Linux at the following URL:

https://www.oracle.com/linux/

The Unbreakable Enterprise Kernel for Oracle Linux is the standard kernel used with Oracle products. The build and QA systems for Oracle AI Database and other Oracle products use the Unbreakable Enterprise Kernel for Oracle Linux exclusively. The Unbreakable Enterprise Kernel for Oracle Linux is also the kernel used in Oracle Exadata systems. Unbreakable Enterprise Kernel for Oracle Linux is used in all benchmark tests on Linux in which Oracle participates, as well as in the Oracle AI Database Preinstallation RPM program for x86-64.

Oracle Ksplice, which is part of Oracle Linux, updates the Linux operating system (OS) kernel, while it is running, without requiring restarts or any interruption. Ksplice is available only with Oracle Linux.

Page 29 of 187

Restrictions for HugePages and Transparent HugePages Configurations

Review the HugePages and Transparent HugePages guidelines discussed in this section.

For optimal performance, Oracle recommends that you set Transparent HugePages to madvise on all Oracle AI Database servers UEK7 and later kernels and not disable Transparent HugePages as was recommended in prior releases.

Oracle continues to recommend using standard HugePages for Linux. Transparent HugePages memory is enabled by default.

If you install Oracle AI Database Preinstallation RPM, then it sets Transparent HugePages to madvise on all Oracle AI Database servers UEK7 and later kernels.

Transparent Hugepages are similar to standard HugePages. However, while standard HugePages allocate memory at startup, Transparent Hugepages memory uses the khugepaged thread in the kernel to allocate memory dynamically during runtime, using swappable HugePages.

HugePages allocates non-swappable memory for large page tables using memory-mapped files. HugePages are not enabled by default. If you enable HugePages, then you should deduct the memory allocated to HugePages from the available RAM before calculating swap space. Refer to your distribution documentation and to Oracle Technology Network and My Oracle Support for more information.

Page 30 of 187

Configuring HugePages on Linux

HugePages is a feature integrated into the Linux kernel. For Oracle AI Database, using HugePages reduces the operating system maintenance of page states and increases Translation Lookaside Buffer (TLB) hit ratio.

Note:

HugePages support is available in kernels built with the CONFIG_HUGETLBFS and CONFIG_HUGETLB_PAGE configuration options.

Oracle recommends that you reserve a minimum of 30 percent of the total memory for standard pages and not more than 70 percent of the total memory for HugePages.

Ensure that you have created the Oracle AI Database software owner (oracle) user accounts and all its groups. For more information see, Automatically Configuring Oracle Linux with Oracle AI Database Preinstallation RPM or Creating an Oracle Software Owner User.

Enabling Using HugePages

Perform these steps to enable HugePages on Linux:

  1. Check if the kernel supports HugePages:

    $ grep Huge /proc/meminfo
  2. Edit the memlock setting in the /etc/security/limits.conf file.

    Specify the memlock setting in KB. Set the maximum locked memory limit to at least 90 percent of the current RAM when you enable HugePages memory and at least to 3145728 KB (3 GB) if you disable HugePages. For example, if you have 64 GB RAM, then add the following entries to increase the maximum locked-in-memory address space:

    oracle   soft   memlock    60397977
    oracle   hard   memlock    60397977

    You can also set the memlock value higher than your SGA requirements.

    Note:

    On Exadata systems, specify the memlock setting as unlimited.

  3. Log in as the oracle user again and run the ulimit -l command to verify the new memlock setting:

    $ ulimit -l
    60397977
  4. Run the following command to display the value of the Hugepagesize variable:

    $ grep Hugepagesize /proc/meminfo
  5. Determine the gid or oracle user group ID value:
    # id oracle

    The output is similar to the following:

    uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba), 
    54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54327(asmdba),54330(racdba)

    Note the value of gid.

  6. Set the vm.hugetlb_shm_group kernel parameter value to the gid value:
    # sysctl -w vm.hugetlb_shm_group=gid

    where gid is the oracle user group ID. For example, value of gid\=54321.

    To ensure that this value is available even after the system restarts, add the following entry to the /etc/sysctl.d/99-hugetlb-shm-group.conf file that contains this setting.

    vm.hugetlb_shm_group=gid

Configuring the Capacity for HugePages

To configure the required number of HugePages for your databases, perform this step after you complete the Oracle AI Database installation and create your databases.

  1. Complete the following procedure to create a script that computes recommended values for HugePages configuration for the current shared memory segments:

    1. Create a text file hugepages_settings.sh

      See My Oracle Support note 401749.1 to create the hugepages_settings.sh script.

    2. Change the permission of the hugepages_settings.sh file:

      $ chmod +x hugepages_settings.sh
  2. Run the hugepages_settings.sh script to compute values for the HugePages configuration.

    $ ./hugepages_settings.sh

    Note:

    Before you run this script, ensure that all the databases that use hugepages run.

  3. Set the following kernel parameter, where value is the HugePages value that you determined in Step 2:

    # sysctl -w vm.nr_hugepages=value
  4. To ensure that HugePages is allocated after the system restarts, add the following entry to the /etc/sysctl.d/99-nr_hugepages.conf file, where value is the HugePages value that you determined in Step 2:

    vm.nr_hugepages=value

    Note:

    If you cannot set your HugePages allocation using nr_hugepages, then your available memory may be fragmented. Restart your server for the Hugepages allocation to take effect.

  5. Run the following command to check the available HugePages:

    $ grep Huge /proc/meminfo
  6. Restart the instances.
  7. Run the following command to check the available HugePages (1 or 2 pages free):

    $ grep Huge /proc/meminfo

Page 31 of 187

Setting Transparent HugePages to madvise

Transparent HugePages memory is enabled by default with Oracle Linux. However, for optimal performance, Oracle recommends that you set Transparent HugePages to madvise on all Oracle AI Database servers UEK7 and later kernels and not disable Transparent HugePages as was recommended in prior releases.

If you install Oracle AI Database Preinstallation RPM, then it sets Transparent HugePages to madvise on all Oracle AI Database servers UEK7 and later kernels.

To set madvise on Transparent HugePages:

  1. For Oracle Linux and Red Hat Enterprise Linux, add or modify the transparent_hugepage=madvise parameter in the /etc/default/grub file:

    GRUB_TIMEOUT=5
    GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
    GRUB_DEFAULT=saved
    GRUB_DISABLE_SUBMENU=true
    GRUB_TERMINAL_OUTPUT="console"
    GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet transparent_hugepage=madvise"
    GRUB_DISABLE_RECOVERY="true"

    Note:

    The file name may vary depending on your operating system and hardware. For example, on Oracle Cloud Infrastructure (OCI) the grub.cfg file is located at /boot/efi/EFI/redhat/. Check your operating system documentation for the exact file name.

  2. Run the grub2-mkconfig command to regenerate the grub.cfg file.

    On Oracle Linux 8

    # grub2-mkconfig -o /boot/grub2/grub.cfg

    On Oracle Linux 9 and later

    grub2-mkconfig -o /boot/grub2/grub.cfg --update-bls-cmdline
  3. Restart the system to make the changes permanent. If you do not want to restart your system, then enter the following command:

    # echo madvise >
          /sys/kernel/mm/transparent_hugepage/enabled
  4. To check if Transparent HugePages is enabled and configured with madvise, run one of the following commands as the root user:

    Oracle Linux kernels:

    # cat /sys/kernel/mm/transparent_hugepage/enabled

    Red Hat Enterprise Linux kernels:

    # cat /sys/kernel/mm/redhat_transparent_hugepage/enabled

    The following is a sample output that shows Transparent HugePages is being used and set to madvise.

    always [madvise] never

Page 32 of 187

About Installation Fixup Scripts

Oracle Universal Installer detects when the minimum requirements for an installation are not met, and creates shell scripts, called fixup scripts, to finish incomplete system configuration steps.

If Oracle Universal Installer detects an incomplete task, then it generates fixup scripts (runfixup.sh). You can run the fixup script and click Fix and Check Again. The fixup script modifies both persistent parameter settings and parameters in memory, so you do not have to restart the system.

The Fixup script does the following tasks:

  • Sets kernel parameters, if necessary, to values required for successful installation, including:

    • Shared memory parameters.
    • Open file descriptor and UDP send/receive parameters.
  • Creates and sets permissions on the Oracle Inventory (central inventory) directory.
  • Creates or reconfigures primary and secondary group memberships for the installation owner, if necessary, for the Oracle Inventory directory and the operating system privileges groups.
  • Sets shell limits, if necessary, to required values.

Note:

Using fixup scripts does not ensure that all the prerequisites for installing Oracle AI Database are met. You must still verify that all the preinstallation requirements are met to ensure a successful installation.

Oracle Universal Installer is fully integrated with Configuration Verification Utility (CVU) automating many prerequisite checks for your Oracle Grid Infrastructure or Oracle Real Application Clusters (Oracle RAC) installation. You can also manually perform various CVU verifications by running the cluvfy command.

Related Topics

Page 33 of 187

Additional Drivers and Software Packages for Linux

You are not required to install these optional and additional drivers and software packages, however, you may choose to install or configure these drivers and packages.

Installing PAM for Login Authentication on Linux

Pluggable Authentication Modules (PAM) is a system of libraries that handle user authentication tasks for applications.

On Linux, external scheduler jobs require PAM. Oracle strongly recommends that you install the latest Linux-PAM library for your Linux distribution.

Use a package management system (yum, up2date, YaST) for your distribution to install the latest pam (Pluggable Authentication Modules for Linux) library.

Installing OCFS2

You can use Oracle Cluster File System 2 (OCFS2) with Oracle Grid Infrastructure. However, you are not required to use OCFS2.

OCFS2 is a POSIX-compliant general purpose shared disk cluster file system for Linux. OCFS2 is supported for this release only with Oracle Linux.

An OCFS2 installation consists of two parts, the kernel module and the tools module. The supported version of the OCFS2 kernel module depends on the version of Unbreakable Enterprise Kernel available with Oracle Linux.

  1. Run the following command to install the latest version of the OCFS2 kernel module:

    # dnf install kernel-uek
  2. Run the following command to install the OCFS2 tools module after you install the OCFS2 kernel module:

    # dnf install ocfs2-tools

Note:

  • Each cluster node should run the same version of OCFS2 modules and a compatible version of Unbreakable Enterprise Kernel.
  • OCFS2 is not supported on Linux for Arm (aarch64).

Related Topic:

https://oss.oracle.com/projects/ocfs2/

Installing Oracle Messaging Gateway

Oracle Messaging Gateway is installed with Enterprise Edition of Oracle AI Database. However, you may require a CSD or Fix Packs.

If you require a CSD or Fix Packs for IBM WebSphere MQ, then see the following website for more information:

https://www.ibm.com/support/

Note:

  • Oracle Messaging Gateway does not support the integration of Advanced Queuing with TIBCO Rendezvous on IBM: Linux on System z.
  • Oracle Messaging Gateway is not supported on Linux for Arm (aarch64).

Related Topics

Installing ODBC Drivers for Linux x86-64

Open Database Connectivity (ODBC) is a set of database access APIs that connect to the database, prepare, and then run SQL statements on the database.

An application that uses an ODBC driver can access non-uniform data sources, such as spreadsheets and comma-delimited files. If you intend to install Oracle's ODBC driver, then you must also install the most recent ODBC Driver Manager for Linux.

Download and install the ODBC Driver Manager and Linux RPMs from the following website:

http://www.unixodbc.org

Review the minimum supported ODBC driver releases, and install ODBC drivers of the following or later releases for all Linux distributions:

unixODBC-2.3.4 or later

Installing the LDAP Package

Lightweight Directory Access Protocol (LDAP) is an application protocol for accessing and maintaining distributed directory information services over IP networks.

You require the LDAP package if you want to use features requiring LDAP, including the Oracle AI Database scripts odisrvreg and oidca for Oracle Internet Directory, or schemasync for third-party LDAP directories.
LDAP is included in a default Linux operating system installation.

If you did not perform a default Linux installation, and you intend to use Oracle scripts requiring LDAP, then use a package management system (up2date, YaST) for your distribution to install a supported LDAP package for your distribution, and install any other required packages for that LDAP package.

Installation Requirements for Programming Environments for Linux x86-64

Review these programming environment requirements for your Oracle AI Database installation.

Table: Requirements for Programming Environments for Linux x86-64

Programming EnvironmentsSupport Requirements
Java Database Connectivity (JDBC) / JDBC Oracle Call Interface (JDBC OCI)JDK 11 (Java SE Development Kit) with the JNDI extension with Oracle Java Database Connectivity.

Oracle Call Interface (OCI)

Oracle C++ Call Interface

Pro*C/C++

Intel(R) C Compiler Classic for applications running on Intel(R) 64, Version 2021.10.1 or the GNU C and C++ (g++ 8) compilers.

Oracle C++ Call Interface (OCCI) applications can be built with g++8 or the 2021.10.1 Intel C++ Compiler used with the standard template libraries of gcc8.

Oracle XML Developer's Kit (XDK)Oracle XML Developer's Kit is supported with the same compilers as OCCI.
Pro*COBOL
  • Micro Focus Visual COBOL for Eclipse 2.3 - Update 2
  • Micro Focus Visual COBOL v6.0
Unzip and Tar

Install the latest versions of Unzip and Tar.

Unzip and Tar utilities are required to extract the image files for Oracle AI Database and Oracle Grid Infrastructure installations and patches.

Note:

The Oracle JDBC Oracle Call Interface (OCI) Type 2 client driver (also known as a "thick" driver) is deprecated in Oracle AI Database 26ai.

Most Java applications that use Open Database Connectivity (ODBC) with Oracle JDBC drivers use the Thin driver. To enable Oracle to allocate resources to better address customer requirements, Oracle is deprecating the JDBC-OCI driver.

Installation Requirements for Programming Environments for Linux for Arm (aarch64)

Ensure that your system meets the requirements for the programming environment that you want to configure:

Table: Requirements for Programming Environments for Linux for Arm ( aarch64 )

Programming EnvironmentsSupport Requirements
Java Database Connectivity (JDBC) / JDBC Oracle Call Interface (JDBC OCI)JDK 11 (Java SE Development Kit) with the JNDI extension with Oracle Java Database Connectivity.

Oracle Call Interface (OCI)

Oracle C++ Call Interface

Pro*C/C++

The GNU C and C++ compilers listed in this table.

Oracle C++ Call Interface (OCCI) applications can be built with g++ used with the standard template libraries of the gcc compilers listed in this table.

gcc compiler packages

Install the latest released versions of the gcc packages listed here.

gcc
gcc-c++

Oracle XML Developer's Kit (XDK)Oracle XML Developer's Kit is supported with the same compilers as OCCI.

Installation Requirements for Web Browsers

Web browsers are required only if you intend to use Oracle Enterprise Manager Cloud Control. Web browsers must support JavaScript, and the HTML 4.0 and CSS 1.0 standards.

For a list of browsers that meet these requirements see the Enterprise Manager certification matrix on My Oracle Support:

https://support.oracle.com

Related Topics

Page 34 of 187

Checking Kernel and Package Requirements for Linux

Verify your kernel and packages to see if they meet minimum requirements for installation.

  1. To determine the distribution and version of Linux installed, enter one of the following commands:

    # cat /etc/oracle-release
    # cat /etc/redhat-release
    # cat /etc/os-release
    # lsb_release -id
  2. To determine if the required kernel errata is installed, enter the following command:
    # uname -r

    The following is an example of the output this command displays on an Oracle Linux 8 system:

    5.4.17-2011.1.2.el8uek.x86_64

    Review the required errata level for your distribution. If the errata level is previous to the required minimum errata update, then obtain and install the latest kernel update from your Linux distributor.

  3. To determine whether the required packages are installed, enter commands similar to the following:
    # rpm -q package_name

    Alternatively, if you require specific system architecture information, then enter the following command:

    # rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep package_name

    You can also combine a query for multiple packages, and review the output for the correct versions. For example:

    # rpm -q binutils compat-libstdc++ gcc glibc libaio libgcc libstdc++ \
    make sysstat unixodbc

    If a package is not installed, then install it from your Linux distribution media or download the required package version from your Linux distributor's website.

Page 35 of 187

Setting Clock Source for VMs on Linux x86-64

Oracle recommends that you set the clock source to tsc for better performance in virtual environments (VM) on Linux x86-64.

  1. As the root user, check if the tsc clock source is available on your system.

    # cat /sys/devices/system/clocksource/clocksource0/available_clocksource
    kvm-clock tsc acpi_pm
  2. If the tsc clock source is available, then set tsc as the current clock source.

    # echo "tsc">/sys/devices/system/clocksource/clocksource0/current_clocksource
  3. Verify that the current clock source is set to tsc.

    # cat /sys/devices/system/clocksource/clocksource0/current_clocksource
    tsc
  4. Using any text editor, append the clocksource directive to the GRUB_CMDLINE_LINUX line in the /etc/default/grub file to retain this clock source setting even after a reboot.

    GRUB_CMDLINE_LINUX="rd.lvm.lv=ol/root rd.lvm.lv=ol/swap rhgb quiet numa=off transparent_hugepage=madvise clocksource=tsc"
  5. Run the following command to update GRUB and ensure that these settings are retained even after a reboot:

    # grub2-mkconfig -o /boot/grub2/grub.cfg

Page 36 of 187

Confirming Host Name Resolution

Check to ensure that the host name for your server is resolvable.

Typically, the computer on which you want to install Oracle Database is connected to a network. Ensure that the computer host name is resolvable, either through a Domain Name System (DNS), a network information service (NIS), or a centrally-maintained TCP/IP host file, such as /etc/hosts. Use the ping command to ensure that your computer host name is resolvable. For example:

ping myhostname
pinging myhostname.example.com [192.0.2.2] with 32 bytes of data:
Reply from 192.0.2.2: bytes=32 time=138ms TTL=56

Page 37 of 187

Using Automatic SSH Configuration During Installation

To install Oracle software, configure secure shell (SSH) connectivity between all cluster member nodes.

Oracle Universal Installer (OUI) uses the ssh and sftp commands during installation to run remote commands on and copy files to the other cluster nodes. You must configure SSH so that these commands do not prompt for a password.

Note:

Oracle configuration assistants use SSH for configuration operations from local to remote nodes. Oracle Enterprise Manager also uses SSH. RSH is no longer supported.

You can configure SSH from the OUI interface during installation for the user account running the installation. The automatic configuration creates passwordless SSH connectivity between all cluster member nodes. Oracle recommends that you use the automatic procedure if possible.

To enable the script to run, you must remove stty commands from the profiles of any existing Oracle software installation owners you want to use, and remove other security measures that are triggered during a login, and that generate messages to the terminal. These messages, mail checks, and other displays prevent Oracle software installation owners from using the SSH configuration script that is built into OUI. If they are not disabled, then SSH must be configured manually before an installation can be run.

In rare cases, Oracle Clusterware installation can fail during the "AttachHome" operation when the remote node closes the SSH connection. To avoid this problem, set the timeout wait to unlimited by setting the following parameter in the SSH daemon configuration file /etc/ssh/sshd_config on all cluster nodes:

LoginGraceTime 0

Page 38 of 187

Verifying the Disk I/O Scheduler on Linux 8 and Later Systems

Disk I/O schedulers reorder, delay, or merge requests for disk I/O to achieve better throughput and lower latency.

Linux has multiple disk I/O schedulers available, including mq-deadline, none, kyber, and bfq on Oracle Linux 8 and later, RHEL 8 and later, and SUSE Linux Enterprise Server 15 and later systems. You should consult with your storage vendor for the appropriate I/O scheduler configuration to achieve best performance on Oracle Automatic Storage Management (Oracle ASM).

In general, Oracle recommends that you set the I/O Scheduler to mq-deadline for rotating storage devices (HDDs) and to none for non-rotating storage devices such as SSDs and NVMe on Oracle Linux 8 and later, RHEL 8 and later, and SUSE Linux Enterprise Server 15 and later systems.

On all cluster nodes, enter the following command as root to verify the configured disk I/O scheduler value.

cat /sys/block/${ASM_DISK}/queue/scheduler
none [mq-deadline] kyber bfq

In this example, the default disk I/O scheduler is mq-deadline and ASM_DISK is a rotational Oracle ASM disk device.

Note:

Contact your storage vendor for more information about how to configure I/O scheduler on Linux for your storage devices.

Page 39 of 187

Verifying Digital Signature and Integrity of Installation Archive Files

Starting with Oracle AI Database 26ai, Oracle digitally signs the installation archive files with Oracle certificates to ensure the integrity of the packages before you deploy them in your environments.

Use the Java utility jarsigner to verify the integrity of your Oracle AI Database, Oracle Database Client, Oracle Grid Infrastructure, Oracle Examples, Oracle Gateways, or Oracle GSM installation archive files. You can verify the integrity of the installation archive files before you extract the installation files.

Quick Verification

To quickly verify the installation archive files, use the jarsigner command with the -verify option:

  1. Go to the directory where you have downloaded the installation archive files.
  2. Run this command to check your installation archive file:

    jarsigner -verify installation_archive_file

    For example, to check the Oracle AI Database gold image:

    jarsigner -verify db_home.zip
    jar verified.

Detailed Certificate Information

If you want detailed certificate information, then use the -verbose:summary and -certs along with the -verify option.

  1. Go to the directory where you have downloaded the installation archive files.
  2. Run this command to check your installation archive file:

    jarsigner -verify -verbose:summary -certs installation_archive_file

    For example, to check the Oracle AI Database gold image:

    jarsigner -verify -verbose:summary -certs db_home.zip

    The output is similar to the following:

    2237119 Fri Feb 17 07:02:30 UTC 2023 META-INF/MANIFEST.MF
    
      >>> Signer
      X.509, CN="Oracle America, Inc.", O="Oracle America, Inc.", L=Redwood City, ST=California, C=US
      [
      Signature algorithm: SHA256withRSA, 3072-bit key
      [certificate is valid from 8/19c/21 12:00 AM to 8/19c/23 11:59 PM]
      X.509, CN=DigiCert Trusted G4 Code Signing RSA4096 SHA384 2021 CA1, O="DigiCert, Inc.", C=US
      [
      Signature algorithm: SHA384withRSA, 4096-bit key
      [certificate is valid from 4/29/21 12:00 AM to 4/28/36 11:59 PM]
      X.509, CN=DigiCert Trusted Root G4, O=DigiCert Inc, C=US
      [
      Signature algorithm: SHA384withRSA, 4096-bit key
      [trusted certificate]
      >>> TSA
      X.509, CN=DigiCert Timestamp 2022 - 2, O=DigiCert, C=US
      [
      Signature algorithm: SHA256withRSA, 4096-bit key
      [certificate is valid from 9/21/22 12:00 AM to 11/21/33 11:59 PM]
      X.509, CN=DigiCert Trusted G4 RSA4096 SHA256 TimeStamping CA, O="DigiCert, Inc.", C=US
      [
      Signature algorithm: SHA256withRSA, 4096-bit key
      [certificate is valid from 3/23/22 12:00 AM to 3/22/37 11:59 PM]
      X.509, CN=DigiCert Trusted Root G4, O=DigiCert Inc, C=US
      [
      Signature algorithm: SHA384withRSA, 4096-bit key
      [certificate is valid from 8/1/22 12:00 AM to 11/9/31 11:59 PM]
    
       2237281 Fri Feb 17 07:02:32 UTC 2023 META-INF/ORACLE_C.SF (and 1 more)
    
      (Signature related entries)
    
            0 Fri Feb 17 05:41:24 UTC 2023 OPatch/ (and 1897 more)
    
      (Directory entries)
    
       2977 Tue Dec 20 08:02:16 UTC 2022 OPatch/README.txt (and 20199 more)
    
      [entry was signed on 2/17/23 7:02 AM]
      >>> Signer
      X.509, CN="Oracle America, Inc.", O="Oracle America, Inc.", L=Redwood City, ST=California, C=US
      [
      Signature algorithm: SHA256withRSA, 3072-bit key
      [certificate is valid from 8/19c/21 12:00 AM to 8/19c/23 11:59 PM]
      X.509, CN=DigiCert Trusted G4 Code Signing RSA4096 SHA384 2021 CA1, O="DigiCert, Inc.", C=US
      [
      Signature algorithm: SHA384withRSA, 4096-bit key
      [certificate is valid from 4/29/21 12:00 AM to 4/28/36 11:59 PM]
      X.509, CN=DigiCert Trusted Root G4, O=DigiCert Inc, C=US
      [
      Signature algorithm: SHA384withRSA, 4096-bit key
      [trusted certificate]
      >>> TSA
      X.509, CN=DigiCert Timestamp 2022 - 2, O=DigiCert, C=US
      [
      Signature algorithm: SHA256withRSA, 4096-bit key
      [certificate is valid from 9/21/22 12:00 AM to 11/21/33 11:59 PM]
      X.509, CN=DigiCert Trusted G4 RSA4096 SHA256 TimeStamping CA, O="DigiCert, Inc.", C=US
      [
      Signature algorithm: SHA256withRSA, 4096-bit key
      [certificate is valid from 3/23/22 12:00 AM to 3/22/37 11:59 PM]
      X.509, CN=DigiCert Trusted Root G4, O=DigiCert Inc, C=US
      [
      Signature algorithm: SHA384withRSA, 4096-bit key
      [certificate is valid from 8/1/22 12:00 AM to 11/9/31 11:59 PM]
    
      s = signature was verified
      m = entry is listed in manifest
      k = at least one certificate was found in keystore
      i = at least one certificate was found in identity scope
    
    Signed by "CN="Oracle America, Inc.", O="Oracle America, Inc.", L=Redwood City, ST=California, C=US"
      Digest algorithm: SHA-256
      Signature algorithm: SHA256withRSA, 3072-bit key
    Timestamped by "CN=DigiCert Timestamp 2022 - 2, O=DigiCert, C=US" on Fri Feb 17 07:02:33 UTC 2023
      Timestamp digest algorithm: SHA-256
      Timestamp signature algorithm: SHA256withRSA, 4096-bit key
    
    jar verified.

For more jarsigner options, type jarsigner -h or review the jarsigner documentation:

jarsigner Reference

Page 40 of 187

Operating System Requirements for x86-64 Linux Platforms

About Operating System Requirements for x86-64 Linux Platforms

Before installing Oracle AI Database or Oracle Grid Infrastructure on x86-64 Linux, verify the supported distribution, kernel, packages, and software requirements for the intended products. Requirements may change as new platforms are certified, so consult the current certification matrix. Oracle Universal Installer checks required packages, and all cluster members must run the same operating system version unless performing an upgrade.

Read More: About Operating System Requirements for x86-64 Linux Platforms

General Guidelines for Operating System Packages

Oracle recommends using Oracle Linux with the Oracle AI Database Preinstallation RPM, which configures the operating system and installs required dependencies. Interactive installation requires an X Window System package such as libX, while compiler packages such as gcc and gcc-c++ are not required. These requirements do not apply to Oracle Engineered Systems, which provide integrated operating system software and required packages.

Read More: General Guidelines for Operating System Packages

Supported Oracle Linux 10 Distributions for x86-64

Oracle Linux 10 requires OpenSSH and, beginning with Oracle AI Database 26ai Release Update 23.26.2, supports UEK 8 kernel 6.12.0-104.43.4.2.el10uek.x86_64 or later and Red Hat Compatible Kernel 6.12.0-55.40.1.0.1.el10_0.x86_64 or later. Install current required packages through the Oracle AI Database Preinstallation RPM or appropriate repositories; optional packages include ipmiutil, net-tools, nfs-utils, and client-related libnsl packages. Review applicable patches and known issues before installation.

Read More: Supported Oracle Linux 10 Distributions for x86-64

Supported Oracle Linux 9 Distributions for x86-64

Oracle Linux 9 requires OpenSSH and supports Oracle Linux 9.2 with UEK 7 kernel 5.15.0-201.135.6.el9uek.x86_64 or later, Red Hat Compatible Kernel 5.14.0-284.30.1.el9_2.x86_64 or later, and, beginning with Release Update 23.26.2, Oracle Linux 9.6 with UEK 8 kernel 6.12.0-1.23.3.2.el9uek.x86_64 or later. Use the Oracle AI Database Preinstallation RPM to install required packages and configuration, with optional packages available for IPMI, RAC, ACFS, and Database Client deployments.

Read More: Supported Oracle Linux 9 Distributions for x86-64

Supported Oracle Linux 8 Distributions for x86-64

Oracle Linux 8 requires OpenSSH and supports version 8.6 with UEK 6 kernel 5.4.17-2136.312.3.4.el8uek.x86_64 or later, Red Hat Compatible Kernel 4.18.0-372.26.1.0.1.el8_6.x86_64 or later, and, beginning with Release Update 23.5, version 8.8 with UEK 7 kernel 5.15.0-202.135.2.el8uek.x86_64 or later. Install current dependencies using the Oracle AI Database Preinstallation RPM or vendor repositories; optional packages support IPMI, Database Client, RAC, and ACFS requirements.

Read More: Supported Oracle Linux 8 Distributions for x86-64

Supported Red Hat Enterprise Linux 10 Distributions for x86-64

Red Hat Enterprise Linux 10 requires OpenSSH and, beginning with Oracle AI Database 26ai Release Update 23.26.2, kernel 6.12.0-55.40.1.0.1.el10_0.x86_64 or later. Install the specified current packages, including libraries, development components, X Window System libraries, security utilities, monitoring tools, and make, from enabled Red Hat repositories. Optional packages include ipmiutil, net-tools, and nfs-utils; review relevant installation patches and known issues.

Read More: Supported Red Hat Enterprise Linux 10 Distributions for x86-64

Supported Red Hat Enterprise Linux 9 Distributions for x86-64

Red Hat Enterprise Linux 9 requires OpenSSH and version 9.2 with kernel 5.14.0-284.30.1.el9_2.x86_64 or later. Required packages include core system libraries, compatibility OpenSSL, X libraries, compiler and RDMA components, virtualization libraries, policy utilities, monitoring tools, and development packages. Optional packages support IPMI, Database Client, RAC, and ACFS installations.

Read More: Supported Red Hat Enterprise Linux 9 Distributions for x86-64

Supported Red Hat Enterprise Linux 8 Distributions for x86-64

Red Hat Enterprise Linux 8 requires OpenSSH and version 8.6 with kernel 4.18.0-372.26.1.0.1.el8_6.x86_64 or later. Install the required system, compiler, X Window System, RDMA, security, monitoring, and development packages from vendor repositories. Optional packages include ipmiutil, Database Client libnsl packages, net-tools for RAC and Clusterware, and nfs-utils for ACFS.

Read More: Supported Red Hat Enterprise Linux 8 Distributions for x86-64

Supported SUSE Linux Enterprise Server 15 Distributions for x86-64

SUSE Linux Enterprise Server 15 requires OpenSSH and SP5 with kernel 5.14.21-150500.53-default or later. Install the listed current packages, including development libraries, X libraries, capability and ELF libraries, compilers, make, policy utilities, monitoring tools, and related runtime dependencies. Optional packages are ipmiutil for IPMI and net-tools for Oracle RAC and Clusterware.

Read More: Supported SUSE Linux Enterprise Server 15 Distributions for x86-64

Installing Operating System Packages

Install the latest operating system packages from the appropriate vendor repository using DNF or YUM on Oracle Linux and Red Hat Enterprise Linux, or YaST on SUSE Linux Enterprise Server, after enabling the required channel or repository. For example, install bc with dnf install bc or yum install bc on Oracle Linux and Red Hat Enterprise Linux, or with yast --install bc on SUSE Linux Enterprise Server.
Read More: Installing Operating System Packages

Page 41 of 187

About Operating System Requirements for x86-64 Linux Platforms

You must meet the minimum requirements such as the operating system distribution, packages, and other software requirements for this release before you start an Oracle AI Database or Oracle Grid Infrastructure installation.

Depending on the products that you intend to install, verify that you have the required operating system kernel and packages installed.

The Linux distributions and packages listed in this section are supported for this release on x86-64. Requirements listed in this document are current as of the date listed on the title page.

The platform-specific hardware and software requirements included in this guide were current when this guide was published. However, because new platforms and operating system software versions may be certified after this guide is published, review the certification matrix on the My Oracle Support website for the most up-to-date list of certified hardware platforms and operating system versions:

https://support.oracle.com/

Oracle Universal Installer performs checks on your system to verify that it meets the listed operating system package requirements. To ensure that these checks complete successfully, verify the requirements before you start the installer.

Note:

Oracle does not support running different operating system versions on cluster members, unless an operating system is being upgraded. You cannot run different operating system version binaries on members of the same cluster, even if each operating system is supported.

Page 42 of 187

General Guidelines for Operating System Packages

Review these guidelines before you proceed with installing operating system packages.

  • Oracle recommends that you install Oracle Linux and use Oracle AI Database Preinstallation RPM to configure your operating systems for Oracle AI Database and Oracle Grid Infrastructure installations.
  • The Oracle AI Database interactive installation requires an X Window System (for example, libX ). The libX packages are not part of a default Linux installation. If you perform an installation on a system with a reduced set of packages, then you must ensure that libX or a similar X Window System package is installed.
  • Oracle AI Database does not require the compiler packages gcc and gcc-c++ on for Oracle AI Database or Oracle Grid Infrastructure installations.
  • These operating system requirements do not apply to Oracle Engineered Systems, such as Oracle Exadata Database Machine and Oracle Database Appliance. Oracle Engineered Systems include integrated system software that contain the required version of the operating system kernel and all software packages. Please verify that you have the minimum required Exadata image. Refer to My Oracle Support for more information.

Related Topics

Page 43 of 187

Supported Oracle Linux 10 Distributions for x86-64

Use this information to check supported Oracle Linux 10 distributions.

Table: x86-64 Oracle Linux 10 Minimum Operating System Requirements

ItemRequirements
SSH RequirementEnsure that OpenSSH is installed on your servers. OpenSSH is the required SSH software.
Oracle Linux 10

Starting with Oracle AI Database 26ai Release Update 23.26.2, the Linux x86-64 operating system is supported with the following minimum supported versions:

  • Oracle Linux 10 with the Unbreakable Enterprise Kernel 8: 6.12.0-104.43.4.2.el10uek.x86_64 or later
  • Oracle Linux 10 with the Red Hat Compatible Kernel: 6.12.0-55.40.1.0.1.el10_0.x86_64 or later

Note: Oracle recommends that you update Oracle Linux 10 to the latest available release level.

Packages for Oracle Linux 10

Install the latest released versions of the following packages:

Subscribe to the Oracle Linux 10 channel on the Unbreakable Linux Network, or configure a yum repository from the Oracle Linux yum server website, and then install the Oracle AI Database Preinstallation RPM, oracle-ai-database-preinstall-26ai. The Oracle AI Database Preinstallation RPM, oracle-ai-database-preinstall-26ai, automatically installs all required packages listed in the table below, their dependencies for Oracle Grid Infrastructure and Oracle AI Database installations, and also performs other system configuration. If you install the Oracle AI Database Preinstallation RPM, oracle-ai-database-preinstall-26ai, then you do not have to install these packages, as the Oracle AI Database Preinstallation RPM automatically installs them.

bc
binutils
elfutils-libelf
fontconfig
glibc
glibc-devel
ksh
libaio
libgcc
libibverbs
libstdc++
libvirt-libs
libxcb
libX11
libXau
libXi
libXrender
libXtst
libxcrypt-compat
make
policycoreutils
policycoreutils-python-utils
smartmontools
sysstat
xz-devel

Optional Packages for Oracle Linux 10ipmiutil (for Intelligent Platform Management Interface)
net-tools (for Oracle RAC and Oracle Clusterware)
nfs-utils (for Oracle ACFS)
Patches and Known Issues

Page 44 of 187

Supported Oracle Linux 9 Distributions for x86-64

Use this information to check supported Oracle Linux 9 distributions.

Table: x86-64 Oracle Linux 9 Minimum Operating System Requirements

ItemRequirements
SSH RequirementEnsure that OpenSSH is installed on your servers. OpenSSH is the required SSH software.
Oracle Linux 9

Minimum supported versions:

  • Oracle Linux 9.2 with the Unbreakable Enterprise Kernel 7: 5.15.0-201.135.6.el9uek.x86_64 or later
  • Oracle Linux 9.2 with the Red Hat Compatible Kernel: 5.14.0-284.30.1.el9_2.x86_64 or later

Starting with Oracle AI Database 26ai Release Update 23.26.2, the Linux x86-64 operating system is supported with the following minimum supported version:

Oracle Linux 9.6 with the Unbreakable Enterprise Kernel 8: 6.12.0-1.23.3.2.el9uek.x86_64 or later

Note: Oracle recommends that you update Oracle Linux to the latest available version and release level.

Packages for Oracle Linux 9

Install the latest released versions of the following packages:

Subscribe to the Oracle Linux 9 channel on the Unbreakable Linux Network, or configure a yum repository from the Oracle Linux yum server website, and then install the Oracle AI Database Preinstallation RPM, oracle-ai-database-preinstall-26ai. The Oracle AI Database Preinstallation RPM, oracle-ai-database-preinstall-26ai, automatically installs all required packages listed in the table below, their dependencies for Oracle Grid Infrastructure and Oracle AI Database installations, and also performs other system configuration. If you install the Oracle AI Database Preinstallation RPM, oracle-ai-database-preinstall-26ai, then you do not have to install these packages, as the Oracle AI Database Preinstallation RPM automatically installs them.


bc
binutils
compat-openssl11
elfutils-libelf
fontconfig
glibc
glibc-devel
glibc-headers
ksh
libaio
libgcc
libibverbs
libstdc++
libvirt-libs
libX11
libXau
libXi
libXrender
libXtst
libxcb
libxcrypt-compat
make-4.4.1-3
policycoreutils
policycoreutils-python-utils
smartmontools
sysstat
xz-devel

Optional Packages for Oracle Linux 9

Based on your requirement, install the latest released versions of the following packages:


ipmiutil (for Intelligent Platform Management Interface)
net-tools (for Oracle RAC and Oracle Clusterware)
nfs-utils (for Oracle ACFS)
libnsl (for Oracle Database Client only)
libnsl2 (for Oracle Database Client only)
libnsl2-devel (for Oracle Database Client only)

Page 45 of 187

Supported Oracle Linux 8 Distributions for x86-64

Use this information to check supported Oracle Linux 8 distributions.

Table: x86-64 Oracle Linux 8 Minimum Operating System Requirements

ItemRequirements
SSH RequirementEnsure that OpenSSH is installed on your servers. OpenSSH is the required SSH software.
Oracle Linux 8

Minimum supported versions:

  • Oracle Linux 8.6 with the Unbreakable Enterprise Kernel 6: 5.4.17-2136.312.3.4.el8uek.x86_64 or later
  • Oracle Linux 8.6 with the Red Hat Compatible Kernel: 4.18.0-372.26.1.0.1.el8_6.x86_64 or later

Note: Oracle strongly recommends that you use a minimum version of Oracle Linux 8.6 Unbreakable Enterprise Kernel 7.

Starting with Oracle AI Database 26ai Release Update 23.5, the following minimum version is supported:

  • Oracle Linux 8.8 with the Unbreakable Enterprise Kernel 7: 5.15.0-202.135.2.el8uek.x86_64 or later

Note: Oracle recommends that you update Oracle Linux to the latest available version and release level.

Packages for Oracle Linux 8

Install the latest released versions of the following packages:

Subscribe to the Oracle Linux 8 channel on the Unbreakable Linux Network, or configure a yum repository from the Oracle Linux yum server website, and then install the Oracle AI Database Preinstallation RPM, oracle-ai-database-preinstall-26ai. The Oracle AI Database Preinstallation RPM, oracle-ai-database-preinstall-26ai, automatically installs all required packages listed in the table below, their dependencies for Oracle Grid Infrastructure and Oracle AI Database installations, and also performs other system configuration. If you install the Oracle AI Database Preinstallation RPM, oracle-ai-database-preinstall-26ai, then you do not have to install these packages, as the Oracle AI Database Preinstallation RPM automatically installs them.


bc
binutils
compat-openssl10
elfutils-libelf
fontconfig
glibc
glibc-devel
ksh
libaio
libXrender
libX11
libXau
libXi
libXtst
libgcc
libstdc++
libxcb
libibverbs
libasan
liblsan
librdmacm
make
policycoreutils
policycoreutils-python-utils
smartmontools
sysstat
xz-devel

Optional Packages for Oracle Linux 8

Based on your requirement, install the latest released versions of the following packages:


ipmiutil (for Intelligent Platform Management Interface)
libnsl2 (for Oracle Database Client only)
libnsl2-devel (for Oracle Database Client only)
net-tools (for Oracle RAC and Oracle Clusterware)
nfs-utils (for Oracle ACFS)

Page 46 of 187

Supported Red Hat Enterprise Linux 10 Distributions for x86-64

Use this information to check supported Red Hat Enterprise Linux 10 distributions.

Table: x86-64 Red Hat Enterprise Linux 10 Minimum Operating System Requirements

ItemRequirements
SSH RequirementEnsure that OpenSSH is installed on your servers. OpenSSH is the required SSH software.
Red Hat Enterprise Linux 10

Starting with Oracle AI Database 26ai Release Update 23.26.2, the Red Hat Enterprise Linux x86-64 operating system is supported with the following minimum supported version:

Red Hat Enterprise Linux 10: 6.12.0-55.40.1.0.1.el10_0.x86_64 or later

Packages for Red Hat Enterprise Linux 10

Install the latest released versions of the following packages:

bc
binutils
elfutils-libelf
fontconfig
glibc
glibc-devel
ksh
libaio
libgcc
libibverbs
libstdc++
libvirt-libs
libxcb
libX11
libXau
libXi
libXrender
libXtst
libxcrypt-compat
make
policycoreutils
policycoreutils-python-utils
smartmontools
sysstat
xz-devel

Optional Packages for Red Hat Enterprise Linux 10ipmiutil (for Intelligent Platform Management Interface)
net-tools (for Oracle RAC and Oracle Clusterware)
nfs-utils (for Oracle ACFS)
Patches and Known Issues

Page 47 of 187

Supported Red Hat Enterprise Linux 9 Distributions for x86-64

Use this information to check supported Red Hat Enterprise Linux 9 distributions.

Table: x86-64 Red Hat Enterprise Linux 9 Minimum Operating System Requirements

ItemRequirements
SSH RequirementEnsure that OpenSSH is installed on your servers. OpenSSH is the required SSH software.
Red Hat Enterprise Linux 9

Minimum supported version:

Red Hat Enterprise Linux 9.2: 5.14.0-284.30.1.el9_2.x86_64 or later

Packages for Red Hat Enterprise Linux 9

Install the latest released versions of the following packages:


bc
binutils
compat-openssl11
elfutils-libelf
fontconfig
glibc
glibc-devel
glibc-headers
ksh
libaio
libasan
libX11
libXau
libXi
libXrender
libXtst
libxcrypt-compat
libgcc
libibverbs
librdmacm
libstdc++
libxcb
libvirt-libs
make
policycoreutils
policycoreutils-python-utils
smartmontools
sysstat
xz-devel

Optional Packages for Red Hat Enterprise Linux 9

Based on your requirement, install the latest released versions of the following packages:


ipmiutil (for Intelligent Platform Management Interface)
libnsl2 (for Oracle Database Client only)
libnsl2-devel (for Oracle Database Client only)
net-tools (for Oracle RAC and Oracle Clusterware)
nfs-utils (for Oracle ACFS)

Page 48 of 187

Supported Red Hat Enterprise Linux 8 Distributions for x86-64

Use this information to check supported Red Hat Enterprise Linux 8 distributions.

Table: x86-64 Red Hat Enterprise Linux 8 Minimum Operating System Requirements

ItemRequirements
SSH RequirementEnsure that OpenSSH is installed on your servers. OpenSSH is the required SSH software.
Red Hat Enterprise Linux 8

Minimum supported version:

Red Hat Enterprise Linux 8.6: 4.18.0-372.26.1.0.1.el8_6.x86_64 or later

Packages for Red Hat Enterprise Linux 8

Install the latest released versions of the following packages:


bc
binutils
compat-openssl10
elfutils-libelf
fontconfig
glibc
glibc-devel
ksh
libaio
libXrender
libX11
libXau
libXi
libXtst
libgcc
libstdc++
libxcb
libibverbs
libasan
liblsan
librdmacm
make
policycoreutils
policycoreutils-python-utils
smartmontools
sysstat
xz-devel

Optional Packages for Red Hat Enterprise Linux 8

Based on your requirement, install the latest released versions of the following packages:

ipmiutil (for Intelligent Platform Management Interface)
libnsl2 (for Oracle Database Client only)
libnsl2-devel (for Oracle Database Client only)
net-tools (for Oracle RAC and Oracle Clusterware)
nfs-utils (for Oracle ACFS)

Page 49 of 187

Supported SUSE Linux Enterprise Server 15 Distributions for x86-64

Use this information to check supported SUSE Linux Enterprise Server 15 distributions.

Table: x86-64 SUSE Linux Enterprise Server 15 Minimum Operating System Requirements

ItemRequirements
SSH RequirementEnsure that OpenSSH is installed on your servers. OpenSSH is the required SSH software.
SUSE Linux Enterprise Server

Minimum supported version:

SUSE Linux Enterprise Server 15 SP5 (x86_64): 5.14.21-150500.53-default or later

Packages for SUSE Linux Enterprise Server 15

Install the latest released versions of the following packages:

bc
glibc
insserv-compat
libaio-devel
libaio1
libX11-6
libXau6
libXext-devel
libXext6
libXi-devel
libXi6
libXrender-devel
libXrender1
libXtst6
libcap-ng-utils
libcap-ng0
libcap-progs
libcap1
libcap2
libelf1
libgcc_s1
libjpeg8
libpcap1
libpcre1
libstdc++6
libgfortran4
mksh
make
pixz
policycoreutils
policycoreutils-python-utils
smartmontools
sysstat
xorg-x11-libs

Optional Packages for SUSE Linux Enterprise Server 15

Based on your requirement, install the latest released versions of the following packages:

ipmiutil (for Intelligent Platform Management Interface)
net-tools (for Oracle RAC and Oracle Clusterware)

Page 50 of 187

Installing Operating System Packages

Learn how to install the latest version of your Oracle Linux and SUSE Linux Enterprise Server operating system packages listed earlier.

You must install the latest version of your operating system packages from the respective operating system vendor repository by using a package manager like DNF, YUM or YaST depending on your operating system.

Ensure that the appropriate channel or repository is enabled to include these packages.

For example:

On Oracle Linux or Red Hat Enterprise Linux, to install the latest bc package, run one of the following commands:

  • # dnf install bc

    (or)

  • # yum install bc

On SUSE Linux Enterprise Server, to install the latest bc package using YaST, run the following command:

$ yast --install bc

Page 51 of 187

Operating System Requirements for Linux for Arm (aarch64)

About Operating System Requirements for Linux for Arm (aarch64)

Before installing Oracle AI Database or Oracle Grid Infrastructure on Linux for Arm (aarch64), verify that the supported operating system distribution, kernel, packages, and software prerequisites are installed. Oracle Universal Installer checks these requirements, which should be validated in advance; current hardware and operating system certification should also be confirmed through My Oracle Support. All cluster members must use the same operating system version, except during an operating system upgrade.

Read More: About Operating System Requirements for Linux for Arm aarch64

Supported Oracle Linux 9 Distributions on Linux for Arm (aarch64)

Oracle AI Database 26ai supports Oracle Linux 9 on Linux for Arm beginning with Release Update 23.26.2, requiring Oracle Linux 9.4 or later with Unbreakable Enterprise Kernel 7 version 5.15.0-307.178.5.el9uek.aarch64 or later. Oracle recommends using the latest Oracle Linux 9 release. The oracle-ai-database-preinstall-26ai RPM, obtained through the Oracle Linux 9 Unbreakable Linux Network channel or Oracle Linux yum repository, installs the required database and Grid Infrastructure packages, dependencies, and system configuration, including compiler, runtime, storage, X11, security, monitoring, and related libraries.

Read More: Supported Oracle Linux 9 Distributions on Linux for Arm aarch64

Supported Oracle Linux 8 Distributions on Linux for Arm (aarch64)

Oracle AI Database 26ai supports Oracle Linux 8 on Linux for Arm beginning with Release Update 23.7, requiring Oracle Linux 8.6 or later with Unbreakable Enterprise Kernel 7 version 5.15.0-205.149.5.1.el8uek.aarch64 or later. Oracle recommends using the latest Oracle Linux 8 release. The oracle-ai-database-preinstall-26ai RPM, available through the Oracle Linux 8 Unbreakable Linux Network channel or Oracle Linux yum repository, automatically installs the required Grid Infrastructure and database packages, dependencies, and system settings, including development tools, runtime libraries, storage and networking libraries, X11 components, security utilities, monitoring tools, and related dependencies.
Read More: Supported Oracle Linux 8 Distributions on Linux for Arm aarch64

Page 52 of 187

About Operating System Requirements for Linux for Arm (aarch64)

You must meet the minimum requirements such as the operating system distribution, packages, and other software requirements for this release before you start an Oracle AI Database or Oracle Grid Infrastructure installation.

Depending on the products that you intend to install, verify that you have the required operating system kernel and packages installed.

The Linux distribution and packages listed in this section are supported for this release on Linux for Arm (aarch64). Requirements listed in this document are current as of the date listed on the title page.

The platform-specific hardware and software requirements included in this guide were current when this guide was published. However, because new platforms and operating system software versions may be certified after this guide is published, review the certification matrix on the My Oracle Support website for the most up-to-date list of certified hardware platforms and operating system versions:

https://support.oracle.com/

Oracle Universal Installer performs checks on your system to verify that it meets the listed operating system package requirements. To ensure that these checks complete successfully, verify the requirements before you start the installer.

Note:

Oracle does not support running different operating system versions on cluster members, unless an operating system is being upgraded. You cannot run different operating system version binaries on members of the same cluster, even if each operating system is supported.

Page 53 of 187

Supported Oracle Linux 9 Distributions on Linux for Arm (aarch64)

Use this information to check supported Oracle Linux 9 distributions for Oracle AI Database.

Table: Linux for Arm (aarch64) Oracle Linux 9 Minimum Operating System Requirements for Oracle AI Database

ItemRequirements
Oracle Linux 9

Starting with Oracle AI Database 26ai Release Update 23.26.2, the Linux for Arm (aarch64) operating system is supported with the following minimum supported version:

Oracle Linux 9.4 with Unbreakable Enterprise Kernel 7: 5.15.0-307.178.5.el9uek.aarch64 or later

Note: Oracle recommends that you update Oracle Linux 9 to the latest available release level.

Packages for Oracle Linux 9

Install the latest released versions of the following packages:

Subscribe to the Oracle Linux 9 channel on the Unbreakable Linux Network, or configure a yum repository from the Oracle Linux yum server website, and then install the Oracle AI Database Preinstallation RPM, oracle-ai-database-preinstall-26ai. The Oracle AI Database Preinstallation RPM, oracle-ai-database-preinstall-26ai, automatically installs all required packages listed in the table below, their dependencies for Oracle Grid Infrastructure and Oracle AI Database installations, and also performs other system configuration. If you install the Oracle AI Database Preinstallation RPM, oracle-ai-database-preinstall-26ai, then you do not have to install these packages, as the Oracle AI Database Preinstallation RPM automatically installs them.

bc
binutils
elfutils-libelf
elfutils-libelf-devel
gcc
gcc-c++
glibc
glibc-devel
ksh
libaio
libaio-devel
libgfortran
libibverbs
libxcb
libX11
libXau
libXi
libXrender
libXtst
make
policycoreutils
policycoreutils-python-utils
smartmontools
sysstat

Page 54 of 187

Supported Oracle Linux 8 Distributions on Linux for Arm (aarch64)

Use this information to check supported Oracle Linux 8 distributions on Linux for Arm (aarch64).

Table: Linux for Arm (aarch64) Oracle Linux 8 Minimum Operating System Requirements for Oracle AI Database

ItemRequirements
Oracle Linux 8

Starting with Oracle AI Database 26ai Release Update 23.7, the Linux for Arm (aarch64) operating system is supported with the following minimum supported version:

Oracle Linux 8.6 with Unbreakable Enterprise Kernel 7: 5.15.0-205.149.5.1.el8uek.aarch64 or later

Note: Oracle recommends that you update Oracle Linux 8 to the latest available release level.

Packages for Oracle Linux 8

Install the latest released versions of the following packages:

Subscribe to the Oracle Linux 8 channel on the Unbreakable Linux Network, or configure a yum repository from the Oracle Linux yum server website, and then install the Oracle AI Database Preinstallation RPM, oracle-ai-database-preinstall-26ai. The Oracle AI Database Preinstallation RPM, oracle-ai-database-preinstall-26ai, automatically installs all required packages listed in the table below, their dependencies for Oracle Grid Infrastructure and Oracle AI Database installations, and also performs other system configuration. If you install the Oracle AI Database Preinstallation RPM, oracle-ai-database-preinstall-26ai, then you do not have to install these packages, as the Oracle AI Database Preinstallation RPM automatically installs them.

bc
binutils
elfutils-libelf
elfutils-libelf-devel
fontconfig
gcc
gcc-c++
glibc
glibc-devel
ksh
libaio
libaio-devel
libgcc
libgfortran
libibverbs
libnsl
libnsl2
libstdc++
libstdc++-devel
libxcb
libX11
libXau
libXi
libXrender
libXtst
make
policycoreutils
policycoreutils-python-utils
smartmontools
sysstat

Page 55 of 187

Configuring Users Groups and Environments for Oracle Grid Infrastructure and Oracle AI Database

Before installation, create operating system groups and users, and configure user environments.

Required Operating System Groups and Users

Oracle installations require an installation owner, a shared Oracle Inventory group as the primary group for all installation owners, and one or more operating system privilege groups. Verify whether an existing central inventory and oraInst.loc file exist, reuse the same inventory for all installations, and ensure installation owners can write to it. Create the inventory group if needed, and use designated grid and oracle owners when separating Grid Infrastructure and database administration. Installation owners must use the inventory group as their primary group and appropriate database, ASM, backup, Data Guard, encryption, and RAC groups as secondary groups; for Oracle Restart, ensure grid belongs to racdba.

Read More: Required Operating System Groups and Users

Oracle Installations with Standard and Job Role Separation Groups and Users

Oracle supports standard and job role separation configurations through operating system users and groups that control administrative privileges for Grid Infrastructure, ASM, and databases. A single owner and group may provide all privileges, but Oracle recommends separate inventory and administrative groups when role separation is required. Standard database groups include OSDBA (dba) and optional OSOPER (oper), while extended groups provide limited SYSBACKUP, SYSDG, SYSKM, and SYSRAC privileges. ASM administration uses OSASM (asmadmin), optional OSOPER for ASM (asmoper), and OSDBA for ASM (asmdba); the ASMSNMP account can be created with limited monitoring privileges for Enterprise Manager.

Read More: Oracle Installations with Standard and Job Role Separation Groups and Users

Creating Operating System Privileges Groups

Create the operating system groups required by the installation when they do not already exist, using conventional names such as asmadmin for OSASM, asmdba for ASM disk access, asmoper for ASM startup and shutdown, dba for database SYSDBA, and oper for database SYSOPER. Database installations also require groups for SYSBACKUP (backupdba), SYSDG (dgdba), SYSKM (kmdba), and SYSRAC (racdba). Group identifiers should be selected according to the operating system’s existing allocation and organizational policies.

Read More: Creating Operating System Privileges Groups

Creating Operating System Oracle Installation User Accounts

Create Oracle software owner accounts before installation, typically oracle for database software and grid for Grid Infrastructure, assigning the Oracle Inventory group as the primary group and the required privilege groups as secondary groups. Record each user ID for preinstallation tasks. If an existing owner lacks the required memberships, update its groups before installation, but do not change the primary inventory group or use different primary groups among owners because this can corrupt the central inventory.

Read More: Creating Operating System Oracle Installation User Accounts

Configuring Software Owner User Environments

Before installation, configure each oracle or grid environment with umask 022, suitable file-descriptor and process limits, and a valid DISPLAY setting for graphical installers. Remove conflicting Oracle variables such as ORACLE_HOME, ORACLE_SID, ORACLE_BASE, ORA_NLS10, TNS_ADMIN, and ORA_CRS_HOME, and remove Oracle home paths from PATH. Ensure temporary storage provides at least 1 GB, using a nonshared directory for RAC installations, and verify the resulting environment. Recommended limits include at least 1,024 soft and 65,536 hard open files, 2,047 soft and 16,384 hard processes, a stack size of approximately 10,240–32,768 KB, and sufficient locked memory for HugePages or database operation; re-login after changing limits.

Read More: Configuring Software Owner User Environments

Creating Oracle Database Vault User Accounts

If Oracle Database Vault is enabled by default, create and configure its required accounts before use. The Database Vault Owner account is mandatory, while a separate Account Manager account may also be created for administration. Database Vault establishes baseline auditing for security configuration, catalog information, system privileges, and Oracle Label Security, and initializes related database parameters with default values.
Read More: Creating Oracle Database Vault User Accounts

Page 56 of 187

Required Operating System Groups and Users

Oracle software installations require an installation owner, an Oracle Inventory group, which is the primary group of all Oracle installation owners, and at least one group designated as a system privileges group.

Review group and user options with your system administrator. If you have system administration privileges, then review the topics in this section and configure operating system groups and users as needed.

Determining If an Oracle Inventory and Oracle Inventory Group Exist

Determine if you have an existing Oracle central inventory, and ensure that you use the same Oracle Inventory for all Oracle software installations. Also, ensure that all Oracle software users you intend to use for installation have permissions to write to this directory.

When you install Oracle software on the system for the first time, OUI creates the oraInst.loc file. This file identifies the name of the Oracle Inventory group (by default, oinstall), and the path of the Oracle central inventory directory. If you have an existing Oracle central inventory, then ensure that you use the same Oracle Inventory for all Oracle software installations, and ensure that all Oracle software users you intend to use for installation have permissions to write to this directory.

An oraInst.loc file contains lines in the following format, where central_inventory_location is the path to an existing Oracle central inventory, and group is the name of the operating system group whose members have permissions to write to the central inventory:

inventory_loc=central_inventory_location
inst_group=group

Use the more command to determine if you have an Oracle central inventory on your system. For example:

# more /etc/oraInst.loc

inventory_loc=/u01/app/oraInventory
inst_group=oinstall

Use the command grep groupname /etc/group to confirm that the group specified as the Oracle Inventory group still exists on the system. For example:

$ grep oinstall /etc/group
oinstall:x:54321:grid,oracle

Note:

Do not put the oraInventory directory under the Oracle base directory for a new installation, because that can result in user permission errors for other installations.

Creating the Oracle Inventory Group If an Oracle Inventory Does Not Exist

Create an Oracle Inventory group manually as part of a planned installation, particularly where more than one Oracle software product is installed on servers.

By default, if an oraInventory group does not exist, then the installer uses the primary group of the installation owner for the Oracle software being installed as the oraInventory group. Ensure that this group is available as a primary group for all planned Oracle software installation owners.

If the oraInst.loc file does not exist, then create the Oracle Inventory group by entering a command similar to the following:

# /usr/sbin/groupadd -g 54321 oinstall

About Oracle Installation Owner Accounts

Select or create an Oracle installation owner for your installation, depending on the group and user management plan you want to use for your installations.

You must create a software owner for your installation in the following circumstances:

  • If an Oracle software owner user does not exist; for example, if this is the first installation of Oracle software on the system.
  • If an Oracle software owner user exists, but you want to use a different operating system user, with different group membership, to separate Oracle Grid Infrastructure administrative privileges from Oracle AI Database administrative privileges.

In Oracle documentation, a user created to own only Oracle Grid Infrastructure software installations is called the Grid user (grid). This user owns both the Oracle Clusterware and Oracle Automatic Storage Management binaries. A user created to own either all Oracle installations, or one or more Oracle AI Database installations, is called the Oracle user (oracle). You can have only one Oracle Grid Infrastructure installation owner, but you can have different Oracle users to own different installations.

Oracle software owners must have the Oracle Inventory group as their primary group, so that each Oracle software installation owner can write to the central inventory (oraInventory), and so that OCR and Oracle Clusterware resource permissions are set correctly. The database software owner must also have the OSDBA group and (if you create them) the OSOPER, OSBACKUPDBA, OSDGDBA, OSRACDBA, and OSKMDBA groups as secondary groups.

Identifying an Oracle Software Owner User Account

You must create at least one software owner user account the first time you install Oracle software on the system. Either use an existing Oracle software user account, or create an Oracle software owner user account for your installation.

To use an existing user account, obtain the name of an existing Oracle installation owner from your system administrator. Confirm that the existing owner is a member of the Oracle Inventory group.

For example, if you know that the name of the Oracle Inventory group is oinstall, then an Oracle software owner should be listed as a member of oinstall:

$ grep "oinstall" /etc/group
oinstall:x:54321:grid,oracle

You can then use the ID command to verify that the Oracle installation owners you intend to use have the Oracle Inventory group as their primary group. For example:

$ id oracle
uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba),
54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54327(asmdba),54330(racdba)
$ id grid
uid=54331(grid) gid=54321(oinstall) groups=54321(oinstall),54327(asmdba),54329(asmadmin),54330(racdba)

Note:

For Oracle Restart installations, to successfully install Oracle AI Database, ensure that the grid user is a member of the racdba group.

After you create operating system groups, create or modify Oracle user accounts in accordance with your operating system authentication planning.

Page 57 of 187

Oracle Installations with Standard and Job Role Separation Groups and Users

A job role separation configuration of Oracle AI Database and Oracle ASM is a configuration with groups and users to provide separate groups for operating system authentication.

Review the following sections to understand more about a Job Role Separation deployment.

About Oracle Installations with Job Role Separation

Job role separation requires that you create different operating system groups for each set of system privileges that you grant through operating system authorization.

With Oracle Grid Infrastructure job role separation, Oracle ASM has separate operating system groups that provide operating system authorization for Oracle ASM system privileges for storage tier administration. This operating system authorization is separated from Oracle AI Database operating system authorization. In addition, the Oracle Grid Infrastructure installation owner provides operating system user authorization for modifications to Oracle Grid Infrastructure binaries.

With Oracle AI Database job role separation, each Oracle AI Database installation has separate operating system groups to provide authorization for system privileges on that Oracle AI Database. Multiple databases can, therefore, be installed on the cluster without sharing operating system authorization for system privileges. In addition, each Oracle software installation is owned by a separate installation owner, to provide operating system user authorization for modifications to Oracle AI Database binaries. Note that any Oracle software owner can start and stop all databases and shared Oracle Grid Infrastructure resources such as Oracle ASM or Virtual IP (VIP). Job role separation configuration enables database security, and does not restrict user roles in starting and stopping various Oracle Clusterware resources.

You can choose to create one administrative user and one group for operating system authentication for all system privileges on the storage and database tiers. For example, you can designate the oracle user to be the installation owner for all Oracle software, and designate oinstall to be the group whose members are granted all system privileges for Oracle Clusterware; all system privileges for Oracle ASM; all system privileges for all Oracle AI Databases on the servers; and all OINSTALL system privileges for installation owners. This group must also be the Oracle Inventory group.

If you do not want to use role allocation groups, then Oracle strongly recommends that you use at least two groups:

  • A system privileges group whose members are granted administrative system privileges, including OSDBA, OSASM, and other system privileges groups.
  • An installation owner group (the oraInventory group) whose members are granted Oracle installation owner system privileges (the OINSTALL system privilege).

Note:

To configure users for installation that are on a network directory service such as Network Information Services (NIS), refer to your directory service documentation.

Related Topics

Standard Oracle AI Database Groups for Database Administrators

Oracle AI Database has two standard administration groups: OSDBA, which is required, and OSOPER, which is optional.

  • The OSDBA group (typically, dba )

    You must create this group the first time you install Oracle AI Database software on the system. This group identifies operating system user accounts that have database administrative privileges (the SYSDBA privilege).

    If you do not create separate OSDBA, OSOPER, and OSASM groups for the Oracle ASM instance, then operating system user accounts that have the SYSOPER and SYSASM privileges must be members of this group. The name used for this group in Oracle code examples is dba. If you do not designate a separate group as the OSASM group, then the OSDBA group you define is also by default the OSASM group.

  • The OSOPER group for Oracle AI Database (typically, oper )

    OSOPER grants the OPERATOR privilege to start up and shut down the database (the SYSOPER privilege). By default, members of the OSDBA group have all privileges granted by the SYSOPER privilege.

Extended Oracle AI Database Groups for Job Role Separation

Oracle AI Database provides an extended set of database groups to grant task-specific system privileges for database administration.

The extended set of Oracle AI Database system privileges groups are task-specific and less privileged than the OSDBA/SYSDBA system privileges. They are designed to provide privileges to carry out everyday database operations. Users granted these system privileges are also authorized through operating system group membership.

You do not have to create these specific group names, but during interactive and silent installation, you must assign operating system groups whose members are granted access to these system privileges. You can assign the same group to provide authorization for these privileges, but Oracle recommends that you provide a unique group to designate each privilege.

The subset of OSDBA job role separation privileges and groups consist of the following:

  • OSBACKUPDBA group for Oracle AI Database (typically, backupdba )

    Create this group if you want a separate group of operating system users to have a limited set of database backup and recovery related administrative privileges (the SYSBACKUP privilege).

  • OSDGDBA group for Oracle Data Guard (typically, dgdba )

    Create this group if you want a separate group of operating system users to have a limited set of privileges to administer and monitor Oracle Data Guard (the SYSDG privilege). To use this privilege, add the Oracle AI Database installation owners as members of this group.

  • The OSKMDBA group for encryption key management (typically, kmdba )

    Create this group if you want a separate group of operating system users to have a limited set of privileges for encryption key management (the SYSKM privilege). To use this privilege, add the Oracle AI Database installation owners as members of this group.

  • The OSRACDBA group for Oracle Real Application Clusters Administration (typically, racdba )

    Create this group if you want a separate group of operating system users to have a limited set of Oracle Real Application Clusters (RAC) administrative privileges (the SYSRAC privilege). To use this privilege:

    • Add the Oracle AI Database installation owners as members of this group.
    • For Oracle Restart configurations, if you have a separate Oracle Grid Infrastructure installation owner user ( grid ), then you must also add the grid user as a member of the OSRACDBA group of the database to enable Oracle Grid Infrastructure components to connect to the database.

Related Topics

Creating an ASMSNMP User

The ASMSNMP user is an Oracle ASM user with privileges to monitor Oracle ASM instances. You are prompted to provide a password for this user during installation.

In addition to the OSASM group, whose members are granted the SYSASM system privilege to administer Oracle ASM, Oracle recommends that you create a less privileged user, ASMSNMP, and grant that user SYSDBA privileges to monitor the Oracle ASM instance. Oracle Enterprise Manager uses the ASMSNMP user to monitor Oracle ASM status.

During installation, you are prompted to provide a password for the ASMSNMP user. You can create an operating system authenticated user, or you can create an Oracle AI Database user called asmsnmp. In either case, grant the user SYSDBA privileges.

Oracle Automatic Storage Management Groups for Job Role Separation

Oracle Grid Infrastructure operating system groups provide their members task-specific system privileges to access and to administer Oracle Automatic Storage Management.

  • The OSASM group for Oracle ASM Administration (typically, asmadmin )

    Create this group as a separate group to separate administration privileges groups for Oracle ASM and Oracle AI Database administrators. Members of this group are granted the SYSASM system privileges to administer Oracle ASM. In Oracle documentation, the operating system group whose members are granted privileges is called the OSASM group, and in code examples, where there is a group specifically created to grant this privilege, it is referred to as asmadmin.

    Oracle ASM can support multiple databases. If you have multiple databases on your system, and use multiple OSDBA groups so that you can provide separate SYSDBA privileges for each database, then you should create a group whose members are granted the OSASM/SYSASM administrative privileges, and create a grid infrastructure user (grid) that does not own a database installation, so that you separate Oracle Grid Infrastructure SYSASM administrative privileges from a database administrative privileges group.

    Members of the OSASM group can use SQL to connect to an Oracle ASM instance as SYSASM using operating system authentication. The SYSASM privileges permit mounting and dismounting disk groups, and other storage administration tasks. SYSASM privileges provide no access privileges on an RDBMS instance.

    If you do not designate a separate group as the OSASM group, but you do define an OSDBA group for database administration, then by default the OSDBA group you define is also defined as the OSASM group.

  • The OSOPER group for Oracle ASM (typically, asmoper )

    This is an optional group. Create this group if you want a separate group of operating system users to have a limited set of Oracle instance administrative privileges (the SYSOPER for ASM privilege), including starting up and stopping the Oracle ASM instance. By default, members of the OSASM group also have all privileges granted by the SYSOPER for ASM privilege.

Page 58 of 187

Creating Operating System Privileges Groups

The following sections describe how to create operating system groups for Oracle Grid Infrastructure and Oracle AI Database:

Creating the OSASM Group

If the OSASM group does not exist, or if you require a new OSASM group, then create it.

Use the group name asmadmin unless a group with that name already exists. For example:

# groupadd -g 54329 asmadmin

Creating the OSDBA for ASM Group

You must designate a group as the OSDBA for ASM (asmdba) group during installation. Members of this group are also allowed to access the Oracle Automatic Storage Management (Oracle ASM) disk devices.

The Oracle ASM disk devices should be owned by this group.

Create an OSDBA for ASM group using the group name asmdba unless a group with that name already exists:

# /usr/sbin/groupadd -g 54327 asmdba

Creating the OSOPER for ASM Group

You can choose to designate a group as the OSOPER for ASM group (asmoper) during installation. Members of this group are granted startup and shutdown privileges to Oracle Automatic Storage Management.

If you want to create an OSOPER for ASM group, use the group name asmoper unless a group with that name already exists:

# /usr/sbin/groupadd -g 54328 asmoper

Creating the OSDBA Group for Database Installations

Each Oracle AI Database requires an operating system group to be designated as the OSDBA group. Members of this group are granted the SYSDBA system privileges to administer the database.

You must create an OSDBA group in the following circumstances:

  • An OSDBA group does not exist, for example, if this is the first installation of Oracle AI Database software on the system
  • An OSDBA group exists, but you want to give a different group of operating system users database administrative privileges for a new Oracle AI Database installation

Create the OSDBA group using the group name dba, unless a group with that name already exists:

# /usr/sbin/groupadd -g 54322 dba

Creating an OSOPER Group for Database Installations

Create an OSOPER group only if you want to identify a group of operating system users with a limited set of database administrative privileges (SYSOPER operator privileges).

For most installations, it is sufficient to create only the OSDBA group. However, to use an OSOPER group, create it in the following circumstances: - If an OSOPER group does not exist; for example, if this is the first installation of Oracle AI Database software on the system

  • If an OSOPER group exists, but you want to give a different group of operating system users database operator privileges in a new Oracle installation

If the OSOPER group does not exist, or if you require a new OSOPER group, then create it. Use the group name oper unless a group with that name already exists. For example:

# groupadd -g 54323 oper

Creating the OSBACKUPDBA Group for Database Installations

You must designate a group as the OSBACKUPDBA group during installation. Members of this group are granted the SYSBACKUP privileges to perform backup and recovery operations using RMAN or SQL*Plus.

Create the OSBACKUPDBA group using the group name backupdba, unless a group with that name already exists:

# /usr/sbin/groupadd -g 54324 backupdba

Creating the OSDGDBA Group for Database Installations

You must designate a group as the OSDGDBA group during installation. Members of this group are granted the SYSDG privileges to perform Data Guard operations.

Create the OSDGDBA group using the group name dgdba, unless a group with that name already exists:

# /usr/sbin/groupadd -g 54325 dgdba

Creating the OSKMDBA Group for Database Installations

You must designate a group as the OSKMDBA group during installation. Members of this group are granted the SYSKM privileges to perform Transparent Data Encryption keystore operations.

If you want a separate group for Transparent Data Encryption, then create the OSKMDBA group using the group name kmdba unless a group with that name already exists:

# /usr/sbin/groupadd -g 54326 kmdba

Creating the OSRACDBA Group for Database Installations

You must designate a group as the OSRACDBA group during database installation. Members of this group are granted the SYSRAC privileges to perform day-to-day administration of Oracle AI Database on an Oracle RAC cluster.

Create the OSRACDBA group using the groups name racdba unless a group with that name already exists:

# /usr/sbin/groupadd -g 54330 racdba

Page 59 of 187

Creating Operating System Oracle Installation User Accounts

Before starting installation, create Oracle software owner user accounts, and configure their environments.

Oracle software owner user accounts require resource settings and other environment configuration. To protect against accidents, Oracle recommends that you create one software installation owner account for each Oracle software program you install.

Creating an Oracle Software Owner User

If the Oracle software owner user (oracle or grid) does not exist, or if you require a new Oracle software owner user, then create it as described in this section.

The following example shows how to create the user oracle with the user ID 54321; with the primary group oinstall; and with secondary groups dba, asmdba, backupdba, dgdba, kmdba, and racdba:

# /usr/sbin/useradd -u 54321 -g oinstall -G dba,asmdba,backupdba,dgdba,kmdba,racdba oracle

The following example shows how to create the user grid with the user ID 54331; with the primary group oinstall; and with secondary groups asmadmin, asmdba, and racdba:

# /usr/sbin/useradd -u 54331 -g oinstall -G asmadmin,asmdba,racdba grid

You must note the user ID number for installation users, because you need it during preinstallation.

Modifying Oracle Owner User Groups

If you have created an Oracle software installation owner account, but it is not a member of the groups you want to designate as the OSDBA, OSOPER, OSDBA for ASM, ASMADMIN, or other system privileges group, then modify the group settings for that user before installation.

Warning:

Each Oracle software owner must be a member of the same central inventory group. Do not modify the primary group of an existing Oracle software owner account, or designate different groups as the OINSTALL group. If Oracle software owner accounts have different groups as their primary group, then you can corrupt the central inventory.

During installation, the user who is installing the software should have the OINSTALL group as its primary group, and it must be a member of the operating system groups appropriate for your installation. For example:

# /usr/sbin/usermod -g oinstall -G dba,asmdba,backupdba,dgdba,kmdba,racdba[,oper] oracle

Page 60 of 187

Checking Resource Limits for Oracle Software Installation Users

For each installation software owner user account, check the resource limits for installation.

On Oracle Linux systems, Oracle recommends that you install Oracle AI Database Preinstallation RPMs to meet preinstallation requirements like configuring your operating system to set the resource limits in the limits.conf file.

Use the following ranges as guidelines for resource allocation to Oracle software installation owners for standard installations and to Oracle Grid Infrastructure software installation owners for job role separation:

Table: Oracle Software Installation Owner and Oracle Grid Infrastructure Software Installation Owner Resource Limit Recommended Ranges

Resource Shell LimitResourceSoft LimitHard Limit
Open file descriptorsnofileat least 1024at least 65536
Number of processes available to a single usernprocat least 2047at least 16384
Size of the stack segment of the processstackat least 10240 KBat least 10240 KB, and at most 32768 KB
Maximum locked memory limitmemlock

at least 90 percent of the current RAM when HugePages memory is enabled and at least 3145728 KB (3 GB) when HugePages memory is disabled.

Note: unlimited on Exadata systems.

at least 90 percent of the current RAM when HugePages memory is enabled and at least 3145728 KB (3 GB) when HugePages memory is disabled

Note: unlimited on Exadata systems.

Use the cluvfy comp sys -p crs command to check the resource limits automatically.

To check resource limits manually:

  1. Log in as an installation owner.
  2. Check the soft and hard limits for the file descriptor setting. Ensure that the result is in the recommended range. For example:

    $ ulimit -Sn
    1024
    $ ulimit -Hn
    65536
  3. Check the soft and hard limits for the number of processes available to a user. Ensure that the result is in the recommended range. For example:

    $ ulimit -Su
    2047
    $ ulimit -Hu
    16384
  4. Check the soft limit for the stack setting. Ensure that the result is in the recommended range. For example:

    $ ulimit -Ss
    10240
    $ ulimit -Hs
    32768
  5. Repeat this procedure for each Oracle software installation owner.

If necessary, update the resource limits in the /etc/security/limits.conf configuration file for the installation owner. However, the configuration file may be distribution specific. Contact your system administrator for distribution specific configuration file information.

Note:

If you make changes to an Oracle installation user account and that user account is logged in, then changes to the limits.conf file do not take effect until you log these users out and log them back in. You must do this before you use these accounts for installation.

Page 61 of 187

Creating Oracle Database Vault User Accounts

If you intend to use Oracle Database Vault by default, then you must create an Oracle Database Vault user account, and configure that user.

You must create the Database Vault Owner account before you can use Oracle Database Vault. You can also create a Database Vault Account Manager administrative account.

Oracle Database Vault installs a baseline database auditing policy. This policy covers the access control configuration information stored in Oracle Database Vault database tables, information stored in Oracle Catalog (rollback segments, tablespaces, and so on), the use of system privileges, and Oracle Label Security configuration. When you install Oracle Database Vault, the security specific database initialization parameters are initialized with default values.

Related Topics

Page 62 of 187

Configuring Software Owner User Environments

Understand the software owner user environments to configure before installing Oracle software.

You run the installer software with the installation owner user account (oracle or grid). However, before you start the installer, you must configure the environment of the installation owner user account. If needed, you must also create other required Oracle software owners.

Environment Requirements for Oracle Software Owners

Review these requirements for Oracle software owner environments.

You must make the following changes to configure Oracle software owner environments:

  • Set the installation software owner user ( grid, oracle ) default file mode creation mask (umask) to 022 in the shell startup file. Setting the mask to 022 ensures that the user performing the software installation creates files with 644 permissions.
  • Set ulimit settings for file descriptors and processes for the installation software owner ( grid, oracle ).
  • Set the DISPLAY environment variable in preparation for running an Oracle Universal Installer (OUI) installation.

Caution:

If you have existing Oracle installations that you installed with the user ID that is your Oracle Grid Infrastructure software owner, then unset all Oracle environment variable settings for that user.

Procedure for Configuring Oracle Software Owner Environments

Configure each Oracle installation owner user account environment:

  1. Start an X terminal session (xterm) on the server where you are running the installation.
  2. Enter the following command to ensure that X Window applications can display on this system, where hostname is the fully qualified name of the local host from which you are accessing the server:

    $ xhost + hostname
  3. If you are not logged in as the software owner user, then switch to the software owner user you are configuring. For example, with the user grid:

    $ su - grid

    On systems where you cannot run su commands, use sudo instead:

    $ sudo -u grid -s
  4. To determine the default shell for the user, enter the following command:

    $ echo $SHELL
  5. Open the user's shell startup file in any text editor:

    • Bash shell (bash):

      $ vi .bash_profile
    • Bourne shell (sh) or Korn shell (ksh):

      $ vi .profile
    • C shell (csh or tcsh):

      % vi .login
  6. Enter or edit the following line, specifying a value of 022 for the default file mode creation mask:

    umask 022
  7. If the ORACLE_SID, ORACLE_HOME, or ORACLE_BASE environment variables are set in the file, then remove these lines from the file.
  8. Save the file, and exit from the text editor.
  9. To run the shell startup script, enter one of the following commands:

    • Bash shell:

      $ . ./.bash_profile
    • Bourne, Bash, or Korn shell:

      $ . ./.profile
    • C shell:

      % source ./.login
  10. Use the following command to check the PATH environment variable:
    $ echo $PATH

    Remove any Oracle environment variables.

  11. Unset any Oracle environment variables.

    If you have an existing Oracle software installation, and you are using the same user to install this installation, then unset the $ORACLE_HOME, $ORA_NLS10, and $TNS_ADMIN environment variables.

    If you have set $ORA_CRS_HOME as an environment variable, then unset it before starting an installation or upgrade. Do not use $ORA_CRS_HOME as a user environment variable, except as directed by Oracle Support.

  12. If you are not installing the software on the local system, then enter a command similar to the following to direct X applications to display on the local system:
    • Bourne, Bash, or Korn shell:

      $ export DISPLAY=local_host:0.0
    • C shell:

      % setenv DISPLAY local_host:0.0

    In this example, local_host is the host name or IP address of the system (your workstation, or another client) on which you want to display the installer.

  13. If the /tmp directory has less than 1 GB of free space, then identify a file system with at least 1 GB of free space and set the TMP and TMPDIR environment variables to specify a temporary directory on this file system:

    Note:

    You cannot use a shared file system as the location of the temporary file directory (typically /tmp) for Oracle RAC installations. If you place /tmp on a shared file system, then the installation fails.

    1. Use the df -h command to identify a suitable file system with sufficient free space.
    2. If necessary, enter commands similar to the following to create a temporary directory on the file system that you identified, and set the appropriate permissions on the directory:

      $ sudo -s
      # mkdir /mount_point/tmp
      # chmod 775 /mount_point/tmp
      # exit
    3. Enter commands similar to the following to set the TMP and TMPDIR environment variables:

      Bourne, Bash, or Korn shell:

      $ TMP=/mount_point/tmp
      $ TMPDIR=/mount_point/tmp
      $ export TMP TMPDIR

      C shell:

      % setenv TMP /mount_point/tmp
      % setenv TMPDIR /mount_point/tmp
  14. To verify that the environment has been set correctly, enter the following commands:
    $ umask
    $ env | more

    Verify that the umask command displays a value of 22, 022, or 0022 and that the environment variables you set in this section have the correct values.

Unsetting Oracle Installation Owner Environment Variables

Unset Oracle installation owner environment variables before you start the installation.

The environment variables you have set for the Oracle installation owner account you use to run the installation can cause issues if they are set to values that conflict with the values needed for installation.

If you have set ORA_CRS_HOME as an environment variable, following instructions from Oracle Support, then unset it before starting an installation or upgrade. You should never use ORA_CRS_HOME as an environment variable except under explicit direction from Oracle Support.

If you have had an existing installation on your system, and you are using the same user account to install this installation, then unset the following environment variables: ORA_CRS_HOME, ORACLE_HOME, ORA_NLS10, TNS_ADMIN, and any other environment variable set for the Oracle installation user that is connected with Oracle software homes.

Also, ensure that the $ORACLE_HOME/bin path is removed from your PATH environment variable.

Page 63 of 187

Configuring Networks for Oracle AI Database

About Oracle AI Database Network Configuration Options

Oracle AI Database requires no special network configuration on a server with a static, resolvable host name, IP address, and at least one network interface. Special considerations apply to multihomed, multialias, or temporarily non-networked computers, including ensuring firewall ports are open and configuring connectivity or database services as needed. Network interfaces and switches should support at least 1 GbE, with 25 GbE or higher recommended for NVMe-oF storage.

Read More: About Oracle AI Database Network Configuration Options

About Assigning Global Database Names During Installation

During installation, the database name defines the DB_NAME, DB_UNIQUE_NAME, and DB_DOMAIN values. The global database name combines the database name and domain to uniquely identify the database on a network, while the SID uniquely identifies a database instance on a host. Database and domain names have defined length and character restrictions, and DB_NAME does not have to be the first eight characters of DB_UNIQUE_NAME.

Read More: About Assigning Global Database Names During Installation

Network Configuration for Computers Completed After Installation

Oracle AI Database can be installed on computers without fixed network addresses, including DHCP-configured systems, but the computer must be able to resolve and reach itself. Before installation, use ping with both the host name and fully qualified host name, verifying that the expected local IP address is returned and that the fully qualified name is defined in /etc/hosts. After networking is enabled, the system can use either static IP addressing or DHCP.

Read More: Network Configuration for Computers Completed After Installation

Network Configuration for Multihome Computers

Installing Oracle AI Database on a multihomed computer requires setting ORACLE_HOSTNAME to identify the appropriate host name or interface. Oracle Universal Installer uses this value when available, or otherwise derives host information from /etc/hosts and installation inputs. Clients must resolve and ping both the host name and fully qualified domain name associated with the database instance or alias.

Read More: Network Configuration for Multihome Computers

Setting the ORACLE_HOSTNAME Environment Variable

Set ORACLE_HOSTNAME as the Oracle installation user before installation, using export in Bourne, Bash, or Korn shells or setenv in the C shell. The value should be the fully qualified host name intended for the Oracle AI Database installation.

Read More: Setting the ORACLE_HOSTNAME Environment Variable

Network Configuration for Computers with Multiple Aliases

Installing Oracle AI Database on a computer with multiple host aliases requires setting ORACLE_HOSTNAME to the preferred host name. These aliases resolve to the same IP address through the naming service, so the environment variable determines which computer name Oracle uses during installation.
Read More: Network Configuration for Computers with Multiple Aliases

Page 64 of 187

About Oracle AI Database Network Configuration Options

If you install Oracle AI Database on servers with multiple Oracle homes, multiple aliases, or without a static IP address, then review these network configuration topics.

If you are installing Oracle AI Database on a server with a static host name and IP address and at least one network interface, then no special network configuration is required.

Note:

If you have a firewall running, ensure that all the required ports are open. See, Oracle AI Database Component Port Numbers and Protocols for a list of port numbers and protocols configured for Oracle AI Database components.

You can enable database clients to connect to servers associated with multiple IP addresses, and you can install Oracle AI Database on servers with no network connections, and set up database services after installation.

Typically, the computer on which you want to install Oracle AI Database is a server running a single database instance, with a single host name that is resolvable on a network. Oracle Universal Installer uses the host name and Oracle AI Database instance information to set up network services automatically. The database provides database services to clients using a connect descriptor that resolves to the host name where the database instance is running.

However, you can configure Oracle AI Database on servers with the following nonstandard configurations:

  • Multihomed Computers: Servers with multiple network interfaces (physical or virtual), each configured with its own IP address, allowing servers to connect to multiple networks simultaneously.
  • Multiple Alias Computers: Servers with multiple aliases, so that more than one host name resolves to the computer
  • Non-Networked computers: Servers that do not have network connectivity at the time of installation

Note:

The switches and network interfaces must be at least 1 GbE. For NVMe over Fabrics (NVMe-oF) storage devices, Oracle recommends that you use a 25 GbE or higher Ethernet network interface card.

Page 65 of 187

About Assigning Global Database Names During Installation

The database name input field is used to set the DB_NAME, DB_UNIQUE_NAME, and DB_DOMAIN Oracle initialization parameter values.

The Oracle AI Database software identifies a database by its global database name. A global database name consists of the database name and database domain. Usually, the database domain is the same as the network domain, but it need not be. The global database name uniquely distinguishes a database from any other database in the same network. You specify the global database name when you create a database during the installation or using the Oracle Database Configuration Assistant.

For example:

sales.us.example.com

Here:

  • sales.us is the name of the database. The database name, DB_UNIQUE_NAME , portion is a string of no more than 30 characters that can contain alphanumeric characters, underscore (_), dollar sign ($), and pound sign (#) but must begin with an alphabetic character. No other special characters are permitted in a database name.
  • sales.us is also the DB_NAME . The DB_NAME initialization parameter specifies a database identifier of up to eight characters.
  • example.com is the database domain in which the database is located. In this example, the database domain equals the network domain. Together, the database name and the database domain make the global database name unique. The domain portion is a string of no more than 128 characters that can contain alphanumeric characters, underscore (_), and pound sign (#). The DB_DOMAIN initialization parameter specifies the database domain name.

However, the DB_NAME parameter need not necessarily be the first eight characters of DB_UNIQUE_NAME.

The DB_NAME parameter and the DB_DOMAIN parameter combine to create the global database name value.

The system identifier (SID) identifies a specific database instance. The SID uniquely distinguishes the instance from any other instance on the same computer. Each database instance requires a unique SID and database name. In most cases, the SID equals the database name portion of the global database name.

Related Topics

Page 66 of 187

Network Configuration for Computers Completed After Installation

You must confirm that a non-networked computer can connect to itself to ensure that you can configure client network resolution after installation. A non-networked computer is a computer that does not have a fixed network address, such as a computer using DHCP.

You can install Oracle AI Database on a non-networked computer. If the computer, such as a laptop, is configured for DHCP and you plan to connect the computer to the network after the Oracle AI Database installation, then use the ping command on the computer on which you want to install the database to check if the computer can connect to itself. Perform this step by first using only the host name and then using the fully qualified name, which should be in the /etc/hosts file.

If you connect the computer to a network after installation, then the Oracle AI Database instance on the computer can work with other instances on the network. The computer can use a static IP or DHCP, depending on the network to which you are connected.

When you run the ping command on the computer itself, the ping command should return the IP address of the computer. If the ping command fails, then contact your network administrator.

Page 67 of 187

Network Configuration for Multihome Computers

You must set the ORACLE_HOSTNAME environment variable to install Oracle AI Database on a multihomed computer. A multihomed computer is associated with multiple IP addresses.

Typically, a server configured to run multiple Oracle AI Database Oracle homes is configured with multiple network interface cards. A host name resolves to an IP address configured for one network card for each Oracle AI Database. You can also set up aliases for host names. By default, during installation, Oracle Universal Installer uses the value set for the environment variable ORACLE_HOSTNAME set for the Oracle installation user account running the installation to find the host name. If the user environment variable ORACLE_HOSTNAME is not set for the Oracle user, and you are installing on a computer that has multiple network cards, then Oracle Universal Installer determines the host name from the /etc/hosts file and the information you provide during the installation session.

Oracle AI Database clients connecting to the database must be able to access the computer by using either the alias for the host name, or by using the host name associated with that instance. To verify that the client can resolve to the database using both alias and host name, use the ping command to check connectivity to the host name both for the database on the server (host name only), and for the fully qualified domain name (host name and domain name).

Note:

Clients must be able to obtain a response using the ping command both for the host name and for the fully qualified domain name. If either test fails, then contact your network administrator to resolve the issue.

Page 68 of 187

Setting the ORACLE_HOSTNAME Environment Variable

Run the commands shown in this example as the Oracle user account to set the ORACLE_HOSTNAME environment variable.

The following example shows the commands to run on the Oracle user account to set the ORACLE_HOSTNAME environment variable. In this example, the fully qualified host name is somehost.example.com.

Bourne, Bash or Korn Shell

$ export ORACLE_HOSTNAME=somehost.example.com

C Shell

% setenv ORACLE_HOSTNAME somehost.example.com

Page 69 of 187

Network Configuration for Computers with Multiple Aliases

You must set the ORACLE_HOSTNAME environment variable to install Oracle AI Database on a multialias computer. A multialias computer is one to which multiple aliases resolve.

A computer with multiple aliases is a computer that is registered with the naming service under a single IP address, but which resolves multiple aliases to that address. The naming service resolves any of those aliases to the same computer. Before installing Oracle AI Database on such a computer, set the Oracle installation owner environment variable ORACLE_HOSTNAME to the computer whose host name you want to use.

Page 70 of 187

Supported Storage Options for Oracle AI Database and Oracle Grid Infrastructure

Review supported storage options as part of your installation planning process.

Supported Storage Options for Oracle AI Database

Oracle AI Database supports Oracle ASM, Oracle ACFS, local file systems, NFS on NAS, and NVMe-oF for different file types. ASM and NVMe-oF support data and recovery files but not binaries, while ACFS, local file systems, and NFS support binaries; local file systems are not recommended for data or recovery files. Use dedicated ASM disks, avoid loopback, raw, and block devices, and select combinations that meet all storage requirements. ASM can also store Oracle Clusterware files.

Read More: Supported Storage Options for Oracle AI Database

About Oracle Grid Infrastructure for a Standalone Server

Oracle Grid Infrastructure for a standalone server combines Oracle Restart and Oracle ASM for single-instance databases, providing volume management, file-system services, monitoring, and automatic restart. Oracle Restart starts components in the correct order, monitors their health, and recovers failed database instances, listeners, services, and ASM instances. It must be installed before using ASM unless installed and registered afterward, is limited to nonclustered environments, and cannot be used on cluster-member nodes; clustered systems require Grid Infrastructure for a Cluster.

Read More: About Oracle Grid Infrastructure for a Standalone Server

Oracle ACFS and Oracle ADVM

Oracle ACFS extends ASM to provide general-purpose file-system support for single-instance and clustered environments, while Oracle ADVM supplies volume management and the device interface through which ACFS accesses ASM. ACFS and ADVM support specified Oracle Linux, Red Hat Enterprise Linux, and SUSE Linux Enterprise Server kernels, but not Linux Containers; kernel patches and appropriate SELinux configuration may be required. ACFS requires ASM, can store binaries and administrative files, and has restrictions on database-file encryption, replication, Clusterware files, Oracle Restart resources, and data files, particularly in standalone Oracle Restart configurations.

Read More: Oracle ACFS and Oracle ADVM

File System Options for Oracle AI Database

Oracle AI Database files can be created on physically attached disks, LVM or RAID volumes, or NFS mounted from NAS, with Direct NFS available to simplify administration and improve performance. Oracle recommends separating database storage from operating-system and Oracle software file systems, distributing files across disks when appropriate, and using SAME for striped and mirrored storage. Oracle Managed Files can further automate file naming and management by allowing database object names instead of explicit file names.

Read More: File System Options for Oracle AI Database

Guidelines for Placing Oracle AI Database Files On a File System or Logical Volume

Database file systems should use storage dedicated to the database and may consist of one or multiple file systems. A single file system should preferably reside on RAID or a multi-device logical volume using SAME, while multiple file systems should use separate physical devices to distribute I/O, separate control files, and support OFA practices. Installation requires at least 2 GB of free space for a preconfigured database, with greater capacity planned for production, and the installation user must have write access to the selected paths.

Read More: Guidelines for Placing Oracle AI Database Files On a File System or Logical Volume

About NFS Storage for Data Files

NFS on NAS provides shared file access suitable for both single-instance and Oracle RAC databases. Database performance depends heavily on the network and NAS infrastructure, so dedicated private connections using Gigabit Ethernet or faster are recommended. Before installation, all required NFS file systems must be correctly configured, mounted, and available to the relevant servers.

Read More: About NFS Storage for Data Files

About Direct NFS Client Mounts to NFS Storage Devices

Direct NFS Client integrates NFS access into Oracle software to optimize database I/O, supports NFSv3, NFSv4, NFSv4.1, and pNFS, and can use a dispatcher to improve scalability for large or parallel NFS deployments. NFS servers require a write size of at least 32768, and mount points must be available to both the operating-system NFS client and dNFS for fallback support. dNFS searches configured mount files in a defined order, permits only one active NFS client implementation per instance, defaults to NFSv3 when unspecified, and maps unsupported NFSv4.2 requests to NFSv4.1.
Read More: About Direct NFS Client Mounts to NFS Storage Devices

Page 71 of 187

Supported Storage Options for Oracle AI Database

The following table shows the storage options supported for Oracle AI Database binaries and files:

Table: Supported Storage Options for Oracle AI Database

Storage OptionOracle AI Database BinariesOracle AI Database Data FilesOracle AI Database Recovery Files
Oracle Automatic Storage Management (Oracle ASM)NoYesYes
Oracle Advanced Cluster File System (Oracle ACFS)YesYesYes
Local file systemYesYes, but not recommendedYes, but not recommended
Network file system (NFS) on a network-attached storage (NAS) filerYesYesYes
NVMe over Fabrics (NVMe-oF) storage devicesNoYesYes

Guidelines for Storage Options

Use the following guidelines when choosing storage options:

  • Oracle strongly recommends that you use a dedicated set of disks for Oracle ASM.
  • Loopback devices are not supported for use with Oracle ASM.
  • You can choose any combination of the supported storage options for each file type provided that you satisfy all requirements listed for the chosen storage options.
  • You can use Oracle ASM to store Oracle Clusterware files.
  • Direct use of raw or block devices is not supported.

Related Topics

Page 72 of 187

About Oracle Grid Infrastructure for a Standalone Server

If you plan to use Oracle Automatic Storage Management (Oracle ASM), then you must install Oracle Restart before installing your database.

Oracle Grid Infrastructure for a standalone server is a version of Oracle Grid Infrastructure that supports single instance databases. This support includes volume management, file system, and automatic restart capabilities. Oracle Grid Infrastructure for a standalone server includes Oracle Restart and Oracle Automatic Storage Management. Oracle combined the two infrastructure products into a single set of binaries that is installed into an Oracle Restart home.

Oracle Restart is a feature provided as part of Oracle Grid Infrastructure. Oracle Restart monitors and can restart Oracle AI Database instances, Oracle Net Listeners, and Oracle ASM instances. Oracle Restart is currently restricted to manage single instance Oracle AI Database and Oracle ASM instances only.

Oracle Automatic Storage Management is a volume manager and a file system for Oracle AI Database files that supports single-instance Oracle AI Database and Oracle Real Application Clusters (Oracle RAC) configurations. Oracle Automatic Storage Management also supports a general purpose file system for your application needs, including Oracle AI Database binaries. Oracle Automatic Storage Management is Oracle's recommended storage management solution that provides an alternative to conventional volume managers, and file systems.

Oracle Restart improves the availability of your Oracle AI Database by providing the following services:

  • When there is a hardware or a software failure, Oracle Restart automatically starts all Oracle components, including the Oracle AI Database instance, Oracle Net Listener, database services, and Oracle ASM.
  • Oracle Restart starts components in the proper order when the database host is restarted.
  • Oracle Restart runs periodic checks to monitor the status of Oracle components. If a check operation fails for a component, then the component is shut down and restarted.

Note the following restrictions for using Oracle Restart:

  • You can neither install Oracle Restart on an Oracle Grid Infrastructure cluster member node, nor add an Oracle Restart server to an Oracle Grid Infrastructure cluster member node. Oracle Restart supports single-instance databases on one server, while Oracle Grid Infrastructure for a Cluster supports single-instance or Oracle RAC databases on a cluster.
  • If you want to use Oracle ASM or Oracle Restart, then you should install Oracle Grid Infrastructure for a standalone server before you install and create the database. Otherwise, you must install Oracle Restart, and then manually register the database with Oracle Restart.
  • You can use the Oracle Restart implementation of Oracle Grid Infrastructure only in single-instance (nonclustered) environments. Use Oracle Grid Infrastructure for a Cluster for clustered environments.

Page 73 of 187

Oracle ACFS and Oracle ADVM

Oracle Advanced Cluster File System (Oracle ACFS) extends Oracle ASM technology to support of all of your application data in both single instance and cluster configurations.

Oracle Automatic Storage Management Dynamic Volume Manager (Oracle ADVM) provides volume management services and a standard disk device driver interface to clients. Oracle ACFS communicates with Oracle ASM through the Oracle ADVM interface.

Note:

Starting with Oracle Database 21c, the name of Oracle Automatic Storage Management Cluster File System (Oracle ACFS) is changed to Oracle Advanced Cluster File System (Oracle ACFS).

This change is only a change of the name. The basic function of Oracle's cluster file system continues to be the same. Oracle continues to develop and enhance Oracle ACFS.

Related Topics

Oracle ACFS and Oracle ADVM Support on Linux x86-64

Oracle ACFS and Oracle ADVM are supported on Oracle Linux, Red Hat Enterprise Linux, and SUSE Linux Enterprise Server.

Table: Platforms That Support Oracle ACFS and Oracle ADVM

Platform / Operating SystemKernel
Oracle Linux 9All Oracle Linux 9.3 Unbreakable Enterprise Linux (UEK) kernels; Red Hat Compatible Kernel (RHCK) 9.3 and later kernels.
Oracle Linux 8All Oracle Linux 8.8 Unbreakable Enterprise Linux (UEK) kernels; Red Hat Compatible Kernel (RHCK) 8.8 and later kernels.
Red Hat Enterprise Linux 9.2Red Hat Enterprise Linux 9.2 and later kernels.
Red Hat Enterprise Linux 8.8Red Hat Enterprise Linux 8.8 and later kernels.
SUSE Linux Enterprise Server 15SUSE Linux Enterprise Server 15 SP5 and later kernels
Linux ContainersNot supported

Important:

You must apply patches to some of the Linux kernel versions for successful Oracle Grid Infrastructure installation. Refer to the following notes for more information:

Note:

Full Security Enhanced Linux (SELinux) support is available in Oracle Grid Infrastructure releases 19.27, 21.18, 23.7 and later. Refer to your Linux vendor documentation for information about using per-file context labels. When using SELinux with Oracle ACFS in releases prior to these, ensure that the Oracle ACFS file systems are mounted with an SELinux default context. Refer to your Linux vendor documentation for information about the context mount option.

Restrictions and Guidelines for Oracle ACFS

Review these topics as part of your storage plan for using Oracle ACFS for single instance and cluster configurations.

ACFS Restrictions for Oracle AI Database and Oracle Grid Infrastructure

Oracle Advanced Cluster File System (Oracle ACFS) provides a general purpose file system. You can only use Oracle ACFS when Oracle ASM is configured.

Note the following general guidelines and restrictions for placing Oracle AI Database and Oracle Grid Infrastructure files on Oracle ACFS:

  • You can place Oracle AI Database binaries, data files, and administrative files (for example, trace files) on Oracle ACFS.
  • Oracle ACFS does not support encryption or replication with Oracle AI Database data files, tablespace files, control files, redo logs, archive logs, RMAN backups, Data Pump dumpsets, and flashback files.
  • You can place Oracle AI Database homes on Oracle ACFS.
  • For installations on Oracle Clusterware, you cannot place Oracle Clusterware files on Oracle ACFS.
ACFS Restrictions for Oracle Restart

Oracle Restart does not support root-based Oracle Clusterware resources. For this reason, the following restrictions apply if you run Oracle ACFS on an Oracle Restart Configuration:

  • Configuration assistants do not allow the creation of Oracle AI Database homes on Oracle ACFS in an Oracle Restart configuration.
  • Oracle Restart does not support Oracle ACFS resources on all platforms.
  • Oracle Restart configurations do not support the Oracle ACFS registry.
  • On Linux, Oracle ACFS provides an automated mechanism to load and unload drivers and mount and unmount Oracle ACFS file systems on system restart and shutdown. However, Oracle ACFS does not provide automated recovery of mounted file systems when the system is running. Other than Linux, Oracle ACFS does not provide this automated mechanism on other operating systems.
  • Creating Oracle data files on an Oracle ACFS file system is not supported in Oracle Restart configurations. Creating Oracle data files on an Oracle ACFS file system is supported on Oracle Grid Infrastructure for a cluster configurations.

Related Topics

Page 74 of 187

File System Options for Oracle AI Database

If you install Oracle AI Database files on a file system, then Oracle Database Configuration Assistant creates the database files in a directory on a file system mounted on the computer.

Oracle recommends that the file system be separate from the file systems used by the operating system or the Oracle AI Database software.

The file system can be any of the following:

Standard Oracle AI Database Creation Options

  • A file system on a disk that is physically attached to the system.

    If you are creating a database on basic disks that are not logical volumes or RAID devices, then Oracle recommends that you follow the Optimal Flexible Architecture (OFA) recommendations and distribute the database files over many disks.

  • A file system on a logical volume manager (LVM) volume or a RAID device.

    If you are using multiple disks in an LVM or RAID configuration, then Oracle recommends that you use the Stripe and Mirror Everything (S.A.M.E) methodology to increase performance and reliability. Using this methodology, you do not have to specify multiple file system mount points for the database storage.

  • A network file system (NFS) mounted from a network-attached storage (NAS) device. You also have the option to use Direct NFS Client, which simplifies the administration of NFS configurations and also improves performance.

Advanced Oracle AI Database Creation Options

  • The three file system options available to standard Oracle AI Database installations.
  • With Oracle Managed Files, you specify file system directories in which the database automatically creates, names, and manages files at the database object level.

    If you use the Oracle Managed Files feature, then you must specify only the database object name instead of file names when creating or deleting database files.

Related Topics

Page 75 of 187

Guidelines for Placing Oracle AI Database Files On a File System or Logical Volume

If you choose to place the Oracle AI Database files on a file system, then use the following guidelines when deciding where to place them:

  • The default path suggested by Oracle Universal Installer for the database file directory is a subdirectory of the Oracle base directory.
  • You can choose either a single file system or more than one file system to store the database files:

    • If you want to use a single file system, then choose a file system on a physical device that is dedicated to the database. For best performance and reliability, choose a RAID device or a logical volume on more than one physical device, and implement a stripe-and-mirror-everything (SAME) storage policy.
    • If you want to use more than one file system, then choose file systems on separate physical devices that are dedicated to the database. This method enables you to distribute physical input-output operations and create separate control files on different devices for increased reliability. It also enables you to fully implement Oracle Optimal Flexible Architecture (OFA) guidelines. Choose the Advanced database creation option to implement this method.
  • If you intend to create a preconfigured database during the installation, then the file system (or file systems) that you choose must have at least 2 GB of free disk space. For production databases, you must estimate the disk space requirement depending on the use of the database.
  • For optimum performance, the file systems that you choose must be on physical devices that are used only by the database.
  • The Oracle user running the Oracle AI Database installation must have write permissions to create the files in the path that you specify.

Page 76 of 187

About NFS Storage for Data Files

Review this section for NFS storage configuration guidelines.

Network-Attached Storage and NFS Protocol

Network-attached storage (NAS) systems use the network file system (NFS) protocol to access files over a network, which enables client servers to access files over networks as easily as to storage devices attached directly to the servers. You can store data files on supported NFS systems. NFS is a shared file system protocol, so NFS can support both single instance and Oracle Real Application Clusters databases.

Note:

The performance of Oracle software and databases stored on NAS devices depends on the performance of the network connection between the servers and the network-attached storage devices. For better performance, Oracle recommends that you connect servers to NAS devices using private dedicated network connections. NFS network connections should use Gigabit Ethernet or better.

Refer to your vendor documentation to complete NFS configuration and mounting.

Requirements for Using NFS Storage

Before you start installation, NFS file systems must be mounted and available to servers.

Page 77 of 187

About Direct NFS Client Mounts to NFS Storage Devices

Direct NFS (dNFS) Client integrates the NFS client functionality directly in the Oracle software to optimize the I/O path between Oracle and the NFS server. This integration can provide significant performance improvements.

Direct NFS Client supports NFSv3, NFSv4, NFSv4.1, and pNFS protocols to access the NFS server. Direct NFS Client also simplifies, and in many cases automates, the performance optimization of the NFS client configuration for database workloads.

When you enable Direct NFS, you can also enable the Direct NFS dispatcher. The Direct NFS dispatcher consolidates the number of TCP connections that are created from a database instance to the NFS server. In large database deployments, using Direct NFS dispatcher improves scalability and network performance. Parallel NFS deployments also require a large number of connections. Hence, the Direct NFS dispatcher is recommended with Parallel NFS deployments too.

Direct NFS Client can obtain NFS mount points either from the operating system mount entries, or from the oranfstab file.

Direct NFS Client Requirements

  • NFS servers must have write size values ( wtmax ) of 32768 or greater to work with Direct NFS Client.
  • NFS mount points must be mounted both by the operating system kernel NFS client and Direct NFS Client, even though you configure Direct NFS Client to provide file service.

    If Oracle AI Database cannot connect to an NFS server using Direct NFS Client, then Oracle AI Database connects to the NFS server using the operating system kernel NFS client. When Oracle AI Database fails to connect to NAS storage though Direct NFS Client, it logs an informational message about the Direct NFS Client connect error in the Oracle alert and trace files.

  • Follow standard guidelines for maintaining integrity of Oracle AI Database files mounted by both operating system NFS and by Direct NFS Client.

Direct NFS Mount Point Search Order

Direct NFS Client searches for mount entries in the following order:

  1. ORACLE_BASE_HOME/dbs/oranfstab
  2. ORACLE_BASE_CONFIG/dbs/oranfstab
  3. /etc/oranfstab
  4. /etc/mtab

Direct NFS Client uses the first matching entry as the mount point.

Note:

You can have only one active NFS Client implementation for each instance. Enabling Direct NFS Client on an instance prevents you from using another NFS Client implementation, such as kernel NFS Client.

  • To print the ORACLE_BASE_HOME path, run:

    $ setenv ORACLE_HOME /u01/app/oracle/product/23.0.0/dbhome_1
    $ cd $ORACLE_HOME/bin
    $ ./orabasehome
  • To print the ORACLE_BASE_CONFIG path, run:

    $ setenv ORACLE_HOME /u01/app/oracle/product/23.0.0/dbhome_1
    $ cd $ORACLE_HOME/bin
    $ ./orabaseconfig

Default NFS Version Selection

The Direct NFS Client uses the following rules to determine the default NFS protocol version:

  1. If a matching mount entry is found in oranfstab and nfs_version is specified, then dNFS uses the specified version.
  2. If a matching mount entry is found in oranfstab and nfs_version is not specified, then dNFS uses NFSv3.
  3. If a matching mount entry is not found in oranfstab or if oranfstab is not present, then dNFS queries the operating system mount table ( mtab ) and uses the NFS version configured for the mount.
  4. If the specified version in oranfstab or mtab is NFSv4.2, then dNFS uses NFSv4.1 because NFSv4.2 is not supported.

See also

Page 78 of 187

Configuring File System Storage for Oracle AI Database

About File System Storage for Oracle AI Database

This page outlines procedures for using file system storage with Oracle AI Database and recommends placing database data files and Oracle software on separate disks for organization and performance. It also notes that Oracle Persistent Memory Database and Oracle Memory Speed File System are deprecated in release 26ai because Intel is discontinuing Optane Persistent Memory hardware.

Read More: About File System Storage for Oracle AI Database

Deploying Oracle Direct NFS for Oracle AI Database

This page describes deploying Oracle Direct NFS for databases using NFS storage, including recommended separation of database files and software, NFS buffer settings of at least 32768, TCP buffer tuning for network performance, and creation of an oranfstab configuration file. It explains server, network path, export, mount, timeout, protocol version, routing, management, community, and security attributes, including Kerberos options, and provides configuration examples for multiple paths, exports, and authentication modes.

Read More: Deploying Oracle Direct NFS for Oracle AI Database

Enabling and Disabling Direct NFS Client Control of NFS

This page explains how to enable or disable Direct NFS Client control of NFS using the dnfs_on and dnfs_off make targets after configuring oranfstab. Disabling requires removing the configuration file, and databases using removed NFS paths must be restarted. It also describes enabling Hybrid Columnar Compression by verifying SNMP on the ZFS storage server, configuring management and community settings when needed, and ensuring the Net-SNMP library is installed.

Read More: Enabling and Disabling Direct NFS Client Control of NFS

Deploying a DAX-Enabled File System for Persistent Memory Database

This page explains how to deploy an XFS file system mounted with DAX for Persistent Memory Database, while noting that OMS File System is deprecated in Oracle AI Database 26ai because Intel is discontinuing Optane PMEM. The process requires an Intel PMEM device in fsdax mode, a DAX-capable XFS file system, an instance started in NOMOUNT mode, creation of a PMEM filestore, and database or tablespace creation. Recommended configuration includes 2 MB alignment, separate metadata and data partitions, 2 MB XFS extents, and mounting with appropriate DAX and real-time device options.

Read More: Deploying a DAX-Enabled File System for Persistent Memory Database

Creating a Database on PMEM Storage Using Oracle DBCA

This page describes using Oracle DBCA in interactive or silent mode to create a single-instance Oracle AI Database with PMEM storage. The workflow covers launching DBCA, selecting advanced configuration and a single-instance deployment, defining the global database name, SID, CDB and PDB options, and selecting PMEM File System as the database storage type. Users must specify the PMEM location and size, may enable Oracle Managed Files, and then complete the remaining configuration prompts.
Read More: Creating a Database on PMEM Storage Using Oracle DBCA

Page 79 of 187

About File System Storage for Oracle AI Database

Complete the procedures listed in these sections to use file system storage for Oracle AI Database.

For optimal database organization and performance, Oracle recommends that you install data files and the Oracle AI Database software in different disks.

  • Oracle Persistent Memory Database (PMEM) is deprecated as of Oracle AI Database 26ai due to Intel discontinuing Optane Persistent Memory hardware.

    Intel has announced they will discontinue the Optane Persistent Memory product. Therefore, Oracle Persistent Memory Database is being deprecated.

  • Oracle Memory Speed (OMS) File System is deprecated in Oracle AI Database 26ai for use with Intel Optane Persistent Memory.

    Intel has announced they will discontinue the Optane Persistent Memory product. Therefore, use of Oracle Memory Speed (OMS) File System is being deprecated.

Page 80 of 187

Deploying Oracle Direct NFS for Oracle AI Database

Complete these procedures to use file system storage for Oracle AI Database.

If you plan to place storage on Network File System (NFS) protocol devices, then Oracle recommends that you use Oracle Direct NFS (dNFS) to take advantage of performance optimizations built into the Oracle Direct NFS client.

For optimal database organization and performance, Oracle recommends that you install data files and the Oracle AI Database software in different disks.

Related Topics:

Configuring NFS Buffer Size Parameters for Oracle AI Database

Set the values for the NFS buffer size parameters rsize and wsize to at least 32768.

For example, to use rsize and wsize buffer settings with the value 32768 for an Oracle AI Database data files mount point, set mount point parameters to values similar to the following:

nfs_server:/vol/DATA/oradata /home/oracle/netapp nfs\
rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,actimeo=0,vers=3,timeo=600

Direct NFS Client issues writes at wtmax granularity to the NFS server.

Related Topics

Checking TCP Network Protocol Buffer for Direct NFS Client

Check your TCP network buffer size to ensure that it is adequate for the speed of your servers.

By default, the network buffer size is set to 1 MB for TCP, and 2 MB for UDP. The TCP buffer size can set a limit on file transfers, which can negatively affect performance for Direct NFS Client users.

To check the current TCP buffer size, enter the following command:

# sysctl -a |grep -e net.ipv4.tcp_[rw]mem

The output of this command is similar to the following:

net.ipv4.tcp_rmem = 4096        87380   1056768
net.ipv4.tcp_wmem = 4096        16384   1056768

Oracle recommends that you set the value based on the link speed of your servers. For example, perform the following steps:

  1. As root, use a text editor to open /etc/sysctl.conf, and add or change the following:

    net.ipv4.tcp_rmem = 4096        87380   4194304
    net.ipv4.tcp_wmem = 4096        16384   4194304
  2. Apply your changes by running the following command:

    # sysctl -p
  3. Restart the network:

    # /etc/rc.d/init.d/network restart

Creating an oranfstab File for Direct NFS Client

Direct NFS uses a configuration file, oranfstab, to determine the available mount points.

Create an oranfstab file with the following attributes for each NFS server that you want to access using Direct NFS Client:

  • server

    The NFS server name.

    For NFS setup with Kerberos authentication, the server attribute name must be the fully-qualified name of the NFS server. This server attribute name is used to create service principal for Ticket Granting Service (TGS) request from the Kerberos server. If you are configuring external storage snapshot cloning, then the NFS server name should be a valid host name. For all other scenarios, the NFS server name can be any unique name.

  • local

    Up to four paths on the database host, specified by IP address or by name, as displayed using the ifconfig command run on the database host.

  • path

    Up to four network paths to the NFS server, specified either by IP address, or by name, as displayed using the ifconfig command on the NFS server.

  • export

    The exported path from the NFS server.

  • mount

    The corresponding local mount point for the exported volume.

  • mnt_timeout

    Specifies (in seconds) the time Direct NFS Client should wait for a successful mount before timing out. This parameter is optional. The default timeout is 10 minutes (600).

  • nfs_version

    Specifies the NFS protocol version used by Direct NFS Client. Acceptable values are NFSv3, NFSv4, NFSv4.1, and pNFS. The default version is NFSv3. If you select NFSv4.x, then you must configure the value in oranfstab for nfs_version.

    Specify nfs_version as pNFS, if you want to use Direct NFS with Parallel NFS. Direct NFS supports only the default sys security authentication with Parallel NFS. Direct NFS does not support Parallel NFS when combined with any of the Kerberos authentication parameters.

  • security_default

    Specifies the default security mode applicable for all the exported NFS server paths for a server entry. This parameter is optional. sys is the default value. See the description of the security parameter for the supported security levels for the security_default parameter.

  • security

    Specifies the security level, to enable security using Kerberos authentication protocol with Direct NFS Client. This optional parameter can be specified per export-mount pair. The supported security levels for the security_default and security parameters are:

    • sys : UNIX level security AUTH_UNIX authentication based on user identifier (UID) and group identifier (GID) values. This is the default value for security parameters.
    • krb5 : Direct NFS runs with plain Kerberos authentication. Server is authenticated as the real server which it claims to be.
    • krb5i : Direct NFS runs with Kerberos authentication and NFS integrity. Server is authenticated and each of the message transfers is checked for integrity.
    • krb5p : Direct NFS runs with Kerberos authentication and NFS privacy. Server is authenticated, and all data is completely encrypted.

    The security parameter, if specified, takes precedence over the security_default parameter. If neither of these parameters are specified, then sys is the default authentication.

    For NFS server Kerberos security setup, review the relevant NFS server documentation. For Kerberos client setup, review the relevant operating system documentation.

  • dontroute

    Specifies that outgoing messages should not be routed by the operating system, but instead sent using the IP address to which they are bound.

    Note:

    The dontroute option is a POSIX option, which sometimes does not work on Linux systems with multiple paths in the same subnet.

  • management

    Enables Direct NFS Client to use the management interface for SNMP queries. You can use this parameter if SNMP is running on separate management interfaces on the NFS server. The default value is the server parameter value.

  • community

    Specifies the community string for use in SNMP queries. Default value is public.

The following examples show three possible NFS server entries in oranfstab. A single oranfstab can have multiple NFS server entries.

Example: Using Local and Path NFS Server Entries

The following example uses both local and path. Because they are in different subnets, you do not have to specify dontroute.

server: MyDataServer1
local: 192.0.2.0
path: 192.0.2.1
local: 192.0.100.0
path: 192.0.100.1
export: /vol/oradata1 mount: /mnt/oradata1

Example: Using Local and Path in the Same Subnet, with dontroute

Local and path in the same subnet, where dontroute is specified:

server: MyDataServer2
local: 192.0.2.0
path: 192.0.2.128
local: 192.0.2.1
path: 192.0.2.129
dontroute
export: /vol/oradata2 mount: /mnt/oradata2

Example: Using Names in Place of IP Addresses, with Multiple Exports, management and community

server: MyDataServer3
local: LocalPath1
path: NfsPath1
local: LocalPath2
path: NfsPath2
local: LocalPath3
path: NfsPath3
local: LocalPath4
path: NfsPath4
dontroute
export: /vol/oradata3 mount: /mnt/oradata3
export: /vol/oradata4 mount: /mnt/oradata4
export: /vol/oradata5 mount: /mnt/oradata5
export: /vol/oradata6 mount: /mnt/oradata6
community: private

Example: Using Kerberos Authentication with Direct NFS Export

The security parameter overrides security_default:

server:  nfsserver
 local: 192.0.2.0
 path: 192.0.2.2
 local: 192.0.2.3
 path: 192.0.2.4
 export: /private/oracle1/logs  mount: /logs  security: krb5
 export: /private/oracle1/data  mount: /data  security: krb5p
 export: /private/oracle1/archive mount: /archive security: sys
 export: /private/oracle1/data1 mount: /data1
 security_default: krb5i

Related Topics

Enabling and Disabling Direct NFS Client Control of NFS

Use these commands to enable or disable Direct NFS Client Oracle Disk Manager Control of NFS.

By default, Direct NFS Client is installed in an enabled state. However, if Direct NFS Client is disabled and you want to enable it, complete the following steps on each node. If you use a shared Grid home for the cluster, then complete the following steps in the shared Grid home:

  1. Log in as the Oracle Grid Infrastructure installation owner.
  2. Change directory to Grid_home/rdbms/lib.
  3. Enter the following command:

    $ make -f ins_rdbms.mk dnfs_on

Note:

If you remove an NFS path that an Oracle AI Database is using, then you must restart the database for the change to take effect.

Enabling Hybrid Columnar Compression on Direct NFS Client

Perform these steps to enable Hybrid Columnar Compression (HCC) on Direct NFS Client:

  1. Ensure that SNMP is enabled on the ZFS storage server. For example:

    $ snmpget -v1 -c public server_name .1.3.6.1.4.1.42.2.225.1.4.2.0
    SNMPv2-SMI::enterprises.42.2.225.1.4.2.0 = STRING: "Sun Storage 7410"
  2. If SNMP is enabled on an interface other than the NFS server, then configure oranfstab using the management parameter.
  3. If SNMP is configured using a community string other than public, then configure oranfstab file using the community parameter.
  4. Ensure that libnetsnmp.so is installed by checking if snmpget is available.

Page 81 of 187

Enabling and Disabling Direct NFS Client Control of NFS

By default, Direct NFS Client is installed in a disabled state with single-instance Oracle AI Database installations. Before enabling Direct NFS, you must configure an oranfstab file.

Use these procedures to enable or disable Direct NFS Client Oracle Disk Manager Control of NFS

Enabling Direct NFS Client Control of NFS

  1. Change the directory to $ORACLE_HOME/rdbms/lib.
  2. Enter the following command:

    make -f ins_rdbms.mk dnfs_on

Disabling Direct NFS Client Control of NFS

  1. Log in as the Oracle software installation owner, and disable Direct NFS Client using the following commands:

    cd $ORACLE_HOME/rdbms/lib
    make -f ins_rdbms.mk dnfs_off
  2. Remove the oranfstab file.

Note:

If you remove an NFS path that an Oracle AI Database is using, then you must restart the database for the change to take effect.

Enabling Hybrid Columnar Compression on Direct NFS Client

Perform these steps to enable Hybrid Columnar Compression (HCC) on Direct NFS Client:

  1. Ensure that SNMP is enabled on the ZFS storage server. For example:

    $ snmpget -v1 -c public server_name .1.3.6.1.4.1.42.2.225.1.4.2.0
    SNMPv2-SMI::enterprises.42.2.225.1.4.2.0 = STRING: "Sun Storage 7410"
  2. If SNMP is enabled on an interface other than the NFS server, then configure oranfstab using the management parameter.
  3. If SNMP is configured using a community string other than public, then configure oranfstab file using the community parameter.
  4. Ensure that libnetsnmp.so is installed by checking if snmpget is available.

Page 82 of 187

Deploying a DAX-Enabled File System for Persistent Memory Database

Learn how to deploy a DAX-enabled file system for Persistent Memory Database.

Oracle Memory Speed (OMS) File System is deprecated in Oracle AI Database 26ai for use with Intel Optane Persistent Memory.

Intel has announced they will discontinue the Optane Persistent Memory product. Therefore, use of Oracle Memory Speed (OMS) File System is being deprecated.

About Using a DAX-Enabled File System for Persistent Memory Database

You must mount XFS in DAX mode for the Persistent Memory (PMEM) database to leverage the byte addressability provided by fsdax.

You can use a PMEM filestore for database data files and control files. For performance reasons, Oracle recommends that you store redo log files as independent files in the file system.

To use a PMEM device with Oracle AI Database, perform the following steps:

  1. Configure a PMEM device in the fsdax mode.
  2. Create a DAX-capable file system (XFS) on the PMEM device.
  3. Mount the file system using the dax mount option.
  4. Start the Oracle AI Database instance in NOMOUNT mode.
  5. Run the CREATE PMEM FILESTORE SQL command to create and use a file in the DAX-capable file system as a backing file for the PMEM filestore.
  6. Create a database (tablespace) on the PMEM filestore.
Requirements
  • You must have an Intel motherboard and Intel persistent memory (PMEM) storage device configured on your system.

Related Topics

Creating a DAX-Enabled File System for Persistent Memory Database

Learn how to create and use a DAX-enabled file system for your Persistent Memory Database.

You must use an XFS-based DAX file system as the filestore for the PMEM database. Scalability and performance of the Persistent Memory Database is affected without the correct configuration, hence Oracle recommends that you use the XFS file system using the following configuration steps.

This configuration ensures that XFS extents are aligned to 2 MB and you can use 2 MB pages when mapping a file to an Oracle process.

  1. Ensure that you have a namespace in FSDAX mode with a 2 MB alignment.

    $ ndctl list
    [
      {
        "dev":"namespace0.0",
        "mode":"fsdax",
        "map":"dev",
        "size":91953823744,
        "uuid":"e11456a7-b26a-4409-b31a-f11b8ee06e5a",
        "sector_size":512,
        "align":2097152,
        "blockdev":"pmem0"
      }
    ]
  2. Create two partitions on your PMEM storage device. One small partition of approximately 2% for the metadata and the rest for the data.
  3. Ensure that the starting sector of the data partition is aligned to 2 MB. Ensure that the data partition is configured as a real time device when creating the xfs filesystem to guarantee 2 MB aligned extents. The starting sector number of the data partition should be a multiple of 4096 when you run the fdisk -l command.

    In this example, the data partition /dev/pmem0p2 starts at a sector offset that is a multiple of 4096.

    $ sudo /sbin/fdisk -l /dev/pmem0
    
    Disk /dev/pmem0: 92.0 GB, 91953823744 bytes, 179597312 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk label type: dos
    Disk identifier: 0x1ef2bc18
      Device Boot      Start         End      Blocks   Id  System
  4. Create an XFS file system with the data partition as the real time device and an extent size of 2 MB.

    mkfs.xfs -m rmapbt=0,reflink=0 -d rtinherit=1 -r rtdev=/dev/pmem0p2,extsize=2m /dev/pmem0p1
  5. Mount the Persistent Memory (PMEM) device with DAX using the following real time device mount options.

    mount /dev/pmem0p1 /mnt -o dax,rtdev=/dev/pmem0p2

Page 83 of 187

Creating a Database on PMEM Storage Using Oracle DBCA

Starting with Oracle AI Database 26ai, you can use Oracle DBCA, in either interactive or silent mode, to select persistent memory (PMEM) as your storage option when creating a single-instance database.

  1. Start Oracle Database Configuration Assistant (Oracle DBCA).

    $ cd $ORACLE_HOME/bin
    $ ./dbca
  2. In the Select Database Operation screen, select Create a database and click Next.
  3. In the Select Database Creation Mode screen, select Advanced configuration and click Next.
  4. In the Select Database Deployment type screen, select Oracle single instance database, as the Database type. Select an appropriate template for your database. Click Next.
  5. In the Specify Database Identification Details page, for the Global database name, enter the database name in the form database_name.domain_name. In the SID field, enter the system identifier. The SID defaults to the database name and uniquely identifies the instance that runs the database.

    You can choose to create either an empty container database (CDB) or a CDB with one or more pluggable databases (PDB). Enter the number of PDBs to create in the Number of PDBs field. In the PDB Name field, specify a name to use for the PDB or PDBs to be created. When you create multiple PDBs, the PDB name you specify is used as a prefix for the PDBs to be created. Click Next.

  6. In the Select Database Storage Option screen, select Use following for the database storage attributes.

    Specify the Database files storage type as PMEM File System. Browse to specify the location of your PMEM storage in the Database files location field.

    Specify the PMEM File System. The PMEM File System can use either a PMEM filestore or a DAX-enabled file system. Specify the PMEM File System Size.

    Select Use Oracle-Managed Files (OMF), to directly manage operating system files comprising an Oracle AI Database.

  7. Respond to the configuration screens and prompts as needed to complete the database creation process. Configuration screens vary depending on the configuration option that you select.

    Note:

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

Related Topics

Page 84 of 187

Configuring Storage for Oracle Grid Infrastructure for a Standalone Server

About Configuring Storage for Oracle Grid Infrastructure for a Standalone Server

Oracle Grid Infrastructure for a standalone server, also known as Oracle Restart, supports single-instance Oracle AI Database deployments and includes Oracle ASM for volume management, database files, recovery files, binaries, and general-purpose file systems. Oracle Grid Infrastructure must be installed before creating the database when using Oracle ASM or Oracle Restart; Oracle Restart cannot be installed on or added to a cluster member node.

Read More: About Configuring Storage for Oracle Grid Infrastructure for a Standalone Server

Configuring Storage for Oracle Automatic Storage Management

Configuring Oracle ASM requires determining storage usage, disk capacity, redundancy, allocation unit size, and failure-group design. External redundancy relies on storage-level protection, normal redundancy generally provides two-way mirroring, high redundancy provides three-way mirroring, flex redundancy supports file-specific protection and quotas, and extended redundancy protects across sites. Disk groups should use appropriately sized, similarly performing devices owned by the installation user, with separate groups recommended for database and recovery files. Existing groups can be inspected with ASM tools, NAS files can serve as ASM devices when correctly created and permissioned, and DAS or SAN disks should generally have one partition per physical disk.

Read More: Configuring Storage for Oracle Automatic Storage Management

Configuring Storage Device Path Persistence Using Oracle ASMLIB

Oracle ASMLIB simplifies ASM device management by providing persistent disk labels and permissions across system restarts and operating-system upgrades. Configure the disk discovery string as ORCL:*, and use an interactive installation method that runs ASMCA when creating a database with the ASM library driver. Install the appropriate ASMLIB packages for the operating system and kernel, using ASMLIB v3 on Oracle Linux 8 and later kernels; ASMLIB is not supported on IBM Linux on System z.

Read More: Configuring Storage Device Path Persistence Using Oracle ASMLIB

Deinstalling Oracle ASMLIB On Oracle AI Database

To remove unused Oracle ASMLIB, log in as root, stop the database, ASM, and Oracle Restart stack, unload and disable ASMLIB, remove the oracleasm-support and oracleasmlib RPMs, and verify and remove any remaining related packages or configuration files. After removal, restart the Oracle Restart stack.

Read More: Deinstalling Oracle ASMLIB On Oracle AI Database

Creating Directories for Oracle AI Database Files

Database and recovery files can reside on file systems separate from the Oracle base directory. Use df -h to identify suitable mount points, allowing at least 1.5 GB for database files on one file system or 3.5 GB across multiple file systems and at least 2 GB for recovery files, adding requirements when sharing storage. If the installer lacks write access, manually create the directories, assign the Oracle installation owner and inventory group, set appropriate permissions, and preferably place the fast recovery area on a separate physical disk from database files.

Read More: Creating Directories for Oracle AI Database Files

Configuring NVMe Over Fabrics Storage Devices with Oracle ASM

Oracle AI Database 26ai supports Oracle-native user-space NVMe over Fabrics over TCP for ASM disk groups on Linux, using Linux kernel 5.4 or later, nvmet_tcp targets, and dedicated 25 GbE-or-faster networking. Configure target subsystems, namespaces, ports, and unique NQNs with nvmetcli; build the NVMe ODM library; create /etc/oracle/nvm/nvmip.ora on each Grid Infrastructure node with initiator and target addresses; and discover devices through asm_diskstring='n:/*/*'. All standard ASM storage and failure-domain guidelines apply, and every initiator must communicate with all configured targets.
Read More: Configuring NVMe Over Fabrics Storage Devices with Oracle ASM

Page 85 of 187

About Configuring Storage for Oracle Grid Infrastructure for a Standalone Server

Complete these procedures to use Oracle Grid Infrastructure for a standalone server, which includes Oracle Automatic Storage Management (Oracle ASM).

Oracle Grid Infrastructure for a standalone server, also known as Oracle Restart, provides system support for a single-instance Oracle AI Database. Oracle ASM is a volume manager and a file system for Oracle AI Database files that supports single-instance Oracle AI Database and Oracle Real Application Clusters (Oracle RAC) configurations. Oracle Automatic Storage Management also supports a general purpose file system for your application needs, including Oracle AI Database binaries. Oracle Automatic Storage Management is Oracle's recommended storage management solution. It provides an alternative to conventional volume managers and file systems.

Note:

If you want to use Oracle ASM or Oracle Restart, 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 neither install Oracle Restart on an Oracle Grid Infrastructure cluster member node, nor add an Oracle Restart server to an Oracle Grid Infrastructure cluster member node. Oracle Restart supports single-instance databases on one server, while Oracle Grid Infrastructure for a Cluster supports single-instance or Oracle RAC databases on a cluster.

Page 86 of 187

Configuring Storage for Oracle Automatic Storage Management

Identify storage requirements and Oracle Automatic Storage Management (Oracle ASM) disk group options.

Note:

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

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.

Related Topics

Identifying Storage Requirements for Oracle ASM

To identify the storage requirements for using Oracle ASM, you must determine the number of devices and the amount of free disk space that you require.

To complete this task, perform the following steps:

  1. Determine whether you want to use Oracle ASM for Oracle AI Database files, recovery files, or both. Oracle AI Database files include data files, control files, redo log files, the server parameter file, and the password file.

    During the database installation, you have the option to select either a file system or Oracle ASM as the storage mechanism for Oracle AI Database files. Similarly, you also have the option to select either a file system or Oracle ASM as the storage mechanism for your recovery files.

    Note:

    You do not have to use the same storage mechanism for both Oracle AI Database files and recovery files. Oracle recommends that you use two Oracle ASM disk groups, one for database files and one for recovery files.

    If you select Oracle ASM as your storage option for Oracle AI Database files, then depending on your choice in the Specify Recovery Options screen, you have the following recovery options:

    • If you select the Oracle ASM option for your recovery files, then Oracle Universal Installer provides you with only the option to use the same disk group for both Oracle AI Database files and recovery files.
    • If you decide not to enable recovery during the database installation, then, after the database installation, you can modify the DB_RECOVERY_FILE_DEST parameter to enable the fast recovery area.
  2. Choose the Oracle ASM redundancy level to use for each Oracle ASM disk group that you create.

    The redundancy level that you choose for the Oracle ASM disk group determines how Oracle ASM mirrors files in the disk group and determines the number of disks and amount of disk space that you require, as follows:

    • External Redundancy

      This option does not allow Oracle ASM to mirror the contents of the disk group. Oracle recommends that you select this redundancy level either when the disk group contains devices, such as RAID devices, that provide their own data protection or when the database does not require uninterrupted access to data.

    • Normal Redundancy

      To optimize performance and reliability in a normal redundancy disk group, Oracle ASM uses two-way mirroring for data files and three-way mirroring for control files, by default. In addition, you can choose the mirroring characteristics for individual files in a disk group.

      A normal redundancy disk group requires a minimum of two failure groups (or two disk devices) if you are using two-way mirroring. Oracle recommends a minimum of three failure groups for normal redundancy disk groups, with a quorum disk for the third disk group. The effective disk space in a normal redundancy disk group is half the sum of the disk space of all of its devices.

      For most installations, Oracle recommends that you use normal redundancy disk groups. On Oracle Exadata, Oracle recommends that you use high redundancy disk groups for added protection against failure.

    • High Redundancy

      The contents of the disk group are three-way mirrored. To create a disk group with high redundancy, you must specify at least three failure groups (a minimum of three devices). Oracle recommends a minimum of five failure groups for high redundancy disk groups, with two quorum disks as the fourth and fifth disk groups.

      Although high-redundancy disk groups provide a high level of data protection, you must consider the higher cost of additional storage devices before deciding to use this redundancy level.

    • Flex Redundancy

      A flex redundancy disk group is a new disk group type with features such as flexible file redundancy, mirror splitting, and redundancy change. A flex disk group can consolidate files with different redundancy requirements into a single disk group. It also provides the capability for databases to change the redundancy of its files. It also provides quota support for databases and PDBs.

      For database data, you can choose no mirroring (unprotected), two-way mirroring (mirrored), or three-way mirroring (high). A flex redundancy disk group requires a minimum of three disk devices (or three failure groups), which protects you against a single failure. Oracle recommends five disk groups for protection against two failures.

    • Extended Redundancy

      Extended redundancy disk group has features similar to the flex redundancy disk group. Extended redundancy is available when you configure an Oracle Extended Cluster. Extended redundancy extends Oracle ASM data protection to cover failure of sites by placing enough copies of data in different failure groups of each site.

      Note:

      Oracle ASM Failure Groups for redundancy level recommendations.

  3. Determine the total amount of disk space that you require for the database files and recovery files.

    If an Oracle ASM instance is running on the system, then you can use an existing disk group to meet these storage requirements. If necessary, you can add disks to an existing disk group during the database installation.

    See, "Oracle ASM Disk Space Requirements" in Oracle AI Database Installation Guide for the Oracle ASM disk space requirements.

    • The disk devices must be owned by the user performing the grid installation.

      Check with your system administrator to determine if the disks used by Oracle ASM are mirrored at the storage level. If so, select External for the redundancy. If the disks are not mirrored at the storage level, then select Normal for the redundancy.

    • Every Oracle ASM disk is divided into allocation units (AU). An allocation unit is the fundamental unit of allocation within a disk group. You can select the AU Size value from 1, 2, 4, 8, 16, 32 or 64 MB, depending on the specific disk group compatibility level. The default value is 4 MB for flex disk group and 1 MB for all other disk group types. On engineered systems, the default value is 4 MB.
  4. Optionally, identify failure groups for the Oracle ASM disk group devices.

    If you intend to use a normal, high or flex redundancy disk group, then you can further protect your database against hardware failure by associating a set of disk devices in a custom failure group. By default, each device comprises its own failure group. However, if two disk devices in a normal redundancy disk group are attached to the same Host Bus Adapter (HBA), then the disk group becomes unavailable if the controller fails. The controller in this example is a single point of failure.

    To protect against failures of this type, use two HBAs, each with two disks, and define a failure group for the disks attached to each controller. This configuration enables the disk group to tolerate the failure of one HBA.

    Consider the following guidelines while defining custom failure groups:

    • You can specify custom failure groups in the Create ASM Disk Groupscreen during an Oracle Grid Infrastructure installation.
    • You can also define custom failure groups after installation, using the GUI tool ASMCA, the command line tool asmcmd, or SQL commands.
    • If you define custom failure groups, then for failure groups containing database files only, you must specify a minimum of two failure groups for normal redundancy disk groups and three failure groups for high redundancy disk groups.
  5. If you are sure that a suitable disk group does not exist on the system, then install or identify appropriate disk devices to add to a new disk group.

    Use the following guidelines when identifying appropriate disk devices:

    • The disk devices must be owned by the user performing the Oracle Grid Infrastructure installation.
    • All the devices in an Oracle ASM disk group must be the same size and have the same performance characteristics.
    • Do not specify multiple partitions on a single physical disk as a disk group device. Oracle ASM expects each disk group device to be on a separate physical disk.

Related Topics

Oracle ASM Disk Space Requirements

Determine the total amount of Oracle Automatic Storage Management (Oracle ASM) disk space that you require for the database files and recovery files.

Table: Oracle ASM Disk Number and Minimum Space Requirements for a multitenant container database (CDB) with one pluggable database (PDB)

Redundancy LevelMinimum Number of DisksRecommended DisksData FilesRecovery FilesBoth File Types
External114.3 GB12.9 GB17.2 GB
Normal238.5 GB25.5 GB34 GB
High3512.7 GB38.1 GB50.8 GB
Flex3512.7 GB38.1 GB50.8 GB
Guidelines for Oracle ASM Disks
  • For Normal, High, and Flex redundancy, you can use either one, two, or two quorum disks respectively to meet the recommendation in the preceding table.
  • Oracle recommends that you use a minimum of 3 disks for Normal redundancy and minimum of 5 disks for High redundancy.
  • The disk devices must be owned by the user performing the Grid Infrastructure installation. Oracle recommends that you use high redundancy unless the disks are mirrored at the storage level.
  • An allocation unit is the fundamental unit of allocation within a disk group. The default value is:
  • 4 MB for flex disk group and 1 MB for all other disk group types, unless overridden by specifically passing the AU size option using tools such as gridSetup .
  • On engineered systems, the default value is 4 MB.
  • Every Oracle ASM disk is divided into allocation units (AU). An allocation unit is the fundamental unit of allocation within a disk group. You can select the AU Size value from 1, 2, 4, 8, 16, 32 or 64 MB, depending on the specific disk group compatibility level. The default value is 4 MB for flex disk group and 1 MB for all other disk group types. On engineered systems, the default value is 4 MB.

Oracle ASM Disk Group Options for Installation

Plan how you want to configure Oracle ASM disk groups for deployment.

During Oracle Grid Infrastructure installation, you can create one Oracle ASM disk group. After the Oracle Grid Infrastructure installation, you can create additional disk groups using Oracle Automatic Storage Management Configuration Assistant (Oracle ASMCA), SQL*Plus, or Automatic Storage Management Command-Line Utility (ASMCMD).

Related Topics

Using an Existing Oracle ASM Disk Group

Use Oracle Enterprise Manager Cloud Control or the Oracle ASM command line tool (asmcmd) to identify existing disk groups, and to determine if sufficient space is available in the disk group.

  1. Connect to the Oracle ASM instance and start the instance if necessary:

    $ $ORACLE_HOME/bin/asmcmd
    ASMCMD> startup
  2. Enter one of the following commands to view the existing disk groups, their redundancy level, and the amount of free disk space in each one:
    ASMCMD> lsdg

    or

    $ORACLE_HOME/bin/asmcmd -p lsdg

    The lsdg command lists information about mounted disk groups only.

  3. From the output, identify a disk group with the appropriate redundancy level and note the free space that it contains.
  4. If necessary, install or identify the additional disk devices required to meet the storage requirements for your installation.

Note:

If you are adding devices to an existing disk group, then Oracle recommends that you use devices that have the same size and performance characteristics as the existing devices in that disk group.

Creating Files on a NAS Device for Use with Oracle Automatic Storage Management

If you have a NAS storage device, then you can create zero-padded files in an NFS mounted directory and use those files as disk devices in an Oracle ASM disk group.

Ensure that you specify the ASM discovery path for Oracle ASM disks.

During installation of Oracle Grid Infrastructure, Oracle Universal Installer (OUI) can create files in the NFS mounted directory you specify. The following procedure explains how to manually create files in an NFS mounted directory to use as disk devices in an Oracle ASM disk group:

  1. If necessary, create an exported directory for the disk group files on the NAS device.
  2. Switch user to root.
  3. Create a mount point directory on the local system.

    For example:

    # mkdir -p /mnt/oracleasm
  4. To ensure that the NFS file system is mounted when the system restarts, add an entry for the file system in the mount file /etc/fstab.
  5. Enter a command similar to the following to mount the NFS on the local system:

    # mount /mnt/oracleasm
  6. Choose a name for the disk group to create, and create a directory for the files on the NFS file system, using the disk group name as the directory name.

    For example, if you want to set up a disk group for a sales database:

    # mkdir /mnt/oracleasm/sales1
  7. Use commands similar to the following to create the required number of zero-padded files in this directory:

    # dd if=/dev/zero 
    of=/mnt/oracleasm/sales1/disk1 bs=1024k 
    count=1000

    This example creates 1 GB files on the NFS file system. You must create one, two, or three files respectively to create an external, normal, or high redundancy disk group.

    Note:

    Creating multiple zero-padded files on the same NAS device does not guard against NAS failure. Instead, create one file for each NAS device and mirror them using the Oracle ASM technology.

  8. Enter commands similar to the following to change the owner, group, and permissions on the directory and files that you created:
    # chown -R grid:asmdba /mnt/oracleasm
    # chmod -R 660 /mnt/oracleasm

    In this example, the installation owner is grid and the OSDBA group for Oracle ASM is asmdba.

  9. During Oracle AI Database installations, edit the Oracle ASM disk discovery string to specify a regular expression that matches the file names you created.

    For example:

    /mnt/oracleasm/sales1/

Related Topics

Creating DAS or SAN Disk Partitions for Oracle ASM

You can use direct-attached storage (DAS) and storage area network (SAN) disks with Oracle ASM.

To use a DAS or SAN disk in Oracle ASM, Oracle recommends that the disk have a partition table. Oracle recommends creating exactly one partition for each disk.

Page 87 of 187

Configuring Storage Device Path Persistence Using Oracle ASMLIB

To use Oracle ASMLIB to configure Oracle ASM devices, complete the following tasks:

Note:

To create a database during the installation using the Oracle ASM library driver, you must choose an installation method that runs ASMCA in interactive mode. You must also change the disk discovery string to ORCL:*.

Oracle ASMLIB is not supported on IBM:Linux on System z.

About Oracle ASM with Oracle ASMLIB

Oracle ASMLIB maintains permissions and disk labels that are persistent on the storage device, so that the label is available even after an operating system upgrade.

The Oracle Automatic Storage Management library driver simplifies the configuration and management of block disk devices by eliminating the need to rebind block disk devices used with Oracle Automatic Storage Management (Oracle ASM) each time the system is restarted.

With Oracle ASMLIB, you define the range of disks you want to have made available as Oracle ASM disks. Oracle ASMLIB maintains permissions and disk labels that are persistent on the storage device, so that the label is available even after an operating system upgrade.

Note:

If you configure disks using Oracle ASMLIB, then you must change the disk discovery string to ORCL:*. If the diskstring is set to ORCL:*, or is left empty (""), then the installer discovers these disks.

Installing and Configuring Oracle ASMLIB Software

Review this information to install and configure the Oracle Automatic Storage Management library driver software manually.

Oracle ASMLib is included with the Oracle Linux packages, and with SUSE Linux Enterprise Server. If you are a member of the Unbreakable Linux Network, then you can install the Oracle ASMLib RPMs by subscribing to the Oracle Linux channel, and using yum to retrieve the most current package for your system and kernel. For additional information, see the following URL:

https://www.oracle.com/linux/technologies/asmlib/

Note:

You must install Oracle ASMLib v3 (oracleasmlib-3.0.0 or later and oracleasm-support-3.0.0 or later) on all Oracle AI Database servers with Oracle Linux 8 and later kernels.

  1. Enter the following command to determine the kernel version and architecture of the system:

    # uname -rm
  2. Depending on your operating system version, refer to https://docs.oracle.com/en/operating-systems/oracle-linux/asmlib/ for installing, configuring, and administering Oracle ASMLib.

    See also

    My Oracle Support note 1089399.1 for information about Oracle ASMLib support with Red Hat distributions:
    https://support.oracle.com/rs?type=doc&id=1089399.1

Deinstalling Oracle ASMLIB on Oracle Grid Infrastructure

If Oracle ASMLIB is installed but is not used for device path persistence, remove it as follows. Run the commands as the root user on the node being deconfigured.

  1. Stop Oracle ASM and any running database instance on the node:
    # srvctl stop instance -db db_unique_name -node node_name
    # srvctl stop asm -node node_name

    Replace db_unique_name and node_name with the database unique name and cluster node name.

  2. If this is the last Oracle Flex ASM instance on the node, stop the Oracle Clusterware stack:

    # Grid_home/bin/crsctl stop crs
  3. Unload Oracle ASMLIB without restarting the system:

    # /usr/sbin/oracleasm exit
  4. Stop Oracle ASMLIB:

    # /usr/sbin/oracleasm configure -d
  5. Remove the Oracle ASMLIB support and library RPMs:

    # rpm -e oracleasm-support
    # rpm -e oracleasmlib
  6. Check for remaining Oracle ASMLIB RPMs:

    # rpm -qa | grep oracleasm
  7. If any Oracle ASMLIB RPMs remain, remove them:

    # rpm -qa | grep oracleasm | xargs rpm -e

Oracle ASMLIB and its associated RPMs are now removed.

Page 88 of 187

Deinstalling Oracle ASMLIB On Oracle AI Database

If Oracle ASM library driver (Oracle ASMLIB) is installed but you do not use it for device path persistence, then deinstall Oracle ASMLIB:

  1. Log in as root.
  2. Stop Oracle ASM and any running database instance:

    # srvctl stop database
    # srvctl stop asm
  3. Stop the Oracle Restart stack:
    # cd Grid_home/bin
    # crsctl stop has

    Where, Grid_home is the Oracle Grid Infrastructure home directory path.

  4. Unload Oracle ASMLIB without restarting the system.

    # /usr/sbin/oracleasm exit
  5. Stop Oracle ASMLIB:

    # /usr/sbin/oracleasm configure -d
  6. Remove the oracleasm library and tools RPMs:

    # rpm -e oracleasm-support
    # rpm -e oracleasmlib
  7. Check if any oracleasm RPMs are remaining:

    # rpm -qa| grep oracleasm
  8. If any oracleasm configuration files are remaining, remove them:

    # rpm -qa| grep oracleasm | xargs rpm -e
    Oracle ASMLIB and associated RPMs are now removed.

Start the Oracle Restart stack.

Page 89 of 187

Creating Directories for Oracle AI Database Files

You can store Oracle AI Database and recovery files on a separate file system from the configuration files.

Perform this procedure to place the Oracle AI Database or recovery files on a separate file system from the Oracle base directory:

  1. Use the following command to determine the free disk space on each mounted file system:

    # df -h
  2. Identify the file systems to use, from the display:
    OptionDescription
    Database Files

    Select one of the following:

    • A single file system with at least 1.5 GB of free disk space
    • Two or more file systems with at least 3.5 GB of free disk space in total
    Recovery FilesChoose a file system with at least 2 GB of free disk space

    If you are using the same file system for multiple file types, then add the disk space requirements for each type to determine the total disk space requirement.

  3. Note the names of the mount point directories for the file systems that you identified.
  4. If the user performing installation has permissions to create directories on the disks where you plan to install Oracle AI Database, then Oracle DBCA creates the Oracle AI Database file directory, and the Recovery file directory. If the user performing installation does not have write access, then you must create these directories manually.

    For example, given the user oracle and Oracle Inventory Group oinstall, and using the paths /u03/oradata/wrk_area for Oracle AI Database files, and /u01/oradata/rcv_area for the recovery area, these commands create the recommended subdirectories in each of the mount point directories and set the appropriate owner, group, and permissions on them:

    • Database file directory:
      # mkdir -p /u01/oradata/
      # chown oracle:oinstall /u01/oradata/
      # chmod 775 /u01/oradata

      The default location for the database file directory is $ORACLE_BASE/oradata.

    • Recovery file directory (fast recovery area):
      # mkdir -p /u01/oradata/rcv_area
      # chown oracle:oinstall /u01/oradata/rcv_area
      # chmod 775 /u01/oradata/rcv_area

      The default fast recovery area is $ORACLE_BASE/fast_recovery_area.

      Oracle recommends that you keep the fast recovery area on a separate physical disk than that of the database file directory. This method enables you to use the fast recovery area to retrieve data if the disk containing oradata is unusable for any reason.

Page 90 of 187

Configuring NVMe Over Fabrics Storage Devices with Oracle ASM

You can use NVMe over Fabrics storage devices with Oracle Automatic Storage Management (Oracle ASM) to create Oracle ASM disk groups.

About Using NVMe Over Fabrics Devices for Data Files

Use NVMe over Fabrics storage devices with Oracle ASM on Linux operating system to store Oracle AI Database data files.

Starting with Oracle AI Database 26ai, you can use TCP/IP network connections to access the remote NVMe storage devices using Oracle Native user space NVMe over Fabrics (NVMe-oF) solution directly from Oracle processes. The Oracle Grid Infrastructure server works as an initiator that connects to an NVMe-oF storage target created using Linux Kernel nvmet_tcp module.

You can use NVMe-oF storage devices to create Oracle ASM disk groups. These disk groups can store Oracle AI Database data files. This configuration extends Oracle ASM capabilities to the NVMe-oF storage devices. Direct access to NVMe-oF storage targets from Oracle AI Database servers offers lower latency and greater throughput for I/O operations.

Oracle Grid Infrastructure 26ai works only with NVMe of Fabrics storage targets with Linux kernel 5.4 or later versions. Use an Ethernet Network Interface Card (NIC) on your Oracle Grid Infrastructure server to connect to an NVMe-oF storage target. Oracle recommends that you use a 25 GbE or higher Ethernet NIC to minimize latency.

Note:

The performance of databases stored on the NVMe-oF devices depends on the performance of the network connection between the Oracle Grid Infrastructure servers and the NVMe-oF storage targets. For optimal performance, Oracle recommends that you connect the Oracle Grid Infrastructure servers to the NVMe-oF storage targets using private dedicated network connections.

Requirements and Guidelines for NVMe Over Fabrics Storage

Review these requirements and guidelines for configuring NVMe over Fabrics storage (NVMe-oF) devices to use with Oracle Automatic Storage Management (Oracle ASM).

Requirements
  • Initiator operating system version supported by the current Oracle AI Database release.
  • NVMe-oF storage targets with Linux Kernel version 5.4 or later using nvmet_tcp module.
  • 25 GbE or more network interface card on both the Oracle Grid Infrastructure server and the NVMe over Fabrics storage target.
  • Initiator IP addresses that can communicate with all the NVMe-oF storage target IP addresses.
Guidelines
  • All Oracle ASM storage configuration guidelines apply to NVMe-oF storage devices.

Creating an NVMe-oF Storage Target

Configure the NVMe over Fabrics (NVMe-oF) storage targets to create Oracle ASM disk groups that store Oracle Grid Infrastructure and Oracle AI Database files.

The following configuration steps create an NVMe-oF storage target with 4 devices: /dev/nvme0n1, /dev/nvme1n1, /dev/nvme2n1, and /dev/nvme3n1. Complete these steps on all the storage target servers.

  1. Log in as root.
  2. Load the NVMe TCP module, if it is not already loaded.

    modprobe nvmet_tcp
  3. Install the nvmetcli package.

    yum install nvmetcli
  4. Start nvmetcli to configure the subsystems and the NVMe ports on the target.

    nvmetcli
  5. Create a unique NVMe Qualified Name (NQN) on the storage target in the subsystems directory.

    cd subsystems/
    create nqn=storagenode1.domainname.com:nvme

    Note:

    You must specify a unique NQN for each storage target.

  6. Enable all storage targets to use the subsystem.

    cd storagenode1.domainname.com:nvme/
    set attr allow_any_host=1
  7. Create namespace ID (NSID) for each storage block.

    cd namespaces/
    create nsid=1
    create nsid=2
    create nsid=3
    create nsid=4
  8. Set the namespace device paths and enable them.
    cd 1/
    set device path=/dev/nvme0n1
    enable

    Repeat these commands for all the NSIDs.

  9. Create a port ID for the NVMe target port.
    cd /
    create portid=1
    cd 1/
    set addr adrfam=ipv4
    set addr trtype=tcp
    set addr traddr=192.168.1.11
    set addr trsvcid=4091

    The input value for the port ID must be a positive integer, either 1 or greater.

  10. Create a unique NVMe Qualified Name (NQN) for the NVMe target port in the /ports/1/subsystems directory.

    cd /ports/1/subsystems
    create nqn=storagenode1.domainname.com:nvme
  11. Verify the NVMe storage target configuration that you configured.

    cd /
    ls
    o- / ............................................................................................................ [...]
    o- hosts  ....................................................................................................... [...]
    o- ports  ....................................................................................................... [...]
    | o- 1    ..................................... [trtype=tcp, traddr=192.168.1.11, trsvcid=4091, inline_data_size=16384]
    |   o- ana_groups ............................................................................................... [...]
    |   | o- 1 .......................................................................................... [state=optimized]
    |   o- referrals ................................................................................................ [...]
    |   o- subsystems ............................................................................................... [...]
    |     o- storagenode1.domainname.com:nvme ....................................................................... [...]
    o- subsystems ................................................................................................... [...]
      o- storagenode1.domainname.com:nvme ......................... [version=1.3, allow_any=1, serial=82d982a387d72d99c09d]
        o- allowed_hosts............................................................................................. [...]
        o- namespaces................................................................................................ [...]
          o- 1 ........................... [path=/dev/nvme0n1, uuid=79058da3-ee7e-4e37-bd1d-e8375bff5027, grpid=1, enabled]
          o- 2 ........................... [path=/dev/nvme1n1, uuid=87f0b13b-1795-4da8-ba46-fce6c97403a5, grpid=1, enabled]
          o- 3 ........................... [path=/dev/nvme2n1, uuid=fe0f4720-2322-4df5-8da5-e43191e7b577, grpid=1, enabled]
          o- 4 ........................... [path=/dev/nvme3n1, uuid=3f79c5f0-4626-4991-a567-8ce9157a1559, grpid=1, enabled]
  12. Repeat steps 1 through 11 on each NVMe storage target node.

Creating an NVMe Configuration File and Using NVMe-oF Devices

NVMe over Fabrics uses a configuration file, nvmip.ora, to determine the NVMe-oF configuration and options.

  1. Create an NVMe Oracle Disk Manager (ODM) library:

    $ cd $ORACLE_HOME/rdbms/lib
    $ make -f ins_rdbms.mk nvm_on
  2. Create an nvmip.ora file in the /etc/oracle/nvm directory on each Oracle Grid Infrastructure cluster node with the following attributes:

    • initiator

      Initiator IP address of the current Oracle Clusterware node.

      Note:

      • All the initiator IP addresses must be able to communicate with all the NVMe-oF storage target IP addresses.
      • The initiator IP address in the configuration file is the IP address of the current node.
    • target

      Storage target IP addresses and port number of the NVMe-oF storage devices. Use the same target IP addresses for all the Oracle Grid Infrastructure nodes.

The following examples show how to use NVMe-oF devices from 2 storage servers and create a database with 2 database hosts. Database host 1 has IP address 192.168.1.1 and database host 2 has IP address 192.168.1.2. Storage node 1 has IP address 192.168.1.11 and storage node 2 has IP address 192.168.1.12.

Example: Configuring NVMe over Fabrics on node 1

The following example shows one initiator IP address of node 1 and two NVMe-oF storage target IP addresses:

# IP addresses following [initiator] are initiator IP addresses of the Oracle Grid Infrastructure server.
# Failover among these IP addresses is handled by Oracle Grid Infrastructure and Oracle AI Database.
# IP addresses following [target] are target IP address:port numbers.
# Mention all storage targets here to which Oracle Grid Infrastructure and Oracle AI Database need to connect.
# A set of one or more targets create a "failure domain" when all the
# disks/devices serviced by those targets can be accessed by each of the targets.
# Oracle DB will automatically batch the targets running in one failure domain.
# Ensuring failover across targets from a single failure domain is responsibility of the storage server.

[initiator]
192.168.1.1
[target]
192.168.1.11:4091
192.168.1.12:4091

Example: Configuring NVMe over Fabrics on node 2

The following example shows one initiator IP address of node 2 and two NVMe-oF storage target IP addresses:

# IP addresses following [initiator] are initiator IP addresses of the Oracle Grid Infrastructure server.
# Failover among these IP addresses is handled by Oracle Grid Infrastructure and Oracle AI Database.
# IP addresses following [target] are target IP address:port numbers.
# Mention all storage targets here to which Oracle Grid Infrastructure and Oracle AI Database need to connect.
# A set of one or more targets create a "failure domain" when all the
# disks/devices serviced by those targets can be accessed by each of the targets.
# Oracle DB will automatically batch the targets running in one failure domain.
# Ensuring failover across targets from a single failure domain is responsibility of the storage server.

[initiator]
192.168.1.2
[target]
192.168.1.11:4091
192.168.1.12:4091

To discover and use NVMe-oF storage devices with Oracle ASM, use asm_diskstring='n:/*/*'. The names of the NVMe-oF storage devices are combination of NQN and IP address. For example, with the above configuration, when you use kfod disks=all or asm_disksting='n:/*/*' to discover NVMe-oF storage devices, you get the following output.

---------------------------------------------------------------------------------------
 Disk Size     Path                                                       User    Group
=======================================================================================
   1: 20000 MB n:/storagenode1.domainname.com:nvme:ORAIP_192.168.1.11/1
   2: 20000 MB n:/storagenode1.domainname.com:nvme:ORAIP_192.168.1.11/2
   3: 20000 MB n:/storagenode1.domainname.com:nvme:ORAIP_192.168.1.11/3
   4: 20000 MB n:/storagenode1.domainname.com:nvme:ORAIP_192.168.1.11/4
   5: 20000 MB n:/storagenode2.domainname.com:nvme:ORAIP_192.168.1.12/1
   6: 20000 MB n:/storagenode2.domainname.com:nvme:ORAIP_192.168.1.12/2
   7: 20000 MB n:/storagenode2.domainname.com:nvme:ORAIP_192.168.1.12/3
   8: 20000 MB n:/storagenode2.domainname.com:nvme:ORAIP_192.168.1.12/4

Page 91 of 187

Installing and Configuring Oracle Grid Infrastructure for a Standalone Server

About Installing Oracle Grid Infrastructure for a Standalone Server

Oracle Grid Infrastructure for a standalone server combines Oracle Restart and Oracle ASM. Databases created after installation are automatically registered with Oracle Restart, while existing databases, listeners, ASM, and related components must be registered manually. Oracle Restart supports multiple single-instance databases, and starting with Oracle AI Database 26ai, gridSetup.sh replaces the desupported config.sh utility.

Read More: About Installing Oracle Grid Infrastructure for a Standalone Server

About Image-Based Oracle Grid Infrastructure Installation

Image-based installation simplifies Oracle Grid Infrastructure deployment by extracting the software image into a newly created Grid home and running gridSetup.sh. It supports cluster configuration, standalone-server Oracle Restart configuration, upgrades, software-only installations, node changes, silent deployments, and customized patched images, while supporting GUI, silent, and Fleet Patching and Provisioning workflows. Grid home paths must follow Oracle Optimal Flexible Architecture recommendations.

Read More: About Image-Based Oracle Grid Infrastructure Installation

Setup Wizard Installation Options for Creating Images

The runInstaller and gridSetup.sh setup wizards support gold-image creation through options that specify the destination, excluded files, and help output. The -createGoldImage option creates an image from the current Oracle home, -destinationLocation defines the output directory, and -exclFiles excludes specified files or paths, enabling reusable database or Grid Infrastructure deployment images.

Read More: Setup Wizard Installation Options for Creating Images

Installing Oracle Grid Infrastructure for a Standalone Server

Install Oracle Restart and Oracle ASM by preparing the required users, groups, network, storage, Oracle base, and inventory directories; extracting the current Grid Infrastructure gold image into an OFA-compliant, non-symbolic-link Grid home; and running gridSetup.sh. Select the standalone-server configuration, configure the default or additional ASM disk groups, provide or automate root-script execution, and then install the database using ASM storage. ASMFD is desupported in Oracle AI Database 26ai, with ASMlib v3 recommended for applicable Linux environments.

Read More: Installing Oracle Grid Infrastructure for a Standalone Server

Installing Oracle Grid Infrastructure for a Standalone Server for an Existing Database

To manage an existing database with Oracle Restart, stop its listeners, install Grid Infrastructure in a separate Grid home, restart the listeners, and register the database and listeners with srvctl. Oracle Restart can manage databases from the same release and up to one release lower, while earlier releases may coexist without being managed by Oracle Restart.

Read More: Installing Oracle Grid Infrastructure for a Standalone Server for an Existing Database

Installing Oracle Grid Infrastructure for a Standalone Server Using a Software-Only Installation

A software-only installation places Grid Infrastructure binaries in the Grid home without validating or configuring Oracle Restart, so it is intended for advanced users. The process involves extracting the image, verifying prerequisites with runcluvfy.sh, running gridSetup.sh with Set Up Software Only, executing prompted root scripts, and then completing manual configuration with ASM or, without ASM, roothas.sh followed by listener registration using srvctl and Oracle Network Configuration Assistant. This method does not support upgrades from previous Oracle Restart releases.

Read More: Installing Oracle Grid Infrastructure for a Standalone Server Using a Software-Only Installation

Installing Oracle Grid Infrastructure for a Standalone Server Using Command-Line Interface

Starting with Oracle Grid Infrastructure 26ai, standalone-server installation and configuration can be performed from the command line. After preparing OFA-compliant directories and extracting the image into a suitable Grid home, run gridSetup.sh -silent -configureStandaloneServer with the required operating-system groups, Oracle base, inventory, disk group, disk, redundancy, allocation-unit, discovery, and root-script options, then provide the root password when prompted. ASMFD remains desupported in this release.

Read More: Installing Oracle Grid Infrastructure for a Standalone Server Using Command-Line Interface

Testing the Oracle Automatic Storage Management Installation

Test the ASM installation by setting ORACLE_SID to the ASM instance, setting ORACLE_HOME to the Grid home, and running asmcmd lsdg to display disk groups. If ASM is not running, start it with srvctl start asm, after which ASMCMD can connect using SYSASM privileges.

Read More: Testing the Oracle Automatic Storage Management Installation

Relinking Oracle Restart and Oracle ASM Binaries

Relink Oracle Restart and ASM binaries after operating-system patching or upgrades, first stopping all executables and applications using the Grid home or its shared libraries. As root, unlock the Grid home with roothas.sh -unlock; as the grid user, run the Grid home relink utility; then as root, run rootadd_rdbms.sh and relock the home with roothas.sh -lock.

Read More: Relinking Oracle Restart and Oracle ASM Binaries

Configuring Oracle ASM Disk Groups Manually using Oracle ASMCA

After standalone-server installation, ASMCA can create and configure additional ASM disk groups, Oracle ADVM, and Oracle ACFS. If no ASM instance exists, the installation process creates one; afterward, launch ASMCA from the Grid home’s bin directory to manually configure ASM storage and related services.

Read More: Configuring Oracle ASM Disk Groups Manually using Oracle ASMCA

Enabling Oracle ACFS on Oracle Restart Configurations

Enable root access for Oracle ACFS by logging in as root, changing to the Grid home’s crs/install directory, and running roothas.sh -lockacfs.

Read More: Enabling Oracle ACFS on Oracle Restart Configurations

Applying Patches During an Oracle Grid Infrastructure Installation or Upgrade

Obtain the required Release Updates or one-off patches, place them in an accessible directory, change to the Grid home, and run gridSetup.sh with -applyRU and/or -applyOneOffs. Patches may be applied separately or together, after which the remaining setup or upgrade wizard steps must be completed.

Read More: Applying Patches During an Oracle Grid Infrastructure Installation or Upgrade

Patching and Switching Oracle Grid Infrastructure Homes

Use switchGridHome to move Oracle Grid Infrastructure between homes containing different release updates or one-off patches. Create a distinct new Grid home, initialize it with the source home’s configuration, apply the required patches, and switch to it in silent or interactive mode; services then run from the new home. To revert, unlock the old home as root and run its switchGridHome command as the grid user, optionally using zero-downtime or driver-update options.

Read More: Patching and Switching Oracle Grid Infrastructure Homes

Changing the Oracle Grid Infrastructure Base Path

To change the Grid Infrastructure base directory, create and own the new base, stop Oracle Restart and TFA, copy the Grid files, preserve the old base as a backup, and update all relevant ORACLE_BASE, OLR, inventory, network, and home-property configuration files. Restore permissions with roothas.sh -init, move AHF data with ahfctl movedatadir, and restart the Oracle Restart stack. All executables and applications using the old base or shared libraries must be stopped beforehand.
Read More: Changing the Oracle Grid Infrastructure Base Path

Page 92 of 187

About Installing Oracle Grid Infrastructure for a Standalone Server

Oracle Grid Infrastructure for a standalone server includes Oracle Restart and Oracle Automatic Storage Management.

If you install Oracle Grid Infrastructure for a standalone server and then create your database, then the database is automatically added to the Oracle Restart configuration. Oracle Restart automatically restarts the database when required.

If you install Oracle Grid Infrastructure for a standalone server on a host computer on which a database already exists, then you must manually add the database, the listener, the Oracle ASM instance, and other components to the Oracle Restart configuration before you are able to configure automatic database restarts.

Starting with Oracle AI Database 26ai, the Oracle Grid Infrastructure Configuration Wizard tool (config.sh) is desupported. Use gridSetup.sh instead.

With the introduction of image-based Oracle Grid Infrastructure installation, the config.sh functionality has become obsolete. The gridSetup.sh script supports the response file functionality previously used with config.sh.

Note:

Oracle Grid Infrastructure for a standalone server can support multiple single-instance databases on a single host computer.

Page 93 of 187

About Image-Based Oracle Grid Infrastructure Installation

Installation and configuration of Oracle Grid Infrastructure software is simplified with image-based installation.

Oracle AI Database and Oracle Grid Infrastructure installation software is available in multiple media, and can be installed using several options. The Oracle Grid Infrastructure software is available as an image, available for download from the Oracle Technology Network website, or the Oracle Software Delivery Cloud portal. In most cases, you use the graphical user interface (GUI) provided by Oracle Universal Installer to install the software. You can also use Oracle Universal Installer to complete silent mode installations, without using the GUI. You can also use Oracle Fleet Patching and Provisioning for subsequent Oracle Grid Infrastructure and Oracle AI Database deployments.

To install Oracle Grid Infrastructure, create the new Grid home with the necessary user group permissions, and then extract the image file into the newly-created Grid home, and run the setup wizard to register the Oracle Grid Infrastructure product.

Using image-based installation, you can do the following:

  • Configure Oracle Grid Infrastructure for a new cluster.
  • Configure Oracle Grid Infrastructure for a standalone server (Oracle Restart).
  • Upgrade Oracle Grid Infrastructure.
  • Setup software only.
  • Add or remove nodes from your existing cluster, if the Oracle Grid Infrastructure software is already installed or configured.

This installation feature streamlines the installation process and supports automation of large-scale custom deployments. You can also use this installation method for deployment of customized images, after you patch the base-release software with the necessary Release Updates (RUs) or Release Update Revisions (RURs).

Note:

You must extract the image software into the directory where you want your Grid home to be located, and then run the ORACLE_HOME\gridSetup.sh script to start the Oracle Grid Infrastructure Setup Wizard. Ensure that the Grid home directory path you create is in compliance with the Oracle Optimal Flexible Architecture recommendations.

Page 94 of 187

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: 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.

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.

Page 95 of 187

Installing Oracle Grid Infrastructure for a Standalone Server

Complete these steps to install Oracle Grid Infrastructure for a standalone server and then create a database that is managed by Oracle Restart.

Note:

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

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.

Install Oracle Grid Infrastructure for a standalone server, which installs Oracle Restart and Oracle ASM, and creates one disk group.

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 latest Oracle Grid Infrastructure for a standalone server Gold image with the current Release Update (RU) already applied to it. For example, the 23.26.2 Gold image includes the patches already applied to the Oracle Grid Infrastructure 26ai base image. 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. Log in as the Oracle Restart software owner user and run gridSetup.sh to start the Oracle Grid Infrastructure setup wizard:

    $ Grid_home/gridSetup.sh

    Where Grid_home is the Oracle Grid Infrastructure home directory.

    Note:

    You can use the gridSetup.sh command with the -applyRU and -applyOneOffs options to install Release Updates (RUs) and one-off patches during an Oracle Grid Infrastructure installation or upgrade.

  5. In the Select Configuration Option screen, select the Configure Oracle Grid Infrastructure for a Standalone Server (Oracle Restart) option to install and configure Oracle Restart and Oracle ASM. Click Next.
  6. During installation, disk paths mounted on Oracle ASM and registered on Oracle ASMLib with the string ORCL:* are listed as default database storage candidate disks.

    On Linux, if you are using NVMe over Fabrics storage devices, then use the n:/*/* disk discovery string.

  7. Configure Oracle ASM as needed with additional disk groups.

    • The default Disk Group Name is DATA. You can enter a new name for the disk group, or use the default name.
    • Any additional disk devices that you create must be owned by the user performing the grid installation.
  8. Respond to the configuration prompts as needed to configure Oracle Grid Infrastructure. Click Help for information.
  9. Provide information to automate root scripts, or run scripts as root when prompted by OUI.

    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.

  10. Start the Oracle AI Database installation, and select Oracle ASM disk groups for Oracle AI Database files storage. For assistance during installation, click Help on the Oracle Universal Installer page where you need more information.

Related Topics

Page 96 of 187

Installing Oracle Grid Infrastructure for a Standalone Server for an Existing Database

Follow the high-level instructions in this section to install Oracle Grid Infrastructure for a standalone server and configure it for an existing Oracle AI Database.

Oracle Restart can manage resources from the same release and releases up to one version lower than Oracle Restart. For instance, you can install Oracle Grid Infrastructure for a standalone server 26ai (Oracle Restart) to provide services for Oracle AI Database 26ai and Oracle Database 21c. Earlier Oracle Database releases can coexist on the same server without being managed by Oracle Restart.

  1. Log in as the Oracle AI Database software owner user.
  2. Set the ORACLE_HOME environment variable.

    Bourne, Bash or Korn shell:

    $ ORACLE_HOME=/u01/app/oracle/product/23.0.0/dbhome_1
    $ export ORACLE_HOME

    C shell:

    % setenv ORACLE_HOME /u01/app/oracle/product/23.0.0/dbhome_1
  3. Go to the Oracle home and stop any existing database listeners.

    $ $ORACLE_HOME/lsnrctl stop listener_name

    Note:

    If this command throws an error, reload the listener using lsnrctl reload LISTENER

  4. On the same host computer as the database, install Oracle Grid Infrastructure for a standalone server, and select Configure Oracle Grid Infrastructure for a Standalone Server (Oracle Restart) as the installation option. See, "Installing Oracle Grid Infrastructure for a Standalone Server with a New Database Installation" in Oracle AI Database Installation Guide.

    The Oracle Grid Infrastructure for a standalone server components are installed in an Oracle Grid Infrastructure Oracle home (Grid home), which is in a different location from existing Oracle AI Database homes.

  5. Go to the Oracle home and start any existing database listeners.

    $ $ORACLE_HOME/lsnrctl start listener_name
  6. Register the Oracle AI Database and its listeners for High Availability with Oracle Restart using the srvctl command:

    $ cd $ORACLE_HOME/bin
    $ srvctl add database -db dbname -o oracle_home_path
    $ srvctl add listener -listener listener_name

Related Topics

Page 97 of 187

Installing Oracle Grid Infrastructure for a Standalone Server Using a Software-Only Installation

A software-only installation only installs the Oracle Grid Infrastructure for a standalone server binaries at the specified location. You must complete a few manual configuration steps to enable Oracle Restart after you install the software.

Oracle recommends that only advanced users perform software-only installations, because this installation method provides no validation of the installation, and this installation option requires manual postinstallation steps to enable the Oracle Grid Infrastructure for a standalone server software.

Performing a software-only installation requires the following steps:

  1. Installing the software binaries.
  2. Configuring the software binaries.

Installing Software Binaries for Oracle Grid Infrastructure for a Standalone Server

Use this procedure to do a software-only installation of Oracle Grid Infrastructure for a standalone server.

  1. Log in as the Oracle Restart software owner user (oracle).
  2. 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
    $ chown oracle:oinstall /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.

  3. Ensure that you complete all the storage and server preinstallation requirements. Verify that your server meets the installation requirements using the following command:

    $ cd /u01/app/oracle/product/23.0.0/grid
    $ runcluvfy.sh stage -pre hacfg
  4. Run gridSetup.sh to start the Oracle Grid Infrastructure setup wizard:
    $ Grid_home/gridSetup.sh

    Where, Grid_home is the Oracle Grid Infrastructure home directory.

  5. In the Select Configuration Option screen, select the Set Up Software Only option to perform a software-only installation of Oracle Grid Infrastructure for a standalone server. Click Next.
  6. Respond to the prompts as needed to set up Oracle Grid Infrastructure. Click Help for information.
  7. The Oracle Grid Infrastructure setup wizard prompts you to run the root.sh script and, if required, the orainstRoot.sh script.
  8. The root.sh script output provides information about how to proceed, depending on the configuration you plan to complete in this installation. Note this information.

Configuring Software Binaries for Oracle Grid Infrastructure for a Standalone Server

Use these steps to configure and activate a software-only Oracle Grid Infrastructure for a standalone server installation for Oracle Restart.

Configuring With Oracle Automatic Storage Management
  1. Install the software binaries. See, "Installing Software Binaries for Oracle Grid Infrastructure for a Standalone Server" in Oracle AI Database Installation Guide.
  2. Run gridSetup.sh to start the Oracle Grid Infrastructure setup wizard.

See, "Installing Oracle Grid Infrastructure for a Standalone Server with a New Database Installation" in Oracle AI Database Installation Guide.

Configuring Without Oracle Automatic Storage Management
  1. Log in as root and run the roothas.sh script located in the Grid_home path, using the following syntax:

    # cd Grid_home/crs/install 
    # ./roothas.sh

    Where, Grid_home is the Oracle Grid Infrastructure home directory.

    For example:

    # cd /u01/app/oracle/product/23.0.0/grid/crs/install
    # ./roothas.sh
  2. Change directory to the path Grid_home/oui/bin.
  3. Use the SRVCTL utility along with Oracle Network Configuration Assistant to add the listener to the Oracle Restart configuration.

Note:

This procedure does not work for Oracle Restart upgrades from previous releases.

Related Topics

Page 98 of 187

Installing Oracle Grid Infrastructure for a Standalone Server Using Command-Line Interface

Starting with Oracle Grid Infrastructure 26ai, 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 AI Database 26ai.

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.

Related Topics

Page 99 of 187

Testing the Oracle Automatic Storage Management Installation

After installing Oracle Grid Infrastructure for a single instance, use the ASMCMD command-line utility to test the Oracle ASM installation.

  1. Open a shell window, and temporarily set the ORACLE_SID and ORACLE_HOME environment variables to specify the appropriate values for the Oracle ASM instance to use.

    For example, if the Oracle ASM SID is named +ASM and the Oracle home is located in the grid subdirectory of the ORACLE_BASE directory, then enter the following commands to create the required settings:

    Bourne, Bash or Korn shell:

    $ ORACLE_SID=+ASM 
    $ export ORACLE_SID 
    $ ORACLE_HOME=/u01/app/oracle/product/23.0.0/grid 
    $ export ORACLE_HOME

    C shell:

    % setenv ORACLE_SID +ASM 
    % setenv ORACLE_HOME /u01/app/oracle/product/23.0.0/grid
  2. Use ASMCMD to list the disk groups for the Oracle ASM instance:
    $ORACLE_HOME/bin/asmcmd lsdg

    If the Oracle ASM instance is running, then ASMCMD connects by default as the SYS user with SYSASM privileges, and is available.

  3. If the Oracle ASM instance is not running, then start the Oracle ASM instance using the following command:

    $ORACLE_HOME/bin/srvctl start asm

Related Topics

Page 100 of 187

Relinking Oracle Restart and Oracle ASM Binaries

Relink the Oracle Restart and Oracle ASM binaries every time you apply an operating system patch or after an operating system upgrade.

Caution:

Before relinking executables, you must shut down all executables that run in the Oracle home directory that you are relinking. In addition, shut down applications linked with Oracle shared libraries.

  1. Log in as root and unlock the grid home:

    # cd Grid_home/crs/install 
    # roothas.sh -unlock
  2. Log in as the grid user and relink the binaries:

    $ export ORACLE_HOME=Grid_home
    $ Grid_home/bin/relink
  3. Log in as root again and perform the following steps:

    # cd Grid_home/rdbms/install/ 
    # ./rootadd_rdbms.sh 
    # cd Grid_home/crs/install 
    # roothas.sh -lock

Page 101 of 187

Configuring Oracle ASM Disk Groups Manually using Oracle ASMCA

After installing Oracle Grid Infrastructure for a standalone server, you can also use Oracle ASMCA to create and configure disk groups, Oracle ADVM, and Oracle ACFS.

During Oracle Grid Infrastructure for a standalone server installation, Oracle Automatic Storage Management Configuration Assistant (Oracle ASMCA) utility creates a new Oracle Automatic Storage Management instance if there is no Oracle ASM instance currently configured on the computer. After installation, you can create and configure additional disk groups, and you can configure Oracle ADVM and Oracle ACFS.

To create disk groups or manually configure Oracle ASM disks, start Oracle ASMCA, where Grid_home is the path to the Oracle Grid Infrastructure home:

$ cd Grid_home/bin
$ ./asmca

Related Topics

Page 102 of 187

Enabling Oracle ACFS on Oracle Restart Configurations

You must enable root access to use Oracle ACFS.

To enable root access, log in as root, navigate to the path Grid_home/crs/install, and run the script roothas.sh -lockacfs.

Where, Grid_home is the Oracle Grid Infrastructure home directory path.

For example:

# cd /u01/app/oracle/product/23.0.0/grid/crs/install
# roothas.sh -lockacfs

Page 103 of 187

Applying Patches During an Oracle Grid Infrastructure Installation or Upgrade

You can download and apply Release Updates (RUs) and one-off patches during an Oracle Grid Infrastructure 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 Grid Infrastructure home directory:

    $ cd /u01/app/oracle/product/23.0.0/grid
  5. Apply Release Updates (RUs) and any one-off patches during the installation or upgrade process:

    $ ./gridSetup.sh -applyRU /tmp/patch_ID -applyOneOffs /tmp/patch_ID

    Note:

    You can apply RUs and one-off patches separately or together in the same command.

  6. Complete the remaining steps in the Oracle Grid Infrastructure configuration wizard to complete the installation or upgrade.

Page 104 of 187

Patching and Switching Oracle Grid Infrastructure Homes

Use switchGridHome command to switch from the current Oracle Grid Infrastructure home to the patched Oracle Grid Infrastructure home.

You can use the switchGridHome command to switch between different RUs of the same release, for example from Oracle Grid Infrastructure 23.8 to Oracle Grid Infrastructure 23.9. You can also use the switchGridHome command to apply one-off patches.

  1. As the grid user, download the Oracle Grid Infrastructure 23.9 Gold image and extract the files into a new Oracle Grid Infrastructure home directory.

    $ mkdir -p /u01/app/oracle/product/23.9.0/grid
    $ chown grid:oinstall /u01/app/oracle/product/23.9.0/grid 
    $ cd /u01/app/oracle/product/23.9.0/grid 
    $ unzip -q download_location/grid.zip

    Note:

    The new Oracle Grid Infrastructure home path must be different from the current Oracle Grid Infrastructure home path.

  2. Install the Oracle Grid Infrastructure software with Oracle base and privileged operating system groups identical to the source Grid home.
    ./gridSetup.sh -setupHomeAs source_Grid_home

    Verify the pre-selected configuration values and respond to the installation screens.

  3. Download the Oracle AI Database RU version that you want to apply from My Oracle Support.

    For more information, see, Downloading Release Update Patches

  4. Download and install the latest OPatch version.

    For more information, see My Oracle Support note KB88313.

  5. Switch to the patched Oracle Grid Infrastructure home using one of the following methods:

    • Start the Oracle Grid Infrastructure installer in silent mode, with the -switchGridHome flag, from the patched home.

      $ /u01/app/oracle/product/23.9.0/grid/gridSetup.sh -silent -switchGridHome
    • Start the Oracle Grid Infrastructure installer in interactive mode from the patched home.
      $ /u01/app/oracle/product/23.9.0/grid/gridSetup.sh

      Then perform the following steps:

      1. Select the Patch Oracle Grid Infrastructure option in the Select Configuration Option window.
      2. Select the Do not update ACFS drivers option if the patch that you are installing contains operating system driver updates and you want to skip them.
      3. Respond to the installation screens with values appropriate for your environment.

      All Oracle Grid Infrastructure services start running from the new Grid home after the installation is complete.

  6. If you have successfully switched to the new Grid home and want to switch back to the old Grid home, then perform the following steps:

    1. As the root user, unlock the old Grid home.

      # Old_GI_Home/crs/install/roothas.sh -unlock -crshome Old_GI_Home
    2. As the grid user, run switchGridHome from the old Grid home.

      $ Old_GI_Home/gridSetup.sh -silent -switchGridHome [-zeroDowntimeGIPatching] [-skipDriverUpdate]

Related Topics

Page 105 of 187

Changing the Oracle Grid Infrastructure Base Path

Use this procedure to change the Oracle Grid Infrastructure base directory after installation.

This procedure applies to Oracle Grid Infrastructure 19c Release Update (19.21) and later releases.

Note:

Before changing the Grid base, shut down all executables running in the Grid base directory. Additionally, shut down any applications linked to Oracle shared libraries.

  1. As the root user, create a new Oracle base directory, then change the owner and group for the directory and files in the new Grid base.

    # mkdir -p /u02/app/grid
    # chown -R grid:oinstall /u02/app/grid
  2. Stop the Oracle Restart stack and the Trace File Analyzer (TFA).

    # $ORACLE_HOME/bin/crsctl stop has
    # tfactl stop
  3. Copy the Oracle Grid Infrastructure files from the old Grid base location to the new Grid base location, for example, from /u01/app/grid to /u02/app/grid.

    # cp -pR /u01/app/grid /u02/app/grid
  4. Create a backup of the old Oracle base to prevent the creation of new files.

    # mv /u01/app/grid /u01/app/grid.old
  5. Using a text editor, update the ORACLE_BASE parameter in the Grid_home/crs/install/crsconfig_params file to reflect the new Oracle base.

    ORACLE_BASE=/u02/app/grid
  6. Using a text editor, update the ORACLE_BASE parameter in the Grid_home/install/orabasetab file to reflect the new Oracle base.

    ORACLE_BASE=/u01/app/grid:/u02/app/grid:OraGI23Home1:N:
  7. Update the new Oracle base location in the Grid_home/inventory/ContentsXML/oraclehomeproperties.xml file and the Grid_home/network/admin/sqlnet.ora file.
  8. Using a text editor, update the olrconfig_loc parameter in the /etc/oracle/olr.loc file to reflect the new ORACLE_BASE path.

    olrconfig_loc=/u02/app/grid/crsdata/$HOSTNAME/olr/$HOSTNAME_23.olr
  9. Restore the Oracle Grid Infrastructure home file permissions.

    # /u01/app/oracle/product/23.0.0/grid/crs/install/roothas.sh -init
  10. Move the Oracle Autonomous Health Framework (AHF) data directory to the new Oracle base directory.

    # ahfctl movedatadir /u02/app/grid
  11. Start the Oracle Restart stack.

    # $ORACLE_HOME/bin/crsctl start has

Page 106 of 187

Installing Oracle AI Database

About Installing Oracle AI Database

Oracle AI Database and Oracle Grid Infrastructure are distributed as image-based ZIP files and can be installed through Oracle Universal Installer, silent or response-file methods, or Oracle Fleet Patching and Provisioning. Software is available from Oracle download portals and may also be provided on installation media. Oracle ASM requires a prior Oracle Grid Infrastructure for a standalone server installation, and earlier-release installers cannot install this release.

Read More: About Installing Oracle AI Database

About Image-Based Oracle AI Database Installation

Image-based installation creates an Oracle home, extracts the database image into it, and runs the setup wizard to register and configure the product. It supports single-instance and clustered installations, upgrades, automation, customized patched images, and enables all database options by default. The image must be extracted directly into an Oracle Optimal Flexible Architecture-compliant Oracle home before starting the wizard.

Read More: About Image-Based Oracle AI Database Installation

About Deploying Oracle AI Database Using Oracle FPP

Oracle Fleet Patching and Provisioning uses centrally managed gold images of Oracle homes to provision, patch, and upgrade database software. It supports single-instance databases on Oracle Restart, clusters, or standalone nodes, regardless of whether Oracle Grid Infrastructure is installed, across data-center and cloud environments. Rapid Home Provisioning has used the Oracle FPP name since Oracle Database 19c.

Read More: About Deploying Oracle AI Database Using Oracle FPP

Downloading Oracle Software

Oracle AI Database software can be downloaded from the Oracle website or Oracle Software Delivery Cloud, subject to the applicable license terms. Downloads should be stored in adequately sized product directories, verified against published file sizes and checksums, and extracted after download. Software Delivery Cloud requires account sign-in, product and platform selection, license acceptance, and digest verification.

Read More: Downloading Oracle Software

About Character Set Selection During Installation

The database character set should be selected carefully before creation because changing it later can require extensive data conversion. Oracle recommends the Unicode AL32UTF8 default, which supports broad language and technology compatibility and allows PDBs using most supported character sets to plug into the container database. Non-AL32UTF8 container databases generally permit only PDBs with the same character set; legacy-character-set PDBs can instead be created temporarily and plugged into an AL32UTF8 container.

Read More: About Character Set Selection During Installation

About Automatic Memory Management Installation Options

Typical installations generally enable automatic memory management, while Advanced installations allow manual allocation or automatic management. Automatic memory management assigns a target and dynamically balances memory between the SGA and instance PGA, but it cannot be selected when database instance memory exceeds 4 GB; automatic shared memory management should be used instead. The feature can also be enabled after installation, which requires a database restart.

Read More: About Automatic Memory Management Installation Options

Running the Installer in a Different Language

The installer language is determined by the operating system locale. Supported languages include Brazilian Portuguese, French, German, Italian, Japanese, Korean, Simplified Chinese, Spanish, and Traditional Chinese. If the session locale is unsupported, the installer runs in English.

Read More: Running the Installer in a Different Language

Installing the Oracle AI Database Software

Oracle AI Database can be installed through the graphical setup wizard or command-line and response-file methods, with Oracle Grid Infrastructure required beforehand for Oracle Restart or ASM use. Image-based installations extract db_home.zip into an OFA-compliant, non-symlinked Oracle home and start runInstaller from that directory; Release Updates can be applied with -applyRU, and root scripts can be automated or run manually. The setup supports database creation, gold-image generation, and command-line configuration, and non-CDB databases are no longer supported; EM Express is desupported in Oracle AI Database 26ai.

Read More: Installing the Oracle AI Database Software

Installing Oracle AI Database Using RPM Packages

RPM-based installation provides automated prerequisite checks, software extraction, ownership and inventory management, root configuration, and Oracle home creation for supported single-instance Enterprise Edition deployments. Software can be installed through yum or manually after installing the preinstallation RPM, then configured with DBCA or the provided service script, which creates a default container database, pluggable database, and listener. RPM patching and RPM-based upgrades are unsupported, Standard Edition 2 is unavailable, and multiple software versions may coexist in separate homes.

Read More: Installing Oracle AI Database Using RPM Packages

Single-Server Rolling Database Maintenance

Oracle AI Database 26ai supports rolling patches and local maintenance for Oracle RAC or RAC One Node databases on a single-node Grid Infrastructure cluster. A conventional single-instance database must first be converted to RAC or RAC One Node, after which a new database home and instance can be started and the database transferred with minimal interruption. Readiness can be checked with cluvfy, and the process can be orchestrated manually or through Oracle Fleet Patching and Provisioning.

Read More: Single-Server Rolling Database Maintenance

Page 107 of 187

About Installing Oracle AI Database

Oracle AI Database and Oracle Grid Infrastructure installation software is available as image-based zip files and can be installed using several options.

You can download Oracle AI Database software from the Oracle website or the Oracle Software Delivery Cloud portal. In most cases, you use the graphical user interface (GUI) provided by Oracle Universal Installer to install the software. However, you can also run silent mode installations, without using the GUI. You can also use Oracle Fleet Patching and Provisioning for Oracle AI Database and Oracle Grid Infrastructure (clusterware) deployments.

Oracle AI Database software may be available on installation media on-demand.

Note:

To install Oracle AI Database files on Oracle Automatic Storage Management (Oracle ASM), you must first complete an Oracle Grid Infrastructure for a standalone server installation. Oracle Grid Infrastructure for a standalone server includes Oracle Restart and Oracle ASM.

To upgrade an existing Oracle ASM installation, upgrade Oracle ASM by running an Oracle Grid Infrastructure upgrade. If you do not have Oracle ASM installed and you want to use Oracle ASM as your storage option, then you must complete an Oracle Grid Infrastructure for a standalone server installation before you start your Oracle AI Database installation.

You cannot use Oracle Universal Installer from an earlier Oracle release to install components from this release.

Page 108 of 187

About Image-Based Oracle AI Database Installation

Understand image-based installation to simplify installation and configuration of Oracle AI Database software.

To install Oracle AI Database, create the new Oracle home, extract the image file into the newly-created Oracle home, and run the setup wizard to register the Oracle AI Database product.

Using image-based installation, you can install and upgrade Oracle AI Database for single-instance and cluster configurations. If you install or clone an Oracle AI Database image, then all Oracle AI Database options such as Oracle Real Application Testing (rat) are enabled by default.

This installation feature streamlines the installation process and supports automation of large-scale custom deployments. You can also use this installation method for deployment of customized images, after you patch the base-release software with the necessary Release Updates (Updates) or Monthly Recommended Patches (MRPs).

Note:

You must extract the image software (db_home.zip) into the directory where you want your Oracle AI Database home to be located, and then run the Oracle AI Database Setup Wizard to start the Oracle AI Database installation and configuration. Oracle recommends that the Oracle home directory path you create is in compliance with the Oracle Optimal Flexible Architecture recommendations.

Page 109 of 187

About Deploying Oracle AI Database Using Oracle FPP

You can use Oracle Fleet Patching and Provisioning (Oracle FPP) to provision Oracle AI Database software.

Starting with Oracle Database 19c, Rapid Home Provisioning is renamed to Oracle Fleet Patching and Provisioning (Oracle FPP).

With Oracle Fleet Patching and Provisioning, you create, store, and manage templates of Oracle homes as images (called gold images) of Oracle software, such as databases, middleware, and applications. You can make a working copy of any gold image and then you can provision that working copy to any node in the data center or cloud computing environment.

You can use Oracle Fleet Patching and Provisioning to provision, patch, and upgrade single-instance databases running on Oracle Restart, on clusters, or on single, standalone nodes. These may be on nodes with or without Oracle Grid Infrastructure installed.

Related Topics

Page 110 of 187

Downloading Oracle Software

Select the method you want to use to download the software.

You can download Oracle AI Database software from the Oracle website or the Oracle Software Delivery Cloud portal and extract them to the Oracle home. Ensure that you review and understand the terms of the license.

Downloading the Installation Archive Files from the Oracle AI Database Website

Download the installation archive files from the Oracle AI Database downloads page.

  1. Use any browser to access the Oracle AI Database software downloads page:

  2. Go to the download page for the product to install.
  3. On the download page, identify the required disk space by adding the file sizes for each required file.

    The file sizes are listed next to the file names.

  4. Select a file system with enough free space to store and expand the archive files.

    In most cases, the available disk space must be at least twice the size of all of the archive files.

  5. On the file system, create a parent directory for each product (for example, OraDB26ai) to hold the installation directories.
  6. Download all of the installation archive files to the directory you created for the product.

    Note:

    For Oracle Database Client installations, there are two installation archive files available for download. The first file is the client installation binary and the second file is a client gold image file. Download the appropriate zip file based on the type of installation you want to perform.

  7. Verify that the files you downloaded are the same size as the corresponding files on the Oracle website. Also verify the checksums are the same as noted on the Oracle website using a command similar to the following, where filename is the name of the file you downloaded:

    cksum filename.zip
  8. Extract the files in each directory that you just created.

Downloading the Software from Oracle Software Delivery Cloud Portal

You can download the software from Oracle Software Delivery Cloud.

  1. Use a browser to access the Oracle Software Delivery Cloud portal:

    https://edelivery.oracle.com/

  2. Click Sign In and enter your Oracle account username and password.
  3. Type Oracle AI Database in the search bar and click Search. Click to select the Oracle AI Database version that you want to download.
  4. Click Continue to continue to the Checkout page.
  5. In the Checkout page, deselect any products that you do not want to download, select the operating system platform on which you want to install the software from the Platform/Languages column, and click Continue.
  6. Review the license agreement.
  7. Select the I reviewed and accept the Oracle License Agreement checkbox and click Continue.
  8. Click Download to start downloading the software.
  9. After you download the files, click View Digest to verify that the checksum matches the value listed on the download page.

Page 111 of 187

About Character Set Selection During Installation

Before you create the database, decide the character set that you want to use.

After a database is created, changing its character set is usually very expensive in terms of time and resources. Such operations may require converting all character data by exporting the whole database and importing it back. Therefore, it is important that you carefully select the database character set at installation time.

Oracle AI Database uses character sets for the following:

  • Data stored in SQL character data types ( CHAR, VARCHAR2, CLOB, and LONG ).
  • Identifiers such as table names, column names, and PL/SQL variables.
  • Stored SQL and PL/SQL source code, including text literals embedded in this code.

The default database character set of a database created from the General Purpose/Transaction Processing or the Data Warehousing template is Unicode AL32UTF8.

Unicode is the universal character set that supports most of the currently spoken languages of the world. It also supports many historical scripts (alphabets). Unicode is the native encoding of many technologies, including Java, XML, XHTML, ECMAScript, and LDAP. Unicode is ideally suited for databases supporting the Internet and the global economy.

Because AL32UTF8 is a multibyte character set, it requires slightly more CPU time for text processing compared to single-byte character sets. Also, storage space requirements are higher for text in most languages compared to corresponding legacy character sets. However, the universality and flexibility of Unicode that enables addition of data in new languages to applications running in an AL32UTF8 database generally outweighs these additional costs.

The database character set of an Oracle AI Database, that is, of its CDB$ROOT container, determines which pluggable databases (PDBs) can be plugged into it. If you use Unicode AL32UTF8 as your database character set, then you can plug in a PDB in any database character set supported by Oracle AI Database (with the exception of EBCDIC-based character sets). If you use any character set other than AL32UTF8 when creating the container database, you will be able to plug in PDBs in the same character set only. Therefore, you should generally use the default option for the database character set when installing a new database.

If you need to deploy PDBs in a given legacy character set to fulfill a specific compatibility, storage, or performance requirement, create a temporary container database in this legacy character set with one empty PDB. This PDB will have the same legacy database character set. Then, unplug this PDB and plug it into the target AL32UTF8 container database. Drop the temporary container database. You can use such a plugged-in PDB as a template to clone further PDBs in the same legacy character set as needed. You can use the same method to add further legacy character set template PDBs to the same AL32UTF8 container database, as required.

See also

Oracle AI Database Globalization Support Guide for more information about choosing a database character set for an Oracle AI Database.

Page 112 of 187

About Automatic Memory Management Installation Options

Decide if you want to configure Automatic Memory Management during installation.

During a Typical installation, you create your database with Oracle DBCA, and automatic memory management is enabled. If you choose Advanced installation, then you can either specify memory allocation manually, or enable automatic memory management.

If the total physical memory of your database instance is greater than 4 GB, then you cannot select the Oracle Automatic Memory Management option during database installation and creation. Instead, use automatic shared memory management. Automatic shared memory management automatically distributes the available memory among the various components as required, allowing the system to maximize the use of all available SGA memory.

With automatic memory management, the Oracle AI Database instances automatically manage and tune memory for you. With automatic memory management, you choose a memory target, and the instance automatically distributes memory between the system global area (SGA) and the instance program global area (instance PGA). As memory requirements change, the instance dynamically redistributes memory between the SGA and instance PGA.

You can enable automatic memory management either during, or after the database installation. Enabling automatic memory management after installation involves a shutdown and restart of the database.

Note:

By default, automatic memory management is disabled when you perform typical installation on a node that has more than 4 GB of RAM.

Related Topics

Page 113 of 187

Running the Installer in a Different Language

Describes how to run the installer in other languages.

Your operating system locale determines the language in which the database installer runs. You can run the installer in one of these languages:

  • Brazilian Portuguese (pt_BR)
  • French (fr)
  • German (de)
  • Italian (it)
  • Japanese (ja)
  • Korean (ko)
  • Simplified Chinese (zh_CN)
  • Spanish (es)
  • Traditional Chinese (zh_TW)

To run the database installer in a supported language, change the locale in which your operating system session is running before you start the installer.

If the selected language is not one of the supported languages, then the installer runs in English.

Page 114 of 187

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

Page 115 of 187

Installing Oracle AI Database Using RPM Packages

Learn how to leverage and take advantage of an RPM framework to easily deploy Oracle AI Database.

About RPM-Based Oracle AI Database Installation

Starting with Oracle Database 18c, you can install a single-instance Oracle Database or an Oracle Database Instant Client software using RPM packages.

An RPM-based installation performs preinstallation checks, extracts the database software, reassigns ownership of the extracted software to the preconfigured user and groups, maintains the Oracle inventory, and runs all root operations required to configure the Oracle AI Database software for a single-instance Oracle AI Database creation and configuration.

The RPM-based installation process detects when the minimum requirements for an installation are not met and prompts you to finish these minimum preinstallation requirements.

An RPM-based installation performs a software-only Oracle AI Database installation and creates an Oracle home. After the Oracle home is created, you can then use Oracle Database Configuration Assistant (Oracle DBCA) to create an Oracle AI Database.

The RPM-based installation process provides you with the option to create a database with the default settings using the /etc/init.d/oracledb_ORCLCDB-26ai configure service configuration script.

Restrictions and Guidelines for RPM-Based Installations

Review these guidelines before you start your RPM-based Oracle AI Database installation.

  • Patching Oracle AI Database software using RPMs is not supported. Please follow the regular patching process to apply Oracle AI Database patches.
  • An RPM-based Oracle AI Database installation is not available for Standard Edition 2.
  • RPM-based database upgrades using rpm -Uvh is not supported. For Oracle AI Database upgrades, follow the regular upgrade process.
  • An RPM-based installation supports the installation of multiple Oracle AI Database software versions into different Oracle homes on the same machine.

RPM Packages Naming Convention

The RPM packages naming convention includes information such as the version, release, and architecture.

The naming convention for RPM packages is name-version-release.architecture.operating system.rpm

The following table describes the variables used in the RPM oracle-ai-database-ee-26ai-1.0-1.el9.x86_64.rpm

Table: RPM Packages Naming Convention Example

VariableExampleDescription
nameoracle-ai-database-ee-26aiThe name of the Oracle AI Database edition and release.
version1.0The version number of the RPM package.
release1The release number of the RPM package.
operating systemel9The Oracle Linux operating system version of the RPM package.
architecturex86_64The architecture of the RPM package.

Related Topics

Running RPM Packages to Install Oracle AI Database

Perform the following steps to install and configure Oracle AI Database using RPM packages.

Installing Oracle AI Database RPM using yum
  1. Log in as root.
  2. If you are using Oracle Linux and have subscribed to Unbreakable Linux Network (ULN), you can install Oracle AI Database using a single yum command.
    # yum -y install oracle-ai-database-ee-26ai

    This command downloads and installs the Oracle AI Database Preinstallation RPM and the Oracle AI Database RPM packages.

    The installation of Oracle AI Database software is now complete, continue to the "Creating and Configuring an Oracle AI Database" section.

Installing Oracle AI Database RPM Manually
  1. Log in as root.
  2. Download and install the Oracle AI Database Preinstallation RPM:

    1. On Oracle Linux 8 and later

      # dnf -y install oracle-ai-database-preinstall-26ai
    2. On Red Hat Enterprise Linux 8

      # curl -o oracle-ai-database-preinstall-26ai-1.0-2.el8.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL8/appstream/x86_64/getPackage/oracle-ai-database-preinstall-26ai-1.0-2.el8.x86_64.rpm
      # yum -y localinstall oracle-ai-database-preinstall-26ai-1.0-2.el8.x86_64.rpm

      After successful installation, you can delete the downloaded RPM file:

      # rm oracle-ai-database-preinstall-26ai-1.0-2.el8.x86_64.rpm
    3. On Red Hat Enterprise Linux 9

      # curl -o oracle-ai-database-preinstall-26ai-1.0-3.el9.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL9/appstream/x86_64/getPackage/oracle-ai-database-preinstall-26ai-1.0-3.el9.x86_64.rpm
      # yum -y localinstall oracle-ai-database-preinstall-26ai-1.0-3.el9.x86_64.rpm

      After successful installation, you can delete the downloaded RPM file:

      # rm oracle-ai-database-preinstall-26ai-1.0-3.el9.x86_64.rpm
    4. On Red Hat Enterprise Linux 10

      # curl -o oracle-ai-database-preinstall-26ai-1.0-2.el10.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL10/appstream/x86_64/getPackage/oracle-ai-database-preinstall-26ai-1.0-2.el10.x86_64.rpm
      # yum -y localinstall oracle-ai-database-preinstall-26ai-1.0-2.el10.x86_64.rpm

      After successful installation, you can delete the downloaded RPM file:

      # rm oracle-ai-database-preinstall-26ai-1.0-2.el10.x86_64.rpm
  3. Access the software download page for Oracle AI Database RPM-based installation from Oracle Technology Network:

    https://www.oracle.com/database/technologies/oracle-database-software-downloads.html

  4. Depending on your operating system, download the .rpm file required for performing an RPM-based installation to a directory of your choice, such as the /tmp directory.

    For example, for Oracle Linux 8, download:

    oracle-ai-database-ee-26ai-1.0-1.el8.x86_64.rpm

    For example, for Oracle Linux 9, download:

    oracle-ai-database-ee-26ai-1.0-1.el9.x86_64.rpm

    For example, for Oracle Linux 10, download:

    oracle-ai-database-ee-26ai-1.0-1.el10.x86_64.rpm
  5. Install the database software using the yum localinstall command.

    • For Oracle Linux 8
      # cd /tmp
      # yum -y localinstall oracle-ai-database-ee-26ai-1.0-1.el8.x86_64.rpm

      Where, oracle-ai-database-ee-26ai-1.0-1.el8.x86_64.rpm is the fully qualified name of the Oracle Linux 8 Oracle AI Database RPM.

    • For Oracle Linux 9
      # cd /tmp
      # yum -y localinstall oracle-ai-database-ee-26ai-1.0-1.el9.x86_64.rpm

      Where, oracle-ai-database-ee-26ai-1.0-1.el9.x86_64.rpm is the fully qualified name of the Oracle Linux 9 Oracle AI Database RPM.

    • For Oracle Linux 10
      # cd /tmp
      # yum -y localinstall oracle-ai-database-ee-26ai-1.0-1.el10.x86_64.rpm

      Where, oracle-ai-database-ee-26ai-1.0-1.el10.x86_64.rpm is the fully qualified name of the Oracle Linux 10 Oracle AI Database RPM.

The installation of Oracle AI Database software is now complete.

Creating and Configuring an Oracle AI Database

To create a sample database with the default settings, perform the following steps:

  1. Log in as root.
  2. To configure a sample Oracle AI Database instance, run the following service configuration script:

    # /etc/init.d/oracledb_ORCLCDB-26ai configure

Note:

You can modify the configuration parameters by editing the /etc/sysconfig/oracledb_ORCLCDB-26ai.conf file.

This script creates a container database (ORCLCDB) with one pluggable database (ORCLPDB1) and configures the listener at the default port (1521).

Review the status information that is displayed on your screen.

Related Topics

Page 116 of 187

Single-Server Rolling Database Maintenance

Starting with Oracle AI Database 26ai, you can apply rolling patches and perform maintenance operations locally for an Oracle RAC database with one instance or Oracle RAC One Node database on an Oracle Grid Infrastructure cluster.

If your database is not Oracle RAC database or Oracle RAC One Node, then in order to use Single-Server Rolling database Maintenance feature, first convert your single instance database to Oracle RAC database or Oracle RAC One Node database on a single-node cluster. Then, create a new database home and enable single-server rolling maintenance which creates and starts a new database instance of the same database from the new home. You can now transfer your database from the old Oracle home to the new Oracle home.

Note: The conversion is possible if the single instance database uses file systems accessible to the single server. Use the following command to check the readiness of the server for patching:

cluvfy stage -pre patch -db -dbhome oracle_home -dest_dbhome dest_dbhome -localrolling

Single-server rolling database maintenance ensures uninterrupted database availability to single instance databases during maintenance operations.

To use single-server rolling database maintenance, the existing single instance database is converted to a Oracle RAC or Oracle RAC One Node database. You can benefit from the minimal requirements of the general purpose cluster to convert the database and benefit from the improved availability of your databases. The steps can be orchestrated with custom scripts or by using Oracle FPP.

To apply rolling patches for a single instance Oracle AI Database follow this procedure:

  1. Converting Single Instance on a Single Server to Oracle RAC One Node Using Oracle DBCA
  2. Patching Oracle Database in Local Rolling Mode

Page 117 of 187

Configuring Oracle Homes

About Read-Only Oracle Homes

Read-only Oracle Homes separate Oracle software installation from configuration and operational data. Although the Oracle Home is configured as read-only, its file system and mount point remain read/write. Configuration files and logs are relocated outside ORACLE_HOME into ORACLE_BASE_HOME and ORACLE_BASE_CONFIG, and read-only mode should be enabled with roohctl before creating the database or listener.

Read More: About Read-Only Oracle Homes

About Oracle Base Home

ORACLE_BASE_HOME stores user-specific, instance-specific, networking, and log files for both read-only and read/write Oracle Homes. In read/write mode it is the same as ORACLE_HOME; in read-only mode it is located at ORACLE_BASE/homes/HOME_NAME. The orabasehome command, run from ORACLE_HOME/bin, reports the applicable path.

Read More: About Oracle Base Home

About Oracle Base Config

ORACLE_BASE_CONFIG stores Oracle Home configuration files, including database files in its dbs subdirectory. In read/write mode it equals ORACLE_HOME, while in read-only mode it equals ORACLE_BASE, allowing configuration files such as SPFILEs and password files to reside outside the software installation. The orabaseconfig command reports the applicable location.

Read More: About Oracle Base Config

About orabasetab

The orabasetab file, located at ORACLE_HOME/install/orabasetab, defines ORACLE_HOME, ORACLE_BASE, HOME_NAME, and whether the home is read-only. Its final colon-delimited entry identifies the Oracle Home, base directory, internal home name, and mode flag, with Y indicating read-only and N indicating read/write. In read-only mode, ORACLE_BASE_HOME is ORACLE_BASE/homes/HOME_NAME and ORACLE_BASE_CONFIG is ORACLE_BASE; in read/write mode, all three logical locations equal ORACLE_HOME.

Read More: About orabasetab

Location of Networking Files in a Read-Only Oracle Home

In a read-only Oracle Home, networking directories are stored under ORACLE_BASE_HOME/network, while read/write installations use ORACLE_HOME/network. tnsnames.ora is searched for in TNS_ADMIN, /etc, ORACLE_BASE_HOME/network/admin, and ORACLE_HOME/network/admin; sqlnet.ora is searched for in TNS_ADMIN, ORACLE_BASE_HOME/network/admin, and ORACLE_HOME/network/admin. Password files are searched for first in ORACLE_BASE_CONFIG/dbs and then ORACLE_HOME/dbs.

Read More: Location of Networking Files in a Read-Only Oracle Home

Enabling a Read-Only Oracle Home

Enable read-only mode after a software-only Oracle AI Database installation by running roohctl -enable, then create the database with DBCA. The Oracle Home must be configured before creating the database or listener. For Oracle RAC, run roohctl on every node or use its nodelist option to specify all cluster nodes.

Read More: Enabling a Read-Only Oracle Home

Copying demo Directories to Oracle Base Home

Because demo directories may be modified when used, copy the required directories from ORACLE_HOME to ORACLE_BASE_HOME in a read-only installation. The affected locations include jdbc, odbc, ord/http, precomp, rdbms, sqlplus, and xdk demos; symbolic links must replace the original odbc, precomp, rdbms, and xdk paths as specified. Also copy or synchronize init.ora into ORACLE_BASE_HOME. The plsql/demo ncmpdemo.sql file is not usable in read-only mode.

Read More: Copying demo Directories to Oracle Base Home

Determining If an Oracle Home is Read-Only

Run the orabasehome command from ORACLE_HOME/bin to determine the Oracle Home mode. If it returns the same path as ORACLE_HOME, the installation is read/write; if it returns ORACLE_BASE/homes/HOME_NAME, the installation is read-only. The ORACLE_HOME environment variable must be set before running the command.

Read More: Determining If an Oracle Home is Read-Only

File Path and Directory Changes in Read-Only Oracle Homes

Read-only Oracle Homes relocate writable configuration and operational directories outside the software installation. ORACLE_BASE_HOME becomes ORACLE_BASE/homes/HOME_NAME, ORACLE_BASE_CONFIG becomes ORACLE_BASE, networking files move under ORACLE_BASE_HOME/network, database configuration files under ORACLE_BASE_CONFIG/dbs, and hs, mgw, and drdaas administration files under ORACLE_BASE_HOME. In read/write mode, these locations remain within ORACLE_HOME; the orabasehome and orabaseconfig commands display the active paths.

Read More: File Path and Directory Changes in Read-Only Oracle Homes

Page 118 of 187

About Read-Only Oracle Homes

Understand how read-only Oracle homes work and how you can configure read-only Oracle homes. Learn about read-only Oracle home concepts like Oracle base home, Oracle base config, and orabasetab.

With Oracle AI Database 26ai, an Oracle home is available in read/write mode by default. However, you can choose to configure an Oracle home in read-only mode after you have performed a software-only Oracle AI Database installation.

A read-only Oracle home does not imply that the file system and the Oracle home is in read-only mode. The file system and mount point should always be in read/write mode.

A read-only Oracle Home simplifies provisioning by implementing separation of installation and configuration.

In a read-only Oracle home, the configuration data and log files reside outside of the read-only Oracle home.

Apart from the traditional ORACLE_BASE and ORACLE_HOME directories, the following directories contain files that used to be in ORACLE_HOME:

  • ORACLE_BASE_HOME
  • ORACLE_BASE_CONFIG

Ensure that you enable read-only Oracle home before you create the database or listener.

When you run the roohctl script to enable a read-only Oracle home, the Oracle home file system will continue to be a read/write file system.

Note:

This feature does not affect how database administrators monitor, diagnose, and tune their system performance.

Page 119 of 187

About Oracle Base Home

Both, in a read-only ORACLE_HOME and read/write ORACLE_HOME, the user-specific files, instance-specific files, and log files reside in a location known as the ORACLE_BASE_HOME.

In a read/write ORACLE_HOME, the ORACLE_BASE_HOME path is the same as the ORACLE_HOME directory. However, in a read-only ORACLE_HOME, the ORACLE_BASE_HOME directory is not co-located with ORACLE_HOME but is located at ORACLE_BASE/homes/HOME_NAME. Where, HOME_NAME is the internal name for ORACLE_HOME.

For example, the networking directories network/admin, network/trace, and network/log are located in the ORACLE_BASE_HOME directory. In a read/write ORACLE_HOME the networking directories appear to be in ORACLE_HOME because ORACLE_BASE_HOME is co-located with ORACLE_HOME, whereas in a read-only ORACLE_HOME the networking directories are located in ORACLE_BASE/homes/HOME_NAME.

To print the ORACLE_BASE_HOME path, run the orabasehome command from the $ORACLE_HOME/bin directory:

$ setenv ORACLE_HOME /u01/app/oracle/product/23.0.0/dbhome_1
$ cd $ORACLE_HOME/bin
$ ./orabasehome

The orabasehome command returns the location of ORACLE_BASE_HOME irrespective of whether the home is a read-only ORACLE_HOME or a read/write ORACLE_HOME.

For example, to know the location of networking files like sqlnet.ora, tnsnames.ora, or listener.ora, run orabasehome:

Example: Output in a Read-Only ORACLE_HOME

$ ./orabasehome
/u01/app/oracle/homes/OraDB23Home1

Where, /u01/app/oracle is ORACLE_BASE and OraDB23Home1 is the HOME_NAME.

Example: Output in a Read/Write ORACLE_HOME

$ ./orabasehome
/u01/app/oracle/product/23.0.0/dbhome_1

Where, /u01/app/oracle/product/23.0.0/dbhome_1 is the ORACLE_HOME.

Page 120 of 187

About Oracle Base Config

Both, in a read-only ORACLE_HOME and read/write ORACLE_HOME, the configuration files reside in a location known as ORACLE_BASE_CONFIG.

In a read/write ORACLE_HOME, the ORACLE_BASE_CONFIG path is the same as the ORACLE_HOME path because it is located at $ORACLE_HOME. However, in a read-only ORACLE_HOME, the ORACLE_BASE_CONFIG path is the same as ORACLE_BASE.

ORACLE_BASE_CONFIG/dbs contains the configuration files for ORACLE_HOME. Each file in the dbs directory contains $ORACLE_SID so that the directory can be shared by many different ORACLE_SIDs.

To print the ORACLE_BASE_CONFIG path, run the orabaseconfig command from the $ORACLE_HOME/bin directory:

$ setenv ORACLE_HOME /u01/app/oracle/product/23.0.0/dbhome_1
$ cd $ORACLE_HOME/bin
$ ./orabaseconfig

The orabaseconfig command returns the location of ORACLE_BASE_CONFIG irrespective of whether the home is a read-only ORACLE_HOME or a read/write ORACLE_HOME.

For example, to know the location of configuration files like SPFILE and the password file, run orabaseconfig:

Example: Output in Read-Only ORACLE_HOME

$ ./orabaseconfig
/u01/app/oracle

Where, /u01/app/oracle is the ORACLE_BASE.

Example: Output in Read/Write ORACLE_HOME

$ ./orabaseconfig
/u01/app/oracle/product/23.0.0/dbhome_1

where, /u01/app/oracle/product/23.0.0/dbhome_1 is the ORACLE_HOME.

Page 121 of 187

About orabasetab

The orabasetab file is used to define fundamental directories based on $ORACLE_HOME, ORACLE_BASE, ORACLE_BASE_HOME and ORACLE_BASE_CONFIG.

The orabasetab file resides in ORACLE_HOME/install/orabasetab. To determine if an ORACLE_HOME is read-only or read/write, check for the presence of the orabasetab file. The orabasetab file also defines the ORACLE_BASE and the HOME_NAME of the Oracle home. HOME_NAME is the internal name for ORACLE_HOME.

The last line in the orabasetab file, which starts with $ORACLE_HOME, defines the directories for $ORACLE_HOME. The last line consists of four fields, each separate by a colon delimiter(:).

  1. The first field matches the current $ORACLE_HOME.
  2. The second field defines the ORACLE_BASE for the current ORACLE_HOME.
  3. The third field defines the HOME_NAME which is used in constructing the ORACLE_BASE_HOME path in a read-only ORACLE_HOME.
  4. The fourth field displays Y in a read-only ORACLE_HOME and N in a read/write ORACLE_HOME.

In a read-only ORACLE_HOME, the ORACLE_BASE_HOME path is ORACLE_BASE/homes/HOME_NAME and ORACLE_BASE_CONFIG is the same as ORACLE_BASE.

In a read/write ORACLE_HOME, ORACLE_HOME, ORACLE_BASE_HOME and ORACLE_BASE_CONFIG are all the same.

Viewing an orabasetab File

  1. Log in as the Oracle installation owner user account (oracle).
  2. Go to the $ORACLE_HOME/install directory.

    $ cd /u01/app/oracle/product/23.0.0/dbhome_1/install
  3. View the contents of the orabasetab file.
    $ cat orabasetab
    /u01/app/oracle/product/23.0.0/dbhome_1:/u01/app/oracle:OraDB23Home1:Y:

    In this example, a Y in the fourth field at the end of the line indicates you have a read-only Oracle home.

Page 122 of 187

Location of Networking Files in a Read-Only Oracle Home

Learn about the search order and location of networking files like sqlnet.ora, tnsnames.ora, or listener.ora in a read-only Oracle home.

The networking directories network/admin, network/trace, and network/log are located in the ORACLE_BASE_HOME directory. In a read/write ORACLE_HOME the networking directories appear to be in ORACLE_HOME because ORACLE_BASE_HOME is co-located with ORACLE_HOME, whereas in a read-only ORACLE_HOME the networking directories are located in ORACLE_BASE/homes/HOME_NAME.

tnsnames.ora

The order for checking the tnsnames.ora file in a read-only Oracle home is:

  1. The directory specified by the TNS_ADMIN environment variable.
  2. The /etc directory.
  3. The ORACLE_BASE_HOME/network/admin directory.
  4. The ORACLE_HOME/network/admin directory.

sqlnet.ora

The order for checking the sqlnet.ora file in a read-only Oracle home is:

  1. The directory specified by the TNS_ADMIN environment variable.
  2. The ORACLE_BASE_HOME/network/admin directory.
  3. The ORACLE_HOME/network/admin directory.

Password Files

The search order for password files for Oracle homes is ORACLE_BASE_CONFIG/dbs followed by ORACLE_HOME/dbs. This helps prioritize to search for the password file outside of ORACLE_HOME when read-only Oracle home is enabled.

Related Topics

Page 123 of 187

Enabling a Read-Only Oracle Home

Configure your Oracle home as a read-only Oracle home after you have performed a software-only Oracle AI Database installation.

To enable a read-only Oracle home:

  1. Perform a software-only Oracle AI Database installation.
  2. Run the roohctl -enable script.
  3. Run Oracle DBCA to create a database.

Note:

Ensure that you enable read-only Oracle home before you create the database or listener.

Software-Only Database Installation

  1. Log in as the Oracle installation owner user account (oracle) that you want to own the software binaries.
  2. 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.
  3. Create the 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
    $ chown oracle:oinstall /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.

  4. From the Oracle home directory, run the runInstaller command to start the Oracle AI Database installer.
  5. In the Select Configuration Option screen, select Set Up Software Only.
  6. Select your installation type. Installation screens vary depending on the installation option you select. Respond to the configuration prompts as needed.

Note:

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

Run the roohctl Script

  1. Go to the bin directory

    $ cd /u01/app/oracle/product/23.0.0/dbhome_1/bin
  2. Run the roohctl script to enable read-only Oracle home.

    $ ./roohctl -enable
  3. On Oracle Real Application Clusters (Oracle RAC) installations, run the preceding roohctl script on every node of the cluster. Alternatively, run the roohctl script with the nodelist option and provide the list of cluster nodes:

    $ ./roohctl -enable -nodelist comma_separated_list_of_nodes

Run Oracle DBCA

  1. Ensure that you are still in the bin directory and run Oracle DBCA.

    $ ./dbca
  2. In the Select Database Operation screen, select Create a Database.
  3. The configuration screens vary depending on the options you select. Respond to the prompts as needed.

Note:

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

Page 124 of 187

Copying demo Directories to Oracle Base Home

In a read-only mode ORACLE_HOME, you must copy the demo directories listed in this topic from ORACLE_HOME to ORACLE_BASE_HOME.

Oracle AI Database contains various demo directories that include a variety of examples and product demonstrations that you can use to learn about the products, options, and features of Oracle AI Database. In a read-only mode ORACLE_HOME, you cannot use these demo directories in ORACLE_HOME because writes are performed to these demo directories when they are used.

Many of the demo directories are not available by default. You must install Oracle AI Database Examples to view and use the examples and product demonstrations.

Copy the respective demo directory to the corresponding location in ORACLE_BASE_HOME. Now, you can use this copy of the demo directory.

You must copy the following demo directories from ORACLE_HOME to ORACLE_BASE_HOME:

  • jdbc/demo
  • odbc/demo
  • ord/http/demo
  • precomp/demo
  • rdbms/demo
  • sqlplus/demo
  • xdk/demo

You must also create symbolic links for the odbc/demo, precomp/demo, rdbms/demo, and xdk/demo demo directories. See the "Creating Symbolic Links" section in this topic.

Copying demo Directories

For example, to copy the rdbms/demo directory from ORACLE_HOME to ORACLE_BASE_HOME, perform the following:

  1. Login as the Oracle software owner user (oracle).
  2. Check if the rdbms/demo directory is copied to ORACLE_BASE_HOME.

    $ ls -l -d $(orabasehome)/rdbms/demo
  3. If the rdbms/demo directory has not been copied, then create it and copy it.

    $ mkdir -p $(orabasehome)/rdbms
    $ cp -r $ORACLE_HOME/rdbms/demo $(orabasehome)/rdbms/demo

Similarly, copy all the demo directories listed earlier from ORACLE_HOME to ORACLE_BASE_HOME.

Creating Symbolic Links

You must create symbolic links for the odbc/demo, precomp/demo, rdbms/demo, and xdk/demo demo directories.

For rdbms/demo, replace $ORACLE_HOME/rdbms/demo with a symbolic link to the copy.

  1. Ensure that the symbolic link does not already exist.

    $ ls -l -d $ORACLE_HOME/rdbms/demo
  2. If $ORACLE_HOME/rdbms/demo is still the original demo directory, rename it and replace it with the symbolic link.

    $ cd $ORACLE_HOME/rdbms
    $ mv demo demo.installed
    $ ln -s $(orabasehome)/rdbms/demo $ORACLE_HOME/rdbms/demo

For odbc/demo, replace $ORACLE_HOME/odbc/demo with a symbolic link to the copy.

  1. Ensure that the symbolic link does not already exist.

    $ ls -l -d $ORACLE_HOME/odbc/demo
  2. If $ORACLE_HOME/odbc/demo is still the original demo directory, rename it and replace it with the symbolic link.

    $ cd $ORACLE_HOME/odbc
    $ mv demo demo.installed
    $ ln -s $(orabasehome)/odbc/demo $ORACLE_HOME/odbc/demo

For precomp/demo, replace $ORACLE_HOME/precomp/demo with a symbolic link to the copy.

  1. Ensure that the symbolic link does not already exist.

    $ ls -l -d $ORACLE_HOME/precomp/demo
  2. If $ORACLE_HOME/precomp/demo is still the original demo directory, rename it and replace it with the symbolic link.

    $ cd $ORACLE_HOME/precomp
    $ mv demo demo.installed
    $ ln -s $(orabasehome)/precomp/demo $ORACLE_HOME/precomp/demo

The xdk/demo directory requires a symbolic link at $ORACLE_HOME/xdk/include pointing to $(orabasehome)/xdk/include after you copy the xdk/demo directory.

  1. Ensure that the symbolic link does not already exist:

    $ ls -l -d $ORACLE_HOME/xdk/include
  2. If the symbolic link does not exist, then, run the following command:

    $ ln -s $ORACLE_HOME/xdk/include $(orabasehome)/xdk/include

Note:

In the plsql/demo directory, ncmpdemo.sql is unusable in read-only mode.

Copying the init.ora File

Copy the init.ora file from ORACLE_HOME to ORACLE_BASE_HOME.

  1. Login as the Oracle software owner user (oracle).
  2. Check if the init.ora file exists in ORACLE_BASE_HOME.
    $ ls $(orabasehome)/init.ora

    If an init.ora file exists in ORACLE_BASE_HOME, then update this init.ora file to be in-sync with the $ORACLE_HOME/init.ora file.

  3. If the init.ora file does not exist in ORACLE_BASE_HOME, then copy it from ORACLE_HOME.

    $ cp $ORACLE_HOME/init.ora $(orabasehome)/init.ora

Related Topics

Page 125 of 187

Determining If an Oracle Home is Read-Only

Run the orabasehome command to determine if your Oracle home is a read/write or read-only Oracle home.

If the output of the orabasehome command is the same as $ORACLE_HOME, then your Oracle home is in read/write mode. If the output displays the path ORACLE_BASE/homes/HOME_NAME, then your Oracle home is in read-only mode.

  1. Set the ORACLE_HOME environment variable:

    Bourne, Bash or Korn shell:

    $ ORACLE_HOME=/u01/app/oracle/product/23.0.0/dbhome_1
    $ export ORACLE_HOME

    C shell:

    % setenv ORACLE_HOME /u01/app/oracle/product/23.0.0/dbhome_1
  2. Go to the bin directory and run the orabasehome command:
    $ cd $ORACLE_HOME/bin
    $ ./orabasehome
    /u01/app/oracle/homes/OraDB23Home1

    In a read-only mode Oracle home, orabasehome prints the value of ORACLE_BASE/homes/HOME_NAME, and in a read-write mode Oracle home, orabasehome prints the value of $ORACLE_HOME.

    In this example, the Oracle home is in read-only mode.

Page 126 of 187

File Path and Directory Changes in Read-Only Oracle Homes

Learn from these examples the differences between hierarchical file mappings in a read-only Oracle home compared to a read/write Oracle home.

This example shows an Optimal Flexible Architecture-compliant Oracle AI Database installation, for the user oracle, with the ORACLE_HOME, ORACLE_BASE, ORACLE_BASE_HOME, and ORACLE_BASE_CONFIG logical locations. The database files are mounted on /u01 and the HOME_NAME is OraDB23Home1.

This example also shows the changes in the Oracle AI Database software defined paths of configuration files, log files, and other directories in a read-only Oracle home when compared to a read/write Oracle home.

Table: Read-Only Oracle Home and Read/Write Oracle Home File Path Examples

DirectoryRead-Only Oracle Home File PathRead/Write Oracle Home File Path
ORACLE_HOME/u01/app/oracle/product/23.0.0/dbhome_1/u01/app/oracle/product/23.0.0/dbhome_1
ORACLE_BASE/u01/app/oracle//u01/app/oracle/
ORACLE_BASE_HOME

ORACLE_BASE/homes/HOME_NAME

(or)

/u01/app/oracle/homes/OraDB23Home1

ORACLE_HOME

(or)

/u01/app/oracle/product/23.0.0/dbhome_1

ORACLE_BASE_CONFIG

ORACLE_BASE

(or)

/u01/app/oracle/

ORACLE_HOME

(or)

/u01/app/oracle/product/23.0.0/dbhome_1

network

ORACLE_BASE_HOME/network/admin

(or)

/u01/app/oracle/homes/OraDB23Home1/network/admin

ORACLE_HOME/network/admin

(or)

/u01/app/oracle/product/23.0.0/dbhome_1/network/admin

dbs

ORACLE_BASE_CONFIG/dbs

(or)

/u01/app/oracle/dbs

ORACLE_HOME/dbs

(or)

/u01/app/oracle/product/23.0.0/dbhome_1/dbs

hs

ORACLE_BASE_HOME/hs/admin

(or)

/u01/app/oracle/homes/OraDB23Home1/hs/admin

ORACLE_HOME/hs/admin

(or)

/u01/app/oracle/product/23.0.0/dbhome_1/hs/admin

mgw

ORACLE_BASE_HOME/mgw/admin

(or)

/u01/app/oracle/homes/OraDB23Home1/mgw/admin

ORACLE_HOME/mgw/admin

(or)

/u01/app/oracle/product/23.0.0/dbhome_1/mgw/admin

drdaas

ORACLE_BASE_HOME/drdaas/admin

(or)

/u01/app/oracle/homes/OraDB23Home1/drdaas/admin

ORACLE_HOME/drdaas/admin

(or)

/u01/app/oracle/product/23.0.0/dbhome_1/drdaas/admin

  • To print the ORACLE_BASE_HOME path, run:

    $ setenv ORACLE_HOME /u01/app/oracle/product/23.0.0/dbhome_1
    $ cd $ORACLE_HOME/bin
    $ ./orabasehome
  • To print the ORACLE_BASE_CONFIG path, run:

    $ setenv ORACLE_HOME /u01/app/oracle/product/23.0.0/dbhome_1
    $ cd $ORACLE_HOME/bin
    $ ./orabaseconfig

Page 127 of 187

Oracle AI Database Postinstallation Tasks

Complete configuration tasks after you install Oracle AI Database.

You are required to complete some configuration tasks after Oracle AI Database is installed. In addition, Oracle recommends that you complete additional tasks immediately after installation. You must also complete product-specific configuration tasks before you use those products.

This chapter describes basic configuration only. Refer to product-specific administration and tuning guides for more detailed configuration and tuning information.

Downloading Release Update Patches

Download and install Oracle Release Updates (RUs) and Monthly Recommended Patches (MRPs) after installation by searching My Oracle Support by patch, bug, product, release, platform, or language criteria. Review each patch’s README before applying it. For Oracle AI Database 26ai, Oracle recommends out-of-place patching with gold images; OPatch and OPatchAuto remain available for in-place patching, while RUs are not supported for the Free release.

Read More: Downloading Release Update Patches

Oracle AI Database Patching

Oracle AI Database 26ai Release Updates are delivered as gold images for out-of-place patching or binary patches for in-place application with OPatch or OPatchAuto. Out-of-place patching involves downloading and extracting the gold image, creating a new Oracle home with runInstaller -setupDBHomeAs, and moving the database with DBCA or Oracle FPP Local Mode; in clustered environments, FPP commands must be run from one node and retried from that same node if they fail.

Read More: Oracle AI Database Patching

Unlocking Accounts and Resetting Oracle AI Database User Passwords

Most administrative accounts are locked or have revoked passwords after installation, so required accounts must be explicitly unlocked and assigned secure passwords. Review predefined and Oracle-maintained accounts carefully, avoid modifying accounts marked as Oracle maintained, and use SQL*Plus as SYSDBA with ALTER USER to lock, unlock, or reset accounts. EM Express is desupported in Oracle AI Database 26ai; use supported database management tools instead.

Read More: Unlocking Accounts and Resetting Oracle AI Database User Passwords

About Installing Oracle Autonomous Health Framework

Oracle Autonomous Health Framework is preinstalled with Oracle AI Database and provides proactive health checks and diagnostic collection across database, Grid Infrastructure, RAC, GoldenGate, Exadata, SuperCluster, Recovery Appliance, and related deployments. Updates are included with database Release Updates or available through My Oracle Support, and Oracle recommends maintaining the latest version.

Read More: About Installing Oracle Autonomous Health Framework

Enabling and Disabling Oracle AI Database Options After Installation

Use the postinstallation chopt utility in ORACLE_HOME/bin to enable or disable supported database options such as Partitioning and Real Application Testing. The database must be stopped before running the command and restarted afterward; cloned or image-based installations enable all options by default. Oracle Advanced Analytics cannot be disabled with chopt, and OLAP-related technologies are deprecated.

Read More: Enabling and Disabling Oracle AI Database Options After Installation

Creating a Fast Recovery Area

Create a fast recovery area to centralize RMAN backups, archived logs, control-file backups, and database copies, enabling faster recovery and automatic obsolete-file management. Configure it with DB_RECOVERY_FILE_DEST and DB_RECOVERY_FILE_DEST_SIZE, preferably on a separate ASM disk group sized for several days of recovery data or more. Use ASMCA to create and configure the disk group, selecting an appropriate name, redundancy level, and eligible disks.

Read More: Creating a Fast Recovery Area

About Changes in Default SGA Permissions for Oracle AI Database

Oracle AI Database restricts read and write access to the System Global Area to the installation owner by default, improving security but potentially limiting OSDBA administrators. The ALLOW_GROUP_ACCESS_TO_SGA parameter controls whether OSDBA group members can access the SGA; its default FALSE setting is recommended, although it can be changed to TRUE when group read access is required.

Read More: About Changes in Default SGA Permissions for Oracle AI Database

Setting Language and Locale Preferences for Client Connections

Configure client locale and character-set settings according to the application, operating system, and I/O device. OCI applications use NLS_LANG and related settings, with the character-set component matching the device encoding; an incorrect value can cause data loss. JDBC applications instead use the Java VM locale and Unicode internally, while three-tier deployments may define locale settings in application-server configuration.

Read More: Setting Language and Locale Preferences for Client Connections

Recompile Invalid Objects in the Database

After installation, patching, or upgrading, recompile invalid objects across the CDB and PDBs using Oracle scripts such as utlrp.sql, utlprp.sql, or utlprpom.sql, executed through catcon.pl. AutoUpgrade generally recompiles Oracle-maintained objects automatically, while administrators can choose serial or parallel recompilation, process Oracle-owned objects first, and control PDB concurrency and logging through command parameters.

Read More: Recompile Invalid Objects in the Database

About the oradism Utility in Oracle AI Database

The oradism utility enables Oracle AI Database to perform operations requiring privileged operating-system access on Linux. Oracle installs and configures it automatically as a root-owned binary in $ORACLE_HOME/bin; its background process, ora_dism_<sid>, starts with the database and stops during shutdown. Alert-log errors should prompt verification of the binary’s location and ownership.

Read More: About the oradism Utility in Oracle AI Database

Checking Installed Oracle AI Database Contents and Directory Location

To inspect installed Oracle AI Database products and their locations, launch Oracle Universal Installer from $ORACLE_HOME/oui/bin, open Installed Products, select the relevant product, and view its details. Close the inventory and exit the installer after reviewing the installation contents.

Read More: Checking Installed Oracle AI Database Contents and Directory Location

Setting the Oracle User Environment Variables

Configure the installation owner’s profile on every cluster node with ORACLE_BASE, ORACLE_HOME, and ORACLE_SID, and add $ORACLE_HOME/bin to PATH. Correctly setting these variables is required for SQL*Plus and other Oracle utilities to locate the database installation and instance.
Read More: Setting the Oracle User Environment Variables

Page 128 of 187

Oracle AI Database Patching

After you upgrade to Oracle AI Database 26ai, you can install patches either as gold images or individual software patches by downloading the patches from My Oracle Support.

About Oracle AI Database Release Update Patches

Oracle provides quarterly updates in the form of Release Updates (RUs) to release new features, upgrade existing features, enhance security, or fix problems with supported software.

Starting with Oracle AI Database 26ai, RUs are delivered in two formats:

  • As a gold image that you can install out-of-place like a new software release.
  • As a binary patch that you can apply in-place using OPatch or OPatchAuto.

You can apply out-of-place Oracle AI Database patches using the following steps:

  1. Download the RU as a gold image.
  2. Create a new Oracle home (target) identical to the old Oracle home (source) in the same Oracle base as the source Oracle home, using runInstaller -setupDBHomeAs .
  3. Move Oracle AI Database from the old Oracle home to the new Oracle home.

After you move the database to the new Oracle home, all database services will start from the new home.

Related Topics

Applying Out-of-Place Oracle AI Database Patches

Use this procedure to perform an out-of-place patching of Oracle AI Database.

  1. Download the gold image of the desired Release Update (RU) on the first node and extract the files into a new Oracle home directory. For example:

    $ mkdir -p /u01/app/oracle/product/23.5.0/dbhome_1
    $ chgrp oinstall /u01/app/oracle/product/23.5.0/dbhome_1
    $ cd /u01/app/oracle/product/23.5.0/dbhome_1
    $ unzip -q /tmp/23_5_ru.zip
  2. Configure a new Oracle home identical to the old Oracle home runInstaller.
    $ ./runInstaller -silent -setupDBHomeAs source_Oracle_home

    This step retrieves configuration information, such as users and groups used for installing Oracle AI Database software for the first time, and installs the Oracle AI Database software in the new Oracle home.

  3. Move Oracle AI Database from the old home to the new home using the Oracle DBCA command-line interface. Run the following Oracle DBCA command from the new Oracle home.
    $ /u01/app/oracle/product/23.5.0/dbhome_1/bin/dbca -silent -moveDatabase -sourceDB db_unique_name

    Where, -sourceDB is the database unique name (DB_UNIQUE_NAME) for Oracle AI database or system identifier (ORACLE_SID) for single-instance Oracle AI Database.

    Refer to Oracle Multitenant Administrator's Guide for additional Oracle DBCA commands and options for Oracle Real Application Clusters (Oracle RAC) and single-instance Oracle AI Database.

Alternatively, you can also use Oracle DBCA in GUI mode to perform out-of-place Oracle AI Database patching.

Related Topics

Patching Oracle AI Database Using Oracle FPP Local Mode

Use this procedure to patch Oracle AI Database using Oracle Fleet Patching and Provisioning (Oracle FPP) Local Mode.

  1. Download the gold image of the desired Release Update (RU) and extract the files into a new Oracle home directory. For example:

    $ mkdir -p /u01/app/oracle/product/23.6.0/dbhome_1
    $ chgrp oinstall /u01/app/oracle/product/23.6.0/dbhome_1
    $ cd /u01/app/oracle/product/23.6.0/dbhome_1
    $ unzip -q /tmp/23_6_ru.zip
  2. Configure a new Oracle home identical to the old Oracle home using runInstaller.
    $ ./runInstaller -silent -setupDBHomeAs source_Oracle_home

    This step retrieves configuration information, such as the users and groups used for installing Oracle Database software for the first time, and installs the Oracle Database software in the new Oracle home.

  3. Switch from the old Oracle Database home to the new Oracle Database home using Oracle FPP Local Mode.

    $ rhpctl move database -desthome /u01/app/oracle/product/23.6.0/dbhome_1 –sourcehome /u01/app/oracle/product/23.0.0/dbhome_1

Note:

  • During Oracle FPP Local Mode patching, you must run the patching command only on one node. The patching completes automatically on all other nodes.
  • If any command fails in the first run, then you must re-run the command from the same node where it was started initially.

Related Topics

Page 129 of 187

Downloading Release Update Patches

Download and install Release Updates (RU) and Monthly Recommended Patches (MRPs) patches for your Oracle software after you complete your installation.

Oracle provides quarterly updates in the form of Release Updates (RU) and Monthly Recommended Patches (MRPs). Oracle no longer releases patch sets. For more information, see My Oracle Support Note 2285040.1.

Check the My Oracle Support website for required updates for your installation.

  1. Log in to the My Oracle Support website:

    https://support.oracle.com

  2. In the My Oracle Support Support for Oracle Hardware, Software, and Managed Cloud services section, click Sign-in or create your Oracle account.

    Note:

    If you are not a My Oracle Support registered user, then register.

  3. From the search bar, select Patches and Product Certification Matrix. The Patch Search window is displayed.
  4. To search for patches, in the Patch Search window, search by Patch Name or Number or Bug Number if you have it. Otherwise, search using the Product, Release, Platform, and Language criteria.
  5. Click Apply. The patch search results are displayed in the main window.
  6. Click the patch number in the Patch Name column to open the Patch details in a new window.
  7. Click Download to download the patch. Next, uncompress the Oracle patch updates that you downloaded from My Oracle Support.
  8. Click ReadMe.

    The README page is displayed. It contains information about the patch that you just downloaded, and how to apply the patch to your installation.

Note:

The use of OPatch and OPatchAuto for out-of-place patching continues to be deprecated.

For patching in Oracle AI Database 26ai, Oracle recommends that you use out-of-place patching using Gold images to apply quarterly release updates (RUs). This deprecation does not affect in-place patching. If you want to perform in-place patching, then OPatch and OPatchAuto continue to be available for this purpose. The Oracle AI Database 26ai Free release is not supported for patching with RUs.

Related Topics

Page 130 of 187

Unlocking Accounts and Resetting Oracle AI Database User Passwords

Passwords for all Oracle system administration accounts except SYS, SYSTEM, and DBSMP are revoked after installation. Before you use a locked account, you must unlock it and reset its password.

If you created a preconfigured database during the installation, but you did not unlock accounts required to use the database, then you must unlock and reset those accounts using these procedures.

To temporarily deny access to the database for a particular user account, you can lock the user account. If the user then attempts to connect, then the database displays an error message and does not allow the connection. You can unlock the user account when you want to permit database access again for that user.

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.

Requirements for Database Passwords

To secure your database, use passwords that satisfy the Oracle recommended password requirements, even the passwords for predefined user accounts.

Oracle AI Database provides a set of predefined user accounts. Create passwords in a secure fashion. If you have default passwords, change these passwords to secure passwords.

You can manage the security for Oracle AI Database users in various ways:

  • Enforce restrictions on the way that passwords are created
  • Create user profiles
  • Use user resource limits to further secure user accounts

Related Topics

Oracle AI Database System Privileges Accounts and Passwords

Review these system privileges accounts after installation in preparation for unlocking accounts and changing passwords.

All databases created by the Database Configuration Assistant (DBCA) include the SYS, SYSTEM, and DBSNMP database accounts. In addition, Oracle AI Database provides several other administrative accounts. Before using these accounts, you must unlock them and reset their passwords.

Starting with Oracle Database 21c, all sample schemas are distributed on GitHub:

https://github.com/oracle-samples/db-sample-schemas

Note:

This list contains some of the important system privileges user accounts, but it is not complete. Use Oracle Enterprise Manager Cloud Control to view the complete list of database accounts.

Table: Partial List of Oracle AI Database System Privileges Accounts Locked After Installation

User NameDescriptionFor More Information
ANONYMOUSEnables HTTP access to Oracle XML DB.Oracle XML DB Developer's Guide
APEX_050100The account that owns the Oracle Application Express schema and metadata.Oracle APEX App Builder User's Guide
APEX_PUBLIC_USERThe minimally privileged account used for Oracle Application Express configuration with Oracle Application Express Listener or Oracle HTTP Server and mod_plsql.Oracle APEX App Builder User's Guide
AUDSYSThe account where the unified audit data trail resides.Oracle AI Database Security Guide
CTXSYSThe Oracle Text account.Oracle Text Application Developer's Guide
DBSFWUSERThe account used to run the DBMS_SFW_ACL_ADMIN package.Oracle AI Database PL/SQL Packages and Types Reference
DBSNMPThe account used by the Management Agent component of Oracle Enterprise Manager to monitor and manage the database.Oracle Enterprise Manager Cloud Control Administrator's Guide
DIPThe account used by the Directory Integration Platform (DIP) to synchronize the changes in Oracle Internet Directory with the applications in the database.None
DVSYS

There are two roles associated with this account. The Database Vault owner role manages the Database Vault roles and configurations. The Database Vault Account Manager is used to manage database user accounts.

Note: Part of Oracle Database Vault user interface text is stored in database tables in the DVSYS schema. By default, only the English language is loaded into these tables. You can use the DVSYS.DBMS_MACADM.ADD_NLS_DATA procedure to add other languages to Oracle Database Vault.

Oracle Database Vault Administrator's Guide
DVFThe account owned by Database Vault that contains public functions to retrieve the Database Vault Factor values.Oracle Database Vault Administrator's Guide
FLOWS_FILESThe account owns the Oracle Application Express uploaded files.Oracle APEX App Builder User's Guide
GGSYSThe internal account used by Oracle GoldenGate. It should not be unlocked or used for a database login.None
GSMADMIN_INTERNALThe internal account that owns the Global Data Services schema. It should not be unlocked or used for a database login.Oracle AI Database Global Data Services Concepts and Administration Guide
GSMCATUSERThe account used by Global Service Manager to connect to the Global Data Services catalog.Oracle AI Database Global Data Services Concepts and Administration Guide
GSMUSERThe account used by Global Service Manager to connect to the database.Oracle AI Database Global Data Services Concepts and Administration Guide
LBACSYSThe Oracle Label Security administrator account. Starting with Oracle Database 18c, the LBACSYS user account is created as a schema-only account.Oracle Label Security Administrator's Guide
MDDATAThe schema used by Oracle Spatial and Graph for storing geocoder and router data.Oracle Spatial and Graph Developer's Guide
MDSYSThe Oracle Spatial and Graph administrator account.Oracle Spatial and Graph Developer's Guide
OUTLNThe account that supports plan stability. Plan stability enables you to maintain the same execution plans for the same SQL statements. OUTLN acts as a role to centrally manage metadata associated with stored outlines.None
ORACLE_OCMThis account contains the instrumentation for configuration collection used by the Oracle Configuration Manager.None
REMOTE_SCHEDULER_AGENTThe account to disable remote jobs on a database. This account is created during the remote scheduler agent configuration. You can disable the capability of a database to run remote jobs by dropping this user.Oracle AI Database Administrator's Guide
SYSThe account used to perform database administration tasks.Oracle AI Database Administrator's Guide
SYSTEMAnother account used to perform database administration tasks.Oracle AI Database Administrator's Guide
SYSBACKUPThe account used to perform backup and recovery tasks.Oracle AI Database Administrator's Guide
SYSKMThe account used to perform encryption key management.Oracle AI Database Administrator's Guide
SYSDGThe account used to administer and monitor Oracle Data Guard.Oracle AI Database Administrator's Guide
SYSRACThe account used to administer Oracle Real Application Clusters (RAC).Oracle AI Database Administrator's Guide
SYS$UMFThe account used to administer Remote Management Framework, including the remote Automatic Workload Repository (AWR).Oracle AI Database Performance Tuning Guide
WMSYSThe account used to store the metadata information for Oracle Workspace Manager.Oracle AI Database Workspace Manager Developer's Guide
XDBThe account used for storing Oracle XML DB data and metadata.Oracle XML DB Developer's Guide
XS$NULLThe internal account that represents the absence of a database schema user in a session, and indicates an application user session is in use. XS$NULL cannot be authenticated to a database, nor can it own any database schema objects, or possess any database privileges.Oracle AI Database Real Application Security Administrator's and Developer's Guide

Except for the accounts provided with the Oracle Sample Schemas, most of these database accounts are locked by default and created without passwords as schema only. This prevents malicious users from logging into these accounts using the default password set during catalog creation. To find the status of an account, query the AUTHENTICATION_TYPE column of the DBA_USERS data dictionary view. If AUTHENTICATION_TYPE is schema only, then the status is NONE.

Many of these accounts are automatically created when you run standard scripts such as the various cat*.sql scripts. To find user accounts that are created and maintained by Oracle, query the USERNAME and ORACLE_MAINTAINED columns of the ALL_USERS data dictionary view. If the output for ORACLE_MAINTAINED is Y, then you must not modify the user account except by running the script that was used to create it.

To secure your database, use passwords that satisfy the Oracle recommended password requirements, even the passwords for predefined user accounts. Oracle Database provides a set of predefined user accounts. Create passwords in a secure fashion. If you have default passwords, change these passwords to secure passwords.

Related Topics

Guidelines for Changing System Privileges Account Passwords

Follow these rules for changing Oracle AI Database system privileges account passwords.

Before you use a locked account, you must unlock it and reset its password. Passwords for all Oracle system administration accounts except SYS, SYSTEM, and DBSNMP are revoked after installation. If you created a starter database during the installation, Oracle Database Configuration Assistant displays a screen with your database information and the Password Management button. Use the Password Management button to unlock only the user names you use.

For more information about how to create a secure password, see: Oracle AI Database Security Guide

Using SQL*Plus to Lock, Unlock Accounts, and Reset Passwords

Use this SQL*Plus procedure to learn how to lock or unlock accounts, and reset user account passwords.

  1. Log in as the Oracle AI Database software owner user.
  2. Set the ORACLE_HOME and ORACLE_SID environment variables.

    Bourne, Bash or Korn shell:

    $ ORACLE_SID=orcl
    $ export ORACLE_SID
    $ ORACLE_HOME=/u01/app/oracle/product/23.0.0/dbhome_1
    $ export ORACLE_HOME

    C shell:

    % setenv ORACLE_SID orcl
    % setenv ORACLE_HOME /u01/app/oracle/product/23.0.0/dbhome_1
  3. Start SQL*Plus and log in as the SYS user, connecting as SYSDBA:

    $ $ORACLE_HOME/bin/sqlplus
    SQL> CONNECT SYS as SYSDBA
    Enter password: sys_password
  4. To lock an account:

    ALTER USER account ACCOUNT LOCK;
  5. To unlock an account:

    ALTER USER account ACCOUNT UNLOCK;
  6. To reset the password:

    ALTER USER user_name IDENTIFIED BY new_password;

    Note:

    If you unlock an account but do not reset the password, then the password remains expired. The first time someone connects as that user, they must change the user's password.

Related Topics

Page 131 of 187

About Installing Oracle Autonomous Health Framework

Oracle Autonomous Health Framework is pre-installed with Oracle AI Database.

Oracle Autonomous Health Framework performs proactive health checks and collects diagnostics data for the Oracle software stack. Oracle Autonomous Health Framework updates are available on My Oracle Support and also shipped with Oracle AI Database Release Updates.

Oracle recommends that you update to the latest version of Oracle Autonomous Health Framework by either applying the latest Database Release Updates or by downloading and installing it from My Oracle Support Note 2550798.1:

https://support.oracle.com/epmos/faces/DocContentDisplay?id=2550798.1&parent=DOCUMENTATION&sourceId=USERGUIDE

Oracle Autonomous Health Framework includes the functionality from Oracle ORAchk, Oracle EXAchk, and Oracle Trace File Analyzer (TFA). Oracle Autonomous Health Framework extends health check coverage to the entire Oracle software stack, based on critical and reoccurring problems. Oracle Autonomous Health Framework proactively scans for known problems with Oracle products and deployments, including the following:

  • Single-instance Oracle AI Database
  • Oracle Grid Infrastructure
  • Oracle Real Application Clusters
  • Maximum Availability Architecture (MAA) Validation
  • Upgrade Readiness Validations
  • Oracle GoldenGate
  • Oracle Exadata
  • Oracle SuperCluster
  • Oracle Zero Data Loss Recovery Appliance

Related Topics

Page 132 of 187

Enabling and Disabling Oracle AI Database Options After Installation

The chopt tool changes your database options after installation.

When you install Oracle AI Database, some options are enabled and others are disabled. To enable or disable a particular database feature for an Oracle home, shut down the database and use the chopt tool.

Chopt Tool

Use the chopt tool after installation to add or remove Oracle AI Database options.

Purpose

The chopt tool is a command-line utility that enables and disables database options.

Note:

If you install or clone an Oracle AI Database image, then all Oracle AI Database options are enabled by default.

Prerequisites

You must complete installation before you can use the chopt tool.

File Path

The tool is located in the ORACLE_HOME/bin directory

Syntax

chopt [enable | disable] db_option

Options
Command OptionDescription
partitioningOracle Partitioning
ratOracle Real Application Testing

Note:

Analytic workspaces, the OLAP DML programming language, financial reporting, and the OLAP Java API continue to be deprecated in Oracle AI Database 26ai.

Be aware that OLAP will not be supported beyond the term of the current release (Oracle AI Database 26ai) premier support. Oracle strongly recommends that you do not start new projects using OLAP and begin migrating applications using OLAP to alternatives now. If your application requires an in-database dimensional model, then consider using Oracle Analytic Views. Analytic views provide a dimensional semantic model, calculations, and query semantics using data in Oracle AI Database. When used with columnar tables, analytic views provide query performance similar to the OLAP Option. If your application requires support for advanced dimensional analytics, what-if analysis, or forecasting, then consider Oracle Essbase. Oracle Essbase is a multidimensional database management system with support for complex dimensional business analytics.

Note:

The Oracle Advanced Analytics (OAA) feature is enabled by default for Oracle AI Database. You cannot disable it using the chopt tool.

Examples

To use the chopt tool to modify your Oracle AI Database, you must shut down the database before you run the chopt tool, and then start up the database after you add or remove database options.

Example: Enabling Oracle Real Application Testing Using chopt

The following example shows how to use the chopt tool to enable the Oracle Real Application Testing option in an Oracle AI Database called Sales:

cd $ORACLE_HOME/bin
srvctl stop database -d Sales
chopt enable rat
srvctl start database -d Sales

Page 133 of 187

Creating a Fast Recovery Area

During an Oracle Clusterware installation, you can create multiple disk groups. During an Oracle Restart installation, you can create only one disk group. If you plan to add an Oracle AI Database for a standalone server or an Oracle RAC database, then you should create the fast recovery area for database files.

About the Fast Recovery Area and the Fast Recovery Area Disk Group

The fast recovery area is a unified storage location for all Oracle AI Database files related to recovery. Enabling rapid backups for recent data can reduce requests to system administrators to retrieve backup tapes for recovery operations.

Database administrators can define the DB_RECOVERY_FILE_DEST parameter to the path for the fast recovery area to enable on disk backups and rapid recovery of data. When you enable fast recovery in the init.ora file, Oracle AI Database writes all RMAN backups, archive logs, control file automatic backups, and database copies to the fast recovery area. RMAN automatically manages files in the fast recovery area by deleting obsolete backups and archiving files no longer required for recovery.

Oracle recommends that you create a fast recovery area disk group. Oracle Clusterware files and Oracle AI Database files can be placed on the same disk group, and you can also place fast recovery files in the same disk group. However, Oracle recommends that you create a separate fast recovery disk group to reduce storage device contention.

The fast recovery area is enabled by setting the DB_RECOVERY_FILE_DEST parameter. The size of the fast recovery area is set with DB_RECOVERY_FILE_DEST_SIZE. As a general rule, the larger the fast recovery area, the more useful it becomes. For ease of use, Oracle recommends that you create a fast recovery area disk group on storage devices that can contain at least three days of recovery information. Ideally, the fast recovery area is large enough to hold a copy of all of your data files and control files, the online redo logs, and the archived redo log files needed to recover your database using the data file backups kept under your retention policy.

Multiple databases can use the same fast recovery area. For example, assume you have created a fast recovery area disk group on disks with 150 GB of storage, shared by 3 different databases. You can set the size of the fast recovery for each database depending on the importance of each database. For example, if database1 is your least important database, database2 is of greater importance, and database3 is of greatest importance, then you can set different DB_RECOVERY_FILE_DEST_SIZE settings for each database to meet your retention target for each database: 30 GB for database1, 50 GB for database2, and 70 GB for database3.

Creating the Fast Recovery Area Disk Group

Procedure to create the fast recovery area disk group.

  1. Go to the Oracle Grid Infrastructure home bin directory, and start Oracle ASM Configuration Assistant (Oracle ASMCA).

    For example:

    $ cd Grid_home
    $ ./asmca

    Oracle ASMCA opens the home window.
    Where Grid_home is the Oracle Grid Infrastructure grid home path.

  2. Click Disk Groups in the left panel to open the Disk Groups tab.
  3. Click Create to create a new disk group.

    The Create Disk Group window opens.

  4. Provide configuration information for the fast recovery area as prompted:

    In the Disk Group Name field, enter a descriptive name for the fast recovery area group. For example: FRA.

    In the Redundancy section, select the level of redundancy you want to use. For example: Normal

    In the Select Member Disks field, select eligible disks you want to add to the fast recovery area, and click OK. If you do not see the disks, click the Change Disk Discovery Path button and provide a path and pattern match for the disk. For example, /dev/sd* for local Oracle ASM disks and n:/*/* for NVMe over Fabrics disks.

  5. When the Fast Recovery Area disk group creation is complete, click Exit and click Yes to confirm closing the Oracle ASMCA application.

Page 134 of 187

About Changes in Default SGA Permissions for Oracle AI Database

By default, permissions to read and write to the System Global Area (SGA) are limited to the Oracle software installation owner.

In previous releases, both the Oracle installation owner account and members of the OSDBA group had access to shared memory. The change in Oracle AI Database to restrict access by default to the Oracle installation owner account provides greater security than previous configurations. However, this change may prevent DBAs who do not have access to the Oracle installation owner account from administering the database.

The Oracle AI Database initialization parameter ALLOW_GROUP_ACCESS_TO_SGA determines if the Oracle AI Database installation owner account (oracle in Oracle documentation examples) is the only user who can read and write to the database System Global Area (SGA), or if members of the OSDBA group can read the SGA. In Oracle AI Database, the default value for this parameter is FALSE, so that only the Oracle AI Database installation owner has read and write permissions to the SGA. Group access to the SGA is removed by default. This change affects all Linux and UNIX platforms.

If members of the OSDBA group require read access to the SGA, then you can change the initialization parameter ALLOW_GROUP_ACCESS_TO_SGA setting from FALSE to TRUE. Oracle strongly recommends that you accept the default permissions that limit access to the SGA to the oracle user account.

Related Topics

Page 135 of 187

Setting Language and Locale Preferences for Client Connections

Configure client applications connecting to an Oracle AI Database according to your locale preferences and your I/O device character set.

You must configure client applications connecting to an Oracle AI Database according to your locale preferences and your I/O device character set. If your applications do not have their own specific methods to configure locale preferences, then the method you use to configure an Oracle AI Database client connection depends on the access API you use to connect to the database. Check your application documentation before you configure locale preferences for your applications.

For applications that connect to Oracle AI Databases using Oracle Call Interface (OCI), use NLS_LANG and other client settings with names that start with NLS_ to set the locale conventions and client character set for Oracle AI Database sessions. It is important that you set the character set part of the NLS_LANG value properly. The Oracle character set whose name you set in NLS_LANG must correspond to the character encoding used by your I/O devices. For Linux, it is the character encoding of the terminal or terminal emulator, and usually corresponds to what the locale command reports. For Microsoft Windows, it is either the ANSI Code Page (for GUI applications), such as WE8MSWIN1252, or the OEM Code Page (for Console mode applications), such as US8PC437. By doing this, the OCI API is notified about the character set of data that it receives from the application. OCI can then convert this data correctly to and from the database character set.

You can specify NLS_LANG and the other NLS settings as environment variables. On Microsoft Windows, you can also specify them as Registry settings. Environment variable values take precedence over Registry values.

Oracle Universal Installer sets a default value for the NLS_LANG setting in Registry when it creates a new Oracle home on Microsoft Windows. The NLS_LANG value is based on the language of the Windows user interface, which is the language of Windows menu items and dialog box labels. The installer does not set NLS_LANG on Linux and other UNIX system-based operating systems.

Caution:

Failure to set the client character set correctly can cause data loss.

Java applications that connect to Oracle AI Databases by using Oracle JDBC do not use NLS_LANG. Instead, Oracle JDBC maps the default locale of the Java VM in which the application runs to the Oracle AI Database language and territory settings. Oracle JDBC then configures the connected database session using these settings. Because Java works internally in Unicode, the client character set is always set to Unicode. Unless an application explicitly changes it, the default locale of the Java VM is set based on the locale of the user operating system on which the Java VM runs. Check your Java VM documentation for information about configuring the Java VM default locale.

Note:

In 3-tier architecture deployments, application servers that are database clients can have settings in their configuration files that specify the NLS_LANG value or the Java VM locale. Check the documentation accompanying these servers.

See also

Oracle AI Database Globalization Support Guide for more information about configuring user locale preferences

Page 136 of 187

Recompile Invalid Objects in the Database

After you install, patch, or upgrade a database, recompile invalid objects on the CDB and PDBs with a recompilation driver script.

By default, AutoUpgrade performs a recompilation of invalid Oracle objects, which is controlled by the configuraiton file run_utlrp local parameter (default: prefix.run_utlrp=yes ). In addition, Oracle provides the recompilation scripts utlrp.sql, utlprp.sql, and utlprpom.sql. These scripts are located in the Oracle_home/rdbms/admin directory.

Note:

Starting with AutoUpgrade 23.1, when you run the AutoUpgrade utility, AutoUpgrade runs the utlprpom.sql script, and does not run utlrp.sql. When AutoUpgrade is used for upgrades to Oracle Database 18c (RU 18.8) and later releases, AutoUpgrade only recompiles invalid objects owned by Oracle-maintained schemas. Because database upgrades do not need to touch user objects, AutoUpgrade maintains this policy when it recompiles invalid objects.

After installing a database, recomplile all invalid objects;

  1. Change directory to Oracle_home/rdbms/admin. For example

    $ cd $ORACLE_HOME/rdbms/admin
  2. Use the catcon.pl script in the Oracle home to run utlrp.sql. For example:
    $ORACLE_HOME/perl/bin/perl catcon.pl --n 1 --e --b utlrp --d '''.''' utlrp.sql

    Note the following conditions of this use case:

    • --n parameter: is set to 1, so the script runs each PDB recompilation in sequence.
    • --e parameter: turns echo on.
    • --b parameter: Sets the log file base name. It is set to utlrp.

    Expect a time delay for the serial recompilation of PDBs to complete. Depending on the number of PDBs that you are upgrading, the recompilation can extend significantly beyond the time required for the upgrade scripts to complete.

    The utlrp.sql script automatically recompiles invalid objects in either serial or parallel recompilation, based on both the number of invalid objects, and on the number of CPUs available. CPUs are calculated using the number of CPUs (cpu_count) multiplied by the number of threads for each CPU (parallel_threads_per_cpu). On Oracle Real Application Clusters (Oracle RAC), this number is added across all Oracle RAC nodes.

After patching or upgrading a database, there is more than one approach you can use to recompile invalid Oracle-owned and user-owned objects:

Recompile all invalid objects (the invalid objects in both Oracle and user schemas) by using utlrp.sql or utlprp.sql.

If time is a factor and the type of invalid objects is predominately application owned, then you can recompile Oracle-owned invalid objects first, and defer recompiling application-owned invalid objects to a later time. To recompile invalid objects in Oracle schemas, use utlprpom.sql. To recompile the remaining invalid objects, use utlrp.sql or utlprp.sql.

Note:

When you use either utlprp.sql or utlprpom.sql, note that both scripts require you to define the degree of parallelism that the script should use, or determine the number of parallel recompile jobs to use.

The script uses the syntax as follows, where base is the base name you want to have given to log files, N is the number of PDBs on which you want to run recompilation jobs in parallel (degrees of parallelism), script.sql is the Oracle recompilation script you chose to use, and P is the number of PDBs on which you want to run in parallel:

$ORACLE_HOME/perl/bin/perl $ORACLE_HOME/rdbms/admin/catcon.pl -b base -d $ORACLE_HOME/rdbms/admin
  -n N -l /tmp script.sql '--pP'

Suppose you are running recompilation in a CDB using the log file base name recomp, with a degrees of parallelism setting of 3 jobs per PDB container, the script you choose to use is utlprp.sql, and you want to recompile across at most 10 PDBs at a time. In that case, the syntax you use to run the recompile operation is similar to the following,

$ORACLE_HOME/perl/bin/perl $ORACLE_HOME/rdbms/admin/catcon.pl -b recomp -d $ORACLE_HOME/rdbms/admin -n 10 -l /tmp utlprp.sql '--p3'

Related Topics

Page 137 of 187

About the oradism Utility in Oracle AI Database

Learn how oradism enhances performance and stability for Oracle AI Database on Linux systems.

The oradism utility helps Oracle AI Database perform operations that need privileged OS user like root.

Oracle AI Database installs and configures oradism automatically. The binary resides in $ORACLE_HOME/bin and requires root privileges. The utility runs in the background as ora_dism_<sid>, starting when the database starts and stopping at database shutdown.

Proper configuration of oradism is essential for optimal database operations and performance. If the alert log reports oradism errors, then verify that the binary is in $ORACLE_HOME/bin and is owned by the root user.

Page 138 of 187

Checking Installed Oracle AI Database Contents and Directory Location

Use these steps to check the contents and directory location of an Oracle AI Database installation:

  1. Go to $ORACLE_HOME/oui/bin.
  2. Start Oracle Universal Installer.

    $ ./runInstaller
  3. Click Installed Products to display the Inventory dialog box on the Welcome screen.
  4. Select an Oracle AI Database product from the list to check the installed contents.
  5. Click Details to find additional information about an installed product.
  6. Click Close to close the Inventory dialog box.
  7. Click Cancel to close Oracle Universal Installer, and then click Yes to confirm.

Page 139 of 187

Setting the Oracle User Environment Variables

On each node, in the installation owner user profile file, set the environment variables ORACLE_BASE and ORACLE_HOME, and ORACLE_SID; also add ORACLE_HOME/bin to the path environment variable.

Set environment variables as shown, in the following example:

export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/19.0.0/dbhome_1
export PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_SID=sales1

If the environment variables ORACLE_HOME and ORACLE_SID are not set, and you try to use SQL*Plus or other tools, then you receive an error message requesting that you set these variables.

Page 140 of 187

Cloning Oracle AI Database

Cloning an Oracle Home

Cloning an Oracle home creates a configured copy for a new environment, reducing installation time when deploying multiple Oracle AI Database installations. It is particularly useful for preserving patches already applied to the source home, ensuring the cloned home includes the same updates.

Read More: Cloning an Oracle Home

Cloning an Oracle AI Database Home Using an Image File

To clone an Oracle AI Database home with an image, log in as the Oracle installation owner, create a gold image with runInstaller and the -createGoldImage option, extract it into a new OFA-compliant Oracle home, and run the installer there using the software-only configuration. Complete the setup and root-script requirements, then use Oracle Database Configuration Assistant to create a database and configure its listener; Oracle home and base paths, including their parents, must not be symbolic links.

Read More: Cloning an Oracle AI Database Home Using an Image File

Cloning an Oracle AI Database Home Using clone.pl

The clone.pl method is deprecated from Oracle Database 19c onward, so software-only installation is recommended instead. If used, verify the source installation and patches, stop Oracle processes, archive and transfer only the Oracle home, extract it on the target, correct ownership, remove source-specific network and database configuration files, and run clone.pl with the target paths and operating system groups. After cloning, use Net Configuration Assistant and Database Configuration Assistant to configure networking and create a database, while providing root privileges when prompted and reviewing the cloning logs for results.
Read More: Cloning an Oracle AI Database Home Using clone.pl

Page 141 of 187

Cloning an Oracle Home

Cloning an Oracle home involves creating a copy of the Oracle home and then configuring it for a new environment.

If you are performing multiple Oracle AI Database installations, then you may want to use cloning to create each Oracle home, because copying files from an existing Oracle AI Database installation takes less time than creating a new version of them. This method is also useful if the Oracle home that you are cloning has had patches applied to it. When you clone the Oracle home, the new Oracle home has the patch updates.

Page 142 of 187

Cloning an Oracle AI Database Home Using an Image File

Learn how to clone an Oracle AI Database home using the -createGoldImage option.

Create an image file from the source Oracle home using the -createGoldImage option, unzip the image file, and perform a software-only Oracle AI Database installation to register the Oracle AI Database product.

  1. Log in as the Oracle installation owner user account (oracle).
  2. Go to the source Oracle home directory.

    $ cd /u01/app/oracle/product/23.0.0/dbhome_1
  3. Use the runInstaller command with the -createGoldImage option to create a gold image from the source Oracle home.

    For example, to create an image file of dbhome_1 and save it in the temporary destination location my_db_images:

    ./runInstaller -createGoldImage -destinationLocation /tmp/my_db_images
  4. Create a new OFA-compliant Oracle home directory and extract the image file that you have created in to this destination Oracle home directory. For example:

    $ mkdir -p /u01/app/oracle/product/23.0.0/dbhome_2
    $ cd /u01/app/oracle/product/23.0.0/dbhome_2
    $ unzip -q /tmp/my_db_images/db_home.zip

    Note:

    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 this new destination Oracle home directory, run the runInstaller command to start the Oracle AI Database Setup Wizard and register Oracle AI Database.

    $ cd /u01/app/oracle/product/23.0.0/dbhome_2
    $ ./runInstaller
  6. In the Select Configuration Option screen, select Set Up Software Only to perform a software-only Oracle AI Database installation.
  7. Select your installation type and 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.

    Note:

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

  9. Oracle AI Database is now successfully registered. Run Oracle Database Configuration Assistant (Oracle DBCA) to create a database and configure the listener for the newly-cloned Oracle home.

    $ cd /u01/app/oracle/product/23.0.0/dbhome_2/bin
    $ ./dbca

Page 143 of 187

Cloning an Oracle AI Database Home Using clone.pl

Learn how to clone an Oracle home using the clone.pl script.

Note:

  • This procedure using the clone.pl script is deprecated starting Oracle Database 19c and can be removed in a future release. Hence, Oracle recommends that you use the software-only installation option, available in the database installer, instead of clone.pl to clone your database.
  • During cloning, Oracle Universal Installer (OUI) prompts you to run scripts that require root privileges.
  1. Verify that the installation of Oracle AI Database that you want clone is successful.

    You can do this by reviewing the installActionsdate_time.log file for the installation session, which is typically located in the /u01/app/oracle/oraInventory/logs directory.

    If you install patches, then check their status using the following:

    $ cd $ORACLE_HOME/OPatch

    Include $ORACLE_HOME/OPatch in $PATH

    $ opatch lsinventory

    The use of OPatch and OPatchAuto for out-of-place patching continues to be deprecated.

  2. Stop all processes related to the Oracle home.
  3. Create a ZIP or TAR file with the Oracle home (but not the Oracle base) directory.

    For example, if the source Oracle installation is in the path /u01/app/oracle/product/23.0.0/dbhome_1, then you zip the dbhome_1 directory by using the following command:

    # zip -r dbhome_1.zip /u01/app/oracle/product/23.0.0/dbhome_1

    You can also use the TAR command. For example:

    # tar -cvf dbhome_1.tar /u01/app/oracle/product/23.0.0/dbhome_1

    Do not include the admin, fast_recovery_area, and oradata directories that are under the Oracle base directory. These directories are created in the target installation later, when you create a new database there.

  4. Copy the ZIP or TAR file to the root directory of the target computer. If you use File Transfer Protocol (FTP), then transfer the ZIP or TAR file in binary mode only.
  5. Extract the ZIP or TAR file content using the following command:

    # unzip -d / dbhome_1.zip
    # tar -xvf dbhome_1.tar
  6. If necessary, change the ownership of the Oracle AI Database home to the Oracle AI Database installation owner user (oracle) belonging to the Oracle Inventory group (oinstall).

    # chown -R oracle:oinstall /u01/app/oracle/product/23.0.0/dbhome_1
  7. On the target computer, change the directory to the unzipped Oracle base home directory, and remove all the .ora (*.ora) files present in the unzipped ORACLE_BASE_HOME/network/admin directory.

    To print the ORACLE_BASE_HOME path, run:

    $ setenv ORACLE_HOME /u01/app/oracle/product/23.0.0/dbhome_1
    $ cd $ORACLE_HOME/bin
    $ ./orabasehome
  8. Delete unnecessary files from the unzipped Oracle base home directory.

    The unzipped Oracle base home directory contains files that are relevant only to the source Oracle home. The following example shows how to remove these unnecessary files from the unzipped Oracle base home directory:

    Remove the .ora files from the ORACLE_HOME/network/admin directory, and remove the old database entries from the ORACLE_HOME/dbs directory.

    # cd /u01/app/oracle/product/23.0.0/dbhome_1/
    # rm -rf network/admin/*.ora
    # rm dbs/old_database_entries
  9. From the $ORACLE_HOME/clone/bin directory, run the clone.pl file for the unzipped Oracle home.

    Use the following syntax (you can also include one or more of the extended Oracle AI Database groups in the syntax):

    $ORACLE_HOME/perl/bin/perl $ORACLE_HOME/clone/bin/clone.pl ORACLE_BASE="target_oracle_base" ORACLE_HOME="target_oracle_home" OSDBA_GROUP=OSDBA_privileged_group OSOPER_GROUP=OSOPER_privileged_group OSBACKUPDBA_GROUP=OSBACKUPDBA_privileged_group OSDGDBA_GROUP=OSDGDBA_privileged_group OSKMDBA_GROUP=OSKMDBA_privileged_group OSRACDBA_GROUP=OSRACDBA_privileged_group-defaultHomeName

    Example:

    $ORACLE_HOME/perl/bin/perl $ORACLE_HOME/clone/bin/clone.pl ORACLE_BASE="/u01/app/oracle" ORACLE_HOME="/u01/app/oracle/product/23.0.0/dbhome_1"
    OSDBA_GROUP=dba OSOPER_GROUP=oper OSBACKUPDBA_GROUP=backupdba OSDGDBA_GROUP=dgdba OSKMDBA_GROUP=kmdba OSRACDBA_GROUP=racdba -defaultHomeName

    Note:

    • In this command, if you do not provide the parameters for the operating system groups, then clone.pl uses the operating system group values from the source home.
    • Run the $ORACLE_HOME/perl/bin/perl $ORACLE_HOME/clone/bin/clone.pl -help command for more information about the command option flags.

    OUI starts, and then records the cloning actions in the cloneActionstimestamp.log file. This log file is typically located in /u01/app/oracle/oraInventory/logs directory.

  10. Use the following commands to run Oracle Net Configuration Assistant to configure the connection information for the new database:

    $ cd $ORACLE_HOME/bin
    $ ./netca
  11. Use the following commands to run Oracle Database Configuration Assistant to create a new Oracle AI Database for the newly-cloned oracle home:

    $ cd $ORACLE_HOME/bin
    $ ./dbca

Related Topics

Page 144 of 187

Removing Oracle AI Database Software

About Oracle Deinstallation Options

The deinstall command, located in each Oracle home’s $ORACLE_HOME/deinstall directory, stops and removes supported Oracle software and its configuration, including Oracle AI Database, Grid Infrastructure, Oracle RAC, and Database Client; individual components cannot be removed independently. It can run interactively or use response files generated with -checkonly, must match the software release being removed, and requires complete configuration details for inactive or failed installations. Grid Infrastructure removal may require rootcrs.sh or roothas.sh, ACFS and ADVM preparation, and GNS DNS cleanup. Deinstallation can also delete Oracle base contents such as administrative, diagnostic, recovery, and data directories, including user data and files outside the Oracle base, so Oracle recommends OFA layouts and reserving Oracle paths exclusively for Oracle software.

Read More: About Oracle Deinstallation Options

Oracle deinstall Command

The deinstall command removes Oracle software and operating-system configuration for a specific Oracle home. Its options support silent execution (-silent), configuration discovery and response-file generation (-checkonly), custom response files and parameter overrides (-paramfile, -params), alternate response, temporary, and log directories (-o, -tmpdir, -logdir), multinode local-node deinstallation (-local), retaining local or remote Grid homes while deconfiguring them (-skipLocalHomeDeletion, -skipRemoteHomeDeletion), and command help (-help). Silent mode requires a functioning installation or a suitable response file.

Read More: Oracle deinstall Command

Deinstallation Examples for Oracle AI Database

Run deinstall from the target Oracle home’s deinstall directory to begin removal without specifying the home path. Use -checkonly to inspect the installation and generate a response file, then provide that file with -paramfile for a subsequent deinstallation. The same process applies to Oracle Grid Infrastructure by running the command from its Grid home, with response files identifying the corresponding database or Grid installation.

Read More: Deinstallation Examples for Oracle AI Database

Downgrading Oracle Restart

Downgrading Oracle Restart involves backing up the SPFILE, recording database and Oracle Restart resource configurations, downgrading the database when necessary, stopping databases and listeners, and deinstalling Oracle Restart while retaining existing ASM disk groups. A lower-version Grid home is then installed and registered, Oracle Restart is configured, ASM is restored using a temporary disk group and the existing disk group, and the temporary group is removed. Databases, listeners, and services are re-added with their recorded attributes, started, and verified; pluggable databases must be opened and the final resource status checked.

Read More: Downgrading Oracle Restart

Removing an RPM-Based Oracle AI Database Installation

To remove an RPM-based Oracle AI Database installation, run yum -y remove oracle-ai-database-ee-26ai as root. The command automatically removes default components such as database ORCLCDB and listener LISTENER, but stops if additional databases or listeners are configured. In that case, use DBCA as the Oracle software owner to remove databases and NETCA to remove listeners, then rerun the yum removal command as root.

Read More: Removing an RPM-Based Oracle AI Database Installation

Deinstalling Previous Release Grid Home

To remove a previous-release Grid home after an upgrade, log in as root, adjust the home and parent-directory permissions and ownership so the Grid software owner can access them, then switch to the Grid Infrastructure owner and run the release-matching deinstall command. The procedure assumes the specified paths, owner, and inventory group are adapted to the local installation.

Read More: Deinstalling Previous Release Grid Home

Changing the Oracle Restart Home Path

To change the Oracle Restart Grid home path, first shut down executables and applications using the old home or its shared libraries. Copy the Grid Infrastructure binaries to the new location as root, assign ownership to the Grid software owner, run gridSetup.sh in software-only mode to relink binaries and update the inventory without changing the Oracle base, and execute the new home’s root.sh. Finally, switch to the new home interactively using the patch and zero-downtime switching options or silently with -switchGridHome, optionally controlling ACFS driver updates.
Read More: Changing the Oracle Restart Home Path

Page 145 of 187

About Oracle Deinstallation Options

Use the deinstall command that is included in Oracle homes to remove Oracle software. Oracle does not support the removal of individual products or components.

Caution:

If you have a single-instance database on a node in a cluster, and if you have multiple databases with the same global database name (GDN), then you cannot use the deinstall command to remove one database only.

You can stop and remove Oracle AI Database software and components in an Oracle AI Database home with the deinstall command.

You can remove the following software using deinstall :

  • Oracle AI Database
  • Oracle Grid Infrastructure, which includes Oracle Clusterware and Oracle Automatic Storage Management (Oracle ASM)
  • Oracle Real Application Clusters (Oracle RAC)
  • Oracle Database Client

The deinstall command is available in Oracle home directories after installation. It is located in the $ORACLE_HOME/deinstall directory.

deinstall creates a response file by using information in the Oracle home and using the information you provide. You can use a response file that you generated previously by running the deinstall command using the -checkonly option. You can also edit the response file template.

If you run deinstall to remove an Oracle Grid Infrastructure installation, then the deinstaller prompts you to run the deinstall command as the root user. For Oracle Grid Infrastructure for a cluster, the script is rootcrs.sh, and for Oracle Grid Infrastructure for a standalone server (Oracle Restart), the script is roothas.sh.

Note:

You must run the deinstall command from the same release to remove Oracle software. Do not run the deinstall command from a later release to remove Oracle software from an earlier release. For example, do not run the deinstall command from the 26ai Oracle home to remove Oracle software from an existing 19c Oracle home.

If the software in the Oracle home is not running (for example, after an unsuccessful installation), then deinstall cannot determine the configuration, and you must provide all the configuration details either interactively or in a response file.

In addition, before you run deinstall for Oracle Grid Infrastructure installations:

  • Dismount Oracle Advanced Cluster File System (Oracle ACFS) and disable Oracle Automatic Storage Management Dynamic Volume Manager (Oracle ADVM).
  • If Grid Naming Service (GNS) is in use, then notify your DNS administrator to delete the subdomain entry from the DNS.

Additional Files Deleted by deinstall

When you run deinstall, if the central inventory (oraInventory) contains no other registered homes besides the home that you are deconfiguring and removing, then deinstall removes the following files and directory contents in the Oracle base directory of the Oracle AI Database installation owner:

  • admin
  • cfgtoollogs
  • checkpoints
  • diag
  • oradata
  • fast_recovery_area

Oracle strongly recommends that you configure your installations using an Optimal Flexible Architecture (OFA) configuration, and that you reserve Oracle base and Oracle home paths for exclusive use of Oracle software. If you have any user data in these locations in the Oracle base that is owned by the user account that owns the Oracle software, then deinstall deletes this data.

Caution:

  • deinstall deletes Oracle AI Database configuration files, user data, and fast recovery area (FRA) files even if they are located outside of the Oracle base directory path.
  • Do not manually remove files and directories in these locations as deinstall and the installer manage these directories. Be careful before placing files in these locations.

Page 146 of 187

Oracle Deinstallation (Deinstall)

You can run the deinstall command from an Oracle home directory after installation.

Purpose

deinstall stops Oracle software, and removes Oracle software and configuration files on the operating system for a specific Oracle home.

Syntax

The deinstall command uses the following syntax:

(./deinstall [-silent] [-checkonly] [-paramfile complete path of input response file]
[-params name1=value name2=value . . .]
[-o complete path of directory for saving files]
[-tmpdir complete path of temporary directory to use]
[-logdir complete path of log directory to use] [-local] [-skipLocalHomeDeletion] [-skipRemoteHomeDeletion] [-help]

Parameters

ParameterDescription
-silent

Use this flag to run deinstall in noninteractive mode. This option requires one of the following:

  • A working system that it can access to determine the installation and configuration information. The -silent flag does not work with failed installations.
  • A response file that contains the configuration values for the Oracle home that is being deinstalled or deconfigured.

You can generate a response file to use or modify by running deinstall with the -checkonly flag. deinstall then discovers information from the Oracle home to deinstall and deconfigure. It generates the response file that you can then use with the -silent option.

You can also modify the template file deinstall.rsp.tmpl, located in the $ORACLE_HOME/deinstall/response directory.

-checkonlyUse this flag to check the status of the Oracle software home configuration. Running deinstall with the -checkonly flag does not remove the Oracle configuration. The -checkonly flag generates a response file that you can then use with the deinstall command and -silent option.
-paramfile complete path of input response file

Use this flag to run deinstall with a response file in a location other than the default. When you use this flag, provide the complete path where the response file is located.

The default location of the response file is $ORACLE_HOME/deinstall/response.

-params [ name1=value name2=value name3=value . . . ]Use this flag with a response file to override one or more values to change in a response file you have created.
-o complete path of directory for saving response files

Use this flag to provide a path other than the default location where the response file (deinstall.rsp.tmpl) is saved.

The default location of the response file is $ORACLE_HOME/deinstall/response .

-tmpdir complete path of temporary directory to useUse this flag to specify a non-default location where deinstall writes the temporary files for the deinstallation.
-logdir complete path of log directory to useUse this flag to specify a non-default location where deinstall writes the log files for the deinstallation.
-local

Use this flag on a multinode environment to deinstall Oracle software in a cluster.

When you run deinstall with this flag, it deconfigures and deinstalls the Oracle software on the local node (the node where deinstall is run). On remote nodes, it deconfigures Oracle software, but does not deinstall the Oracle software.

-skipLocalHomeDeletionUse this flag in Oracle Grid Infrastructure installations on a multinode environment to deconfigure a local Grid home without deleting the Grid home.
-skipRemoteHomeDeletionUse this flag in Oracle Grid Infrastructure installations on a multinode environment to deconfigure a remote Grid home without deleting the Grid home.
-helpUse this option to obtain additional information about the command option flags.

Page 147 of 187

Deinstallation Examples for Oracle AI Database

Use these examples to help you understand how to run the deinstall command.

Run deinstall from the $ORACLE_HOME/deinstall directory. The deinstallation starts without prompting you for the Oracle home path.

$ ./deinstall

You can generate a deinstallation response file by running deinstall with the -checkonly flag.

./deinstall -silent --checkonly

The deinstall tool generates a response file in /tmp and displays the location. For example, /tmp/deinstall2024-08-01_01-40-28PM/response/deinstall_Ora23Home1.rsp

Use the optional flag -paramfile to run this response file:

$ cd /u01/app/oracle/product/23.0.0/dbhome_1/deinstall
$ ./deinstall -paramfile /tmp/deinstall2024-08-01_01-40-28PM/response/deinstall_Ora23Home1.rsp

Similarly, to remove the Oracle Grid Infrastructure home, use the deinstall command in the Oracle Grid Infrastructure home.

$ cd  /u01/app/oracle/product/23.0.0/grid/deinstall
$ ./deinstall -paramfile /tmp/deinstall2024-08-01_01-40-28PM/response/deinstall_Ora23Grid1.rsp

In this example, the Oracle Grid Infrastructure home is /u01/app/oracle/product/23.0.0/grid

Page 148 of 187

Downgrading Oracle Restart

Use this procedure to deconfigure and downgrade Oracle Restart, or to troubleshoot Oracle Restart installation errors.

  1. As the oracle user, create a backup of the SPFILE to a PFILE from 26ai Oracle home to 19c Oracle home.
    $ CREATE PFILE='/u01/app/oracle/product/19.0.0/dbhome_1/dbs/SIDinit.ora' FROM SPFILE

    You can use this PFILE during the database downgrade process.

  2. List all Oracle AI Databases on the server with their version, unique name of the database, and Oracle home information.

    $ srvctl config database -home
  3. Downgrade Oracle AI Database. Refer to Oracle AI Database Upgrade Guide for more information about required pre-downgrade tasks, downgrade tasks, post-downgrade tasks, and compatibility information.

    Note:

    Downgrade Oracle AI Database only if the Oracle AI Database version is higher than the Oracle Restart version to which you are downgrading Oracle Restart.

  4. As the oracle user, downgrade the Oracle Restart resources corresponding to the Oracle AI Database, only if you have downgraded your Oracle AI Database.

    $ srvctl downgrade database -d db_unique_name -oraclehome $ORACLE_HOME -t to_version
  5. Inspect the Oracle Restart configuration of each database, service, and listener.
    $ srvctl config database -db db_unique_name
    $ srvctl config service -db db_unique_name
    $ srvctl config listener -listener listener_name

    Make a note of the configuration information and use this information when adding the components back to Oracle Restart.

  6. Stop all databases and listeners that are running before you downgrade Oracle Restart.

    $ srvctl stop database -db db_unique_name
    $ srvctl stop listener [-listener listener_name]
  7. Deinstall Oracle Restart while retaining the existing Oracle Automatic Storage Management (Oracle ASM) disk group.

    $ cd /u01/app/oracle/product/23.0.0/dbhome_1/deinstall
    $ ./deinstall
    If you want to retain the existing diskgroups and associated labels 
    or if any of the information detected is incorrect, you can modify by entering 'y'. 
    Do you want to modify above information  (y|n) [n]: y
    Specify the ASM Diagnostic Destination [ASM_diagnostic_destination]: 
    Specify the diskstring [ASM_diskstring]: 
    Specify the diskgroups that are managed by this ASM instance [+DATA]:
    De-configuring ASM will drop the diskgroups and clear the labels at cleanup time. 
    Do you want deconfig tool to drop the diskgroups and  all labels (y|n) [y]: n
  8. As the grid user, download the Oracle Grid Infrastructure 19c image files and extract the files to the Grid home.

    $ mkdir -p /u01/app/grid/product/19.0.0/grid
    $ chown grid:oinstall /u01/app/grid/product/19.0.0/grid
    $ cd /u01/app/grid/product/19.0.0/grid
    $ unzip -q download_location/grid_home.zip

    download_location/grid_home.zip is the path of the downloaded Oracle Grid Infrastructure image file.

    Note:

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

  9. Start the Oracle Grid Infrastructure installation wizard.

    $ /u01/app/grid/product/19.0.0/grid/gridSetup.sh
  10. Select the Configuration Option as Set Up Software Only and select the installation options as prompted.
  11. As the grid user, update the Oracle central inventory (oraInventory).

    $ /u01/app/oracle/product/19.0.0/grid/oui/bin/runInstaller -updateNodeList ORACLE_HOME=downgraded_Grid_home CRS=TRUE
  12. As the root user, run roothas.sh to configure Oracle Restart without Oracle ASM.

    # /u01/app/oracle/product/19.0.0/grid/crs/install/roothas.sh
  13. As the grid user, start Oracle ASM Configuration Assistant (Oracle ASMCA).

    $ /u01/app/oracle/product/19.0.0/bin/asmca
  14. Create a new temporary Oracle ASM disk group.

    Note:

    Configure Oracle ASM to use the new disk group and provide /.../.* as the disk string so that Oracle ASM can discover the new disk.

  15. Mount the existing Oracle ASM disk group and click Exit to close Oracle ASMCA.
  16. Move the password file from the temporary disk group to the existing disk group.

    $ /u01/app/oracle/product/19.0.0/bin/asmcmd
    ASMCMD> pwmove --asm new_diskgroup/orapwasm existing_diskgroup/orapwasm -f
  17. Remove the SPFILE from the existing Oracle ASM disk group.

    ASMCMD> rm existing_diskgroup/ASM/ASMPARAMETERFILE/REGISTRY.253.1075263285
  18. Copy the SPFILE from the new Oracle ASM disk group to the existing disk group.

    ASMCMD> spcopy -u +new_diskgroup/asm/ASMPARAMETERFILE/registry.253.722601213 +existing_diskgroup/spfile
    ASMCMD> exit
  19. Restart the high availability stack to verify that Oracle ASM starts with SPFILE from the existing disk group.
  20. Start Oracle ASMCA and delete the new temporary disk group.
  21. As the oracle user, add the components back to Oracle Restart with the same attributes that you noted in earlier steps.

    1. Add Oracle AI Database to the Oracle Restart configuration.
      $ srvctl add database -db db_unique_name -oraclehome Oracle_home -spfile spfile_name

      For the -spfile parameter, provide the SPFILE that you noted in Step 5.

    2. Add the listener to the Oracle Restart configuration.
      $ srvctl add listener -listener listener_name -oraclehome Oracle_home

      For the -oraclehome parameter, provide the Oracle home from where the listener was running before the downgrade.

    3. Add each service to the database using the srvctl add service command.

      $ srvctl add service -db db_unique_name -service service_name_list
  22. Start the components that you have added back to Oracle Restart.

    1. Start the Oracle AI Database.

      $ srvctl start database -db db_unique_name
    2. Start the listener.

      $ srvctl start listener -listener listener_name
    3. Start each service using the srvctl start service command.
  23. Connect to Oracle AI Database and start the pluggable database (PDB).

    $ sqlplus / as sysdba
    SQL> ALTER PLUGGABLE DATABASE pdb_name OPEN;
    SQL> exit
  24. Verify that the Oracle Restart resources are running after the downgrade.

    $ /u01/app/oracle/product/19.0.0/bin/crsctl stat res -t

Related Topics

Page 149 of 187

Removing an RPM-based Oracle AI Database Installation

Use this procedure to remove and deinstall a database installed using the yum command.

  1. Log in as root.
  2. Run the following command to remove the RPM-based database installation:

    # yum -y remove oracle-ai-database-ee-26ai

The yum command detects the default configured components in the Oracle home such as the database (ORCLCDB) and the listener (LISTENER) and removes these components for you.

Apart from the default database (ORCLCDB) and the listener (LISTENER), if the yum command detects other configured components in the Oracle home such as additional databases or listeners, then it stops the deinstallation process. A message is displayed that instructs you to remove these configured components manually. To remove these configured components:

  1. Log in as the Oracle AI Database installation owner user (oracle).
  2. To remove any database associated with your installation, use Oracle Database Configuration Assistant (Oracle DBCA).

    $ cd $ORACLE_HOME/bin 
    $ ./dbca
  3. To remove any listeners associated with your installation, run Oracle Net Configuration Assistant (Oracle NETCA).

    $ cd $ORACLE_HOME/bin 
    $ ./netca
  4. Log in as root and run the yum command again to remove the rpm-based database installation.

    # yum -y remove oracle-ai-database-ee-26ai

Related Topics

Page 150 of 187

Deinstalling Previous Release Grid Home

Use this procedure to deinstall the previous release Grid home.

For upgrades from previous releases, if you want to deinstall the previous release Grid home, then perform the following steps:

  1. Log in as the root user.
  2. Manually change the permissions of the previous release Grid home.

    # chmod -R 775 /u01/app/oracle/product/19.0.0/grid
    # chown -R oracle:oinstall /u01/app/oracle/product/19.0.0/grid
    # chown oracle /u01/app/oracle/product/19.0.0

    In this example:

    • /u01/app/oracle/product/19.0.0/grid is the previous release Oracle Grid Infrastructure for a standalone server home
    • oracle is the Oracle Grid Infrastructure installation owner user
    • oinstall is the name of the Oracle Inventory group (OINSTALL group)
    • /u01/app/oracle/product/19.0.0 is the parent directory of the previous Grid home.
  3. Log in as the Oracle Grid Infrastructure software owner user (oracle) and run the deinstall command.

Page 151 of 187

Changing the Oracle Restart Home Path

After installing Oracle Grid Infrastructure for a standalone server (Oracle Restart and Oracle ASM configured for a standalone server), if you need to change the Grid home path, then use the following example as a guide to detach the old Grid home, and to attach a new Grid home:

Note:

Before changing the Grid home, you must shut down all executables that run in the Grid home directory that you are relinking. In addition, shut down applications linked with Oracle shared libraries.

  1. As the root user, copy the Oracle Grid Infrastructure binaries from the old Grid home location to the new Grid home location. For example, where the old Grid home is /u01/app/oracle/product/23.0.0/grid and the new Grid home is /u01/app/oracle/product/26ai/grid.

    # mkdir /u01/app/oracle/product/26ai/grid
    # cp -pR /u01/app/oracle/product/23.0.0/grid /u01/app/oracle/product/26ai/grid
  2. Change the owner and group for the directory and files in the new Grid home.

    # chown -R grid:oinstall /u01/app/oracle/product/26ai/grid
  3. As the grid user, run the gridSetup.sh command from the new Grid home directory and in the Select Configuration Option screen, select Setup Software Only.

    $ /u01/app/oracle/product/26ai/grid/gridSetup.sh

    Complete the installation by selecting the installation options as prompted. This step relinks the Oracle Grid Infrastructure binaries and updates the Oracle Inventory (oraInventory) with the new Oracle Grid Infrastructure home.

    Note:

    Do not change the Oracle base path during the installation.

  4. As the root user, run the root.sh script from your new Grid home.

    # /u01/app/oracle/product/26ai/grid/root.sh
  5. Switch to the patched Oracle Grid Infrastructure home using one of the following methods:

    • Start the Oracle Grid Infrastructure installer in interactive mode from the new Oracle home:

      $ /u01/app/oracle/product/26ai/grid/gridSetup.sh

      Then perform the following steps:

      1. Select the Patch Oracle Grid Infrastructure option in the Select Configuration Option window.
      2. Select the Use Zero Downtime GI patching option to switch to the patched Oracle Grid Infrastructure home.
      3. Select the Do not update ACFS drivers option if the patch that you are installing contains operating system driver updates and you want to skip them.
      4. Respond to the installation screens with values appropriate for your environment.
    • Start the Oracle Grid Infrastructure installer in silent mode, with the -switchGridHome flag from the new Oracle home.

      $ /u01/app/oracle/product/26ai/grid/gridSetup.sh -silent -switchGridHome

Page 152 of 187

Oracle Grid Infrastructure Command-Line Options

Use this comprehensive list of Oracle Grid Infrastructure silent mode commands to install, configure, patch, upgrade, downgrade, and manage Oracle Grid Infrastructure deployments.

gridSetup.sh Command

The gridSetup.sh command launches the Oracle Grid Infrastructure installer when used without options and supports installation, prerequisite checking, configuration-tool execution, debugging, patch application, response files, and automated root-script execution. Silent installations can use response files, while root execution can be configured for direct root or sudo-based operation; the page also provides an example of silent installation with prerequisite failures ignored.

Read More: gridSetup.sh Command

gridSetup.sh -setupHome

The gridSetup.sh -setupHome command installs Oracle Grid Infrastructure software and registers it with the central inventory. It requires OSDBA, OSASM, and Oracle base values, and optionally accepts OSOPER, cluster-node, inventory-location, prerequisite, and automated root-script options for deploying the software across a cluster.

Read More: gridSetup.sh -setupHome

gridSetup.sh -setupHomeAs

The gridSetup.sh -setupHomeAs command installs Oracle Grid Infrastructure using the Oracle base and privileged operating-system groups from a specified source Grid home, with optional overrides. It supports prerequisite checks, cluster-node selection, Oracle base and group definitions, and automated root-script execution for reproducing a Grid home configuration across nodes.

Read More: gridSetup.sh -setupHomeAs

gridSetup.sh -configureStandaloneServer

The gridSetup.sh -configureStandaloneServer command configures Oracle Grid Infrastructure for a standalone server, also known as Oracle Restart. It defines required operating-system groups, Oracle base, ASM disk-group name, and storage either through a disk list or failure-group configuration, while supporting ASM redundancy and allocation settings, disk discovery, Enterprise Manager integration, inventory registration, prerequisite checks, configuration tools, and root-script execution.

Read More: gridSetup.sh -configureStandaloneServer

gridSetup.sh -switchGridhome

The gridSetup.sh -switchGridHome command changes the active Grid Infrastructure home to the current home after software-only installation has been completed on all cluster nodes. It supports zero-downtime switching, optional driver-update suppression, rollback to an older home, prerequisite checks, service-drain timeouts, and resuming pending or failed jobs; zero-downtime patching and rollback cannot be combined.

Read More: gridSetup.sh -switchGridhome

gridSetup.sh -createGoldImage

The gridSetup.sh -createGoldImage command creates a reusable gold image from the current Oracle Grid Infrastructure home. It requires a destination directory and optionally accepts a comma-separated list of absolute files or directories to exclude, including wildcarded directory paths that exclude entire directory trees.

Read More: gridSetup.sh -createGoldImage

gridSetup.sh -upgrade

The gridSetup.sh -upgrade command upgrades an earlier Oracle Grid Infrastructure installation to the current release. It supports prerequisite validation, Oracle base specification, readiness-only dry runs, cluster batch mapping, ignoring unavailable nodes, configuration-tool execution, and automated root-script execution.

Read More: gridSetup.sh -upgrade

gridSetup.sh -downgrade

The gridSetup.sh -downgrade command restores Oracle Grid Infrastructure to an earlier release following a failed upgrade. It requires the path to the previous Grid home and optionally supports configuration-tool execution and automated root-script execution.

Read More: gridSetup.sh -downgrade

Page 153 of 187

gridSetup.sh Command

The gridSetup.sh command provides various flags that you can use without specifying any command option. If you do not provide any options, then gridSetup.sh starts the Oracle Grid Infrastructure installer.

Syntax

gridSetup.sh [-silent [-ignorePrereqFailure]] [-responseFile responsefilename] [-executePrereqs] [-executeConfigTools [-skipStackCheck]]
[-debug] [-applyOneOffs list_of_patch_directory_locations] [-nApplyOneOffs directory_containing_multiple_patches]
[-executeRootScript -configMethod <ROOT | SUDO>  [-sudoPath sudo_binary_path] [-sudoUserName sudo_user_name]]]

Parameters

Table: gridSetup.sh Flag Parameters

ParameterMandatory?Description
-silentNoRun the installer in silent mode. You can either provide a response file path for inputs or a list of command line variable value pairs.
-ignorePrereqFailureNoSpecify this option to ignore all prerequisite checks failures.
-responseFile responsefilenameNoAbsolute path of the response file, which has installation option values.
-executePrereqsNoRun prerequisite checks to ensure that all necessary conditions and requirements are met before proceeding with the installation or configuration process.
-executeConfigToolsNo

Run configuration tools for an installed Oracle Grid Infrastructure home.

Note: You can use this parameter only with other commands, such as gridSetup.sh -configureCluster.

-skipStackCheckNoSkip the Oracle Clusterware stack status check.
-debugNoRun the Oracle Grid Infrastructure in the debug mode.
-applyOneOffs list_of_patch_directory_locationsNoSpecify one or more paths to one-off patches to apply to the Oracle Grid Infrastructure home. You can pass multiple one-off patches as a comma separated list of locations.
-nApplyOneOffs directory_containing_multiple_patchesNoSpecify a path to a location that contains multiple one-off patches to apply to the Oracle Grid Infrastructure home.
-executeRootScriptNo

Specify this option to run the root script automatically.

Note: You can use this parameter only with other commands such as gridSetup.sh -configureCluster.

-configMethod <ROOT | SUDO>NoSpecify the configuration method to use for automatic root script execution. This can be either as the root user or as a sudo user.
-sudoPath sudo_binary_pathNoAbsolute path of the sudo program binaries.
-sudoUserName sudo_user_nameNoName of the user who is in the sudoers list and can run the root scripts.
-helpNoDisplays the gridSetup.sh command help.

Example

The following example shows you how to install the Oracle Grid Infrastructure software using a response file.

gridSetup.sh -silent -ignorePrereqFailure -responseFile /u01/app/oracle/product/23.0.0/grid/install/response/response_file.rsp

Page 154 of 187

gridSetup.sh -setupHome

The gridSetup.sh -setupHome command installs the Oracle Grid Infrastructure software and registers the software with the Oracle central inventory.

Syntax

gridSetup.sh -setupHome -OSDBA sysdba_group -OSASM osasm_group -ORACLE_BASE Oracle_base_dir
[-executePrereqs] [-OSOPER osoper_group] [-clusterNodes list_of_nodes] [-INVENTORY_LOCATION central_inventory_location]
[-executeRootScript [-configMethod ROOT]

Parameters

Table: gridSetup.sh -setupHome Command Parameters

ParameterMandatory?Description
-OSDBA sysdba_groupYesThe name of the SYSDBA privileged operating system group. The default is dba.
-OSASM osasm_groupYesThe name of the SYSASM privileged operating system group.
-ORACLE_BASE Oracle_base_dirYesComplete path of the Oracle base location to use for the Oracle Grid Infrastructure installation.
-executePrereqsNoRun prerequisite checks to ensure that all necessary conditions and requirements are met before proceeding with the installation or configuration process.
-OSOPER osoper_groupNoThe name of the SYSOPER privileged operating system group.
-clusterNodes list_of_nodesNoA comma-separated list of cluster nodes on which you want to install the Oracle Grid Infrastructure software.
-INVENTORY_LOCATION central_inventory_locationNoComplete path of the location where you want to store the inventory files. If you have previously installed an Oracle software on this system, then specify the existing inventory path.
-helpNoDisplays the gridSetup.sh -setupHome command help.

Example

The following example shows you how to install Oracle Grid Infrastructure software on a three node cluster:

gridSetup.sh -setupHome -OSDBA sysdba -OSASM osasm -OSOPER osoper
-ORACLE_BASE /u01/app/oracle -clusterNodes node1,node2,node3
-INVENTORY_LOCATION /u01/app/oraInventory -executeRootScript -configMethod ROOT

Page 155 of 187

gridSetup.sh -setupHomeAs

The gridSetup.sh -setupHomeAs command installs the Oracle Grid Infrastructure software with Oracle base and privileged operating system groups identical to the specified grid home.

Syntax

gridSetup.sh -setupHomeAs source_Oracle_home [-executePrereqs] [-OSDBA sysdba_group]
[-OSASM osasm_group] [-OSOPER osoper_group] [-clusterNodes list_of_nodes]
[-ORACLE_BASE Oracle_base_dir] [-executeRootScript [-configMethod ROOT]]

Parameters

Table: gridSetup.sh -setupHomeAs Command Parameters

ParameterMandatory?Description
-executePrereqsNoRun prerequisite checks to ensure that all necessary conditions and requirements are met before proceeding with the installation or configuration process.
-OSDBA sysdba_groupNoThe name of the SYSDBA privileged operating system group. The default is dba.
-OSASM osasm_groupNoThe name of the SYSASM privileged operating system group.
-OSOPER osoper_groupNoThe name of the SYSOPER privileged operating system group.
-clusterNodes list_of_nodesNoA comma-separated list of cluster nodes on which you want to install the Oracle Grid Infrastructure software with Oracle base and privileged operating system groups identical to the specified source Oracle home.
-ORACLE_BASE Oracle_base_dirNoComplete path to the Oracle base location to use for the Oracle Grid Infrastructure installation.
-helpNoDisplays the gridSetup.sh -setupHomeAs command help.

Example

The following example shows how to setup a Grid home identical to the specified source Grid home, on a three node cluster:

gridSetup.sh -setupHomeAs /u01/app/oracle/product/23.0.0/grid -clusterNodes node4,node5
-OSDBA sysdba -OSASM osasm -OSOPER osoper -ORACLE_BASE /u01/app/oracle -clusterNodes node1,node2,node3 -executeRootScript -configMethod ROOT

Page 156 of 187

gridSetup.sh -configureStandaloneServer

The gridSetup.sh -configureStandaloneServer command configures Oracle Grid Infrastructure for a Standalone Server, also known as Oracle Restart.

Syntax

gridSetup.sh -configureStandaloneServer -OSDBA sysdba_group -OSASM osasm_group -ORACLE_BASE Oracle_base_dir -dbDiskGroupName disk_group_name
{-diskList asm_disk_list | -disksWithFailureGroupNames failure_group_disk_names -failureGroups failure_group_names -quorumFailureGroupNames quorum_failure_group_names}
[-redundancy <NORMAL | HIGH | EXTERNAL | FLEX | EXTENDED>] [-auSize <1 | 2 | 4 | 8 | 16>] [-diskString disk_discovery_string] [-executePrereqs] [-OSOPER osoper_group]
[-executeConfigTools] [-executeRootScript -configMethod ROOT]] [-managementOption <CLOUD_CONTROL | NONE> -omsHost EM_hostname -omsPort EM_port -emAdminUser EM_admin_username]
[-INVENTORY_LOCATION central_inventory_location]

Parameters

Table: gridSetup.sh -configureStandaloneServer Command Parameters

ParameterMandatory?Description
-OSDBA sysdba_groupYes

The name of the OSDBA privileged operating system group. The default is dba.

Note: If you have already setup an Oracle Grid Infrastructure home, then this parameter is not required.

-OSASM osasm_groupYes

The name of the OSASM privileged operating system group.

Note: If you have already setup an Oracle Grid Infrastructure home, then this parameter is not required.

-ORACLE_BASE Oracle_base_dirYes

Complete path to the Oracle base location to use for the Oracle Grid Infrastructure installation.

Note: If you have already setup an Oracle Grid Infrastructure home, then this parameter is not required.

-dbDiskGroupName disk_group_nameYesName for the Oracle ASM disk group, for example DATA.
-diskList asm_disk_listYes Mandatory, only if failure group configuration is not required.

A list of Oracle ASM disks to create an Oracle ASM disk group.

Note: Use this variable only if failure group configuration is not required.

-disksWithFailureGroupNames failure_group_disk_names -failureGroups failure_group_names -quorumFailureGroupNames quorum_failure_group_namesYes Mandatory, only if -diskList is not specified.

A list of failure groups to be marked as QUORUM. A quorum failure group, a special type of failure group, contains mirror copies of voting files when voting files are stored in normal or high redundancy disk groups.

Note: Use this variable only if -diskList is not used.

-redundancy <NORMAL | HIGH | EXTERNAL | FLEX | EXTENDED>NoThe Oracle ASM redundancy level to use for the Oracle ASM disk group. Default value is NORMAL.
-auSize <1 | 2 | 4 | 8 | 16>NoThe allocation unit size for Oracle ASM. Default value is 1.
-diskString disk_discovery_stringNoDisk discovery string, a path and pattern match for the Oracle ASM disks, to discover the disks for creating an Oracle ASM disk group.
-executePrereqsNoRun prerequisite checks to ensure that all necessary conditions and requirements are met before proceeding with the installation or configuration process.
-OSOPER osoper_groupNo

The name of the OSOPER privileged operating system group.

Note: If you have already setup an Oracle Grid Infrastructure home, then this parameter is not required.

-managementOption <CLOUD_CONTROL | NONE>NoManagement option to use for managing the Oracle home. Default value is NONE.
-omsHost EM_hostnameNoThe OMS host to connect to Oracle Enterprise Manager Cloud Control.
-omsPort EM_portNoThe OMS port to connect to Oracle Enterprise Manager Cloud Control.
-emAdminUser EM_admin_usernameNoThe Admin username to connect to Oracle Enterprise Manager Cloud Control.
-INVENTORY_LOCATION central_inventory_locationNoComplete path to the location where you want to store the inventory files. If you have previously installed an Oracle software on this computer, then specify the existing inventory path.
-helpNoDisplays the gridSetup.sh -configureStandaloneServer command help.

Example

The following example shows you how to install and configure Oracle Grid Infrastructure for a Standalone Server (Oracle Restart) with Oracle ASM storage:

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

Page 157 of 187

gridSetup.sh -switchGridhome

The gridSetup.sh -switchGridHome command changes the active Oracle Grid Infrastructure home from the configured home to the current home from which you are running this command.

Note:

You must perform the software-only Oracle Grid Infrastructure installation in the new Grid home on all cluster nodes before using this command.

Syntax

gridSetup.sh -switchGridHome [-zeroDowntimeGIPatching [-skipDriverUpdate]]
[-rollback -oldHome old_GI_Home [-clusterNodes list_of_nodes]]
[-executePrereqs] [-drainTimeoutInSeconds number_of_seconds] [-resume]

Parameters

Table: gridSetup.sh -switchGridHome Command Parameters

ParameterMandatory?Description
-zeroDowntimeGIPatchingNoSwitch the active Oracle Grid Infrastructure home to the current home without stopping the databases and services.
-skipDriverUpdateNo

Specify this option to skip updating the operating system drivers, such as Oracle ACFS.

Note: If the patch that you are installing contains operating system driver updates, then you must use -skipDriverUpdate to avoid restarting your server.

-rollback {-oldHome old_GI_Home | -clusterNodes list_of_nodes }NoSwitch back to the previous Oracle Grid Infrastructure home when the patching operation fails. When you use this option, specify the old Grid Infrastructure home and the list of cluster nodes on which you want to perform the rollback operation.
-executePrereqsNoRun prerequisite checks to ensure that all necessary conditions and requirements are met before proceeding with the installation or configuration process.
-drainTimeoutInSeconds number_of_secondsNoDrain the database services before stopping the database instances on the current node. Specify the drain timeout value in seconds.
-resumeNoResume operation to run pending and failed jobs.
-helpNoDisplays the gridSetup.sh -switchGridhome command help.

Usage Notes

You cannot use the -zeroDowntimeGIPatching and -rollback options together.

Example

The following example shows how to switch from the current Grid home to the patched Grid home.

gridSetup.sh -switchGridHome -zeroDowntimeGIPatching -skipDriverUpdate -drainTimeoutInSeconds 60

Page 158 of 187

gridSetup.sh -createGoldImage

The gridSetup.sh -createGoldImage command creates a gold image from the current Oracle Grid Infrastructure home.

Syntax

gridSetup.sh -createGoldImage -destinationLocation directory_to_store_gold_image [-exclFiles file_paths]

Parameters

Table: gridSetup.sh -createGoldImage Command Parameters

ParameterMandatory?Description
-destinationLocation directory_to_store_gold_imageYesSpecify the complete path, or location, where you want to store the gold images.
-exclFiles file_pathsNo

Specify a comma-separated list of absolute file paths or directory paths that you want to exclude from the newly created gold image.

Note:

  • Directory paths can also include wildcards.
  • Directory path names exclude the entire directory tree and all files under the specified path.
-helpNoDisplays the gridSetup.sh -createGoldImage command help.

Examples

  • The following example shows how to exclude a specific file:

    Grid_home/gridSetup.sh -createGoldImage -destinationLocation /tmp/my_grid_images -exclFiles Grid_home/instantclient/libsqlplusic.so -silent
  • The following example shows how to exclude a directory and its contents:

    Grid_home/gridSetup.sh -createGoldImage -destinationLocation /tmp/my_grid_images -exclFiles Grid_home/.patch_storage -silent
  • The following example shows how to exclude multiple folders and files:

    Grid_home/gridSetup.sh -createGoldImage -destinationLocation /tmp/my_grid_images -exclFiles Grid_home/.patch_storage/32916816_Jul_19_2025_01_56_39/,Grid_home/log/* -silent

Page 159 of 187

gridSetup.sh -upgrade

The gridSetup.sh -upgrade command upgrades an earlier release Oracle Grid Infrastructure installation to the current release.

Syntax

gridSetup.sh -upgrade [-executePrereqs] [-ORACLE_BASE oracle_base_dir] [-dryRun] [-batchInfo batch_map]
[-ignoreDownNodes] [-executeConfigTools] [-executeRootScript -configMethod ROOT]]

Parameters

Table: gridSetup.sh -upgrade Command Parameters

ParameterMandatory?Description
-executePrereqsNoRun prerequisite checks to ensure that all necessary conditions and requirements are met before proceeding with the installation or configuration process.
-ORACLE_BASE oracle_base_dirNoComplete path to the Oracle base location to use for the Oracle Grid Infrastructure upgrade.
-dryRunNoPerform a dry-run of the Oracle Grid Infrastructure upgrade process to check readiness for the upgrades.
-batchInfo batch_mapNoSpecify the cluster nodes batch map.
-ignoreDownNodesNoSkip upgrading the cluster nodes that are down during the Oracle Grid Infrastructure upgrade operation.
-helpNoDisplays gridSetup.sh -upgrade command help.

Example

The following example shows you how to upgrade Oracle Grid Infrastructure to 26ai:

gridSetup.sh -upgrade -ORACLE_BASE /u01/app/grid [-ignoreDownNodes] -executeConfigTools -executeRootScript -configMethod ROOT

Page 160 of 187

gridSetup.sh -downgrade

The gridSetup.sh -downgrade command downgrades the Oracle Grid Infrastructure installation to an earlier release after a failed upgrade.

Syntax

gridSetup.sh -downgrade -oldHome old_GI_home_to_downgrade
[-executeConfigTools] [-executeRootScript -configMethod ROOT]]

Parameters

Table: gridSetup.sh -downgrade Command Parameters

ParameterMandatory?Description
-oldHome old_GI_home_to_downgradeYesEarlier release Oracle Grid Infrastructure home to which you want to downgrade.
-helpNoDisplays gridSetup.sh -downgrade command help.

Example

The following example shows you how to downgrade Oracle Grid Infrastructure to an earlier release, from which you upgraded:

gridSetup.sh -downgrade -oldHome /u01/app/oracle/product/21.6.0/grid -executeConfigTools -executeRootScript -configMethod ROOT

Page 161 of 187

Oracle AI Database Installer Command-Line Options

Use this comprehensive list of Oracle AI Database installer silent mode commands to install, configure, and manage Oracle AI Database.

runInstaller Command

The runInstaller command supports general installer operations through optional flags, including silent or response-file installations, prerequisite validation, debugging, one-off patch application, configuration-tool execution, and automatic root-script execution using either root or sudo. Options also control inventory locations, sudo credentials, stack checks, and help output; for example, a silent installation can use a response file while ignoring prerequisite failures.

Read More: runInstaller Command

runInstaller -setupDBHome

The runInstaller -setupDBHome command installs Oracle AI Database software and registers it with the central inventory. It requires the Oracle base directory and operating-system groups for SYSDBA, SYSBACKUP, SYSDG, SYSKM, and SYSRAC, while optionally supporting SYSOPER, prerequisite checks, automatic root-script execution, cluster-node lists, Enterprise or Standard Edition 2 selection, and a specified inventory location.

Read More: runInstaller -setupDBHome

runInstaller -setupDBHomeAs

The runInstaller -setupDBHomeAs command installs Oracle AI Database software using the Oracle base and privileged operating-system group configuration from a specified source Oracle home. Optional parameters allow overriding group assignments, Oracle base, cluster nodes, database edition, prerequisite execution, and root-script execution, with support for multi-node installations modeled on the source home.

Read More: runInstaller -setupDBHomeAs

runInstaller -createDatabase

The runInstaller -createDatabase command installs Oracle AI Database software and creates a single-instance database, including a container database and pluggable database, when no existing Oracle home is available. It requires privileged operating-system groups, Oracle base, database identity values, memory allocation, and either a filesystem data location or ASM disk group; optional features include recovery, automatic memory management, database edition and type selection, Enterprise Manager integration, shared schema passwords, configuration tools, inventory specification, and automatic root-script execution.

Read More: runInstaller -createDatabase

runInstaller -createGoldImage

The runInstaller -createGoldImage command creates a gold image from the current Oracle AI Database home and stores it in a required destination directory. It runs silently and optionally accepts a comma-separated list of absolute files or directories to exclude, including wildcard-based directory trees, allowing specific files, patch storage, or multiple paths to be omitted from the image.
Read More: runInstaller -createGoldImage

Page 162 of 187

runInstaller Command

The runInstaller command provides various flags that you can use without specifying any command option.

Syntax

runInstaller [-silent [-ignorePrereqFailure]] [-responseFile responsefilename] [-executePrereqs] [-executeConfigTools [-skipStackCheck]]
[-debug] [-applyOneOffs list_of_patch_directory_locations] [-nApplyOneOffs directory_containing_multiple_patches]
[-executeRootScript -configMethod <ROOT | SUDO>  [-sudoPath sudo_binary_path] [-sudoUserName sudo_user_name]]]

Parameters

Table: runInstaller Command Parameters

ParameterMandatory?Description
-silentNoRun the installer in the silent mode. You can either provide a response file path for inputs or a list of command line variable value pairs.
-ignorePrereqFailureNoSpecify this option to ignore all prerequisite checks failures.
-responseFile responsefilenameNoAbsolute path of the response file, which has installation option values.
-debugNoRun the Oracle AI Database installer in the debug mode.
-applyOneOffs list_of_patch_directory_locationsNoApply one-off patches to the Oracle AI Database home. You can pass multiple one-off patches as a comma separated list of locations.
-nApplyOneOffs directory_containing_multiple_patchesNoSpecify a path to a location that contains multiple one-off patches to apply to the Oracle Grid Infrastructure home.
-executeConfigToolsNo

Run the configuration tools for an installed Oracle AI Database home.

Note: You can use this parameter only with other commands, such as runInstaller -setupDBHome.

-skipStackCheckNoSkip the stack status check.
-executePrereqsNoRun prerequisite checks to ensure that all necessary conditions and requirements are met before proceeding with the installation or configuration process.
-executeRootScriptNo

Specify this option to run the root script automatically.

Note: You can use this parameter only with other commands such as gridSetup.sh -configureCluster.

-configMethod <ROOT | SUDO>NoSpecify the configuration method to use for automatic root script execution. It can be either as the root user or as a sudo user.
-sudoPath sudo_binary_pathNoAbsolute path of the sudo program binaries.
-sudoUserName sudo_user_nameNoName of the user who is in the sudoers list and can run the root scripts.
-helpNoDisplays runInstaller command help.

Example

The following example shows you how to install the Oracle AI Database software using a response file.

runInstaller -silent -ignorePrereqFailure -responseFile /u01/app/oracle/product/23.0.0/dbhome_1/install/response/db_install.rsp

Page 163 of 187

runInstaller -setupDBHome

The runInstaller -setupDBHome command installs the Oracle AI Database software and register the software with the Oracle central inventory.

Syntax

runInstaller -setupDBHome -OSDBA sysdba_group -OSBACKUPDBA osbackup_dba_group
-OSDGDBA os_dg_dba_group -OSKMDBA os_km_dba_group -OSRACDBA os_rac_dba_group
-ORACLE_BASE Oracle_base_dir [-executePrereqs] [-OSOPER os_oper_group]  [-executeRootScript -configMethod <SUDO | ROOT> ]
[-clusterNodes list_of_nodes] [-installEdition <EE | SE2>] [-INVENTORY_LOCATION central_inventory_location]

Parameters

Table: runInstaller -setupDBHome Command Parameters

ParameterMandatory?Description
-OSDBA sysdba_groupYesThe name of the SYSDBA privileged operating system group. The default is dba.
-OSBACKUPDBA osbackup_dba_groupYesThe name of the SYSBACKUP privileged operating system group.
-OSDGDBA os_dg_dba_groupYesThe name of the SYSDG privileged operating system group.
-OSKMDBA os_km_dba_groupYesThe name of the SYSKM privileged operating system group.
-OSRACDBA os_rac_dba_groupYesThe name of the SYSRAC privileged operating system group.
-ORACLE_BASE Oracle_base_dirYesComplete path to the Oracle base location to use for the Oracle AI Database installation.
-configMethod <ROOT | SUDO>NoSpecify the configuration method to use for automatic root script execution. It can be either as the root user or as a sudo user.
-executePrereqsNoRun prerequisite checks to ensure that all necessary conditions and requirements are met before proceeding with the installation or configuration process.
-OSOPER osoper_groupNoThe name of the SYSOPER privileged operating system group.
-clusterNodesNoA comma-separated list of cluster nodes on which you want to install the Oracle AI Database software.
-installEdition <EE | SE2>NoSelect a database edition from Enterprise Edition (EE) and Standard Edition 2 (SE2).
-INVENTORY_LOCATION central_inventory_locationNoComplete path to the location where you want to store the inventory files. If you have previously installed an Oracle software on this computer, then specify the existing inventory path.
-helpNoDisplays runInstaller -setupDBHome command help.

Example

The following example shows how to install Oracle AI Database software on a three node cluster:

runInstaller -setupDBHome -OSDBA sysdba -OSBACKUPDBA sysbackup -OSDGDBA sysdg -OSKMDBA syskm -OSRACDBA sysrac
-clusterNodes node1,node2,node3 -installEdition EE -INVENTORY_LOCATION /u01/app/oraInventory

Page 164 of 187

runInstaller -setupDBHomeAs

The runInstaller -setupDBHomeAs command installs the Oracle AI Database software with Oracle base and privileged operating system groups identical to the specified Oracle home.

Syntax

runInstaller -setupDBHomeAs source_Oracle_home [-OSDBA sysdba_group] [-OSOPER os_oper_group]
[-OSBACKUPDBA osbackup_dba_group] [-OSDGDBA os_dg_dba_group] [-OSKMDBA os_km_dba_group]
[-OSRACDBA os_rac_dba_group] [-ORACLE_BASE Oracle_base_dir] [-clusterNodes list_of_nodes]
[-installEdition <EE | SE2>] [-executeRootScript -configMethod ROOT]

Parameters

Table: runInstaller -setupDBHomeAs Command Parameters

ParameterMandatory?Description
-executePrereqsNoRun prerequisite checks to ensure that all necessary conditions and requirements are met before proceeding with the installation or configuration process.
-OSDBA sysdba_groupNoThe name of the SYSDBA privileged operating system group. The default is dba.
-OSOPER os_oper_groupNoThe name of the SYSOPER startup and shutdown system privileges for an Oracle AI Database.
-OSBACKUPDBA osbackup_dba_groupNoThe name of the SYSBACKUP backup and recovery system privileges for an Oracle AI Database.
-OSDGDBA os_dg_dba_groupNoThe name of the SYSDG system privileges to administer and monitor Oracle Data Guard.
-OSKMDBA os_km_dba_groupNoThe name of the SYSKM system privileges for encryption key management for tools such as orakpi command line tool.
-OSRACDBA os_rac_dba_groupNoThe name of the SYSRAC privileges to perform day to day administration of Oracle AI Databases on an Oracle RAC cluster. All Oracle AI Database software owners must be a member of this group.
-ORACLE_BASE Oracle_base_dirNoComplete path to the Oracle base location to use for the Oracle AI Database installation.
-clusterNodes list_of_nodesNoA comma-separated list of cluster nodes on which you want to install the Oracle AI Database software.
-installEdition <EE | SE2>NoSelect a database edition from Enterprise Edition (EE) and Standard Edition 2 (SE2).
-helpNoDisplays runInstaller -setupDBHome command help.

Example

The following example shows you how to setup an Oracle home identical to the specified source Oracle home, on a three node cluster:

runInstaller -setupDBHomeAs /u01/app/oracle/product/23.0.0/dbhome_1 -clusterNodes node1,node2,node3
-installEdition EE -executeRootScript -configMethod ROOT

Page 165 of 187

runInstaller -createDatabase

The runInstaller -createDatabase command installs Oracle AI Database software and creates a single-instance Oracle AI Database on your server.

Note:

Use this command only if you have not created an Oracle home and installed the Oracle AI Database software on your server. If an Oracle home already exists, then create a database using Oracle DBCA.

Syntax

runInstaller -createDatabase -OSDBA sysdba_group -OSBACKUPDBA osbackup_dba_group
-OSDGDBA os_dg_dba_group -OSKMDBA os_km_dba_group -OSRACDBA os_rac_dba_group
-ORACLE_BASE Oracle_base_dir -dataLocation data_file_location | -diskGroup ASM_disk_group_name
-gdbName database_name -pdbName pdb_name -dbSID database_SID -memoryLimit db_memory_limit_in_MB
[-executePrereqs] [-OSOPER sysoper_group] [-installEdition <EE | SE2>] [-dbType <GENERAL_PURPOSE | DATA_WAREHOUSE>]
[-enableRecovery] [-recoveryLocation recovery_file_location]] [-enableAutoMemoryManagement] [-managementOption <CLOUD_CONTROL | NONE>
-omsHost EM_hostname -omsPort EM_port -emAdminUser EM_admin_username] [-useSamePasswordForAllSchemas]
[-INVENTORY_LOCATION central_inventory_location] [-executeConfigTools] [-executeRootScript [-configMethod <ROOT | SUDO> [-sudoPath] [-sudoUserName]]]

Parameters

Table: runInstaller -createDatabase Command Parameters

ParameterMandatory?Description
-OSDBA sysdba_groupYesThe name of the SYSDBA privileged operating system group. The default is dba.
-OSBACKUPDBA osbackup_dba_groupYesThe name of the SYSBACKUP privileged operating system group.
-OSDGDBA os_dg_dba_groupYesThe name of the SYSDG privileged operating system group.
-OSKMDBA os_km_dba_groupYesThe name of the SYSKM privileged operating system group.
-OSRACDBA os_rac_dba_groupYesThe name of the SYSRAC privileged operating system group.
-ORACLE_BASE Oracle_base_dirYesComplete path to the Oracle base location to use for the Oracle AI Database installation.
-dataLocation data_file_locationYes Mandatory, only if -diskGroup is not specified.

Complete path to the database file location, which is a directory for datafiles, control files, and redo logs.

Note: Use this variable only if Oracle ASM is not used.

-diskGroup ASM_disk_group_nameYes Mandatory, only if -dataLocation is not specified.

Name for the Oracle ASM disk group, for example DATA.

Note: Use this variable only if -dataLocation is not used.

-gdbName database_nameYesA unique global database name for your Oracle AI Database.
-pdbName pdb_nameYesA unique name for the pluggable database (PDB) in the container database (CDB).
-dbSID database_SIDYesA unique Oracle Service Identifier (SID) for your Oracle AI Database.
-memoryLimit db_memory_limit_in_MBYesTotal memory allocation for the database in MB.
-executePrereqsNoRun prerequisite checks to ensure that all necessary conditions and requirements are met before proceeding with the installation or configuration process.
-OSOPER osoper_groupNoThe name of the SYSOPER privileged operating system group.
-installEdition <EE | SE2>NoThe installation edition of your Oracle AI Database. The default value is EE for Enterprise Edition.
-dbType <GENERAL_PURPOSE | DATA_WAREHOUSE>NoThe type of your Oracle AI Database. The default value is GENERAL_PURPOSE.
-enableRecoveryNoSpecify this option to enable database recovery.
-recoveryLocation recovery_file_locationNoComplete path to store the database recovery files.
-enableAutoMemoryManagementNoSpecify this option to enable automatic memory management.
-managementOption <CLOUD_CONTROL | NONE>NoManagement option to use for managing the Oracle home. Default value is NONE.
-omsHost EM_hostnameNoThe OMS host to connect to Enterprise Manager Cloud Control.
-omsPort EM_portNoThe OMS port to connect to Enterprise Manager Cloud Control.
-emAdminUser EM_admin_usernameNoThe Admin username to connect to Enterprise Manager Cloud Control.
-useSamePasswordForAllSchemasNoSpecify this option to use the same password for all schemas in your Oracle AI Database.
-INVENTORY_LOCATION central_inventory_locationNoComplete path to the location where you want to store the inventory files. If you have previously installed an Oracle software on this computer, then specify the existing inventory path.
-executeConfigToolsNo

Run configuration tools for an installed Oracle AI Database home.

Note:

You can use this parameter only with other commands, such as runInstaller -createDatabase.

-executeRootScriptNo

Specify this option to run the root script automatically.

Note:

You can use this parameter only with other commands, such as runInstaller -createDatabase.

-helpNoDisplays runInstaller -createDatabase command help.

Example

The following example shows you how to install Oracle AI Database software and create a single-instance Oracle AI Database with a CDB and a PDB:

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

Page 166 of 187

runInstaller -createGoldImage

The runInstaller -createGoldImage command creates a gold image from the current Oracle AI Database home.

Syntax

runInstaller -createGoldImage -destinationLocation directory_to_store_gold_image [-exclFiles list_of_excluded_files] -silent

Parameters

Table: runInstaller -createGoldImage Command Parameters

ParameterMandatory?Description
-destinationLocation directory_to_store_gold_imageYesSpecify the complete path, or location, where you want to store the gold images.
-exclFiles list_of_excluded_filesNo

Specify a comma-separated list of absolute file paths or directory paths that you want to exclude from the newly created gold image.

Note:

  • Directory paths can also include wildcards.
  • Directory path names exclude the entire directory tree and all files under the specified path.
-helpNoDisplays runInstaller -createGoldImage command help.

Examples

  • The following example shows how to exclude a specific file:

    $ORACLE_HOME/runInstaller -createGoldImage -destinationLocation /tmp/my_db_images -exclFiles $ORACLE_HOME/instantclient/libsqlplusic.so -silent
  • The following example shows how to exclude a directory and its contents:

    $ORACLE_HOME/runInstaller -createGoldImage -destinationLocation /tmp/my_db_images -exclFiles $ORACLE_HOME/.patch_storage -silent
  • The following example shows how to exclude multiple folders and files:

    $ORACLE_HOME/runInstaller -createGoldImage -destinationLocation /tmp/my_db_images -exclFiles $ORACLE_HOME/.patch_storage/32916816_Jul_19_2025_01_56_39/*,$ORACLE_HOME/R/migration/* -silent

Page 167 of 187

Completing Preinstallation Tasks Manually

You can complete the preinstallation configuration tasks manually.

Oracle recommends that you use Oracle Universal Installer and Configuration Verification Utility (CVU) fixup scripts to complete minimal configuration settings. If you cannot use fixup scripts, then complete minimum system settings manually.

Configuring Kernel Parameters for Linux

This page explains how to manually configure Linux kernel parameters when fixup scripts or the Oracle AI Database Preinstallation RPM are unavailable or insufficient. It lists minimum semaphore, shared-memory, file, asynchronous I/O, network port, and socket buffer settings; provides commands to inspect current values; and describes persisting changes in /etc/sysctl.d/97-oracle-database-sysctl.conf before applying and verifying them with sysctl. It also covers configuration guidelines, SUSE-specific hugetlb_shm_group settings, and manual UDP/TCP ephemeral-port configuration, recommending a range beginning at 9000, appropriate even/odd endpoints, sufficient capacity, and persistent application after restart.

Read More: Configuring Kernel Parameters for Linux

Configuring Default Thread Limits Value for SUSE Linux

This page instructs administrators using SUSE Linux Enterprise Server 15 or later to increase the systemd DefaultTasksMax limit from its typical value of 512 to 65535 to prevent service failures caused by thread limits. Administrators should inspect the current setting with systemctl show --property DefaultTasksMax or /etc/systemd/system.conf, uncomment and set the configuration value if necessary, then activate it by rebooting or running systemctl daemon-reload.

Read More: Configuring Default Thread Limits Value for SUSE Linux

Configuring Storage Device Path Persistence Manually

This page describes manually preserving Oracle ASM storage device names, ownership, and permissions across Linux restarts by creating custom udev rules. It explains collecting stable SCSI identifiers with scsi_id, enabling trusted-device handling through /etc/scsi_id.config, and creating rules that assign the installation owner, ASM OSDBA group, and mode 0660 in the required attribute order. On clusters, the rules file must be copied to every node; administrators should run partprobe, test the rules with udevtest, reload or restart udev according to the Linux distribution, and verify the resulting device ownership and permissions.
Read More: Configuring Storage Device Path Persistence Manually

Page 168 of 187

Configuring Kernel Parameters for Linux

These sections explain how to configure kernel parameters manually for Linux if you cannot complete them using the fixup scripts.

Minimum Parameter Settings for Installation

Use this table to set parameters manually if you cannot use the fixup scripts.

Note:

  • Unless otherwise specified, the kernel parameter and shell limit values shown in the following table are minimum values only. For production database systems, Oracle recommends that you tune these values to optimize the performance of the system. See the operating system documentation for more information about tuning kernel parameters.
  • The values in this table are minimum values for manual configuration. If you used the Oracle Database Preinstallation RPM to complete your preinstallation configuration tasks, then the RPM configures these kernel parameters for you. The Preinstallation RPM can set higher values for these kernel parameters. Do not reduce a higher or different value configured by the Preinstallation RPM or by your system administrator solely to match the minimum value in this table.
  • If the current value for any parameter is greater than the value listed in this table, then the Fixup scripts do not change the value of that parameter.

Table: Minimum Operating System Resource Parameter Settings

ParameterValueFile

semmsl

semmns

semopm

semmni

250

32000

100

128

/proc/sys/kernel/sem
shmallGreater than or equal to the value of shmmax , in pages./proc/sys/kernel/shmall
shmmax

Half the size of physical memory in bytes

See My Oracle Support Note 567506.1 for additional information about configuring shmmax.

/proc/sys/kernel/shmmax
shmmni4096/proc/sys/kernel/shmmni
panic_on_oops1/proc/sys/kernel/panic_on_oops
kernel.panic10 (seconds)/proc/sys/kernel/panic
file-max6815744/proc/sys/fs/file-max
aio-max-nr

1048576

Note: This value limits concurrent outstanding requests and should be set to avoid I/O subsystem failures.

/proc/sys/fs/aio-max-nr
ip_local_port_range

Minimum: 9000

Maximum: 65535

/proc/sys/net/ipv4/ip_local_port_range
rmem_default262144/proc/sys/net/core/rmem_default
rmem_max4194304/proc/sys/net/core/rmem_max
wmem_default262144/proc/sys/net/core/wmem_default
wmem_max1048576/proc/sys/net/core/wmem_max

Changing Kernel Parameter Values

Use these instructions to display and change the kernel parameter values if they are different from the minimum recommended value.

Use the following commands to display the current values of the kernel parameters:

Table: Commands to Display Kernel Parameter Values

ParameterCommand
semmsl , semmns , semopm , and semmni

# /sbin/sysctl -a | grep sem

This command displays the value of the semaphore parameters in the order listed.

shmall , shmmax , and shmmni

# /sbin/sysctl -a | grep shm

This command displays the details of the shared memory segment sizes.

file-max

# /sbin/sysctl -a | grep file-max

This command displays the maximum number of file handles.

ip_local_port_range

# /sbin/sysctl -a | grep ip_local_port_range

This command displays a range of port numbers.

rmem_default# /sbin/sysctl -a | grep rmem_default
rmem_max# /sbin/sysctl -a | grep rmem_max
wmem_default# /sbin/sysctl -a | grep wmem_default
wmem_max# /sbin/sysctl -a | grep wmem_max
aio-max-nr# /sbin/sysctl -a | grep aio-max-nr

If you used the Oracle AI Database Preinstallation RPM to complete you preinstallation configuration tasks, then the Oracle AI Database Preinstallation RPM sets these kernel parameters for you. However, if you did not use the Oracle AI Database Preinstallation RPM or the kernel parameters are different from the minimum recommended value, then to change these kernel parameter values:

  1. Using any text editor, create or edit the /etc/sysctl.d/97-oracle-database-sysctl.conf file, and add or edit lines similar to:
    fs.aio-max-nr = 1048576
    fs.file-max = 6815744
    kernel.shmall = 2097152
    kernel.shmmax = 4294967295
    kernel.shmmni = 4096
    kernel.sem = 250 32000 100 128
    net.ipv4.ip_local_port_range = 9000 65535
    net.core.rmem_default = 262144
    net.core.rmem_max = 4194304
    net.core.wmem_default = 262144
    net.core.wmem_max = 1048576

    By specifying the values in the /etc/sysctl.d/97-oracle-database-sysctl.conf file, the values persist on system restarts.

  2. To change the current values of the kernel parameters:
    # /sbin/sysctl --system

    Review the output. If the values are incorrect, edit the /etc/sysctl.d/97-oracle-database-sysctl.conf file, then enter this command again.

  3. Confirm that the values are set correctly:

    # /sbin/sysctl -a
  4. Restart the computer, or run sysctl --system to make the changes in the /etc/sysctl.d/97-oracle-database-sysctl.conf file available in the active kernel memory.
Guidelines for Setting Kernel Parameter Values
  • In an Oracle RAC cluster, a node may experience higher utilization of I/O-related resources when workloads are transferred from other nodes. Consider increasing fs.file-max and fs.aio-max-nr on each node to support these scenarios, as the minimum values may not be sufficient for very large workloads.
  • If you used the Oracle AI Database Preinstallation RPM, then your kernel parameter settings reside in the /etc/sysctl.d/99-oracle-ai-database-preinstall-26ai-sysctl.conf file.
  • Include lines only for the kernel parameter values to change. For the semaphore parameters ( kernel.sem ), you must specify all four values. If any of the current values are larger than the minimum value, then specify the larger value.
  • The /etc/sysctl.conf file has been deprecated.
  • To obtain optimal performance and functionality from the Linux Kernel for ip_local_port_range , ensure that the selected range is large enough to accommodate the workload. Also ensure that the polarity is reversed for minimum and maximum values, that is, one value is even and the other is odd.
  • Avoid setting kernel parameter values in multiple files under /etc/sysctl.d/. The file with a lexically later name under /etc/sysctl.d/ takes precedence, followed by /etc/sysctl.conf. Oracle recommends that you use the Oracle AI Database Preinstallation RPM which, among other preinstallation tasks, also sets the kernel parameter values for your database installation.

    See also

    sysctl.conf(5) and sysctl.d(5) man pages for more information

Configuring Additional Kernel Settings for SUSE Linux

Additional kernel parameter settings configuration is required on SUSE Linux Enterprise Server systems.

Perform these steps on SUSE Linux Enterprise Server systems only:

  1. Enter the following command to enable the system to read the /etc/sysctl.conf file when it restarts:

    # /sbin/chkconfig boot.sysctl on
  2. Enter the GID of the oinstall group as the value for the parameter /proc/sys/vm/hugetlb_shm_group.

    For example, where the oinstall group GID is 501:

    # echo 501 > /proc/sys/vm/hugetlb_shm_group

    Use vi to add the following text to /etc/sysctl.conf, and enable the boot.sysctl script to run on system restart:

    vm.hugetlb_shm_group=501

Note:

Only one group can be defined as the vm.hugetlb_shm_group.

Setting UDP and TCP Kernel Parameters Manually

If you do not use a Fixup script or CVU to set ephemeral ports, then follow these guidelines to ensure smooth and high performance experience with least errors or issues.

  • Choose lower and higher numbers that are even/odd not both odd or both even.
  • Ensure that the lower range is set to 9000 or higher to avoid well known ports and those commonly registered for use by Oracle and other vendors or servers.
  • Set the port range high enough to include reserved ports for any applications you may intend to use and large enough ephemeral ports for the anticipated server workload.

For example, with IPv4, use the following command to check your current range for ephemeral ports:

$ cat /proc/sys/net/ipv4/ip_local_port_range
32768 61001

In the preceding example, the lowest port is set to 32768 and the highest port to 61001.

If necessary, update the UDP and TCP ephemeral port range to a range high enough for anticipated system workloads, and to ensure that the ephemeral port range starts at 9000 and above. For example:

# echo 9000 65535 > /proc/sys/net/ipv4/ip_local_port_range

Oracle recommends that you make these settings permanent. For example, as root, use a text editor to open /etc/sysctl.d/97-oracle-database-sysctl.conf, and add or change to the following: net.ipv4.ip_local_port_range = 9000 65535, and then restart the network:

$ sudo systemctl restart NetworkManager.service

Refer to your Linux distribution system administration documentation for information about automating ephemeral port range alteration on system restarts.

Page 169 of 187

Configuring Default Thread Limits Value for SUSE Linux

If you are on SUSE Linux Enterprise Server 15 or later, then set the DefaultTasksMax parameter value to 65535.

Increase the default thread limits, DefaultTasksMax value from 512 to 65535 to avoid running into service failures.

  1. View the contents of /etc/systemd/system.conf to know the current DefaultTasksMax value. Alternatively, run the following command:

    $ systemctl show --property DefaultTasksMax
  2. If your DefaultTasksMax value is not 65535, then uncomment the line in /etc/systemd/system.conf and set the value to 65535.
  3. To enable the new settings, reboot your system or run the following command:

    $ systemctl daemon-reload

Page 170 of 187

Configuring Storage Device Path Persistence Manually

You can maintain storage file path persistence by creating a rules file.

About Device Path Persistence

Understand device path persistence for Oracle Automatic Storage Management (Oracle ASM).

By default, the device file naming scheme udev dynamically creates device file names when the server is started, and assigns ownership of them to root. If udev applies default settings, then it changes Oracle device file names and owners for the disks, making the disks inaccessible when the server is restarted. For example, a voting disk on a device named /dev/sdd owned by the user grid may be on a device named /dev/sdf owned by root after restarting the server.

You must create a custom rules file. Linux vendors customize their udev configurations and use different orders for reading rules files. For example, on some Linux distributions when udev is started, it sequentially carries out rules (configuration directives) defined in rules files. These files are in the path /etc/udev/rules.d/. Rules files are read in lexical order. For example, rules in the file 10-wacom.rules are parsed and carried out before rules in the rules file 90-ib.rules.

When specifying the device information in the udev rules file, ensure that the OWNER, GROUP, and MODE are specified before all other characteristics in the order shown. For example, to include the characteristic ACTION on the UDEV line, specify ACTION after OWNER, GROUP, and MODE.

Where rules files describe the same devices, on the supported Linux kernel versions, the last file read is the one that is applied.

Configuring Device Persistence Manually for Oracle ASM

Complete these tasks to create device path persistence manually for Oracle ASM.

  1. On existing systems (single instance or clustered), to obtain current mount paths, run the command scsi_id (/sbin/scsi_id) on storage devices on a server to obtain their unique device identifiers. When you run the command scsi_id with the -s argument, the device path and name you provide should be relative to the sysfs directory /sys (for example, /block/device) when referring to /sys/block/device.

    For example, as the root user:

    # /sbin/scsi_id -g -s /block/sdb/sdb1
    360a98000686f6959684a453333524174
    
    # /sbin/scsi_id -g -s /block/sde/sde1
    360a98000686f6959684a453333524179

    Record the unique SCSI identifiers, so you can provide them when required.

    Note:

    The command scsi_id should return the same device identifier value for a given device, regardless of which node the command is run from.

  2. Configure SCSI devices as trusted devices, by editing the /etc/scsi_id.config file and adding options=-g to the file.

    # cat > /etc/scsi_id.config
    vendor="ATA",options=-p 0x80
    options=-g
  3. Using a text editor, create a UDEV rules file for the Oracle ASM devices, setting permissions to 0660 for the installation owner and the operating system group you have designated the OSDBA for Oracle ASM group, whose members are granted access privileges to Oracle ASM. For example, on Oracle Linux, to create a role-based configuration rules.d file where the installation owner is grid and the OSDBA group for Oracle ASM is asmdba, enter commands similar to the following:

    # vi /etc/udev/rules.d/99-oracle-asmdevices.rules
    
    KERNEL=="sdb1, OWNER="grid", GROUP="asmdba", MODE="0660", 
    BUS=="scsi", PROGRAM=="/sbin/scsi_id", RESULT=="14f70656e66696c00000000"
    KERNEL=="sdc1", OWNER="grid", GROUP="asmdba", MODE="0660",
    BUS=="scsi", PROGRAM=="/sbin/scsi_id", RESULT=="14f70656e66696c00000001"
    KERNEL=="sdd1", OWNER="grid", GROUP="asmdba", MODE="0660",
    BUS=="scsi", PROGRAM=="/sbin/scsi_id", RESULT=="14f70656e66696c00000002"
  4. On clustered systems, copy the rules.d file to all other nodes on the cluster. For example:

    # sftp 99-oracle-asmdevices.rules root@node2:/etc/udev/rules.d/99-oracle-asmdevices.rules
  5. Run the partprobe command using the syntax /sbin/partprobe devicename. For example:

    # /sbin/partprobe /dev/sdc1
    # /sbin/partprobe /dev/sdd1
    # /sbin/partprobe /dev/sde1
    # /sbin/partprobe /dev/sdf1
  6. Run the command udevtest (/sbin/udevtest) to test the UDEV rules configuration you have created. The output should indicate that the devices are available and the rules are applied as expected. For example, for /dev/ssd1:
    # udevtest /block/sdd/sdd1
    main: looking at device '/block/sdd/sdd1' from subsystem 'block'
    udev_rules_get_name: add symlink
    'disk/by-id/scsi-360a98000686f6959684a453333524174-part1'
    udev_rules_get_name: add symlink
    'disk/by-path/ip-192.168.1.1:3260-iscsi-iqn.1992-08.com.netapp:sn.887085-part1'
    udev_node_mknod: preserve file '/dev/.tmp-8-17', because it has correct dev_t
    run_program: '/lib/udev/vol_id --export /dev/.tmp-8-17'
    run_program: '/lib/udev/vol_id' returned with status 4
    run_program: '/sbin/scsi_id'
    run_program: '/sbin/scsi_id' (stdout) '360a98000686f6959684a453333524174'
    run_program: '/sbin/scsi_id' returned with status 0
    udev_rules_get_name: rule applied, 'sdd1' becomes 'data1'
    udev_device_event: device '/block/sdd/sdd1' validate currently present symlinks
    udev_node_add: creating device node '/dev/data1', major = '8', minor = '17', 
    mode = '0640', uid = '0', gid = '500'
    udev_node_add: creating symlink
    '/dev/disk/by-id/scsi-360a98000686f6959684a453333524174-part1' to '../../data1'
    udev_node_add: creating symlink
    '/dev/disk/by-path/ip-192.168.1.1:3260-iscsi-iqn.1992-08.com.netapp:sn.84187085
    -part1' to '../../data1'
    main: run: 'socket:/org/kernel/udev/monitor'
    main: run: '/lib/udev/udev_run_devd'
    main: run: 'socket:/org/freedesktop/hal/udev_event'
    main: run: '/sbin/pam_console_apply /dev/data1
    /dev/disk/by-id/scsi-360a98000686f6959684a453333524174-part1
    /dev/disk/by-path/ip-192.168.1.1:3260-iscsi-iqn.1992-08.com.netapp:sn.84187085-
    part1'

    In the example output, note that applying the rules renames OCR device /dev/sdd1 to /dev/data1.

  7. Load the rules and restart the UDEV service. For example:

    • Oracle Linux and Red Hat Enterprise Linux

      # udevadm control --reload-rules && udevadm trigger
    • SUSE Linux Enterprise Server

      # /etc/init.d boot.udev restart

Verify that the device permissions and ownerships are set correctly.

Page 171 of 187

Response Files

Reasons for Using Silent Mode or Response File Mode

Silent mode supports unattended, scheduled, repeatable installations across multiple systems and installations on systems without X Window System software; it shows progress in the terminal without displaying installer screens. Response file mode supports similar installations while supplying default answers to some or all installer prompts.

Read More: Reasons for Using Silent Mode or Response File Mode

Using Response Files

Response files enable Oracle products to be installed and configured in silent or response file mode. Complete all prerequisite tasks first, prepare and run the response file, execute root scripts as prompted, and for software-only installations run NETCA and Oracle DBCA in the appropriate noninteractive mode to configure the listener and database.

Read More: Using Response Files

Preparing Response Files

Oracle provides product-specific response file templates in the Oracle home or Grid home response directories, including templates for database installation, DBCA, NETCA, and Grid Infrastructure setup. Copy and edit the appropriate template, retain the .rsp suffix, validate all required values, and secure the file with ownership restricted to the software owner and permissions set to 600 because it may contain plain-text passwords. Response files can also be recorded from OUI’s interactive Summary screen; recorded files exclude passwords and should be reviewed and updated before reuse on another system.

Read More: Preparing Response Files

Running Oracle Universal Installer Using a Response File

Run runInstaller for Oracle AI Database or gridSetup.sh for Grid Infrastructure with a fully qualified response file path, optionally adding -silent; use -help to view available options. Complete normal prerequisites, run as the software owner, set DISPLAY only for response file mode, and execute orainstRoot.sh and root.sh as root when prompted. Relative response file paths are not supported.

Read More: Running Oracle Universal Installer Using a Response File

Postinstallation Configuration Using Response File Created During Installation

An installation response file can be reused with -executeConfigTools to run postinstallation configuration assistants for Oracle AI Database or Grid Infrastructure. Before execution, add the required administrative passwords, secure the file with 600 permissions and appropriate ownership, then run the product configuration command from the relevant Oracle home; add -silent when graphical progress display is not desired. Password requirements depend on enabled features such as ASM, IPMI, and Enterprise Manager.

Read More: Postinstallation Configuration Using Response File Created During Installation

Running Configuration Assistants Using Response Files

Configuration assistants can run noninteractively by copying and editing their templates, including dbca.rsp for Oracle DBCA and netca.rsp for NETCA. DBCA uses -responseFile with -createDatabase, requires DISPLAY, and may include -silent; NETCA uses -silent -responsefile to configure listeners, naming methods, and service names. Correct response file values, the Oracle home environment, and full file paths are required, or the assistants fail.
Read More: Running Configuration Assistants Using Response Files

Page 172 of 187

Reasons for Using Silent Mode or Response File Mode

Response files can assist you with installing an Oracle product multiple times on multiple computers.

When you start Oracle Universal Installer (OUI), you can use a response file to automate the installation and configuration of Oracle software, either fully or partially. OUI uses the values contained in the response file to provide answers to some or all installation prompts.

Typically, the installer runs in interactive mode, which means that it prompts you to provide information in graphical user interface (GUI) screens. When you use response files to provide this information, you run the installer from a command prompt using either of the following modes:

  • Silent mode

    If you include responses for all of the prompts in the response file and specify the -silent option when starting the installer, then it runs in silent mode. During a silent mode installation, the installer does not display any screens. Instead, it displays progress information in the terminal that you used to start it.

  • Response file mode

    If you include responses for some or all of the prompts in the response file and omit the -silent option, then the installer runs in response file mode. During a response file mode installation, the installer displays all the screens, screens for which you specify information in the response file, and also screens for which you did not specify the required information in the response file.

You define the settings for a silent or response file installation by entering values for the variables listed in the response file.

ModeUses
Silent

Use silent mode for the following installations:

  • Complete an unattended installation, which you schedule using operating system utilities such as at.
  • Complete several similar installations on multiple systems without user interaction.
  • Install the software on a system that does not have X Window System software installed on it.

The installer displays progress information on the terminal that you used to start it, but it does not display any of the installer screens.

Response fileUse response file mode to complete similar Oracle software installations on more than one system, providing default answers to some, but not all of the installer prompts.

Page 173 of 187

Using Response Files

Use response files to install and configure Oracle products using the installer in silent or response file mode.

Note:

You must complete all required preinstallation tasks on a system before running the installer in silent or response file mode.

  1. Prepare a response file.
  2. Run the installer in silent or response file mode.
  3. Run the root scripts as prompted by the installer.
  4. If you completed a software-only installation, then run Net Configuration Assistant and Oracle DBCA in silent or response file mode to create the database listener and Oracle AI Database respectively.

Page 174 of 187

Preparing Response Files

Review this information to prepare response files for use during silent mode or response file mode installations.

Editing a Response File Template

Oracle provides response file templates for each product and each configuration tool.

About Response File Templates

For Oracle AI Database, the response file templates are located in the $ORACLE_HOME/install/response directory. For Oracle Grid Infrastructure, the response file templates are located in the Grid_home/install/response directory. For Oracle Database Client, response files are located in the $ORACLE_HOME/response directory.

Note:

If you copied the software to a hard disk, then the response files are located in the $ORACLE_HOME/install/response directory.

All response file templates contain comment entries, sample formats, examples, and other useful instructions. Read the response file instructions to understand how to specify values for the response file variables, so that you can customize your installation.

The following table lists the response files provided with this software:

Table: Response Files for Oracle AI Database and Oracle Grid Infrastructure

Response FileDescription
db_install.rspSilent installation of Oracle AI Database.
dbca.rspSilent creation and configuration of Oracle AI Database using Oracle DBCA.
netca.rspSilent configuration of Oracle Net using Oracle NETCA.
gridsetup.rspSilent configuration of Oracle Grid Infrastructure installations.
client_install.rspSilent installation of Oracle Database Client

Caution:

When you modify a response file template and save a file for use, the response file may contain plain text passwords. Ownership of the response file should be given to the Oracle software installation owner only, and permissions on the response file should be changed to 600. Oracle strongly recommends that database administrators or other administrators delete or secure response files when they are not in use.

To copy and modify a response file:

  1. Copy the response file from the response file directory to a directory on your system:

    For example, for Oracle AI Database:

    $ cp $ORACLE_HOME/install/response/db_install.rsp local_directory
  2. Open the response file in a text editor:

    $ vi /local_directory/db_install.rsp
  3. Follow the instructions in the file to edit it.

    Note:

    The installer or configuration assistant fails if you do not correctly configure the response file. Also, ensure that your response file name has the .rsp suffix.

  4. Secure the response file by changing the permissions on the file to 600:

    $ chmod 600 /local_dir/db_install.rsp

    Ensure that only the Oracle software owner user can view or modify response files or consider deleting them after the installation succeeds.

    Note:

    A fully-specified response file for an Oracle AI Database installation contains the passwords for database administrative accounts and for a user who is a member of the OSDBA group (required for automated backups).

Recording Response Files

You can use OUI in interactive mode to record response files, which you can then edit and use to complete silent mode or response file mode installations.

Recording response files is useful for Advanced or software-only installations. You can save all the installation steps into a response file during installation by clicking Save Response File on the Summary page. You can use the generated response file for a silent installation later. When you record the response file, you can either complete the installation, or you can exit from the installer on the Summary page, before OUI starts to set up the software to the system.

If you use record mode during a response file mode installation, then the installer records the variable values that were specified in the original source response file into the new response file.

Note:

OUI does not save passwords while recording the response file.

  1. Complete preinstallation tasks as for a standard installation.

    When you run the installer to record a response file, it checks the system to verify that it meets the requirements to install the software. For this reason, Oracle recommends that you complete all of the required preinstallation tasks and record the response file while completing an installation.

  2. Ensure that the Oracle software owner user (typically oracle) has permissions to create or write to the Oracle home path that you specify when you run the installer.
  3. On each installation screen, specify the required information.
  4. When the installer displays the Summary screen, perform the following steps:

    1. Click Save Response File. In the window, specify a file name and location for the new response file. Click Save to write the responses you entered to the response file.
    2. Click Finish to continue with the installation. Click Cancel if you do not want to continue with the installation. The installation stops, but the recorded response file is retained.

      Note:

      Ensure that your response file name has the .rsp suffix.

  5. Before you use the saved response file on another system, edit the file and make any required changes. Use the instructions in the file as a guide when editing it.

Page 175 of 187

Running Oracle Universal Installer Using a Response File

After creating the response file, run Oracle Universal Installer at the command line, specifying the response file you created, to perform the installation.

Run Oracle Universal Installer at the command line, specifying the response file you created. The Oracle Universal Installer executables, runInstaller and gridSetup.sh, provide several options. For help information on the full set of these options, run the gridSetup.sh or runInstaller command with the -help option. For example:

  • For Oracle AI Database and Database Client:

    $ $ORACLE_HOME/runInstaller -help
  • For Oracle Grid Infrastructure:

    $ Grid_home/gridSetup.sh -help

The help information appears in a window after some time.

Perform the following steps to run the installer using a response file:

  1. Complete the preinstallation tasks for a normal installation.
  2. Log in as the software installation owner user.
  3. If you are completing a response file mode installation, then set the operating system DISPLAY environment variable for the user running the installation.

    Note:

    You do not have to set the DISPLAY environment variable if you are completing a silent mode installation.

  4. To start the installer in silent or response file mode, enter a command similar to the following:

    • For Oracle AI Database and Database Client:

      $ $ORACLE_HOME/runInstaller [-silent] -responseFile responsefilename
    • For Oracle Grid Infrastructure:

      $ Grid_home/gridSetup.sh [-silent] -responseFile responsefilename

    Note:

    Do not specify a relative path to the response file. If you specify a relative path, then the installer fails.

    In this example:

    • -silent runs the installer in silent mode.
    • responsefilename is the full path and file name of the installation response file that you configured.
  5. If this is the first time you are installing Oracle software on your system, then Oracle Universal Installer prompts you to run the orainstRoot.sh script. Log in as the root user and run the orainstRoot.sh script:

    $ su root
    password:
    # /u01/app/oraInventory/orainstRoot.sh

    Note:

    You do not have to manually create the oraInst.loc file. Running the orainstRoot.sh script is sufficient as it specifies the location of the Oracle Inventory directory.

  6. When the installation completes, log in as the root user and run the root.sh script. For example:

    $ su root
    password:
    # $ORACLE_HOME/root.sh

Page 176 of 187

Postinstallation Configuration Using Response File Created During Installation

Use response files to configure Oracle software after installation. You can use the same response file created during installation to also complete postinstallation configuration.

Using the Installation Response File for Postinstallation Configuration

You can use the response file created during installation to also complete postinstallation configuration.

Run the installer with the -executeConfigTools option to configure configuration assistants after installing Oracle Grid Infrastructure or Oracle AI Database. You can use the response file located at $ORACLE_HOME/install/response/product_timestamp.rsp to obtain the passwords required to run the configuration tools. You must update the response file with the required passwords before running the -executeConfigTools command.

Oracle strongly recommends that you maintain security with a password response file:

  • Permissions on the response file should be set to 600.
  • The owner of the response file should be the installation owner user, with the group set to the central inventory ( oraInventory ) group.

Example: Response File Passwords for Oracle Grid Infrastructure (grid user)

bmcPassword=password
sysasmPassword=password
asmsnmpPassword=password
emadminPassword=password

If you do not have a BMC card, or you do not want to enable IPMI, then leave the ipmi.bmcPassword input field blank.

If you do not want to enable Oracle Enterprise Manager for management, then leave the emAdminPassword password field blank.

Example: Response File Passwords for Oracle Grid Infrastructure for a Standalone Server (oracle user)

sysasmPassword=password
asmsnmpPassword=password
emadminPassword=password

If you do not want to enable Oracle Enterprise Manager for management, then leave the emAdminPassword password field blank.

Example: Response File Passwords for Oracle AI Database (oracle user)

This example illustrates the passwords to specify for use with the database configuration assistants.

sysPassword=password
systemPassword=password
dbsnmpPassword=password
pdbadminPassword=password
emAdminPassword=password
asmsnmpPassword=password

You can also specify allPassword=password to use the same password for all database users.

The database configuration assistants require the SYS, SYSTEM, PDBADMIN, and DBSNMP passwords for use with Oracle DBCA. You must specify the following passwords, depending on your system configuration:

  • If the database uses Oracle Automatic Storage Management (Oracle ASM) for storage, then you must specify a password for the ASMSNMPPassword variable. If you are not using Oracle ASM, then leave the value for this password variable blank.

Running Postinstallation Configuration Using Response File

You can use a response file to complete postinstallation tasks on one or more servers simultaneously.

Complete this procedure to run configuration assistants with the executeConfigTools command and a response file.

  1. Edit the response file and specify the required passwords for your configuration. You can use the response file created during installation, located at $ORACLE_HOME/install/response/product_timestamp.rsp.
  2. Change directory to the Oracle home containing the installation software. For example:

    For Oracle Grid Infrastructure:

    cd Grid_home

    Where, Grid_home is the path to the Oracle Grid Infrastructure home directory /u01/app/23.0.0/grid

    For Oracle AI Database:

    cd $ORACLE_HOME
  3. Run the configuration script using the following syntax:

    For Oracle Grid Infrastructure:

    $ ./gridSetup.sh -executeConfigTools -responseFile Grid_home/install/response/product_timestamp.rsp

    For Oracle AI Database:

    $ ./runInstaller -executeConfigTools -responseFile $ORACLE_HOME/install/response/product_timestamp.rsp

    For Oracle AI Database, you can also run the response file located in the directory $ORACLE_HOME/install/response/:

    $ ./runInstaller -executeConfigTools -responseFile $ORACLE_HOME/install/response/db_install.rsp

    The postinstallation configuration tool runs the installer in the graphical user interface mode, displaying the progress of the postinstallation configuration. Specify the [-silent] option to run the postinstallation configuration in the silent mode.

    For example, for Oracle Grid Infrastructure:

    $ ./gridSetup.sh -executeConfigTools -responseFile /u01/app/23.0.0/grid/install/response/grid_2022-01-09_01-03-36PM.rsp [-silent]

    For Oracle AI Database:

    $ ./runInstaller -executeConfigTools -responseFile /u01/app/oracle/product/23.0.0/dbhome_1/response/db_2022-01-09_01-03-36PM.rsp [-silent]

Page 177 of 187

Running Configuration Assistants Using Response Files

You can run configuration assistants in response file or silent mode to configure and start Oracle software after it is installed on the system. To run configuration assistants in response file or silent mode, you must copy and edit a response file template.

Note:

If you copied the software to a hard disk, then the response file template is located in the $ORACLE_HOME/install/response directory.

Modes for Oracle DBCA Noninteractive (Silent) Configuration

You run the Oracle DBCA installer from a command prompt using either silent mode or response file mode.

When you start Oracle Universal Installer (OUI), you can use a response file to automate the installation and configuration of Oracle software, either fully or partially. OUI uses the values contained in the response file to provide answers to some or all installation prompts.

Typically, the installer runs in interactive mode, which means that it prompts you to provide information in graphical user interface (GUI) screens. When you use response files to provide this information, you run the installer from a command prompt using either of the following modes:

  • Silent mode

    If you include responses for all of the prompts in the response file and specify the -silent option when starting the installer, then it runs in silent mode. During a silent mode installation, the installer does not display any screens. Instead, it displays progress information in the terminal that you used to start it.

  • Response file mode

    If you include responses for some or all of the prompts in the response file and omit the -silent option, then the installer runs in response file mode. During a response file mode installation, the installer displays all the screens, screens for which you specify information in the response file, and also screens for which you did not specify the required information in the response file.

You define the settings for a silent or response file installation by entering values for the variables listed in the response file. For example, to specify the Oracle home name, provide the Oracle home path for the ORACLE_HOME environment variable:

ORACLE_HOME=/u01/app/oracle/product/19.0.0/dbhome_1

Running Oracle DBCA Using Response Files

You can run Oracle DBCA in response file mode to configure and start the database on the system.

To run Oracle DBCA in response file mode, you must copy and edit a response file template. Oracle provides a response file template named dbca.rsp in the ORACLE_HOME/assistants/dbca directory. To run Oracle DBCA in response file mode, you must use the -responseFile flag in combination with the -silent flag. You must also use a graphical display and set the DISPLAY environment variable.

To run Oracle DBCA in response file mode:

  1. Copy the dbca.rsp response file template from the response file directory to a directory on your system:

    $ cp $ORACLE_HOME/assistants/dbca/dbca.rsp /local_directory

    In this example, directory_path is the path of the directory where you have copied the installation binaries.

    As an alternative to editing the response file template, you can also create a database by specifying all required information as command line options when you run Oracle DBCA. For information about the list of options supported, enter the following command:

    $ $ORACLE_HOME/bin/dbca -help
  2. Open the response file in a text editor:

    $ vi /local_dir/dbca.rsp
  3. Follow the instructions in the file to edit the file.

    Note:

    Oracle DBCA fails if you do not correctly configure the response file.

  4. Log in as the Oracle software owner user, and set the ORACLE_HOME environment variable to specify the correct Oracle home directory.
  5. To run Oracle DBCA in response file mode, set the DISPLAY environment variable.
  6. Use the following command syntax to run Oracle DBCA in silent or response file mode using a response file:
    $ORACLE_HOME/bin/dbca [-silent] -createDatabase -responseFile /local_dir/dbca.rsp

    In this example:

    • -silent option indicates that Oracle DBCA runs in silent mode.
    • local_dir is the full path of the directory where you copied the dbca.rsp response file template.

    During configuration, Oracle DBCA displays a window that contains the status messages and a progress bar.

Running Net Configuration Assistant Using Response Files

You can run NETCA in silent mode to configure and start an Oracle Net Listener on the system, and configure naming methods and Oracle Net service names.

To run Oracle Net Configuration Assistant (NETCA) in silent mode, you must copy and edit a response file template. Oracle provides a response file template named netca.rsp in the $ORACLE_HOME/assistants/netca directory.

To run Net Configuration Assistant using a response file:

  1. Copy the netca.rsp response file template from the response file directory to a directory on your system:

    $ cp $ORACLE_HOME/assistants/netca/netca.rsp local_directory
  2. Open the response file in a text editor:

    $ vi /local_directory/netca.rsp
  3. Follow the instructions in the file to edit it.

    Note:

    Net Configuration Assistant fails if you do not correctly configure the response file.

  4. Log in as the Oracle software owner user, and set the ORACLE_HOME environment variable to specify the correct Oracle home directory.
  5. Enter a command similar to the following to run Net Configuration Assistant in silent mode:

    $ $ORACLE_HOME/bin/netca -silent -responsefile /local_directory/netca.rsp

    In this command:

    • The /silent option indicates to run Net Configuration Assistant in silent mode.
    • local_directory is the full path of the directory where you copied the netca.rsp response file template.

Page 178 of 187

Optimal Flexible Architecture

About the Optimal Flexible Architecture Standard

Oracle Optimal Flexible Architecture (OFA) provides directory, naming, permission, and configuration guidelines for organizing Oracle software and databases. It supports coexistence of multiple database versions and owners, simplifies administration and expansion, and helps associate Oracle Base locations with Automatic Diagnostic Repository data for incident collection. Oracle recommends accepting the installer’s OFA defaults, particularly for large or multi-database environments.

Read More: About the Optimal Flexible Architecture Standard

About Multiple Oracle Homes Support

Oracle AI Database supports multiple Oracle homes on the same system, allowing different releases and databases to coexist when each release is installed in a separate home. OFA-compliant naming and mount points simplify administration, protect user home directories, and support multiple owners and versions. Each installation requires extracting the image and running setup from its own home; newer releases can access older databases only for upgrades, and multiple releases must not share one Oracle home.

Read More: About Multiple Oracle Homes Support

About the Oracle Inventory Directory and Installation

The Oracle Inventory directory, or oraInventory, records all Oracle software installations and is shared by installation owners through the OINSTALL group. Existing installations use the inventory identified by /etc/oraInst.loc; new installations determine its location from ORACLE_BASE, an available OFA path, or the installing user’s home directory. Oracle Universal Installer places database homes beneath Oracle Base, while Grid Infrastructure homes use distinct locations and may become root-owned after installation.

Read More: About the Oracle Inventory Directory and Installation

Oracle Base Directory Naming Convention

Oracle Base directories should follow the /pm/h/u pattern, combining a mount point, standard directory, and installation owner name. A base can support multiple installations, but separate operating system owners require separate bases, preferably with unique owners for log isolation. Consistent mount paths simplify inventory management, and neither Oracle Base nor its parent directories may be symbolic links.

Read More: Oracle Base Directory Naming Convention

Oracle Home Directory Naming Convention

Oracle homes conventionally use the /pm/s/u/product/v/type_n structure, identifying the mount point, standard directory, owner, software version, installation type, and optional installation counter. A typical database home is /u01/app/oracle/product/23.0.0/dbhome_1; separate counters permit multiple products of the same type under one Oracle Base. Oracle homes and all parent directories up to root must be physical directories rather than symbolic links.

Read More: Oracle Home Directory Naming Convention

Optimal Flexible Architecture File Path Examples

OFA-compliant layouts organize inventory, Oracle Base and home directories, administration files, recovery areas, data files, client software, and Grid Infrastructure across structured mount points such as /u01 through /u04. They support multiple database homes and databases while distinguishing standalone-server Grid homes from cluster Grid homes, with Grid binaries outside the Grid Base for clusters. Oracle ASM is recommended for redundancy and throughput, and private or application files should not be stored within OFA directories.
Read More: Optimal Flexible Architecture File Path Examples

Page 179 of 187

About the Optimal Flexible Architecture Standard

Oracle Optimal Flexible Architecture (OFA) rules are a set of configuration guidelines created to ensure well-organized Oracle installations, which simplifies administration, support and maintenance. OFA rules help you to organize database software and configure databases to allow multiple databases, of different versions, owned by different users to coexist.

In Oracle AI Database, OFA rules provide consistency in database management and support, and simplifies expanding or adding databases, or adding additional hardware.

By default, the installer places Oracle AI Database components in directory locations and with permissions in compliance with OFA rules. Oracle recommends that you configure all Oracle components in accordance with OFA guidelines.

Oracle recommends that you accept the OFA default. Following OFA rules is especially of value if the database is large, or if you plan to have multiple databases.

Note:

OFA assists in identification of an ORACLE_BASE with its Automatic Diagnostic Repository (ADR) diagnostic data to properly collect incidents.

Page 180 of 187

About Multiple Oracle Homes Support

Oracle AI Database supports multiple Oracle homes. You can install this release or earlier releases of the software more than once on the same system, in different Oracle home directories.

Careful selection of mount point names can make Oracle software easier to administer. Configuring multiple Oracle homes in compliance with Optimal Flexible Architecture (OFA) rules provides the following advantages:

  • You can install this release, or earlier releases of the software, more than once on the same system, in different Oracle home directories. However, you cannot install products from one release of Oracle AI Database into an Oracle home directory of a different release.
  • Multiple databases, of different versions, owned by different users can coexist concurrently.
  • To install Oracle AI Database software in multiple Oracle homes, you must extract the image file in each Oracle home, and then run the setup wizard from the respective Oracle home.
  • You must install a new Oracle AI Database release in a new Oracle home that is separate from earlier releases of Oracle AI Database.

    You cannot install multiple releases in one Oracle home. Oracle recommends that you create a separate Oracle AI Database Oracle home for each release, in accordance with the Optimal Flexible Architecture (OFA) guidelines.

  • In production, the Oracle AI Database server software release is the release number in the format of major and RU release number. For example, with the release number 19.7.0.0.0, the major release is 19 and the RU release number is 7.
  • Later Oracle AI Database releases can access earlier Oracle Database releases. However, this access is only for upgrades. For example, Oracle AI Database 26ai can access an Oracle Database 19c if the 19c database is started up in upgrade mode.
  • Structured organization of directories and files, and consistent naming for database files simplify database administration.
  • Login home directories are not at risk when database administrators add, move, or delete Oracle home directories.
  • For information about release support timelines, refer to My Oracle Support Doc ID 742060.1

Related Topics

Page 181 of 187

About the Oracle Inventory Directory and Installation

The directory that you designate as the Oracle Inventory directory (oraInventory) stores an inventory of all software installed on the system.

All Oracle software installation owners on a server are granted the OINSTALL privileges to read and write to this directory. If you have previous Oracle software installations on a server, then additional Oracle software installations detect this directory from the /etc/oraInst.loc file, and continue to use that Oracle Inventory. Ensure that the group designated as the OINSTALL group is available as a primary group for all planned Oracle software installation owners.

If you are installing Oracle software for the first time, then OUI creates an Oracle base and central inventory, and creates an Oracle inventory using information in the following priority:

  • In the path indicated in the ORACLE_BASE environment variable set for the installation owner user account
  • In an Optimal Flexible Architecture (OFA) path (u[01-99] /app/ owner where owner is the name of the user account running the installation), and that user account has permissions to write to that path
  • In the user home directory, in the path /app/ owner, where owner is the name of the user account running the installation

For example:

If you are performing an Oracle AI Database installation, and you set ORACLE_BASE for user oracle to the path /u01/app/oracle before installation, and grant 755 permissions to oracle for that path, then Oracle Universal Installer creates the Oracle Inventory directory one level above the ORACLE_BASE in the path ORACLE_BASE/../oraInventory, so the Oracle Inventory path is /u01/app/oraInventory. Oracle Universal Installer installs the software in the ORACLE_BASE path. If you are performing an Oracle Grid Infrastructure for a Cluster installation, then the Grid installation path is changed to root ownership after installation, and the Grid home software location should be in a different path from the Grid user Oracle base.

If you create the OFA path /u01, and grant oracle 755 permissions to write to that path, then the Oracle Inventory directory is created in the path /u01/app/oraInventory, and Oracle Universal Installer creates the path /u01/app/oracle, and configures the ORACLE_BASE environment variable for the Oracle user to that path. If you are performing an Oracle AI Database installation, then the Oracle home is installed under the Oracle base. However, if you are installing Oracle Grid Infrastructure for a cluster, then be aware that ownership of the path for the Grid home is changed to root after installation and the Grid base and Grid home should be in different locations, such as /u01/app/23.0.0/grid for the Grid home path, and /u01/app/grid for the Grid base. For example:

/u01/app/oraInventory, owned by grid:oinstall
/u01/app/oracle, owned by oracle:oinstall
/u01/app/oracle/product/23.0.0/dbhome_1/, owned by oracle:oinstall
/u01/app/grid, owned by grid:oinstall
/u01/app/23.0.0/grid, owned by root

If you have neither set ORACLE_BASE, nor created an OFA-compliant path, then the Oracle Inventory directory is placed in the home directory of the user who is performing the installation, and the Oracle software is installed in the path /app/owner, where owner is the Oracle software installation owner. For example:

/home/oracle/oraInventory
/home/oracle/app/oracle/product/23.0.0/dbhome_1

Page 182 of 187

Oracle Base Directory Naming Convention

The Oracle Base directory is the database home directory for Oracle AI Database installation owners, and the log file location for Oracle Grid Infrastructure owners.

Name Oracle base directories using the syntax /pm/h/u, where pm is a string mount point name, h is selected from a small set of standard directory names, and u is the name of the owner of the directory.

You can use the same Oracle base directory for multiple installations. If different operating system users install Oracle software on the same system, then you must create a separate Oracle base directory for each installation owner. For ease of administration, Oracle recommends that you create a unique owner for each Oracle software installation owner, to separate log files.

Because all Oracle installation owners write to the central Oracle inventory file, and that file mountpoint is in the same mount point path as the initial Oracle installation, Oracle recommends that you use the same /pm/h path for all Oracle installation owners.

Table: Examples of OFA-Compliant Oracle Base Directory Names

ExampleDescription
/u01/app/oracleOracle AI Database Oracle base, where the Oracle AI Database software installation owner name is oracle. The Oracle AI Database binary home is located underneath the Oracle base path.
/u01/app/grid

Oracle Grid Infrastructure Oracle base, where the Oracle Grid Infrastructure software installation owner name is grid.

Caution: The Oracle Grid Infrastructure Oracle base should not contain the Oracle Grid Infrastructure binaries for an Oracle Grid Infrastructure installation. Permissions for the file path to the Oracle Grid Infrastructure binary home are changed to root during installation.

Note:

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

Page 183 of 187

Oracle Home Directory Naming Convention

By default, Oracle Universal Installer configures Oracle home directories using these Oracle Optimal Flexible Architecture conventions.

The directory pattern syntax for Oracle homes is /pm/s/u/product/v/type_[n]. The following table describes the variables used in this syntax:

VariableDescription
pmA mount point name.
sA standard directory name.
uThe name of the owner of the directory.
vThe version of the software.
typeThe type of installation. For example: Database ( dbhome ), Client ( client ), or Oracle Grid Infrastructure ( grid )
nAn optional counter, which enables you to install the same product more than once in the same Oracle base directory. For example: Database 1 and Database 2 ( dbhome_1, dbhome_2 )

For example, the following path is typical for the first installation of Oracle AI Database on this system:

/u01/app/oracle/product/23.0.0/dbhome_1

Note:

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

Page 184 of 187

Optimal Flexible Architecture File Path Examples

Review examples of hierarchical file mappings of an Optimal Flexible Architecture-compliant installation.

This example shows an Optimal Flexible Architecture-compliant installation with three Oracle home directories and three databases, as well as examples of the deployment path differences between a cluster install and a standalone server install of Oracle Grid Infrastructure. The database files are distributed across three mount points: /u02, /u03, and /u04.

Note:

The Grid homes are examples of Grid homes used for an Oracle Grid Infrastructure for a standalone server deployment (Oracle Restart), or a Grid home used for an Oracle Grid Infrastructure for a cluster deployment (Oracle Clusterware). You can have either an Oracle Restart deployment, or an Oracle Clusterware deployment. You cannot have both options deployed at the same time.

Oracle Automatic Storage Management (Oracle ASM) is included as part of an Oracle Grid Infrastructure installation. Oracle recommends that you use Oracle ASM to provide greater redundancy and throughput.

Caution:

Refrain from placing any private or application files under the Optimal Flexible Architecture file directories such as Oracle base, Oracle home, and OraInventory.

Table: Optimal Flexible Architecture Hierarchical File Path Examples

DirectoryDescription
/Root directory
/u01/User data mount point 1
/u01/app/Subtree for application software
/u01/app/oraInventoryCentral OraInventory directory, which maintains information about Oracle installations on a server. Members of the group designated as the OINSTALL group have permissions to write to the central inventory. All Oracle software installation owners must have the OINSTALL group as their primary group, and be able to write to this group.
/u01/app/oracle/Oracle base directory for user oracle. There can be many Oracle AI Database installations on a server, and many Oracle AI Database software installation owners. Oracle software homes that an Oracle installation owner owns should be located in the Oracle base directory for the Oracle software installation owner, unless that Oracle software is Oracle Grid Infrastructure deployed for a cluster.
/u01/app/gridOracle base directory for user grid. The Oracle home (Grid home) for Oracle Grid Infrastructure installation is located outside of the Grid user. There can be only one Grid home on a server, and only one Grid software installation owner. The Grid home contains log files and other administrative files.
/u01/app/oracle/admin/Subtree for database administration files
/u01/app/oracle/admin/TARSubtree for support log files
/u01/app/oracle/admin/db_sales/Admin subtree for database named "sales"
/u01/app/oracle/admin/db_dwh/Admin subtree for database named "dwh"
/u01/app/oracle/fast_recovery_area/Subtree for recovery files
/u01/app/oracle/fast_recovery_area/db_salesRecovery files for database named "sales"
/u01/app/oracle/fast_recovery_area/db_dwhRecovery files for database named "dwh"
/u02/app/oracle/oradata
/u03/app/oracle/oradata
/u04/app/oracle/oradata
Oracle data file directories
/u01/app/oracle/product/Common path for Oracle software products other than Oracle Grid Infrastructure for a cluster
/u01/app/oracle/product/23.0.0/dbhome_1Oracle home directory for Oracle AI Database 1, owned by Oracle AI Database installation owner account oracle
/u01/app/oracle/product/23.0.0/dbhome_2Oracle home directory for Oracle AI Database 2, owned by Oracle AI Database installation owner account oracle
/u01/app/oracle2/product/23.0.0/dbhome_2Oracle home directory for Oracle AI Database 2, owned by Oracle AI Database installation owner account oracle2
/u01/app/oracle/product/23.0.0/gridOracle home directory for Oracle Grid Infrastructure for a standalone server, owned by Oracle AI Database and Oracle Grid Infrastructure installation owner oracle.
/u01/app/23.0.0/gridOracle home directory for Oracle Grid Infrastructure for a cluster (Grid home), owned by user grid before installation, and owned by root after installation.
/u01/app/oracle/product/23.0.0/client_1Oracle home directory for Oracle Database Client 1, owned by Oracle AI Database installation owner account oracle

Page 185 of 187

Managing Oracle AI Database Port Numbers

About Managing Ports

Oracle AI Database assigns component and service ports during installation from predefined ranges, selecting the lowest available port after checking for conflicts with other Oracle installations, running processes, and entries in /etc/services. Administrators should review assigned ports, prevent duplicate usage, identify active ports with /bin/netstat -a, and change assignments after installation when necessary.

Read More: About Managing Ports

Oracle AI Database Component Port Numbers and Protocols

Single-instance installations configure Oracle Net Services Listener on TCP port 1521 by default, selecting the next available port when necessary and allowing manual changes through Net Configuration Assistant. Oracle Connection Manager uses TCP port 1630 and is configured manually in cman.ora; Oracle XML DB HTTP and FTP services default to port 0 and require manual port configuration for HTTP or FTP access.
Read More: Oracle AI Database Component Port Numbers and Protocols

Page 186 of 187

About Managing Ports

Review default port numbers. If needed, use these steps to change assigned ports after installation. During installation, Oracle Universal Installer assigns port numbers to components from a set of default port numbers.

Many Oracle AI Database components and services use ports. As an administrator, it is important to know the port numbers used by these services, and to ensure that the same port number is not used by two services on your host. Enter the following command to identify the ports currently used on your computer:

$/bin/netstat -a

Most port numbers are assigned during installation. Every component and service has an allotted port range, which is the set of port numbers Oracle AI Database attempts to use when assigning a port. Oracle AI Database starts with the lowest number in the range and performs the following checks:

  • Is the port used by another Oracle AI Database installation on the host?

    The installation may be up or down at the time. Oracle AI Database can still detect if the port is used.

  • Is the port used by a process that is currently running?

    This can be any process on the host, even a non-Oracle AI Database process.

  • Is the port listed in the /etc/services file?

If the answer to any of the preceding questions is yes, then Oracle AI Database moves to the next highest port in the allotted port range, and continues checking until it finds a free port.

Page 187 of 187

Oracle AI Database Component Port Numbers and Protocols

This table lists the port numbers and protocols configured for Oracle AI Database components during a single-instance installation. By default, the first port in the range is assigned to the component, if it is available.

Table: Protocols and Default Port Numbers for Oracle AI Database Components

ComponentDescriptionDefault Port NumberPort RangeProtocol
Oracle Net Services ListenerEnables Oracle client connections to the database over the Oracle Net Services protocol. You can configure it during installation. To reconfigure this port, use Net Configuration Assistant.1521

Port number changes to the next available port.

Modifiable manually to any available port.

TCP
Oracle Connection ManagerListening port for Oracle client connections to Oracle Connection Manager. It is not configured during installation, but can be configured manually by editing the cman.ora parameter file. This file is located under the /network/admin directory.16301630TCP
Oracle XML DBThe Oracle XML DB HTTP port is used if web-based applications must access an Oracle AI Database from an HTTP listener. You must configure this port manually.0Configured ManuallyHTTP
Oracle XML DBThe Oracle XML DB FTP is used when applications must access an Oracle AI Database from an FTP listener. You must configure this port manually.0Configured ManuallyFTP

Related Topics