CentOS Stream 9

Oracle Database 26ai : Install from RPM Package2025/12/04

 

Install Oracle Database 26ai from RPM Package.

[1] Install an RPM package for Pre-Installation first.
[root@dlp ~]#
dnf -y install https://yum.oracle.com/repo/OracleLinux/OL9/appstream/x86_64/getPackage/oracle-ai-database-preinstall-26ai-1.0-1.el9.x86_64.rpm

[2] Install Oracle Database 26ai.
[root@dlp ~]#
dnf -y install https://download.oracle.com/otn-pub/otn_software/db-free/oracle-ai-database-free-26ai-23.26.0-1.el9.x86_64.rpm
[root@dlp ~]#
vi /etc/sysconfig/oracle-free-26ai.conf
# line 5 : set Listener port
LISTENER_PORT=1521

# line 15 : set DB Domain name
DB_DOMAIN=srv.world

# EM_EXPRESS_PORT: Oracle EM Express listener
# listening port for Enterprise Manager
EM_EXPRESS_PORT=5500

# create sample Database [ORCLCDB]

[root@dlp ~]#
/etc/init.d/oracle-free-26ai configure

Oracle Net Listener configured.
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:   # set admin 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.srv.world
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: dlp.srv.world/FREEPDB1
     Multitenant container database: dlp.srv.world
[3] Set environment variables for Oracle user.
[oracle@dlp ~]$
vi ~/.bash_profile
# add to last line
umask 022
export ORACLE_SID=FREE
export ORACLE_BASE=/opt/oracle/oradata
export ORACLE_HOME=/opt/oracle/product/26ai/dbhomeFree
export PATH=$PATH:$ORACLE_HOME/bin 

[oracle@dlp ~]$
source ~/.bash_profile
# verify connection

[oracle@dlp ~]$
sqlplus / as sysdba


SQL*Plus: Release 23.26.0.0.0 - Production on Thu Dec 4 13:39: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 instance_name, host_name, version, startup_time from v$instance; 

INSTANCE_NAME
----------------
HOST_NAME
----------------------------------------------------------------
VERSION           STARTUP_T
----------------- ---------
FREE
dlp.srv.world
23.0.0.0.0        04-DEC-25

SQL> exit 
Disconnected from Oracle AI Database 26ai Free Release 23.26.0.0.0 - Develop, Learn, and Run for Free
Version 23.26.0.0.0
[4] The listener will listen on the configured port.
[oracle@dlp ~]$
ss -napt | grep 1521

ESTAB  0      0               10.0.0.30:49592          10.0.0.30:1521  users:(("ora_lreg_free",pid=11027,fd=9))
LISTEN 0      1024                    *:1521                   *:*     users:(("tnslsnr",pid=8966,fd=9))
ESTAB  0      0      [::ffff:10.0.0.30]:1521  [::ffff:10.0.0.30]:49592 users:(("tnslsnr",pid=8966,fd=14))

[oracle@dlp ~]$
tnsping localhost


TNS Ping Utility for Linux: Version 23.26.0.0.0 - Production on 04-DEC-2025 13:43:30

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

Used parameter files:
/opt/oracle/product/26ai/dbhomeFree/network/admin/sqlnet.ora

Used EZCONNECT adapter to resolve the alias
Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
OK (0 msec)
[5] Create Systemd setting file.
[root@dlp ~]#
vi /etc/oratab
# last line : change

FREE:/opt/oracle/product/26ai/dbhomeFree:
Y
[root@dlp ~]#
vi /etc/sysconfig/FREE.oracledb
# create new : define environment variables
ORACLE_BASE=/opt/oracle/oradata
ORACLE_HOME=/opt/oracle/product/26ai/dbhomeFree
ORACLE_SID=FREE

# configure database service

[root@dlp ~]#
vi /usr/lib/systemd/system/oracle-free-26ai.service
# this is an example, modify for free

[Unit]
Description=Oracle Database service
After=network.target

[Service]
Type=forking
EnvironmentFile=/etc/sysconfig/FREE.oracledb
ExecStart=/opt/oracle/product/26ai/dbhomeFree/bin/dbstart $ORACLE_HOME
ExecStop=/opt/oracle/product/26ai/dbhomeFree/bin/dbshut $ORACLE_HOME
User=oracle

[Install]
WantedBy=multi-user.target

[root@dlp ~]#
systemctl daemon-reload

[root@dlp ~]#
systemctl enable oracle-free-26ai.service

Matched Content