Skip to content
TheChatArchiveThe Chat Archive
Claudeclaude-sonnet-4-20250514· AnthropicHugging Face LMArena Human Preference 140K

How to install oracle on linux 9

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with grok-4-0709’s answer.
  1. User

    How to install oracle on linux 9

  2. Claude Assistant

    Here are the steps to install Oracle Database on Red Hat Enterprise Linux 9 (or similar RHEL 9-based distributions):

    Prerequisites

    First, ensure your system meets the minimum requirements. You'll need at least 8GB RAM, 10GB swap space, and sufficient disk space (typically 20GB+ for the database software alone).

    System Preparation

    Update your system and install required packages:

    sudo dnf update -y
    sudo dnf install -y bc binutils compat-libcap1 compat-libstdc++-33 \
    elfutils-libelf elfutils-libelf-devel fontconfig-devel glibc glibc-devel \
    ksh libaio libaio-devel libX11 libXau libXi libXtst libXrender \
    libXrender-devel libgcc libstdc++ libstdc++-devel libxcb make \
    smartmontools sysstat unixODBC unixODBC-devel
    

    Create Oracle User and Groups

    sudo groupadd oinstall
    sudo groupadd dba
    sudo groupadd oper
    sudo useradd -g oinstall -G dba,oper oracle
    sudo passwd oracle
    

    Configure Kernel Parameters

    Edit /etc/sysctl.conf and add:

    fs.file-max = 6815744
    kernel.sem = 250 32000 100 128
    kernel.shmmni = 4096
    kernel.shmall = 1073741824
    kernel.shmmax = 4398046511104
    net.core.rmem_default = 262144
    net.core.rmem_max = 4194304
    net.core.wmem_default = 262144
    net.core.wmem_max = 1048576
    fs.aio-max-nr = 1048576
    net.ipv4.ip_local_port_range = 9000 65500
    

    Apply the changes:

    sudo sysctl -p
    

    Set Resource Limits

    Edit /etc/security/limits.conf and add:

    oracle soft nofile 1024
    oracle hard nofile 65536
    oracle soft nproc 2047
    oracle hard nproc 16384
    oracle soft stack 10240
    oracle hard stack 32768
    

    Create Oracle Directories

    sudo mkdir -p /u01/app/oracle/product/19.0.0/dbhome_1
    sudo chown -R oracle:oinstall /u01
    sudo chmod -R 775 /u01
    

    Download and Extract Oracle Database

    Download the Oracle Database 19c installation files from Oracle's website (you'll need an Oracle account). Extract the files to the Oracle home directory as the oracle user.

    Set Environment Variables

    Add to oracle user's .bash_profile:

    export ORACLE_BASE=/u01/app/oracle
    export ORACLE_HOME=$ORACLE_BASE/product/19.0.0/dbhome_1
    export ORACLE_SID=orcl
    export PATH=$PATH:$ORACLE_HOME/bin
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
    

    Run the Installer

    Switch to the oracle user and run:

    su - oracle
    cd $ORACLE_HOME
    ./runInstaller
    

    Follow the graphical installer prompts to complete the installation. You'll typically choose "Install database software only" first, then create a database separately using the Database Configuration Assistant (dbca).

    Post-Installation

    After installation, run the required root scripts when prompted, then use dbca to create your database instance.

    The exact package names and some steps might vary slightly depending on your specific Linux 9 distribution. Make sure to check Oracle's official documentation for the most current installation requirements and any distribution-specific considerations.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.