Install Oracle Xe 21c On Ubuntu Jun 2026
Installing Oracle Database 21c Express Edition (XE) on Ubuntu requires a specialized approach because Oracle officially supports only Red Hat-based distributions like and RHEL . To bridge this gap, you must use a package conversion tool called alien to transform the official Oracle .rpm file into a Debian-compatible .deb package. Prerequisites and System Requirements
Oracle requires specific kernel parameters to function correctly. Create a new configuration file:
Login with username SYS and the password you set, checking the "AS SYSDBA" checkbox.
oracle soft nofile 1024 oracle hard nofile 65536 oracle soft nproc 16384 oracle hard nproc 16384 oracle soft stack 10240 oracle hard stack 32768 install oracle xe 21c on ubuntu
Oracle XE on Ubuntu will be installed in /opt/oracle . Run the configuration script to set the password for SYS , SYSTEM , and PDBADMIN :
. While older versions had native Debian support, modern versions like 21c generally require a Docker container Virtual Machine for a stable experience on Ubuntu. Oracle Help Center Recommended Installation Methods Docker (Easiest & Most Stable)
If xeconf fails, fall back to using sqlplus as sysdba : Installing Oracle Database 21c Express Edition (XE) on
Replace YourStrongPassword with a secure password.
Before you begin, ensure your system meets the minimum requirements:
cat /sys/kernel/mm/transparent_hugepage/enabled Create a new configuration file: Login with username
wget https://download.oracle.com/otn-pub/otn_software/db-express/oracle-database-xe-21c-1.0-1.ol8.x86_64.rpm
You must download the software from the Oracle website. It requires an Oracle account (free to register).
Oracle Database 21c Express Edition (XE) is the free, entry-level edition of Oracle's flagship database. It’s perfect for development, learning, and small production workloads (limited to 12GB of user data and 2 CPU threads). While Oracle officially supports Red Hat and SUSE Linux, the developer community frequently uses Ubuntu. This guide will walk you through a successful installation on Ubuntu 22.04 LTS (Jammy) or 20.04 LTS (Focal).