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?

Oracle AI Database 26ai のインストールを試す

Last updated at Posted at 2025-10-15

Oracle AI Database 26ai とは?

 Oracle AI Database 26ai は次期長期サポート版 Oracle Database としてリリースされる予定のデータベースです。Oracle Database 23ai のオンプレミス版のリリースが遅れていましたが、一旦仕切り直して Oracle AI Database 26ai として生まれ変わるようです。Press Release によると Oracle Database 23ai に 2025/10 RU を適用することで Oracle AI Database 26ai に移行できます。
 

インストールの前準備

 本記事では Oracle Linux 9.6 上で動作する Oracle AI Database 26ai Free RPM 版のインストールを試します。インストールメディアは Oracle AI Database Free からダウンロードできます。以下のファイルをダウンロードします。

  • Oracle AI Database 26ai Pre-Intall = oracle-ai-database-preinstall-26ai-1.0-1.el8.x86_64.rpm
  • Oracle AI Database 26ai = oracle-ai-database-free-26ai-23.26.0-1.el9.x86_64.rpm

インストール手順

以下にインストール例を示します。

Pre-Install RPM のインストール

 Oracle AI Database 26ai をインストールする前に Pre-Install RPM をインストールします。この PRM は、カーネル・パラメーターの変更やインスタンス起動ユーザーの作成等の準備を行います。

Pre-Install RPM のインストール
# dnf -y install oracle-ai-database-preinstall-26ai
Last metadata expiration check: 0:10:20 ago on Wed 15 Oct 2025 05:53:49 PM JST.
Dependencies resolved.
=======================================================================
 Package                 Arch   Version            Repository     Size
=======================================================================
Installing:
 oracle-ai-database-preinstall-26ai
                         x86_64 1.0-1.el9          ol9_appstream  34 k
Installing dependencies:
 compat-openssl11        x86_64 1:1.1.1k-5.el9_6.1 ol9_appstream 1.5 M

Transaction Summary
=======================================================================
Install  2 Packages

Total download size: 1.5 M
Installed size: 3.8 M
Downloading Packages:
(1/2): compat-openssl11-1.1.1k-5.el9_6 6.5 MB/s | 1.5 MB     00:00
(2/2): oracle-ai-database-preinstall-2 106 kB/s |  34 kB     00:00
-----------------------------------------------------------------------
Total                                  4.5 MB/s | 1.5 MB     00:00
Oracle Linux 9 Application Stream Pack 6.1 MB/s | 6.2 kB     00:00
Importing GPG key 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
Key imported successfully
Importing GPG key 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
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                               1/1
  Installing       : compat-openssl11-1:1.1.1k-5.el9_6.1.x86_64    1/2
  Installing       : oracle-ai-database-preinstall-26ai-1.0-1.el   2/2
  Running scriptlet: oracle-ai-database-preinstall-26ai-1.0-1.el   2/2
  Verifying        : compat-openssl11-1:1.1.1k-5.el9_6.1.x86_64    1/2
  Verifying        : oracle-ai-database-preinstall-26ai-1.0-1.el   2/2

Installed:
  compat-openssl11-1:1.1.1k-5.el9_6.1.x86_64
  oracle-ai-database-preinstall-26ai-1.0-1.el9.x86_64

Complete!
#

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

次に Oracle AI Database 26ai RPM パッケージのインストールを行います。

Oracle AI Database 26ai RPM のインストール
# dnf -y install oracle-ai-database-free-26ai-23.26.0-1.el9.x86_64.rpm
Last metadata expiration check: 0:12:11 ago on Wed 15 Oct 2025 05:53:49 PM JST.
Dependencies resolved.
=======================================================================
 Package                       Arch    Version     Repository     Size
=======================================================================
Installing:
 oracle-ai-database-free-26ai  x86_64  23.26.0-1   @commandline  1.3 G

Transaction Summary
=======================================================================
Install  1 Package

Total size: 1.3 G
Installed size: 3.6 G
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                               1/1
  Running scriptlet: oracle-ai-database-free-26ai-23.26.0-1.x86_   1/1
  Installing       : oracle-ai-database-free-26ai-23.26.0-1.x86_   1/1
  Running scriptlet: oracle-ai-database-free-26ai-23.26.0-1.x86_   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.

  Verifying        : oracle-ai-database-free-26ai-23.26.0-1.x86_   1/1

Installed:
  oracle-ai-database-free-26ai-23.26.0-1.x86_64

Complete!
#

 RPM のインストールが完了したら初期設定を行います。ここでは SYS / SYSTEM / PDBADMIN ユーザーの共通パスワードを入力する必要があります。

初期設定
# /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.
Enter SYS user password: 
************
Enter SYSTEM user password: 
*************
Enter PDBADMIN User Password: 
***********
Prepare for db operation
7% complete
Copying database files
29% complete
Creating and starting Oracle instance
30% complete
33% complete
36% complete
39% complete
43% complete
Completing Database Creation
47% complete
49% complete
50% complete
Creating Pluggable Databases
54% complete
71% complete
Executing Post Configuration Actions
93% complete
Running Custom Scripts
100% complete
Database creation complete. For details check the logfiles at:
 /opt/oracle/cfgtoollogs/dbca/FREE.
Database Information:
Global Database Name:FREE
System Identifier(SID):FREE
Look at the log file "/opt/oracle/cfgtoollogs/dbca/FREE/FREE.log" for further details.

Connect to Oracle AI Database using one of the connect strings:
     Pluggable database: ol96-1/FREEPDB1
     Multitenant container database: ol96-1

この時点でリスナーとインスタンスが起動して利用可能な状態になっています。

利用開始

Oracle Linux のデータベース管理ユーザーとして oracle が作成されています。環境変数の設定を行い、データベース・インスタンスに接続します。

oracle ユーザーの環境設定
# id oracle
uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54330(racdba)
# su - oracle
$ export ORACLE_SID=FREE
$ export ORAENV_ASK=NO
$ . /opt/oracle/product/26ai/dbhomeFree/bin/oraenv
The Oracle base has been set to /opt/oracle
$

Oracle AI Database に接続します。

Oracle AI Database に接続
$ sqlplus / as sysdba

SQL*Plus: Release 23.26.0.0.0 - Production on Wed Oct 15 18:27:18 2025
Version 23.26.0.0.0

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


Connected to:
Oracle AI Database 26ai Free Release 23.26.0.0.0 - Develop, Learn, and Run for Free Version 23.26.0.0.0

SQL> SELECT * FROM v$version;

BANNER
---------------------------------------------------------------------------------------------------------------------------------
BANNER_FULL
------------------------------------------------------------------------------------------------------------------------------------------------------
BANNER_LEGACY                                                                                                                         CON_ID
--------------------------------------------------------------------------------------------------------------------------------- ----------
Oracle AI Database 26ai Free Release 23.26.0.0.0 - Develop, Learn, and Run for Free
Oracle AI Database 26ai Free Release 23.26.0.0.0 - Develop, Learn, and Run for Free
Version 23.26.0.0.0
Oracle AI Database 26ai Free Release 23.26.0.0.0 - Develop, Learn, and Run for Free                                                      0

Author: Noriyoshi Shinoda / Date: October 15, 2025

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?