oracle 23ai install linux
oracle 23ai install linux
Oracle Database 23ai is the next long-term support release of Oracle Database. It
includes over 300 new features with a focus on artificial intelligence (AI) and developer
productivity.
Oracle Database 23ai also uses AI to optimize many of the key database functions to
make more accurate estimates on timings and resource costings.
Oracle Database Free is a free version of the world’s most advanced database. Oracle
Database Free is easy to install, easy to manage, and easy to develop with. With Oracle
Database Free, you use an intuitive, browser-based interface to administer the database,
create tables, views, and other database objects, import, export, and view table data, run
queries and SQL scripts, and generate reports.
System Requirements:
Requirement Value
For Oracle Database Free, Oracle recommends a minimum swap space of 2 GB or twice
the size of RAM, whichever is lesser.
Page | 2
Server Component Kernel Parameter Requirements:
The Oracle Database Preinstallation RPM checks your system for kernel parameter
settings. If the kernel parameter values of your system are less than the values listed in
this table, then the Oracle Database Preinstallation RPM sets the recommended
minimum kernel parameter values for you.
semmsl 250
semmns 32000
semopm 100
semmni 128
shmmax 4398046511104
shmmni 4096
shmall 1073741824
file-max 6815744
aio-max-nr 1048576
ip_local_port_range 9000–65500
panic_on_oops 1
rmem_default 262144
rmem_max 4194304
wmem_default 262144
wmem_max 1048576
The maximum amount of RAM for Oracle Database Free cannot exceed 2 GB, even if
more is available.
The maximum amount of user data in Oracle Database Free cannot exceed 12 GB. If the
user data grows beyond this limit, then the system displays an ORA-12954: The request
exceeds the maximum allowed database size of 12 GB error.
Page | 3
Check current OS Version :
Go to the
oracle yum site: https://yum.oracle.com/repo/OracleLinux/OL8/appstream/x86_64/
## This command will install and enable the developer option for
Oracle Linux 8.
================================================================
Package Architecture Version Repository
Size
================================================================
Installing:
oraclelinux-developer-release-el8 x86_64 1.0-7.el8 ol8_baseos_latest
16 k
Transaction Summary
================================================================
Install 1 Package
Total download size: 16 k
Installed size: 18 k
Downloading Packages:
oraclelinux-developer-release-el8-1.0-7.el8.x86_64.rpm 37 kB/s | 16 kB
00:00
Page | 4
-----------------------------------------------------------------------------
Total 36 kB/s | 16 kB
00:00
Oracle Linux 8 BaseOS Latest (x86_64) 2.2 MB/s | 3.1 kB
00:00
Running transaction
Preparing :
1/1
Installing : oraclelinux-developer-release-el8-1.0-7.el8.x86_64
1/1
Verifying : oraclelinux-developer-release-el8-1.0-7.el8.x86_64
1/1
Installed:
oraclelinux-developer-release-el8-1.0-7.el8.x86_64
Complete!
Last metadata expiration check: 0:04:39 ago on Wed 14 Aug 2024 04:35:26 PM
IST.
Dependencies resolved.
=============================================================================
Package Architecture Version
Repository Size
=============================================================================
Installing:
oracle-database-preinstall-23ai x86_64 1.0-2.el8
ol8_appstream 30 k
Installing dependencies:
compat-openssl10 x86_64 1:1.0.2o-4.el8_6
ol8_appstream 1.1 M
ksh x86_64 20120801-267.0.1.el8
ol8_appstream 923 k
Page | 5
Transaction Summary
=============================================================================
Install 3 Packages
Running transaction
Preparing : 1/1
Installing : ksh-20120801-267.0.1.el8.x86_64 1/3
Running scriptlet: ksh-20120801-267.0.1.el8.x86_64 1/3
Installing : compat-openssl10-1:1.0.2o-4.el8_6.x86_64 2/3
Running scriptlet: compat-openssl10-1:1.0.2o-4.el8_6.x86_64 2/3
Installing : oracle-database-preinstall-23ai-1.0-2.el8.x86_64 3/3
Running scriptlet: oracle-database-preinstall-23ai-1.0-2.el8.x86_64 3/3
Verifying : compat-openssl10-1:1.0.2o-4.el8_6.x86_64 1/3
Verifying : ksh-20120801-267.0.1.el8.x86_64 2/3
Verifying : oracle-database-preinstall-23ai-1.0-2.el8.x86_64 3/3
Installed:
compat-openssl10-1:1.0.2o-4.el8_6.x86_64 ksh-20120801-
267.0.1.el8.x86_64 oracle-database-preinstall-23ai-1.0-2.el8.x86_64
Complete!
Last metadata expiration check: 0:50:41 ago on Wed 14 Aug 2024 04:35:26 PM
IST.
Dependencies resolved.
======================================================================
Package Architecture Version Repository Size
======================================================================
Installing:
oracle-database-free-23ai x86_64 1.0-1 @commandline 1.3 G
Transaction Summary
======================================================================
Install 1 Package
Page | 6
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: oracle-database-free-23ai-1.0-1.x86_64 1/1
Installing : oracle-database-free-23ai-1.0-1.x86_64 1/1
Running scriptlet: oracle-database-free-23ai-1.0-1.x86_64 1/1
Installed:
oracle-database-free-23ai-1.0-1.x86_64
Complete!
fs.file-max = 6815744
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
kernel.panic_on_oops = 1
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
net.ipv4.conf.all.rp_filter = 2
net.ipv4.conf.default.rp_filter = 2
fs.aio-max-nr = 1048576
kernel.panic = 10
Page | 7
[root@localhost asrblg]# cat /etc/passwd | grep -i oracle
oracle:x:54321:54321::/home/oracle:/bin/bash
[root@localhost]# cd /opt/oracle/product/23ai/dbhomeFree
[root@localhost dbhomeFree]# ll
total 80
drwxr-xr-x. 2 oracle oinstall 102 Aug 14 17:37 addnode
drwxr-xr-x. 10 oracle oinstall 107 Aug 14 17:34 assistants
drwxr-xr-x. 2 oracle oinstall 8192 Aug 14 17:37 bin
drwxrwx---. 3 oracle oinstall 17 Aug 14 17:38 cfgtoollogs
drwxr-xr-x. 4 oracle oinstall 87 Aug 14 17:37 clone
drwxr-xr-x. 6 oracle oinstall 55 Aug 14 17:35 crs
drwxr-xr-x. 4 oracle oinstall 31 Aug 14 17:35 crypto
drwxr-xr-x. 3 oracle oinstall 18 Aug 14 17:35 css
drwxr-xr-x. 11 oracle oinstall 119 Aug 14 17:35 ctx
drwxr-xr-x. 7 oracle oinstall 71 Aug 14 17:35 cv
drwxr-xr-x. 3 oracle oinstall 20 Aug 14 17:35 data
drwxr-xr-x. 2 oracle oinstall 22 Aug 14 17:37 dbs
drwxr-xr-x. 5 oracle oinstall 173 Aug 14 17:37 deinstall
drwxr-xr-x. 3 oracle oinstall 20 Aug 14 17:35 demo
drwxr-xr-x. 3 oracle oinstall 20 Aug 14 17:35 diagnostics
drwxr-xr-x. 3 oracle oinstall 19 Aug 14 17:35 dv
-rw-r--r--. 1 oracle oinstall 852 Aug 18 2015 env.ora
drwxr-xr-x. 3 oracle oinstall 18 Aug 14 17:35 has
drwxr-xr-x. 5 oracle oinstall 41 Aug 14 17:35 hs
drwxrwx---. 11 oracle oinstall 4096 Aug 14 17:38 install
drwxr-xr-x. 2 oracle oinstall 29 Aug 14 17:37 instantclient
drwxr-x---. 12 oracle oinstall 4096 Aug 14 17:37 inventory
drwxr-xr-x. 9 oracle oinstall 94 Aug 14 17:35 javavm
drwxr-xr-x. 3 oracle oinstall 17 Aug 14 17:35 jdbc
drwxr-xr-x. 6 oracle oinstall 68 Aug 14 17:37 jdk
drwxr-xr-x. 2 oracle oinstall 4096 Aug 14 17:37 jlib
drwxr-xr-x. 10 oracle oinstall 112 Aug 14 17:35 ldap
drwxr-xr-x. 3 oracle oinstall 12288 Aug 14 17:37 lib
-rwxrwxr-x. 1 oracle oinstall 5780 Jul 19 04:46 LICENSE
drwxrwxr-x. 2 oracle oinstall 6 Jul 19 04:46 log
drwxr-xr-x. 5 oracle oinstall 42 Aug 14 17:36 md
drwxr-xr-x. 4 oracle oinstall 31 Aug 14 17:36 mgw
drwxr-xr-x. 10 oracle oinstall 106 Aug 14 17:36 network
drwxr-xr-x. 5 oracle oinstall 46 Aug 14 17:36 nls
drwxr-xr-x. 8 oracle oinstall 133 Aug 14 17:37 odbc
drwxr-xr-x. 5 oracle oinstall 42 Aug 14 17:36 olap
Page | 8
drwxr-xr-x. 4 oracle oinstall 35 Aug 14 17:36 oml4py
drwxr-xr-x. 13 oracle oinstall 4096 Aug 14 17:37 OPatch
drwxr-xr-x. 7 oracle oinstall 65 Aug 14 17:36 opmn
drwxr-xr-x. 5 oracle oinstall 45 Aug 14 17:36 oracore
-rw-r-----. 1 oracle oinstall 130 Aug 14 17:38 oraInst.loc
drwxr-xr-x. 4 oracle oinstall 29 Aug 14 17:36 ord
drwxr-xr-x. 3 oracle oinstall 19 Aug 14 17:36 oss
drwxr-xr-x. 8 oracle oinstall 4096 Aug 14 17:37 oui
drwxr-xr-x. 5 oracle oinstall 39 Aug 14 17:36 perl
drwxr-xr-x. 6 oracle oinstall 106 Aug 14 17:37 plsql
drwxr-xr-x. 7 oracle oinstall 88 Aug 14 17:37 precomp
drwxr-xr-x. 5 oracle oinstall 39 Aug 14 17:36 python
drwxr-xr-x. 2 oracle oinstall 26 Aug 14 17:37 QOpatch
drwxr-xr-x. 5 oracle oinstall 52 Aug 14 17:34 R
drwxr-xr-x. 4 oracle oinstall 29 Aug 14 17:36 racg
drwxr-xr-x. 13 oracle oinstall 140 Aug 14 17:37 rdbms
drwxr-xr-x. 3 oracle oinstall 21 Aug 14 17:37 relnotes
-rwx------. 1 oracle oinstall 525 Jul 19 04:46 root.sh
-rwxr-x---. 1 oracle oinstall 2957 Jun 7 14:40 runInstaller
-rw-r--r--. 1 oracle oinstall 2927 Jul 20 2020 schagent.conf
drwxr-xr-x. 5 oracle oinstall 119 Aug 14 17:37 sdk
drwxr-xr-x. 3 oracle oinstall 18 Aug 14 17:37 slax
drwxr-xr-x. 4 oracle oinstall 28 Aug 14 17:37 sqlcl
drwxr-xr-x. 3 oracle oinstall 17 Aug 14 17:37 sqlj
drwxr-xr-x. 3 oracle oinstall 4096 Aug 14 17:37 sqlpatch
drwxr-xr-x. 6 oracle oinstall 53 Aug 14 17:37 sqlplus
drwxr-xr-x. 6 oracle oinstall 54 Aug 14 17:37 srvm
drwxr-xr-x. 3 oracle oinstall 17 Aug 14 17:37 ucp
drwxr-xr-x. 4 oracle oinstall 31 Aug 14 17:37 usm
drwxr-xr-x. 2 oracle oinstall 33 Aug 14 17:37 utl
drwxr-x---. 7 oracle oinstall 69 Aug 14 17:37 xdk
The configuration script creates a container database (FREE) with one pluggable
database (FREEPDB1) and configures the listener at the default port (1521).
Perform the following steps to install and configure Oracle Database Free using RPM
packages.
Before you install Oracle Database 23ai Free, uninstall any existing Oracle Database XE
or Oracle Database Free or database with the SID XE or FREE from the target system.
Oracle Database Free installation uses approximately 9 GB disk space under /opt.
You can modify the configuration parameters by editing the /etc/init.d/oracle-free-23ai file.
Page | 9
[root@localhost dbhomeFree]# /etc/init.d/oracle-free-23ai configure
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 Information:
Global Database Name:FREE
System Identifier(SID):FREE
Look at the log file "/opt/oracle/cfgtoollogs/dbca/FREE/FREE.log" for
further details.
Page | 10
File Name and Location Purpose
Now you can validate by connecting locally to 23ai Database using sqlplus
prompt :
When you install Oracle Database Free, the oracle user is granted SYSDBA privileges.
You can use the following commands to connect to the database.
Page | 11
SQL> show pdbs;
The Net Services database listener for Oracle Database Free allows you to connect to the
database over TCP/IP from the same machine or other machines on the network.
LSNRCTL for Linux: Version 23.0.0.0.0 - for Oracle Cloud and Engineered
Systems on 14-AUG-2024 19:48:37
Connecting to
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 23.0.0.0.0 - for Oracle
Cloud and Engineered Systems
Start Date 14-AUG-2024 18:50:40
Uptime 0 days 0 hr. 57 min. 57 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service FREE
Listener Parameter
File /opt/oracle/product/23ai/dbhomeFree/network/admin/listener.ora
Listener Log
File /opt/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "1fa5c10c16793b00e065000000000001" 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
Page | 12
Shutting Down and Starting Up Using the Configuration Services Script:
After you configure the listener, you can run the Configuration Services Script to check
the status of the database and listener.
Page | 13