oracledba.help
Install

initLnxOra21_3.sh Usage

initLnxOra21_3.sh Usage Session to prep a system for Oracle.

Perform below as root user (scripts).

Init
    passwd root

    mkdir -p /tmp/orasw/rpm
    chmod 777 /tmp/orasw
    chmod 777 /tmp/orasw/rp(21.x optDirectories)m

    Create script: /tmp/orasw/initLnxOra<ver>.sh
    Ex:            gedit /tmp/orasw/initLnxOra21_3.sh &
    Ex:            chmod 765 /tmp/orasw/initLnxOra21_3.sh

  • Copy Install Files to System
    FileZilla 
    Ora version files: C:\sw\Oracle\<ver>\Linux\ to /tmp/orasw
    rpms:              C:\sw\Oracle\rpm\ to /tmp/orasw/rpm

    If VBox
    cp /media/sf_sw/Oracle/21c/*.zip /tmp/orasw/
    cp /media/sf_sw/rpm/* /tmp/orasw/rpm/

  • Script Run Phase 1
    cd /tmp/orasw
    gedit /tmp/orasw/initLnxOra21_3.sh &
    ./initLnxOra21_3.sh

    optCopyFilesFromMedia=1
    optGroupsUsers=1
    optUnzipInstallFiles=1 (12.x version only)
    optHomeDirectories=1   (21.x optDirectories)
    cd /tmp/orasw
    ./initLnxOra<ver>.sh
    ...
    If VirtualBox dynamic disk, create file to grow disk to max probable size then defrag .vdi in windows.
    1. dd if=/dev/zero of=/test.img bs=4k iflag=fullblock,count_bytes count=5G
    2. rm -f /test.img
    3. Then defrag your .vdi using Defraggler (or similar tool).Run Oracle Preinstall Rpm
    Then: shutdown -r now

  • Script Run Phase 2
    gedit /tmp/orasw/initLnxOra21_3.sh &
    optOSChanges=1
    ./initLnxOra<ver>.sh
    ...
    shutdown -r now

  • Script Run Phase 3
    gedit /tmp/orasw/initLnxOra21_3.sh &
    optInstallPkgs=1
    ./initLnxOra<ver>.sh
    ...
    shutdown -r now

    If VirtualBox, optVBoxChanges=1
    shutdown -r nowUpdate OS
   yum update -y

 • Set grid & oracle Passwords (if needed)
   passwd oracle
   passwd grid

Packagekit (disable): systemctl stop packagekit; systemctl disable packagekit; systemctl status packagekit

Useful rpms To Install

Linux 8

rlwrap, sshpass:

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
rpm -ivh epel-release-latest-8.noarch.rpm
yum install rlwrap -y

yum install sshpass -y

The yum install rlwrap step can take time (15 min).

Linux 7

rlwrap, flash-player, sshpass:

cd /u01/orasw/rpm
rpm -ivh rlwrap-0.42-1.fc22.x86_64.rpm
rpm -ivh flash-player-npapi-24.0.0.186-release.x86_64.rpm
rpm -ivh sshpass-1.06-2.fc26.x86_64.rpm

VBox Ex: cp /media/sf_sw/Oracle/rpm/* /u01/orasw/rpm/

Alternative Flash Installation

Enable Yum Repository
 rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm
 rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux

Install Flash Player
 yum install flash-plugin alsa-plugins-pulseaudio libcurl