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 MobaXterm.
No extra fuss with Xming or PuTTY—MobaXterm does it all, like a well-trained cat fetching socks (okay, maybe not that magical, but close).
InstallLogin X11as onroot Linux
1)user Enableand the CodeReady-builder repository
Installinstall the needed packages. This will pull also multiple required dependencies:
Install GUI packagesdependencies on yourLinux, Linux
dnf serverconfig-manager --enable ol8_codeready_builder
dnf install xorg-x11-apps xorg-x11-xauth
dnf install xorg-x11-apps xorg-x11-xauth
Login as opc user:
type: xauth list
Switch to the oracle user:
Add entire output using “xauth add” command:
Install and Launch MobaXterm
Download from:🔗https://mobaxterm.mobatek.net/download-home-edition.htmlRun MobaXterm (no installation needed for the portable edition)In the toolbar, click“Session”→“SSH”
Configure SSH with X11 Forwarding
In the session settings:
Remote host: your server’s IP or hostnameCheck“Specify username”and enter your Linux username (e.g.,oracleoryouruser)UnderX11 Forwarding, make sure“X11-Forwarding”ischecked
Then click OK and connect. MobaXterm automatically handles the X server part—no need for a separate tool like Xming!
Steps to Enable Direct SSH Login for the oracle User
Set a password for theoracleuser.
sudo -s
passwd oracle
Allow login for the oracle
user in SSH config
OpenSwitch to the oracle user:
Add entire output using “xauth add” command:
Allow login for the oracle
user in SSH config file:
/etc/ssh/sshd_config
AllowUsers oracle opc, Check or add the following line (if it's missing):
Check or add the following line (if it's missing):
Check or add the following line (if it's missing):
AllowUsers oracle opc
If AllowUsers is already set but does not include oracle, add it.
Also make sure these options are set (or uncommented):
PermitRootLogin no
PasswordAuthentication yes
export DISPLAY=localhost:10