Oracle AI Database 26ai Free 構築から作成までの手順【OracleLinux 9.7】

  • URLをコピーしました!
Oracle AI Database
僕の作業環境
  • Oracle Linux 9.7

Oracle AI Database 26ai Freeがリリースされ、Oracle Linux、Windows、Macに構築することができました。

Oracle AI Database 26ai Freeは、Linux環境においてOracle Linux 8または9、Oracle Enterprise Linux 8または9上で構築可能です。

Oracle Linux 9.7上にOracle AI Database 26ai FreeをRPMでインストールし、データベース作成、SQL*Plus接続確認まで行う手順をまとめました。

本記事では、Oracle公式のインストールガイドの流れに沿って、実行ログをもとにまとめています。

目次

インストール手順

Oracle AI Database 26aiのインストールから構築、確認までの手順は以下になります。

インストール手順
  1. Oracle AI Database Preinstallation RPM インストール
  2. Oracle AI Database 26ai Free インストール
  3. 構成ファイルを編集(任意)
  4. Oracle AI Database 26ai データベース作成
  5. oracleユーザの設定
  6. SQL*Plusで接続
  7. おまけ:自動起動

※インストール手順は、rootユーザで実行します。

今回の検証を実施する上で、使用したメディアは以下になります。

Oracle AI Database Preinstallation RPM インストール

Oracle AI Database 26ai Freeを構築する前に、Oracle AI Database Preinstallation RPMをインストールします。

Oracle AI Database Preinstallation RPMは、Oracle AI Databaseの構築に必要なOSユーザ/OSグループ作成、カーネルの設定、依存パッケージのインストールなどを自動実行してくれます。

[root@learnbytebybyte tmp]# dnf -y install oracle-ai-database-preinstall-26ai-1.0-1.el9.x86_64.rpm
メタデータの期限切れの最終確認: 3:38:48 前の 2026年01月04日 18時06分08秒 に実施しました。
依存関係が解決しました。
===============================================================================================================================================================
 パッケージ                                         アーキテクチャー       バージョン                             リポジトリー                           サイズ
===============================================================================================================================================================
インストール:
 oracle-ai-database-preinstall-26ai                 x86_64                 1.0-1.el9                              @commandline                            34 k
依存関係のインストール:
 compat-openssl11                                   x86_64                 1:1.1.1k-5.el9_6.1                     InstallMedia-AppStream                 1.5 M
 glibc-devel                                        x86_64                 2.34-231.0.1.el9                       InstallMedia-AppStream                  60 k
 glibc-headers                                      x86_64                 2.34-231.0.1.el9                       InstallMedia-AppStream                 922 k
 gssproxy                                           x86_64                 0.8.4-7.el9                            InstallMedia-BaseOS                    120 k
 initscripts                                        x86_64                 10.11.8-4.0.1.el9                      InstallMedia-BaseOS                    285 k
 kernel-headers                                     x86_64                 5.14.0-611.5.1.el9_7                   InstallMedia-AppStream                 3.6 M
 ksh                                                x86_64                 3:1.0.6-14.0.1.el9                     InstallMedia-AppStream                 885 k
 libev                                              x86_64                 4.33-6.el9                             InstallMedia-BaseOS                     56 k
 libnfsidmap                                        x86_64                 1:2.5.4-38.0.1.el9                     InstallMedia-BaseOS                     71 k
 libverto-libev                                     x86_64                 0.3.2-3.el9                            InstallMedia-BaseOS                     14 k
 libxcrypt-devel                                    x86_64                 4.4.18-3.el9                           InstallMedia-AppStream                  42 k
 lm_sensors-libs                                    x86_64                 3.6.0-10.el9                           InstallMedia-AppStream                  42 k
 make                                               x86_64                 1:4.3-8.el9                            InstallMedia-BaseOS                    570 k
 nfs-utils                                          x86_64                 1:2.5.4-38.0.1.el9                     InstallMedia-BaseOS                    518 k
 pcp-conf                                           x86_64                 6.3.7-5.0.2.el9                        InstallMedia-AppStream                  41 k
 pcp-libs                                           x86_64                 6.3.7-5.0.2.el9                        InstallMedia-AppStream                 654 k
 rpcbind                                            x86_64                 1.2.6-7.el9                            InstallMedia-BaseOS                     69 k
 sssd-nfs-idmap                                     x86_64                 2.9.7-4.0.1.el9                        InstallMedia-BaseOS                     44 k
 sysstat                                            x86_64                 12.5.4-9.0.2.el9                       InstallMedia-AppStream                 541 k

トランザクションの概要
===============================================================================================================================================================
インストール  20 パッケージ

合計サイズ: 9.9 M
インストール後のサイズ: 23 M
パッケージのダウンロード:
Red Hat Enterprise Linux 9 - BaseOS                                                                                            2.1 MB/s | 6.2 kB     00:00    
GPG 鍵 0x8D8B756F をインポート中:
 Userid     : "Oracle Linux (release key 1) <secalert_us@oracle.com>"
 Fingerprint: 3E6D 826D 3FBA B389 C2F3 8E34 BC4D 06A0 8D8B 756F
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
鍵のインポートに成功しました
GPG 鍵 0x8B4EFBE6 をインポート中:
 Userid     : "Oracle Linux (backup key 1) <secalert_us@oracle.com>"
 Fingerprint: 9822 3175 9C74 6706 5D0C E9B2 A7DD 0708 8B4E FBE6
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
鍵のインポートに成功しました
トランザクションを確認しています
トランザクションの確認に成功しました。
トランザクションをテストしています
トランザクションのテストに成功しました。
トランザクションを実行しています
  準備中           :                                                                                                                                       1/1 
  インストール中   : libnfsidmap-1:2.5.4-38.0.1.el9.x86_64                                                                                                1/20 
  インストール中   : pcp-conf-6.3.7-5.0.2.el9.x86_64                                                                                                      2/20 
  インストール中   : pcp-libs-6.3.7-5.0.2.el9.x86_64                                                                                                      3/20 
  インストール中   : lm_sensors-libs-3.6.0-10.el9.x86_64                                                                                                  4/20 
  インストール中   : sysstat-12.5.4-9.0.2.el9.x86_64                                                                                                      5/20 
  scriptletの実行中: sysstat-12.5.4-9.0.2.el9.x86_64                                                                                                      5/20 
Created symlink /etc/systemd/system/multi-user.target.wants/sysstat.service → /usr/lib/systemd/system/sysstat.service.
Created symlink /etc/systemd/system/sysstat.service.wants/sysstat-collect.timer → /usr/lib/systemd/system/sysstat-collect.timer.
Created symlink /etc/systemd/system/sysstat.service.wants/sysstat-summary.timer → /usr/lib/systemd/system/sysstat-summary.timer.

  インストール中   : ksh-3:1.0.6-14.0.1.el9.x86_64                                                                                                        6/20 
  scriptletの実行中: ksh-3:1.0.6-14.0.1.el9.x86_64                                                                                                        6/20 
  インストール中   : kernel-headers-5.14.0-611.5.1.el9_7.x86_64                                                                                           7/20 
  インストール中   : glibc-headers-2.34-231.0.1.el9.x86_64                                                                                                8/20 
  インストール中   : libxcrypt-devel-4.4.18-3.el9.x86_64                                                                                                  9/20 
  インストール中   : glibc-devel-2.34-231.0.1.el9.x86_64                                                                                                 10/20 
  インストール中   : compat-openssl11-1:1.1.1k-5.el9_6.1.x86_64                                                                                          11/20 
  scriptletの実行中: rpcbind-1.2.6-7.el9.x86_64                                                                                                          12/20 
  インストール中   : rpcbind-1.2.6-7.el9.x86_64                                                                                                          12/20 
  scriptletの実行中: rpcbind-1.2.6-7.el9.x86_64                                                                                                          12/20 
Created symlink /etc/systemd/system/multi-user.target.wants/rpcbind.service → /usr/lib/systemd/system/rpcbind.service.
Created symlink /etc/systemd/system/sockets.target.wants/rpcbind.socket → /usr/lib/systemd/system/rpcbind.socket.

  インストール中   : make-1:4.3-8.el9.x86_64                                                                                                             13/20 
  インストール中   : libev-4.33-6.el9.x86_64                                                                                                             14/20 
  インストール中   : libverto-libev-0.3.2-3.el9.x86_64                                                                                                   15/20 
  インストール中   : gssproxy-0.8.4-7.el9.x86_64                                                                                                         16/20 
  scriptletの実行中: gssproxy-0.8.4-7.el9.x86_64                                                                                                         16/20 
  scriptletの実行中: nfs-utils-1:2.5.4-38.0.1.el9.x86_64                                                                                                 17/20 
  インストール中   : nfs-utils-1:2.5.4-38.0.1.el9.x86_64                                                                                                 17/20 
  scriptletの実行中: nfs-utils-1:2.5.4-38.0.1.el9.x86_64                                                                                                 17/20 
  インストール中   : initscripts-10.11.8-4.0.1.el9.x86_64                                                                                                18/20 
  scriptletの実行中: initscripts-10.11.8-4.0.1.el9.x86_64                                                                                                18/20 
Created symlink /etc/systemd/system/sysinit.target.wants/import-state.service → /usr/lib/systemd/system/import-state.service.
Created symlink /etc/systemd/system/sysinit.target.wants/loadmodules.service → /usr/lib/systemd/system/loadmodules.service.

  インストール中   : oracle-ai-database-preinstall-26ai-1.0-1.el9.x86_64                                                                                 19/20 
  インストール中   : sssd-nfs-idmap-2.9.7-4.0.1.el9.x86_64                                                                                               20/20 
  scriptletの実行中: oracle-ai-database-preinstall-26ai-1.0-1.el9.x86_64                                                                                 20/20 
  scriptletの実行中: sssd-nfs-idmap-2.9.7-4.0.1.el9.x86_64                                                                                               20/20 
  検証中           : gssproxy-0.8.4-7.el9.x86_64                                                                                                          1/20 
  検証中           : initscripts-10.11.8-4.0.1.el9.x86_64                                                                                                 2/20 
  検証中           : libev-4.33-6.el9.x86_64                                                                                                              3/20 
  検証中           : libnfsidmap-1:2.5.4-38.0.1.el9.x86_64                                                                                                4/20 
  検証中           : libverto-libev-0.3.2-3.el9.x86_64                                                                                                    5/20 
  検証中           : make-1:4.3-8.el9.x86_64                                                                                                              6/20 
  検証中           : nfs-utils-1:2.5.4-38.0.1.el9.x86_64                                                                                                  7/20 
  検証中           : rpcbind-1.2.6-7.el9.x86_64                                                                                                           8/20 
  検証中           : sssd-nfs-idmap-2.9.7-4.0.1.el9.x86_64                                                                                                9/20 
  検証中           : compat-openssl11-1:1.1.1k-5.el9_6.1.x86_64                                                                                          10/20 
  検証中           : glibc-devel-2.34-231.0.1.el9.x86_64                                                                                                 11/20 
  検証中           : glibc-headers-2.34-231.0.1.el9.x86_64                                                                                               12/20 
  検証中           : kernel-headers-5.14.0-611.5.1.el9_7.x86_64                                                                                          13/20 
  検証中           : ksh-3:1.0.6-14.0.1.el9.x86_64                                                                                                       14/20 
  検証中           : libxcrypt-devel-4.4.18-3.el9.x86_64                                                                                                 15/20 
  検証中           : lm_sensors-libs-3.6.0-10.el9.x86_64                                                                                                 16/20 
  検証中           : pcp-conf-6.3.7-5.0.2.el9.x86_64                                                                                                     17/20 
  検証中           : pcp-libs-6.3.7-5.0.2.el9.x86_64                                                                                                     18/20 
  検証中           : sysstat-12.5.4-9.0.2.el9.x86_64                                                                                                     19/20 
  検証中           : oracle-ai-database-preinstall-26ai-1.0-1.el9.x86_64                                                                                 20/20 

インストール済み:
  compat-openssl11-1:1.1.1k-5.el9_6.1.x86_64         glibc-devel-2.34-231.0.1.el9.x86_64          glibc-headers-2.34-231.0.1.el9.x86_64                      
  gssproxy-0.8.4-7.el9.x86_64                        initscripts-10.11.8-4.0.1.el9.x86_64         kernel-headers-5.14.0-611.5.1.el9_7.x86_64                 
  ksh-3:1.0.6-14.0.1.el9.x86_64                      libev-4.33-6.el9.x86_64                      libnfsidmap-1:2.5.4-38.0.1.el9.x86_64                      
  libverto-libev-0.3.2-3.el9.x86_64                  libxcrypt-devel-4.4.18-3.el9.x86_64          lm_sensors-libs-3.6.0-10.el9.x86_64                        
  make-1:4.3-8.el9.x86_64                            nfs-utils-1:2.5.4-38.0.1.el9.x86_64          oracle-ai-database-preinstall-26ai-1.0-1.el9.x86_64        
  pcp-conf-6.3.7-5.0.2.el9.x86_64                    pcp-libs-6.3.7-5.0.2.el9.x86_64              rpcbind-1.2.6-7.el9.x86_64                                 
  sssd-nfs-idmap-2.9.7-4.0.1.el9.x86_64              sysstat-12.5.4-9.0.2.el9.x86_64             

完了しました!

下記の記事は、Oracle AI Database Preinstallation RPMが自動実行される構成タスクについてまとめています。

あわせて読みたい
Oracle AI Database Preinstallation RPMとは?実際に検証して確認 LinuxディストリビューションがOracle LinuxまたはRed Hat Enterprise Linuxで、Oracle Linuxサポートを使用している場合は、Oracle AI Database Preinstallation RPMを...

Oracle AI Database 26ai Free インストール

Oracle AI Database Preinstallation RPMインストール後に、Oracle AI Database 26ai Free のRPMをインストールします。

[root@learnbytebybyte tmp]# dnf -y install oracle-ai-database-free-26ai-23.26.0-1.el9.x86_64.rpm 
メタデータの期限切れの最終確認: 4:01:51 前の 2026年01月04日 18時06分08秒 に実施しました。
依存関係が解決しました。
===============================================================================================================================================================
 パッケージ                                          アーキテクチャー              バージョン                        リポジトリー                        サイズ
===============================================================================================================================================================
インストール:
 oracle-ai-database-free-26ai                        x86_64                        23.26.0-1                         @commandline                        1.3 G

トランザクションの概要
===============================================================================================================================================================
インストール  1 パッケージ

合計サイズ: 1.3 G
インストール後のサイズ: 3.6 G
パッケージのダウンロード:
トランザクションを確認しています
トランザクションの確認に成功しました。
トランザクションをテストしています
トランザクションのテストに成功しました。
トランザクションを実行しています
  準備中           :                                                                                                                                       1/1 
  scriptletの実行中: oracle-ai-database-free-26ai-23.26.0-1.x86_64                                                                                         1/1 
  インストール中   : oracle-ai-database-free-26ai-23.26.0-1.x86_64                                                                                         1/1 
  scriptletの実行中: oracle-ai-database-free-26ai-23.26.0-1.x86_64                                                                                         1/1 
[INFO] Executing post installation scripts...
[INFO] Oracle home installed successfully and ready to be configured.
To configure Oracle AI Database Free, optionally modify the parameters in '/etc/sysconfig/oracle-free-26ai.conf' and then run '/etc/init.d/oracle-free-26ai configure' as root.

  検証中           : oracle-ai-database-free-26ai-23.26.0-1.x86_64                                                                                         1/1 

インストール済み:
  oracle-ai-database-free-26ai-23.26.0-1.x86_64                                                                                                                

完了しました!

インストール後、Oracle AI Database 26aiの構築に関する構成ファイルと構築コマンドが案内されます。

[INFO] Oracle home installed successfully and ready to be configured.
To configure Oracle AI Database Free, optionally modify the parameters in '/etc/sysconfig/oracle-free-26ai.conf' and then run '/etc/init.d/oracle-free-26ai configure' as root.

構成ファイルを編集(任意)

必要に応じて、DB作成前に構成ファイル(/etc/sysconfig/oracle-free-26ai.conf)を編集します。

構成ファイルを編集することで、以下の設定を変更できます。

構成ファイルの内容
  • LISTENER_PORT:データベース・リスナーの有効なリスナー数値ポート値。自動ポート割当ての値は指定しないでください。
  • CHARSET:データベースの文字セット。これはAL32UTF8に設定されます。
  • DBFILE_DEST:データベース・ファイル・ディレクトリ。デフォルトでは、データベース・ファイルはOracleベース/opt/oracle/oradataサブディレクトリに格納されます。独自のデータベース・ファイル・ディレクトリを作成することもできます。ただし、このファイル・パスの権限はoracleユーザーが所有している必要があります。
  • SKIP_VALIDATIONS:メモリーおよびディスク領域の検証をスキップします。デフォルトはfalseです。
  • CONFIGURE_TDE:透過的データ暗号化(TDE)を構成するには、CONFIGURE_TDE=trueを設定します。デフォルト値はfalseです。
  • ENCRYPT_TABLESPACES:ユーザー表領域の場合、この値は空のままにします。すべての表領域を暗号化するには、この値をALLに設定します。特定の表領域の場合は、SYSTEM:true,SYSAUX:falseを使用します。デフォルト値は空です。

引用元:Oracle公式ドキュメント

今回の検証では、リスナーポート(LISTENER_PORT)を1522に設定して構築します。

[root@learnbytebybyte ~]# cat /etc/sysconfig/oracle-free-26ai.conf 
#This is a configuration file to setup the Oracle AI Database. 
#It is used when running '/etc/init.d/oracle-free-26ai configure'.

# LISTENER PORT used Database listener, Leave empty for automatic port assignment
LISTENER_PORT=

# Character set of the database
CHARSET=AL32UTF8

# Database file directory
# If not specified, database files are stored under Oracle base/oradata
DBFILE_DEST=

# DB Domain name
DB_DOMAIN=

# Configure TDE
CONFIGURE_TDE=false

# Encrypt Tablespaces list, Leave empty for user tablespace alone or provide ALL for encrypting all tablespaces
# For specific tablespaces use SYSTEM:true,SYSAUX:false
ENCRYPT_TABLESPACES=

# SKIP Validations, memory, space
SKIP_VALIDATIONS=false
[root@learnbytebybyte ~]# vi /etc/sysconfig/oracle-free-26ai.conf 
[root@learnbytebybyte ~]# cat /etc/sysconfig/oracle-free-26ai.conf 
#This is a configuration file to setup the Oracle AI Database. 
#It is used when running '/etc/init.d/oracle-free-26ai configure'.

# LISTENER PORT used Database listener, Leave empty for automatic port assignment
LISTENER_PORT=1522 #変更します。

# Character set of the database
CHARSET=AL32UTF8

# Database file directory
# If not specified, database files are stored under Oracle base/oradata
DBFILE_DEST=

# DB Domain name
DB_DOMAIN=

# Configure TDE
CONFIGURE_TDE=false

# Encrypt Tablespaces list, Leave empty for user tablespace alone or provide ALL for encrypting all tablespaces
# For specific tablespaces use SYSTEM:true,SYSAUX:false
ENCRYPT_TABLESPACES=

# SKIP Validations, memory, space
SKIP_VALIDATIONS=false

Oracle AI Database 26aiのデータベース作成

設定ファイルを変更できたら実行コマンドで、Oracle AI Database 26aiのデータベースを作成します。

実行中にSYS/SYSTEM/PDBADMINの共通パスワード入力が求められます。

[root@learnbytebybyte ~]# /etc/init.d/oracle-free-26ai configure
Specify a password to be used for database accounts. 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]. Note that the same password will be used for SYS, SYSTEM and PDBADMIN accounts:     #パスワード入力
Confirm the password:                      #パスワード入力
Configuring Oracle Listener.
Listener configuration succeeded.
Configuring Oracle AI Database FREE.
SYSユーザー・パスワードを入力してください: 
***********
SYSTEMユーザー・パスワードを入力してください: 
************
PDBADMINユーザー・パスワードを入力してください: 
************
DB操作の準備
7%完了
データベース・ファイルのコピー中
29%完了
Oracleインスタンスの作成および起動中
30%完了
33%完了
36%完了
39%完了
43%完了
データベース作成の完了
47%完了
49%完了
50%完了
プラガブル・データベースの作成
54%完了
71%完了
構成後アクションの実行
93%完了
カスタム・スクリプトを実行中
100%完了
データベースの作成が完了しました。詳細は、次の場所にあるログ・ファイルを参照してください:
/opt/oracle/cfgtoollogs/dbca/FREE。
データベース情報:
グローバル・データベース名:FREE
システム識別子(SID):FREE
詳細はログ・ファイル"/opt/oracle/cfgtoollogs/dbca/FREE/FREE1.log"を参照してください。

Connect to Oracle AI Database using one of the connect strings:
     Pluggable database: learnbytebybyte:1522/FREEPDB1
     Multitenant container database: learnbytebybyte:1522

データベースの作成が失敗した場合は、下記のコマンドを実行することでデータ・ファイル、リスナーおよび構成ファイルを削除します。

/etc/init.d/oracle-free-26ai delete
#その後、構築コマンドを再度実行することで構築できます。
/etc/init.d/oracle-free-26ai configure

oracleユーザの設定

Oracle AI Database Preinstallation RPMで作成されたoracleユーザのパスワードを設定します。

[root@learnbytebybyte ~]# #oracleユーザのパスワード変更
[root@learnbytebybyte ~]# passwd oracle
ユーザー oracle のパスワードを変更。
新しい パスワード:
新しい パスワードを再入力してください:
passwd: すべての認証トークンが正しく更新できました。
[root@learnbytebybyte ~]# su - oracle
[oracle@learnbytebybyte ~]$

次に、oracleユーザの環境変数を「oraenv方式」か「手動export方式」で設定します。

環境変数の設定
  • oraenv方式:一時的に設定
  • 手動export方式:ログインのたびに自動設定
[oracle@learnbytebybyte ~]$ #oraenv
[oracle@learnbytebybyte ~]$ export ORACLE_SID=FREE
[oracle@learnbytebybyte ~]$ export ORAENV_ASK=NO
[oracle@learnbytebybyte ~]$ . /opt/oracle/product/26ai/dbhomeFree/bin/oraenv
The Oracle base has been set to /opt/oracle
[oracle@learnbytebybyte ~]$ 
[oracle@learnbytebybyte ~]$ #手動export
[oracle@learnbytebybyte ~]$ cat .bash_profile 
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
	. ~/.bashrc
fi

# User specific environment and startup programs

[oracle@learnbytebybyte ~]$ vi .bash_profile 
[oracle@learnbytebybyte ~]$ cat .bash_profile 
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
	. ~/.bashrc
fi

# User specific environment and startup programs

#環境変数の追記 必須
export ORACLE_SID=FREE
export ORACLE_BASE=/opt/oracle/
export ORACLE_HOME=/opt/oracle/product/26ai/dbhomeFree
export PATH=$ORACLE_HOME/bin:$PATH
#環境変数の追記 日本語化
export NLS_LANG=Japanese_Japan.AL32UTF8
[oracle@learnbytebybyte ~]$ 
[oracle@learnbytebybyte ~]$ #環境変数の反映
[oracle@learnbytebybyte ~]$ source .bash_profile

SQL*Plusで接続

ここまでの手順で、Oracle AI Database 26ai Free に SQL*Plus で接続できます。

まずはOS認証で接続し、コンテナを確認します。

[oracle@learnbytebybyte ~]$ sqlplus / as sysdba

SQL*Plus: Release 23.26.0.0.0 - Production on 火 1月 6 22:08:43 2026
Version 23.26.0.0.0

Copyright (c) 1982, 2025, Oracle.  All rights reserved.



Oracle AI Database 26ai Free Release 23.26.0.0.0 - Develop, Learn, and Run for Free
Version 23.26.0.0.0
に接続されました。
SQL> show con_name

CON_NAME
------------------------------
CDB$ROOT
SQL> show pdbs

    CON_ID CON_NAME			  OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
	 2 PDB$SEED			  READ ONLY  NO
	 3 FREEPDB1			  READ WRITE NO

構成ファイルで LISTENER_PORT=1522 に変更したため、ホスト名learnbytebybyteの1522番ポートで接続できます。

[oracle@learnbytebybyte ~]$ sqlplus system/<パスワード>@learnbytebybyte:1522/FREE

SQL*Plus: Release 23.26.0.0.0 - Production on 火 1月 6 22:32:11 2026
Version 23.26.0.0.0

Copyright (c) 1982, 2025, Oracle.  All rights reserved.

最終正常ログイン時間: 月 1月  05 2026 22:14:39 +09:00


Oracle AI Database 26ai Free Release 23.26.0.0.0 - Develop, Learn, and Run for Free
Version 23.26.0.0.0
に接続されました。
SQL> 

おまけ:自動起動

LinuxOSを起動・再起動した後に、データベースに接続すると「アイドル・インスタンス」になるので、サービス自動起動を有効化します。

サービス自動起動はrootユーザで実行します。

[oracle@learnbytebybyte ~]$ sqlplus / as sysdba

SQL*Plus: Release 23.26.0.0.0 - Production on 金 1月 9 22:56:34 2026
Version 23.26.0.0.0

Copyright (c) 1982, 2025, Oracle.  All rights reserved.

アイドル・インスタンスに接続しました。

SQL> exit
切断しました。
[oracle@learnbytebybyte ~]$ su -
パスワード:
[root@learnbytebybyte ~]# systemctl status oracle-free-26ai.service 
○ oracle-free-26ai.service - SYSV: This script is responsible for taking care of configuring the RPM Oracle AI Database FREE and its associated services.
     Loaded: loaded (/etc/rc.d/init.d/oracle-free-26ai; generated)
     Active: inactive (dead)
       Docs: man:systemd-sysv-generator(8)
[root@learnbytebybyte ~]# systemctl enable oracle-free-26ai.service
oracle-free-26ai.service is not a native service, redirecting to systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable oracle-free-26ai
[root@learnbytebybyte ~]# systemctl status oracle-free-26ai.service
○ oracle-free-26ai.service - SYSV: This script is responsible for taking care of configuring the RPM Oracle AI Database FREE and its associated services.
     Loaded: loaded (/etc/rc.d/init.d/oracle-free-26ai; generated)
     Active: inactive (dead)
       Docs: man:systemd-sysv-generator(8)

Linuxを再起動して、再度データベースに接続すると正常に起動していることが確認できました。

[oracle@learnbytebybyte ~]$ systemctl status oracle-free-26ai.service 
● oracle-free-26ai.service - SYSV: This script is responsible for taking care of configuring the RPM Oracle AI Database FREE and its associated services.
     Loaded: loaded (/etc/rc.d/init.d/oracle-free-26ai; generated)
     Active: activating (start) since Fri 2026-01-09 23:06:58 JST; 4min 53s ago
       Docs: man:systemd-sysv-generator(8)
Cntrl PID: 895 (oracle-free-26a)
      Tasks: 1 (limit: 47484)
     Memory: 3.9M (peak: 4.4M)
        CPU: 999ms
     CGroup: /system.slice/oracle-free-26ai.service
             └─895 /bin/bash /etc/rc.d/init.d/oracle-free-26ai start
[oracle@learnbytebybyte ~]$ 
[oracle@learnbytebybyte ~]$ sqlplus / as sysdba

SQL*Plus: Release 23.26.0.0.0 - Production on 金 1月 9 23:12:06 2026
Version 23.26.0.0.0

Copyright (c) 1982, 2025, Oracle.  All rights reserved.

接続されました。
SQL> select instance_name,status from v$instance;

INSTANCE_NAME	 STATUS
---------------- ------------
FREE		 OPEN

まとめ

Oracle Linux 9.7上にOracle AI Database 26ai FreeをRPMでインストールし、データベース作成、SQL*Plus接続確認まで行う手順をまとめました。

インストール手順
  • Oracle AI Database Preinstallation RPM インストール
  • Oracle AI Database 26ai Free インストール
  • 構成ファイルを編集(任意)
  • Oracle AI Database 26ai データベース作成
  • oracleユーザの設定
  • SQL*Plusで接続

※インストール手順は、rootユーザで実行します。

最後までご愛読ありがとうございました。

よかったらシェアしてね!
  • URLをコピーしました!
  • URLをコピーしました!

この記事を書いた人

情報系Fラン大学出身・新卒未経験からデータベースエンジニアに転身。
使用技術:Oracle|TypeScript
資格取得:情報処理安全確保支援士試験|応用情報技術者試験|OracleMaster Gold DBA|OCI Architect Associate

目次