0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

VirtualBoxでOracle Linux 9 + Oracle DB 19c 環境構築(4)Oracle Database インストール

Last updated at Posted at 2025-02-25

構築手順

7-4_Oracle Database インストール.png

  1. 仮想マシン(Oracle Linux)作成
    1. 仮想マシン作成
    2. Oracle Linux 9.5インストール<
  2. Oracle Databaseインストール事前準備
    1. Oracle Preinstallation RPM実行(Oracleユーザ作成)
    2. ディレクトリ作成
    3. Oracle Database ソフトウェア配置
  3. Opatchインストール
    1. RU配置
    2. Opatchインストール
  4. Oracle Database インストール
  5. データベース作成

インストール時に発生する問題(1~4)の詳細は下部に記載してます

4-1. IPAフォント インストール(問題1対応)

IPAフォントをインストールせずに、DBインストーラを実行すると日本語が文字化けして□になります。

image.png
ファイル名:IPAexfont00401.zip

  • ホームディレクトリに .fontsディレクトリを作成
[oracle@ol95db19c ~]$ mkdir ~/.fonts
[oracle@ol95db19c ~]$ cd ./.fonts/
[oracle@ol95db19c .fonts]$ unzip ~/IPAexfont00401.zip
Archive:  /home/oracle/IPAexfont00401.zip
   creating: IPAexfont00401/
  inflating: IPAexfont00401/ipaexg.ttf
  inflating: IPAexfont00401/ipaexm.ttf
  inflating: IPAexfont00401/IPA_Font_License_Agreement_v1.0.txt
  inflating: IPAexfont00401/Readme_IPAexfont00401.txt
  • IPAフォントをインストール
[oracle@ol95db19c .fonts]$ fc-cache -fv
Font directories:
        /usr/share/X11/fonts/Type1
(中略)
/home/oracle/.fontconfig: not cleaning non-existent cache directory
/usr/bin/fc-cache-64: succeeded

4-2. 環境変数設定(問題2対応)

Oracle database 19cリリース時において、Oracle Linux 9が動作保証OSでなかったため、環境変数を設定しないと、インストール時のチェックでエラーとなります。

以下、Tera Termではなく、仮想マシンの画面の「端末」から実行

export CV_ASSUME_DISTID=OL7

4-3. Oracle Database インストーラ実行(問題4対応)

Oracle Linux 9でOracle database 19cをインストールする場合、
19.22以降のRUを合わせて適用しないとインストールがエラーで失敗します。

runInstaller実行時に applyRU オプションで RUのフォルダを指定

[oracle@o95db19c dbhome_1]$ ./runInstaller -applyRU ./36912597/

image.png

image.png

image.png

image.png

image.png

変更なし
image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

4-4. 環境変数設定(oracleユーザ)

[oracle@o95db19c ~]$ vi .bash_profile
.bash_profile
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/19.3.0/dbhome_1
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/jdk/bin:${PATH}
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export NLS_LANG=JAPANESE_JAPAN.UTF8
export LANG=ja_JP.UTF-8
export ORACLE_SID=ora01

問題1:Oracle Databaseインストーラ文字化け(豆腐問題)

事象

インストーラの日本語が以下のように□になります。

image.png

原因

インストーラで利用しているIPAフォントがインストールされていないため

対応

文字情報技術促進協議会のサイト( https://moji.or.jp/ipafont/ipaex00401/ )からダウンロード

image.png

ホームディレクトリに .fontsディレクトリを作成

[oracle@ol95db19c ~]$ mkdir ~/.fonts
[oracle@ol95db19c ~]$ cd ./.fonts/
[oracle@ol95db19c .fonts]$ unzip ~/IPAexfont00401.zip
Archive:  /home/oracle/IPAexfont00401.zip
   creating: IPAexfont00401/
  inflating: IPAexfont00401/ipaexg.ttf
  inflating: IPAexfont00401/ipaexm.ttf
  inflating: IPAexfont00401/IPA_Font_License_Agreement_v1.0.txt
  inflating: IPAexfont00401/Readme_IPAexfont00401.txt

IPAフォントをインストール

[oracle@ol95db19c .fonts]$ fc-cache -fv
実行結果
Font directories:
        /usr/share/X11/fonts/Type1
        /usr/share/X11/fonts/TTF
        /home/oracle/.local/share/fonts
        /home/oracle/.local/share/flatpak/exports/share/fonts
        /var/lib/flatpak/exports/share/fonts
        /usr/local/share/fonts
        /usr/share/fonts
        /home/oracle/.fonts
        /usr/share/fonts/adobe-source-code-pro
        /usr/share/fonts/cantarell
        /usr/share/fonts/dejavu-sans-fonts
        /usr/share/fonts/dejavu-sans-mono-fonts
        /usr/share/fonts/dejavu-serif-fonts
        /usr/share/fonts/google-droid-sans-fonts
        /usr/share/fonts/google-noto
        /usr/share/fonts/google-noto-cjk
        /usr/share/fonts/google-noto-emoji
        /usr/share/fonts/google-noto-vf
        /usr/share/fonts/jomolhari-fonts
        /usr/share/fonts/julietaula-montserrat
        /usr/share/fonts/khmer-os-system-fonts
        /usr/share/fonts/liberation-mono
        /usr/share/fonts/liberation-sans
        /usr/share/fonts/liberation-serif
        /usr/share/fonts/lohit-assamese
        /usr/share/fonts/lohit-bengali
        /usr/share/fonts/lohit-devanagari
        /usr/share/fonts/lohit-gujarati
        /usr/share/fonts/lohit-kannada
        /usr/share/fonts/lohit-odia
        /usr/share/fonts/lohit-tamil
        /usr/share/fonts/lohit-telugu
        /usr/share/fonts/paktype-naskh-basic
        /usr/share/fonts/pt-sans-fonts
        /usr/share/fonts/sil-abyssinica-fonts
        /usr/share/fonts/sil-nuosu
        /usr/share/fonts/sil-padauk
        /usr/share/fonts/smc-meera
        /usr/share/fonts/stix-fonts
        /usr/share/fonts/thai-scalable
        /usr/share/fonts/urw-base35
        /home/oracle/.fonts/IPAexfont00401
/usr/share/X11/fonts/Type1: skipping, no such directory
/usr/share/X11/fonts/TTF: skipping, no such directory
/home/oracle/.local/share/fonts: skipping, no such directory
/home/oracle/.local/share/flatpak/exports/share/fonts: skipping, no such directory
/var/lib/flatpak/exports/share/fonts: skipping, no such directory
/usr/local/share/fonts: skipping, no such directory
/usr/share/fonts: caching, new cache contents: 0 fonts, 33 dirs
/usr/share/fonts/adobe-source-code-pro: caching, new cache contents: 14 fonts, 0 dirs
/usr/share/fonts/cantarell: caching, new cache contents: 11 fonts, 0 dirs
/usr/share/fonts/dejavu-sans-fonts: caching, new cache contents: 9 fonts, 0 dirs
/usr/share/fonts/dejavu-sans-mono-fonts: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/dejavu-serif-fonts: caching, new cache contents: 9 fonts, 0 dirs
/usr/share/fonts/google-droid-sans-fonts: caching, new cache contents: 16 fonts, 0 dirs
/usr/share/fonts/google-noto: caching, new cache contents: 36 fonts, 0 dirs
/usr/share/fonts/google-noto-cjk: caching, new cache contents: 80 fonts, 0 dirs
/usr/share/fonts/google-noto-emoji: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/google-noto-vf: caching, new cache contents: 5 fonts, 0 dirs
/usr/share/fonts/jomolhari-fonts: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/julietaula-montserrat: caching, new cache contents: 18 fonts, 0 dirs
/usr/share/fonts/khmer-os-system-fonts: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/liberation-mono: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/liberation-sans: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/liberation-serif: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/lohit-assamese: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/lohit-bengali: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/lohit-devanagari: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/lohit-gujarati: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/lohit-kannada: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/lohit-odia: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/lohit-tamil: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/lohit-telugu: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/paktype-naskh-basic: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/pt-sans-fonts: caching, new cache contents: 8 fonts, 0 dirs
/usr/share/fonts/sil-abyssinica-fonts: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/sil-nuosu: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/sil-padauk: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/smc-meera: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/stix-fonts: caching, new cache contents: 5 fonts, 0 dirs
/usr/share/fonts/thai-scalable: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/urw-base35: caching, new cache contents: 69 fonts, 0 dirs
/home/oracle/.fonts: caching, new cache contents: 0 fonts, 1 dirs
/home/oracle/.fonts/IPAexfont00401: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/adobe-source-code-pro: skipping, looped directory detected
/usr/share/fonts/cantarell: skipping, looped directory detected
/usr/share/fonts/dejavu-sans-fonts: skipping, looped directory detected
/usr/share/fonts/dejavu-sans-mono-fonts: skipping, looped directory detected
/usr/share/fonts/dejavu-serif-fonts: skipping, looped directory detected
/usr/share/fonts/google-droid-sans-fonts: skipping, looped directory detected
/usr/share/fonts/google-noto: skipping, looped directory detected
/usr/share/fonts/google-noto-cjk: skipping, looped directory detected
/usr/share/fonts/google-noto-emoji: skipping, looped directory detected
/usr/share/fonts/google-noto-vf: skipping, looped directory detected
/usr/share/fonts/jomolhari-fonts: skipping, looped directory detected
/usr/share/fonts/julietaula-montserrat: skipping, looped directory detected
/usr/share/fonts/khmer-os-system-fonts: skipping, looped directory detected
/usr/share/fonts/liberation-mono: skipping, looped directory detected
/usr/share/fonts/liberation-sans: skipping, looped directory detected
/usr/share/fonts/liberation-serif: skipping, looped directory detected
/usr/share/fonts/lohit-assamese: skipping, looped directory detected
/usr/share/fonts/lohit-bengali: skipping, looped directory detected
/usr/share/fonts/lohit-devanagari: skipping, looped directory detected
/usr/share/fonts/lohit-gujarati: skipping, looped directory detected
/usr/share/fonts/lohit-kannada: skipping, looped directory detected
/usr/share/fonts/lohit-odia: skipping, looped directory detected
/usr/share/fonts/lohit-tamil: skipping, looped directory detected
/usr/share/fonts/lohit-telugu: skipping, looped directory detected
/usr/share/fonts/paktype-naskh-basic: skipping, looped directory detected
/usr/share/fonts/pt-sans-fonts: skipping, looped directory detected
/usr/share/fonts/sil-abyssinica-fonts: skipping, looped directory detected
/usr/share/fonts/sil-nuosu: skipping, looped directory detected
/usr/share/fonts/sil-padauk: skipping, looped directory detected
/usr/share/fonts/smc-meera: skipping, looped directory detected
/usr/share/fonts/stix-fonts: skipping, looped directory detected
/usr/share/fonts/thai-scalable: skipping, looped directory detected
/usr/share/fonts/urw-base35: skipping, looped directory detected
/home/oracle/.fonts/IPAexfont00401: skipping, looped directory detected
/usr/lib/fontconfig/cache: not cleaning unwritable cache directory
/home/oracle/.cache/fontconfig: cleaning cache directory
/home/oracle/.fontconfig: not cleaning non-existent cache directory
/usr/bin/fc-cache-64: succeeded

対応結果

(文字化けは)解消
image.png

問題2

[INS-08101] 状態'supportedOSCheck'でアクションの実行中に予期せぬエラーが発生しました
 原因 - 使用可能な追加情報はありません。
 アクション - Oracleサポート・サービスに連絡するか、ソフトウェア・マニュアルを参照してください。
 サマリー  - java.lang.NullPointerException

事象

エラーが発生し、インストーラが停止(※「はい」でも続行不可)

image.png

原因

ソフトウェアリリース時には Oracle Linux 9 が動作保証OSでは無かったため。

Oracle Database/client のインストールがエラー:[INS-08101] Unexpected error while executing the action at state:'clientSupportedOSCheck' を伴い失敗する (ドキュメントID 2932289.1)

対応

以下の通り環境変数を設定(Oracle Linux 7のフリをする?)

export CV_ASSUME_DISTID=OL7

対応結果

image.png

問題3:インストール前提条件のチェックエラー

事象

スワップ・サイズ - これは、十分な合計スワップ領域がシステムで使用可能かどうかをテストする前提条件です。
予想される値
 : 2.4576GB (2576980.0KB)
実際値
 : 2GB (2097148.0KB)
 詳細: 
 - 

PRVF-7532 : パッケージ"compat-libcap1"がノード"ol95db19c"にありません  - 原因:  必要なパッケージがインストールされていないか、またはパッケージがカーネル・モジュールの場合、指定したノードにパッケージがロードされていません。  - アクション:  必要なパッケージがインストールされており、使用可能であることを確認してください。

対応

すべて無視 で続行

image.png

image.png

問題4:Makeファイルでライブラリが見つからずインストールエラー

事象

インストール中に libpthread_nonshared.aライブラリが見つからずエラー

image.png

Makeファイル'/u01/app/oracle/product/19.3.0/dbhome_1/rdbms/lib/ins_rdbms.mk'のターゲット'libasmclntsh19.ohso libasmperl19.ohso client_sharedlib'を起動中のエラーです。詳細は'/tmp/InstallActions2025-01-16_05-45-25AM/installActions2025-01-16_05-45-25AM.log'を参照してください
installActions2025-01-16_05-45-25AM.log
情報: 
/usr/lib64/libpthread_nonshared.a
情報: 
 が見つかりません

情報: 
genclntsh: Failed to link libclntshcore.so.19.1

情報: 
make: *** [/u01/app/oracle/product/19.3.0/dbhome_1/rdbms/lib/ins_rdbms.mk:56: client_sharedlib] エラー 1

情報: 作成されたプロセスからの出力を終了します。
情報: ----------------------------------
情報: アクションからスローされた例外: make

原因

Oracle Linux 9 / Red Hat Enterprise Linux 9 では、pthread ライブラリが glibc に統合されたため。

対応

runInstaller実行時に、 applyRUオプションをつけ、
19.22以上のRUを適用した上でインストール

./runInstaller -applyRU <パッチ番号>
  • 参考

→ (5)データベース作成

構築手順

7-4_Oracle Database インストール.png

  1. 仮想マシン(Oracle Linux)作成
    1. 仮想マシン作成
    2. Oracle Linux 9.5インストール<
  2. Oracle Databaseインストール事前準備
    1. Oracle Preinstallation RPM実行(Oracleユーザ作成)
    2. ディレクトリ作成
    3. Oracle Database ソフトウェア配置
  3. Opatchインストール
    1. RU配置
    2. Opatchインストール
  4. Oracle Database インストール
  5. データベース作成
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?