This guide summarizes the essential steps to prepare an Oracle Linux 8.8 virtual machine on VirtualBox for installing Oracle Database 19c.
oracle
UserAfter the Linux installation, create a dedicated OS user oracle
and mark him as administrator. This is equivalent to running the following command:
useradd -m -g oinstall -G dba,oper oracle
passwd oracle
usermod -aG wheel oracle
By adding it to the wheel
group, the user can act as an administrator using sudo
.
Assign a clear hostname to make the VM easier to identify:
sudo hostnamectl set-hostname OracleLinux-19c
Verify with:
hostnamectl
Networking preparation includes three steps:
By default, VirtualBox uses NAT networking, which restricts access to the VM. This change must be done while the VM is powered off.
Switch the adapter to Bridged Mode, mapping it to your host machine’s physical network card. This allows direct access from the host and other devices on the LAN.
Oracle clients need a consistent address. Use nmcli
(the NetworkManager command‑line tool) to configure a static IP:
nmcli con modify "static-enp0s3" ipv4.method manual ipv4.addresses 192.168.1.99/24 ipv4.gateway 192.168.1.1 ipv4.dns "192.168.1.1 8.8.8.8" connection.autoconnect yes
nmcli con up "static-enp0s3"
Verify the configuration:
ip addr show enp0s3
Expected result:
inet 192.168.1.99/24 scope global enp0s3
On the host machine, you can add an entry to the hosts
file for easier name resolution:
192.168.1.99 oraclelinux-19c
ping 8.8.8.8
ping google.com
ping 192.168.1.99
oracledb19.local
.To allow file transfer (SCP, WinSCP) and remote access using PuTTY, ensure the SSH service is installed and running:
sudo dnf install -y openssh-server
sudo systemctl enable sshd
sudo systemctl start sshd
Verify the service:
systemctl status sshd
Once enabled, you can connect to the VM using its IP address with any SSH client.
From the host, try logging in:
ssh oracle@192.168.1.99
If successful, test file transfer with scp
:
scp testfile.txt oracle@192.168.1.99:/home/oracle/
Confirm on the VM that the file arrived in /home/oracle/
.
Your Oracle Linux VM is now:
oracle
userThe environment is ready for the next stage: downloading and installing Oracle Database 19c.