Monday, 29 August 2016

How to connect to Oracle database that resides in virtual machine (Virtualbox):

How to connect to Oracle database that resides in virtual machine (Virtualbox):
  • First From file menu of virtualbox select Preferences
  • Then in network section select "host-only networks" tab. Here you must have "Virtualbox host-only Ethernet adapter". If not, create one. Double click on it to configure network address. For example you can set on: 192.168.1.100
  • Now select the virtual machine that contains Oracle DB then select "Settings" to configure it. From network section choose  "host-only adapter" ( if you want the database to be used by others on network choose "bridged adapter")
  • Now start the virtual machine that contains Oracle DB. Wait until starts up and network icon appears.
  • Double click network icon and set an IP address in the same domain. (For this case some IP like 192.168.1.101 or 192.168.1.115). This is important to give an address in the same domain specially in case of bridge mode that address dynamically set by network.
  • Choose "net manager" from Oracle administration.

  • In the opened box set host address to the one you have chosen for guest machine (192.168.1.101 or 192.168.1.115)



  • Restart the virtual machine. It's done


No comments:

Post a Comment