Oracle Database 21c Express Edition Silent Install (How-To Guide)

Oracle Database Express Edition (Oracle Database XE) is a free, smaller-footprint edition of Oracle Database. This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of Oracle Database 21c Express Edition from the command line using the EXE installer.

How to Install Oracle Database 21c Express Edition Silently

Oracle Database 21c Express Edition Silent Install (EXE)

  1. Navigate to: https://www.oracle.com/database/technologies/xe-downloads.html
  2. Download the OracleXE213_Win64.zip to a folder created at (C:\Downloads)
  3. Extract the OracleXE213_Win64.zip using 7-zip to C:\Downloads\OracleXE21c
  4. Navigate to the C:\Downloads\OracleXE21c folder
  5. Open the XEInstall.rsp with Notepad or your favorite text editor
  6. Update the INSTALLDIR and any other values based on your preferences
  7. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  8. Navigate to the C:\Downloads\OracleXE21c folder
  9. Enter the following command:
setup.exe /S /v"RSP_FILE=.\XEInstall.rsp /qn"
Note: Command must be run in User Context. Running as SYSTEM account will fail.

After a few moments you will find Oracle Database 21c Express Edition entries in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.

Software Title:Oracle Database 21c Express Edition
Vendor:Oracle Corporation
Architecture:x64
Installer Type:EXE
Silent Install Switch:setup.exe /S /v"RSP_FILE=.\XEInstall.rsp /qn"
Silent Uninstall Switch:MsiExec.exe /x {C220B7FD-3095-47FC-A0C0-AE49DE6E320A} /qn
Download Link:Oracle Database 21c Express Edition Download
PowerShell Script:Oracle Database 21c Express Edition | PowerShell Script
Detection Script:Oracle Database 21c Express Edition | Custom Detection Script

The information above provides a quick overview of the software title, vendor, silent install, and silent uninstall switches. The download links provided take you directly to the vendors website. Continue reading if you are interested in additional details and configurations.


Additional Configurations

Create a Oracle Database 21c Express Edition Installation Log File

The Oracle Database 21c Express Edition installer offers the option to generate a log file during installation to assist with troubleshooting should any problems arise. You can use the following command to create a verbose log file with details about the installation.

Oracle Database 21c Express Edition Silent Install (MSI) with Logging

setup.exe /S /v"RSP_FILE=.\XEInstall.rsp /qn /L*v C:\Windows\Temp\Oracle21cXE-Install.log"

Response File Parameters Example (XEInstall.rsp)

#Install Directory location
INSTALLDIR=C:\OracleXE\product\21c\
#Database password
PASSWORD=passwordvalue
#If listener port is set to 0, available port will be allocated starting from 1521
LISTENER_PORT=0
#If EM express port is set to 0, available port will be used starting from 5550
EMEXPRESS_PORT=0
#Specify the character set of the database
CHAR_SET=AL32UTF8
#Specify the database domain name for the database unique name specification
DB_DOMAIN=

How to Uninstall Oracle Database 21c Express Edition Silently

Check out the following posts for a scripted solution:

Oracle Database 21c Express Edition Install and Uninstall (PowerShell)
Oracle Database 21c Express Edition Silent Uninstall (PowerShell)
  1. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  2. Enter the following command:

Oracle Database 21c Express Edition Silent Uninstall

MsiExec.exe /x {C220B7FD-3095-47FC-A0C0-AE49DE6E320A} /qn

Always make sure to test everything in a development environment prior to implementing anything into production. The information in this article is provided “As Is” without warranty of any kind.

Jason Bergner

I am an accomplished Software Engineer at Patch My PC, leveraging more than 18 years of hands-on experience in Configuration Manager administration and application packaging. I am driven by a genuine passion for solving complex problems and consistently strive to discover innovative and effective solutions. Sharing my extensive knowledge of application deployments is a true joy for me, and I am honored to contribute to the community here at Silent Install HQ.

Recent Posts