構築手順
-
仮想マシン(Oracle Linux)作成
- 仮想マシン作成
- Oracle Linux 9.5インストール<
-
Oracle Databaseインストール事前準備
- Oracle Preinstallation RPM実行(Oracleユーザ作成)
- ディレクトリ作成
- Oracle Database ソフトウェア配置
-
Opatchインストール
- RU配置
- Opatchインストール
- Oracle Database インストール
- データベース作成
インストール時に発生する問題(1~4)の詳細は下部に記載してます
4-1. IPAフォント インストール(問題1対応)
IPAフォントをインストールせずに、DBインストーラを実行すると日本語が文字化けして□になります。
- 文字情報技術促進協議会のサイト( https://moji.or.jp/ipafont/ipaex00401/ )からダウンロード
- ホームディレクトリに .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/
4-4. 環境変数設定(oracleユーザ)
[oracle@o95db19c ~]$ vi .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インストーラ文字化け(豆腐問題)
事象
インストーラの日本語が以下のように□になります。
原因
インストーラで利用しているIPAフォントがインストールされていないため
対応
文字情報技術促進協議会のサイト( https://moji.or.jp/ipafont/ipaex00401/ )からダウンロード
ホームディレクトリに .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
対応結果
問題2
[INS-08101] 状態'supportedOSCheck'でアクションの実行中に予期せぬエラーが発生しました
原因 - 使用可能な追加情報はありません。
アクション - Oracleサポート・サービスに連絡するか、ソフトウェア・マニュアルを参照してください。
サマリー - java.lang.NullPointerException
事象
エラーが発生し、インストーラが停止(※「はい」でも続行不可)
原因
ソフトウェアリリース時には Oracle Linux 9 が動作保証OSでは無かったため。
対応
以下の通り環境変数を設定(Oracle Linux 7のフリをする?)
export CV_ASSUME_DISTID=OL7
対応結果
問題3:インストール前提条件のチェックエラー
事象
スワップ・サイズ - これは、十分な合計スワップ領域がシステムで使用可能かどうかをテストする前提条件です。
予想される値
: 2.4576GB (2576980.0KB)
実際値
: 2GB (2097148.0KB)
詳細:
-
PRVF-7532 : パッケージ"compat-libcap1"がノード"ol95db19c"にありません - 原因: 必要なパッケージがインストールされていないか、またはパッケージがカーネル・モジュールの場合、指定したノードにパッケージがロードされていません。 - アクション: 必要なパッケージがインストールされており、使用可能であることを確認してください。
対応
すべて無視 で続行
問題4:Makeファイルでライブラリが見つからずインストールエラー
事象
インストール中に libpthread_nonshared.aライブラリが見つからずエラー
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'を参照してください
情報:
/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 に統合されたため。
- 参考(My Oracle Support)
OL9/RHEL9でlibpthread_nonshared.aのリンクエラーによりインストールが失敗します (ドキュメントID 3026214.1)
対応
runInstaller実行時に、 applyRUオプションをつけ、
19.22以上のRUを適用した上でインストール
./runInstaller -applyRU <パッチ番号>
- 参考
- My Oracle Support
Oracle Database/Client 19c (19.22 またはそれ以降) on OL9 または RHEL9 64-bit (x86-64) インストール要件 (ドキュメントID 3018509.1)
構築手順
-
仮想マシン(Oracle Linux)作成
- 仮想マシン作成
- Oracle Linux 9.5インストール<
-
Oracle Databaseインストール事前準備
- Oracle Preinstallation RPM実行(Oracleユーザ作成)
- ディレクトリ作成
- Oracle Database ソフトウェア配置
-
Opatchインストール
- RU配置
- Opatchインストール
- Oracle Database インストール
- データベース作成