Oracle Database 26ai FREEの準備
このページでは、Oracle Database 26ai FREEのインストールと利用可能な機能、環境構築手順を解説します。
- Oracle Databse 26ai FREEをインストールし、DBを作成する
Oracle AI Database 26ai
Section titled “Oracle AI Database 26ai”Oracle Database 23ai をアップグレードし、データベース~~になる形として「Oracle AI Database 26ai」としてリリースされました。
バージョンとしては 23.26.0000 となり、23ai をアップデートするだけで使用することができます。
26ai 対応環境
Section titled “26ai 対応環境”26ai は以下の環境にてご使用いただけます。(2026年2月時点)
Oracle Cloud 環境
- Base Database Service
- Exadata Database Service
- Autonomous Database
オンプレミス環境
- FREE (無償版)
- Enterprise Edition for Linux x86-64
- Oracle Database Appliance
- Exadata Database Appliance
このサイトで紹介する手順は、無償版である 26ai FREE で実施することができます。一方、このサイトに例示する実行結果においては Base Database Service など Oracle Cloud の DBサービスを使用することもあります。そのため、一部構成が異なる場合があることにご注意ください。
26ai FREE
Section titled “26ai FREE”26aiにて提供される新しい無償版バージョン「FREE」では、従来の XE (Express Edition) と比較してセキュリティ機能が多く解放されており、気軽に試しやすくなっています。 そのため、TDE や Database Vault など、従来の無償版 XE では使えなかった機能が無償のまま体験することができます。
セキュリティにおいて使用可能な機能は以下の通りです。
- TDE
- Data Redaction
- Oracle Label Security
- Virtual Private Vault
- Database Vault
- SQL Firewall
- ファイングレイン監査
その他 FREE で利用できる機能はこちらからも確認することができます。
26ai FREE を利用できる環境
Section titled “26ai FREE を利用できる環境”26ai FREE は以下の3つのプラットフォーム形式で提供されています。
- コンテナ(docker, podman)
- VMイメージ(VM VirtualBox)
- rpmパッケージ(Oracle Linux 8,9, Windows)
各インストール手順については、こちらのドキュメントに記載がありますので、お好みの方法で環境を構築してください。
rpmでインストールする場合、OCIチュートリアルでもインストール手順が紹介されていますので、こちらも参考になります。OCIチュートリアルでの手順の場合、表領域の作成手順は不要ですのでその前の手順までを実施してください。
FREEのライセンス制限
- FREEでは処理に使われるCPUは2コアに自動的に制限されます。また、RAMは最大2GBまでとなっており、利用可能な場合でも超過することはできません。
- データの使用量は最大12GBであり、これを超えて増加すると「ORA-12954: リクエストが、最大許容データベース・サイズの12GBを超えています」というエラーになります。
- 参考:ライセンス制限
26ai FREE をインストールする
Section titled “26ai FREE をインストールする”ここでは一部の環境においてですが、26ai FREE をインストールする手順を示します。
Oracle Linux 9 でのインストール例
Section titled “Oracle Linux 9 でのインストール例”環境
- Oracle Linux 9 - x98-86
- OCI Compute Shape - VM.Standard.E5.Flex
- OCI Compute Image - Oracle-Linux-9.6-2025.11.20-0
Oracle Databaseをダウンロードするためには、まず事前に oracle ユーザーなど事前の設定が必要です。その辺りのセットアップを自動で行ってくれるパッケージとして oracle-ai-database-preinstall-26ai というものがありますので、これをまずインストールします。
あらかじめ、パッケージマネージャーで対象のパッケージがあるかを確認しておきます。
[opc@inst-db ~]$ dnf search preinstallKsplice for Oracle Linux 9 (x86_64) 66 MB/s | 16 MB 00:00...========================================== Name & Summary Matched: preinstall ==========================================oracle-ai-database-preinstall-26ai.src : Oracle AI Database Preinstallation RPMoracle-ai-database-preinstall-26ai.x86_64 : Oracle AI Database Preinstallation RPMoracle-database-preinstall-19c.src : Oracle Database Preinstallation RPMoracle-database-preinstall-19c.x86_64 : Oracle Database Preinstallation RPMoracle-database-preinstall-23ai.src : Oracle Database Preinstallation RPMoracle-database-preinstall-23ai.x86_64 : Oracle Database Preinstallation RPMRed Hatなど、別のOSを使用していてリポジトリにない場合は、yumサイトからダウンロードすることもできますのでRPMファイルを直接調達しても問題ありません。この場合、RPMファイルは以下のリンクから取得することができます。
- https://yum.oracle.com/repo/OracleLinux/OL8/appstream/x86_64/
- https://yum.oracle.com/repo/OracleLinux/OL9/appstream/x86_64/
対象の Preinstall RPM をインストールします。
sudo dnf -y install oracle-ai-database-preinstall-26aioracleユーザーやその周辺のグループが作成されたことが確認できます。
[opc@inst-db ~]$ id oracleuid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54330(racdba)具体的な変更点については /var/log/oracle-ai-database-preinstall-26ai/ 配下にあるログにて確認することができます。
$ sudo cat /var/log/oracle-ai-database-preinstall-26ai/results/orakernel.logAdding group oinstall with gid 54321Adding group dba with gid 54322Adding group oper with gid 54323Adding group backupdba with gid 54324Adding group dgdba with gid 54325Adding group kmdba with gid 54326Adding group racdba with gid 54330Adding user oracle with user id 54321, initial login group oinstall, supplementary groups oinstall,dba,oper,backupdba,dgdba,kmdba,racdba and home directory /home/oracleChanging ownership of /home/oracle to oracle:oinstallPlease set password for user - oracleuid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54330(racdba)User creation passed
Saving a copy of the initial sysctl.confVerifying kernel parameters as per Oracle recommendations...Trying to remove instances of - setting for fs.file-max isAdding fs.file-max = 6815744Trying to remove instances of - setting for kernel.sem isAdding kernel.sem = 250 32000 100 128...つづいて、26ai FREE のダウンロードページにアクセスし、該当するアーキテクチャのRPMパッケージを対象のホストにダウンロードします。
以下の実行例では wget を使用してダウンロードしています。
ダウンロードサイト:Oracle AI Database 26aiを使い始める
[opc@inst-db ~]$ wget https://download.oracle.com/otn-pub/otn_software/db-free/oracle-ai-database-free-26ai-23.26.1-1.el9.x86_64.rpm--2026-02-03 14:10:39-- https://download.oracle.com/otn-pub/otn_software/db-free/oracle-ai-database-free-26ai-23.26.1-1.el9.x86_64.rpmResolving download.oracle.com (download.oracle.com)... 23.214.109.212...oracle-ai-database-free-26ai- 100%[=================================================>] 1.39G 2.83MB/s in 8m 25s
2026-02-03 14:19:05 (2.82 MB/s) - ‘oracle-ai-database-free-26ai-23.26.1-1.el9.x86_64.rpm’ saved [1489765640/1489765640]
[opc@inst-db ~]$ ls -ltotal 1454852-rw-r--r--. 1 opc opc 1489765640 Jan 23 09:08 oracle-ai-database-free-26ai-23.26.1-1.el9.x86_64.rpmダウンロードしたのち、対象のファイルをインストールします。ファイル名は適宜それぞれのファイル名に置き換えてください。
sudo dnf -y install oracle-ai-database-free-26ai-23.26.1-1.el9.x86_64.rpmインストール後、Oracle Databaseを作成します。構成スクリプトを実行することで簡単にデータベースを構成することができます。 デフォルトでは「FREE」という名でCDBが、「FREEPDB1」という名でPDBが作成されます。
ここにおける設定は /etc/sysconfig/oracle-free–26ai.conf設定ファイルにて一部変更することができますが、ここではそのまま実行を行います。
/etc/init.d/oracle-free-26ai configure実行するとSYS、SYSTEMおよびPDBADMINのパスワードの設定が求められますので入力します。いずれのユーザーも同じパスワードが設定されます。
[opc@inst-db ~]$ sudo /etc/init.d/oracle-free-26ai configureSpecify 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 operation7% completeCopying database files29% completeCreating and starting Oracle instance30% complete...43% completeCompleting Database Creation47% complete49% complete50% completeCreating Pluggable Databases54% complete71% completeExecuting Post Configuration Actions93% completeRunning Custom Scripts100% completeDatabase creation complete. For details check the logfiles at: /opt/oracle/cfgtoollogs/dbca/FREE.Database Information:Global Database Name:FREESystem Identifier(SID):FREELook 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: inst-db/FREEPDB1 Multitenant container database: inst-db[opc@inst-db ~]$ sudo 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 assignmentLISTENER_PORT=
# Character set of the databaseCHARSET=AL32UTF8
# Database file directory# If not specified, database files are stored under Oracle base/oradataDBFILE_DEST=
# DB Domain nameDB_DOMAIN=
# Configure TDECONFIGURE_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:falseENCRYPT_TABLESPACES=
# SKIP Validations, memory, spaceSKIP_VALIDATIONS=falseOracle Databaseを作成できた後は、環境変数の設定を行います。こちらは以下を実行することで構成することができます。
# oracleユーザーで実行sudo su - oracle
export ORACLE_SID=FREEexport ORAENV_ASK=NO. /opt/oracle/product/26ai/dbhomeFree/bin/oraenv環境を整えたら、最後に環境変数 $ORACLE_HOME と lsnrctl ユーティリティにてリスナーの確認を行います。1521番ポートでリッスンしていることがわかります。
[oracle@inst-db ~]$ echo $ORACLE_HOME/opt/oracle/product/26ai/dbhomeFree
[oracle@inst-db ~]$ lsnrctl status
LSNRCTL for Linux: Version 23.26.1.0.0 - Production on 03-FEB-2026 14:52:30
Copyright (c) 1991, 2026, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=inst-db.sub01150410170.koivcntest.oraclevcn.com)(PORT=1521)))STATUS of the LISTENER------------------------Alias LISTENERVersion TNSLSNR for Linux: Version 23.26.1.0.0 - ProductionStart Date 03-FEB-2026 14:39:32Uptime 0 days 0 hr. 12 min. 57 secTrace Level offSecurity ON: Local OS AuthenticationSNMP OFFDefault Service FREEListener Parameter File /opt/oracle/product/26ai/dbhomeFree/network/admin/listener.oraListener Log File /opt/oracle/diag/tnslsnr/inst-db/listener/alert/log.xmlListening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=inst-db.sub01150410170.koivcntest.oraclevcn.com)(PORT=1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))Services Summary...Service "49ed73f154baefe2e0630a00000a3514" has 1 instance(s). Instance "FREE", status READY, has 1 handler(s) for this service...Service "FREE" has 1 instance(s). Instance "FREE", status READY, has 1 handler(s) for this service...Service "FREEXDB" has 1 instance(s). Instance "FREE", status READY, has 1 handler(s) for this service...Service "freepdb1" has 1 instance(s). Instance "FREE", status READY, has 1 handler(s) for this service...The command completed successfully環境設定のためのスクリプトは接続し直すたびに実行する必要があるため、.bashrc などに入れておくと楽です。