検証環境を構築する際、最も効率的な手法がサイレントインストールです。GUIを使わず、あらかじめ用意したレスポンスファイルを読み込ませることで、誰でも寸分違わぬ構成の環境を即座に作り上げることができます。
💰 【PR】Oracleエンジニアの市場価値、調べてみませんか?
Oracleのスキルは需要が高く、特定の資格や経験を持っていると年収が大幅にアップするケースがあります。まずはIT専門のエージェントで非公開求人をチェックしてみませんか?
構築環境の情報(検証用簡易構成)
今回の構築における前提条件および環境情報は以下の通りです。
| 項目 | 設定内容 |
| 対象DB | Oracle Database 26ai Enterprise Edition (23.x) |
| 対象OS | Oracle Linux 8 (OL8) |
| 仮想化ソフト | Oracle VM VirtualBox |
| ネットワーク1 | アダプター1:ホストオンリーアダプター (ホストOSとの通信用) |
| ネットワーク2 | アダプター2:NAT (インターネット/リポジトリ接続用) |
| DB構成 | シングル・インスタンス / CDB構成 (PDB×1) |
| Oracle Home | /u01/app/oracle/product/23.0.0/dbhome_1 |
サイレントインストールで構築するメリット
- 構築の均一化: 毎回同じ設定で DB を作成でき、設定漏れなどのヒューマンエラーを排除できます。
- 環境の量産: 画面操作がないため、一度コマンドを整理すれば複数の検証機へ展開可能です。
- 低リソース動作: GUI(X-Window)の設定が不要なため、最小構成の OS で安定して動作します。
1. ネットワーク環境のセットアップ (root)
Oracle VM のネットワークアダプターを認識・有効化します。
# ホストオンリーアダプター (enp0s8) の追加と有効化
nmcli connection add type ethernet ifname enp0s8 con-name enp0s8 autoconnect yes
nmcli connection up enp0s8
# NATアダプター (enp0s3) の有効化
nmcli connection up enp0s3
# パッケージ情報の更新
dnf check-update
2. OSの事前設定とパッケージ導入 (root)
26ai のインストールに必須となる依存パッケージと、ユーザー作成を自動で行います。
# 開発者リポジトリの導入
dnf install -y oraclelinux-developer-release-el8
# 26ai用事前設定パッケージの導入
# 実行により、oracleユーザー作成、カーネルパラメータ設定等が自動適用されます
dnf install -y https://yum.oracle.com/repo/OracleLinux/OL8/appstream/x86_64/getPackage/oracle-ai-database-preinstall-26ai-1.0-1.el8.x86_64.rpm
# 追加ライブラリの導入
dnf install -y libnsl
# oracleユーザーのパスワード設定 (検証用: oracle)
passwd oracle
# ディレクトリ作成と権限変更
mkdir -p /u01/app/oracle/product/23.0.0/dbhome_1
chown -R oracle:oinstall /u01
chmod 775 /u01
3. インストール資材の展開と環境設定 (oracle)
oracle ユーザーに切り替え、環境変数の設定と ZIP ファイルの解凍を行います。
su - oracle
# 環境変数の設定 (~/.bash_profile に追記)
cat << EOF >> ~/.bash_profile
export ORACLE_SID=orcl
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/23.0.0/dbhome_1
export PATH=\$ORACLE_HOME/bin:\$ORACLE_HOME/OPatch:\$PATH
EOF
source ~/.bash_profile
# ソフトウェア資材の解凍
unzip -q V1054592-01.zip -d $ORACLE_HOME
4. レスポンスファイルの作成工程 (oracle)
インストールに必要な設定ファイルをテンプレートから作成します。
※ファイル内の具体的なパラメータ設定(IPやパス等)は、自身の環境に合わせて変更してください。
① runInstaller用ファイルの準備
cp $ORACLE_HOME/install/response/db_install.rsp /home/oracle/runInstaller.rsp
# 以降、編集作業(別記事参照)を実施
② DBCA用ファイルの準備
cp $ORACLE_HOME/assistants/dbca/templates/dbca.rsp.tmpl /home/oracle/dbca.rsp
# 以降、編集作業(別記事参照)を実施
5. ソフトウェアのインストール実行 (oracle)
バイナリのインストールを開始します。
cd $ORACLE_HOME
./runInstaller -silent -responseFile /home/oracle/runInstaller.rsp
[oracle@26ai-single-s dbhome_1]$ ./runInstaller -silent -responseFile /home/oracle/runInstaller.rsp
Launching Oracle AI Database Setup Wizard...
The response file for this session can be found at:
/u01/app/oracle/product/23.0.0/dbhome_1/install/response/db_2026-02-28_00-44-09AM.rsp
You can find the log of this install session at:
/tmp/InstallActions2026-02-28_00-44-09AM/installActions2026-02-28_00-44-09AM.log
As a root user, run the following script(s):
1. /u01/app/oraInventory/orainstRoot.sh
2. /u01/app/oracle/product/23.0.0/dbhome_1/root.sh
Run /u01/app/oraInventory/orainstRoot.sh on the following nodes:
[26ai-single-s]
Run /u01/app/oracle/product/23.0.0/dbhome_1/root.sh on the following nodes:
[26ai-single-s]
Successfully Setup Software.
Moved the install session logs to:
/u01/app/oraInventory/logs/InstallActions2026-02-28_00-44-09AM
[oracle@26ai-single-s dbhome_1]$
💰 【PR】Oracleエンジニアの市場価値、調べてみませんか?
Oracleのスキルは需要が高く、特定の資格や経験を持っていると年収が大幅にアップするケースがあります。まずはIT専門のエージェントで非公開求人をチェックしてみませんか?
6. root スクリプトの実行 (root)
インストール完了の指示が出たら、特権スクリプトを順番に実行します。
su
# rootパスワード入力後、以下を実行
/u01/app/oraInventory/orainstRoot.sh
/u01/app/oracle/product/23.0.0/dbhome_1/root.sh
exit
[oracle@26ai-single-s dbhome_1]$ su
Password:
[root@26ai-single-s dbhome_1]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
[root@26ai-single-s dbhome_1]# /u01/app/oracle/product/23.0.0/dbhome_1/root.sh
Check /u01/app/oracle/product/23.0.0/dbhome_1/install/root_26ai-single-s_2026-02-28_00-58-05-874081145.log for the output of root script
[root@26ai-single-s dbhome_1]# exit
exit
[oracle@26ai-single-s dbhome_1]$
7. データベースの作成:DBCA (oracle)
最後にデータベース本体を構築します。実行時に SYS 等のパスワード入力を求められます。
dbca -silent -createDatabase -responseFile /home/oracle/dbca.rsp
[oracle@26ai-single-s dbhome_1]$ dbca -silent -createDatabase -responseFile /home/oracle/dbca.rsp
Enter SYS user password:
Enter SYSTEM user password:
Enter PDBADMIN User Password:
[WARNING] [DBT-06208] The 'SYS' password entered does not conform to the Oracle recommended standards.
CAUSE:
a. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
b.The password entered is a keyword that Oracle does not recommend to be used as password
ACTION: Specify a strong password. If required refer Oracle documentation for guidelines.
[WARNING] [DBT-06208] The 'SYSTEM' password entered does not conform to the Oracle recommended standards.
CAUSE:
a. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
b.The password entered is a keyword that Oracle does not recommend to be used as password
ACTION: Specify a strong password. If required refer Oracle documentation for guidelines.
[WARNING] [DBT-06208] The 'PDBADMIN' password entered does not conform to the Oracle recommended standards.
CAUSE:
a. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
b.The password entered is a keyword that Oracle does not recommend to be used as password
ACTION: Specify a strong password. If required refer Oracle documentation for guidelines.
Prepare for db operation
8% complete
Copying database files
31% complete
Creating and starting Oracle instance
32% complete
36% complete
39% complete
42% complete
46% complete
Completing Database Creation
51% complete
53% complete
54% complete
Creating Pluggable Databases
58% complete
77% complete
Executing Post Configuration Actions
100% complete
Database creation complete. For details check the logfiles at:
/u01/app/oracle/cfgtoollogs/dbca/orcl.
Database Information:
Global Database Name:orcl
System Identifier(SID):orcl
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/orcl/orcl.log" for further details.
[oracle@26ai-single-s dbhome_1]$
8. 構築完了の確認
SQL*Plus で接続し、インスタンスと PDB の状態を確認できれば完了です。
sqlplus / as sysdba
# バージョンと PDB の状態確認
SELECT banner FROM v$version;
show pdbs
[oracle@26ai-single-s dbhome_1]$ sqlplus / as sysdba
SQL*Plus: Release 23.26.1.0.0 - Production on Sat Feb 28 20:20:04 2026
Version 23.26.1.0.0
Copyright (c) 1982, 2025, Oracle. All rights reserved.
Connected to:
Oracle AI Database 26ai Enterprise Edition Release 23.26.1.0.0 - Production
Version 23.26.1.0.0
SQL> SELECT banner FROM v$version;
BANNER
--------------------------------------------------------------------------------
Oracle AI Database 26ai Enterprise Edition Release 23.26.1.0.0 - Production
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 PDB01 READ WRITE NO
まとめ
- 環境情報の整理: パスやネットワーク構成を事前に把握することが成功の近道です。
- 事前設定パッケージ: OS側の煩雑な設定を 1 コマンドで完結させられます。
- レスポンスファイルの準備: この工程さえ踏めば、後はコマンドのコピペで 26ai 環境が手に入ります。
[参考]
Oracle AI Databaseデータベース・インストレーション・ガイド, 26ai for Linux
本記事は Oracle Database 26ai を対象に解説します(他バージョンは画面や既定値が異なる場合があります)。
💰 【PR】Oracleエンジニアの市場価値、調べてみませんか?
Oracleのスキルは需要が高く、特定の資格や経験を持っていると年収が大幅にアップするケースがあります。まずはIT専門のエージェントで非公開求人をチェックしてみませんか?



コメント