Oracle SQL Developer: Test failed: The Network Adapter could not establish the connection?

后端 未结 2 1918
独厮守ぢ
独厮守ぢ 2021-01-27 04:46

I\'m in real need of a help here. I setup a Oracle Database server on a VirtualBox VM and until yesterday everything seemed to work just fine. Today when I initiated the databas

相关标签:
2条回答
  • 2021-01-27 05:31

    I used to fight with VM networking settings such that my host could 'see' my vm, and vice versa.

    I stopped worrying about this once i learned about port forwards.

    You can simply tell VirtualBox to take traffic from your local port, say 1521, and forward that to the VM, say also 1521.

    So when connecting to the VM from my host in SQL Developer, I can go to localhost:1521, and have my connection traffic go to the Oracle Listener on my Linux VBox image, listening on port 1521

    Click on Port Forwarding

    Add an entry for TCP 1521 and 1521

    Then, in SQL Developer you can simply do this to connect to your DB on the VM

    0 讨论(0)
  • 2021-01-27 05:46

    I'm glad you got it working, but as an alternative, let me say that I'm not a big fan of port forwarding for this issue, nor am I a fan of using the bridged adapter. I've created scores of VMs under VBox, both on Windows and on Ubuntu hosts. In every case I create HOSTONLY adapter, and configure it with a fixed IP address. I then add an entry for the vm in the host's 'hosts' file. See more detail at https://edstevensdba.wordpress.com/2012/12/15/configure-the-virtualbox-network-2/

    0 讨论(0)
提交回复
热议问题