Install Oracle Xe | 21c On Ubuntu

sudo systemctl daemon-reload sudo systemctl enable oracle-xe-21c You now have Oracle XE 21c running on Ubuntu. While Oracle only certifies XE for Oracle Linux and RHEL, the alien method works reliably for development and testing on Ubuntu. Avoid using this in production without thorough validation.

sudo apt --fix-broken install -y Then re-run the dpkg command. Oracle XE on Ubuntu will be installed in /opt/oracle . Run the configuration script to set the password for SYS , SYSTEM , and PDBADMIN :

sudo systemctl enable oracle-xe-21c Connect as SYSTEM : install oracle xe 21c on ubuntu

If you prefer sqlplus not installed yet, install Oracle Instant Client separately, or use the SQL*Plus included in the XE installation:

[Install] WantedBy=multi-user.target

export ORACLE_HOME=/opt/oracle/product/21c/dbhomeXE export ORACLE_SID=XE export PATH=$PATH:$ORACLE_HOME/bin Apply changes:

Then:

sqlplus system@localhost:1521/XE Enter the password you set during configuration.