Step 8: Enabling GUI Access for DBCA – X11 Forwarding
Sometimes, clicking is better than typing—especially when you're setting up a database and prefer a mouse over a terminal. If that sounds like you, let’s get DBCA (Database Configuration Assistant) running with a full graphical interface using Xming.
- Download and Install/Configure Xming.
Xming can be obtained from here, configure Xming and start it on Windows Host and make sure that Windows Host can reach out.
- Configure putty to Forward X11 session
Open new putty session and configure your host and then go to SSH in Connection Session and expand it to find X11 forwarding
Enable X11 forwarding option which will set X display location to localhost:0
Example Putty:
- Install the needed packages.
Login as root user and install the needed packages. This will pull also multiple required dependencies on Linux,
dnf config-manager --enable ol8_codeready_builder
dnf install xorg-x11-apps xorg-x11-xauth
dnf install xorg-x11-apps xorg-x11-xauth
- Configure Linux server to accept X11 sessions.
Login as opc user:
xauth list
- Allow login for the
oracle
user in SSH config
Switch to the oracle user:
touch /home/oracle/.Xauthority
Add entire output using “xauth add” command:
xauth add oracle-database-23ai/unix:10 MIT-MAGIC-COOKIE-1 ae93e6184f719ca01816681aad131851
Allow login for the oracle user in SSH config
touch /home/oracle/.Xauthority
export DISPLAY=localhost:10
If everything is configured properly, the clock image will be displayed.