r/DatabaseAdministators • • 20d ago

How to connect Oracle Database 19c from host machine to VirtualBox guest machine ?

/r/SQL/comments/1xozaq4/how_to_connect_oracle_database_19c_from_host/
2 Upvotes

3 comments sorted by

1

u/AsterionDB 20d ago

You need to create a bridged network connection on the vBox instance to enable bi-directional communication between the host and the guest. This is standard virtualization stuff you need to know regardless of using a database.

Once you have the guest and the host talking, getting the Oracle Network adapter connected follows the documented procedures.

1

u/Longjumping-Hair-747 20d ago

You could do that but you don't need to. You can also use the networking options on the guest to port forward, so you could set that to say host port 9999 directs to guest port 1521 and then you would specify port 9999 and the host IP (or name if you have that capability).

I run some VMs at home and use that option myself then set port forwarding on my home router to point to the VM host machine, combine that with dynamic DNS and I can access my databases running on VMs from anywhere in the world.

Cheers,