Linux Oracle Database Configuration Assistant (DBCA) Won't Start
search cancel

Linux Oracle Database Configuration Assistant (DBCA) Won't Start

book

Article ID: 173478

calendar_today

Updated On:

Products

Data Loss Prevention Enforce

Issue/Introduction

Oracle Database Configuration Assistant (DBCA) will not start from the terminal.

Invalid MIT-MAGIC-COOKIE-1 keyException in thread "main" java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit

Invalid MIT-MAGIC-COOKIE-1 keyError: null

Oracle Net Services configuration failed. The exit code is 1

Environment

Red Hat 7+

Oracle 19c

Cause

Three possibilities:

  1. X Window system is not installed
  2. DISPLAY variable is not set
  3. The oracle user has not been added to the Access Control list

Resolution

X Window system is not installed

  1. Confirm the xorg-x11-apps.x86_64 package is installed

DISPLAY variable is not set

If you connect to the server remotely, you need a terminal emulator. You also need to set the location where the GUI tools can display their output; you use the export display command for that. Run the following in the terminal:

  1. su -l oracle
  2. export DISPLAY=ip_address:display_number

The oracle user has not been added to the Access Control list

The oracle user must be allowed to run binaries that open GUIs, such as Oracle installation and Oracle Database Configuration Assistant (DBCA). Run the following in the terminal:

  1. su -l root
  2. xhost +SI:localuser:oracle

 

After completing the above verifications, log in to the oracle user and launch the Oracle Database Configuration Assistant (DBCA):

  1. su -l oracle
  2. $ORACLE_HOME/bin/netca