将Windows 10上安装的Oracle客户端连接到Virtual Box Windows 10上安装的Oracle服务器

时间:2020-05-18 16:21:51

标签: oracle virtualbox

我具有以下设置:

我的机器-具有Virual Box和Oracle 12c客户端的Windows 10 在Virtual Box上-具有Oracle 12c Server的Windows 10

我需要使用sqlplus或任何IDE从我的计算机连接到虚拟机-oracle。

我尝试了“仅主机”适配器,但无法连接。

请帮助。

谢谢。

1 个答案:

答案 0 :(得分:3)

在Windows主机上,仅主机适配器的IP地址是什么?您可以使用命令“ ipconfig”进行检查,然后查找“ VirtualBox仅主机网络”条目。

C:\Users\estevens\Documents>ipconfig

Windows IP Configuration


Ethernet adapter VirtualBox Host-Only Network:

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::e172:fa54:d3d6:9712%15
   IPv4 Address. . . . . . . . . . . : 192.168.56.1
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :

然后,需要在同一子网中为vm guest虚拟机的网络接口配置一个 固定 IP地址。在上面的示例中,主机适配器位于192.168.56.1,因此vm guest虚拟机可以是192.168.56。*中的任何其他主机(.1除外,因为它已经被使用)。通过这种配置,您可以像对待数据中心中的任何远程服务器一样对待虚拟机。

我在这里写了更多有关此的内容:https://edstevensdba.wordpress.com/2012/12/15/configure-the-virtualbox-network-2/

-纠错2020年5月19日:发现我在上述讨论中使用的IP地址之一中有错字。已更正。