【问题标题】:Connecting oracle client installed on windows 10 to Oracle server installed on Virtual Box Windows 10将安装在 Windows 10 上的 Oracle 客户端连接到安装在 Virtual Box Windows 10 上的 Oracle 服务器
【发布时间】:2020-05-18 16:21:51
【问题描述】:

我有以下设置:

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

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

我尝试过 Host Only 适配器,但无法连接。

请帮忙。

谢谢。

【问题讨论】:

  • 请详细说明哪些错误消息不起作用:从主机ping 到客人? sqlplus 从主机到来宾?来宾上的 Oracle 侦听器配置?还有什么?

标签: oracle virtualbox


【解决方案1】:

Windows 主机上的 hostonly 适配器的 IP 地址是什么?您可以使用命令“ipconfig”检查并查找条目“VirtualBox Host-Only Network”。

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 地址中有错字。已更正。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-11-08
    • 1970-01-01
    • 1970-01-01
    • 2016-02-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多