Linux – How to connect to Oracle database on VM1 from host with 11gClient

connectivitylinuxoraclevmware

I have a VM running Oracle Linux 6.5, I loaded Oracle server x64bit and created a database. The database functions fine and the listener is up and running for the database. I want to connect to the server (VM1) using SQL Developer from host. But I have no idea how to do this.

Can anyone point me to DETAILED instructions on the easiest way to accomplish this?

Best Answer

It depends on the VM software you are using. In case of VirtualBox you have to check what type of connection you set (NAT, bridge, etc); if using NAT you need to enable a port-forward to the listener port: e.g. TCP 21521 on host, TCP 1521 on VM).

Also check if iptables firewall is enabled on your VM.