RHEL 8にOracle Database 19cをインストール – Oracle Database Preinstallation

Facebooktwittermail

Oracle Database 19cをインストールするのにユーザ作成など事前準備をしてくれるRPMパッケージがあるんですね。

About the Oracle Database Preinstallation RPM
https://docs.oracle.com/en/database/oracle/oracle-database/19/ladbi/about-the-oracle-preinstallation-rpm.html#GUID-C15A642B-534D-4E4A-BDE8-6DC7772AA9C8

When installed, the Oracle Database Preinstallation RPM does the following:
・Automatically downloads and installs any additional RPM packages needed for installing Oracle Grid Infrastructure and Oracle Database, and resolves any dependencies
・Creates an oracle user, and creates the oraInventory (oinstall) and OSDBA (dba) groups for that user
・As needed, sets sysctl.conf settings, system startup parameters, and driver parameters to values based on recommendations from the Oracle Database Preinstallation RPM program
・Sets hard and soft resource limits
・Sets other recommended parameters, depending on your kernel version
・Sets numa=off in the kernel for Linux x86_64 machines.

ユーザ作成、カーネルパラメータなど設定してくれるなんて、なんと便利な。
でもドキュメントにはOracle LinuxだけだからRHEL 8は無理かな?

でもちょっと試してみるかと試行錯誤した結果インストールできたようなので記事にしました。
もちろん動作保証はできません(^^;

環境
・Red Hat Enterprise Linux release 8.5 (Ootpa)
・Kernel 4.18.0-348.7.1.el8_5.x86_64
・開発環境、GNOME環境、日本語入力インストール
・Subscription登録

  1. Oracle Linux repositoryインストール
  2. oracle-database-preinstall-19c-1.0-3.el7.x86_64.rpmをインストールしようとしたのですが依存関係エラーになってしまいました。

    試行錯誤したのですがダメそうなのでOracle Linux repositoryをインストールしてみました。
    oracle-database-preinstall-19cはOL8 repositoryには無くてOL7にあったので、こちらのreposirotyをインストールします。

    Oracle Linux 7 (x86_64) Latest
    https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/

    Oracle Linux 8 (x86_64) BaseOS Latest
    https://yum.oracle.com/repo/OracleLinux/OL8/baseos/latest/x86_64/index.html

  3. /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle作成
  4. 下記サイトからKEYをコピーして作成します。
    https://yum.oracle.com/RPM-GPG-KEY-oracle-ol7

  5. oracle-database-preinstall-19c インストール
  6. 確認
    1. /etc/sysctl.conf
    2. /etc/group
    3. 下記Groupが追加されていました。

    4. /etc/passwd
    5. 下記ユーザが作成されていました。

    6. hard and soft resource limits
    7. numa=off
    8. NUMAって何?と思ったら自動負荷分散とのこと
      https://access.redhat.com/documentation/ja-jp/red_hat_enterprise_linux/7/html/virtualization_tuning_and_optimization_guide/sect-virtualization_tuning_optimization_guide-numa-auto_numa_balancing

      NUMA の自動分散により、NUMA ハードウェアシステムで実行しているアプリケーションのパフォーマンスが向上します。Red Hat Enterprise Linux 7 システムでデフォルトで有効になっています。

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

Oracle Database Preinstallation RPMはそのシステムで一度だけのインストールです。

Leave a Reply