如何从主机访问VirtualBox中的Oracle DB(Windows) [英] How to access Oracle DB in VirtualBox from Host (windows)

查看:205
本文介绍了如何从主机访问VirtualBox中的Oracle DB(Windows)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用Oracle VM安装了VirtualBox.

I installed VirtualBox with a Oracle VM.

现在,我只是尝试从主机环境访问VM的Oracle数据库,但是它不起作用.

Now I simply try to access the Oracle Database of the VM from the host environment, but it doesn't work.

主机上的ipconfig显示一个IP号,但是当我尝试打开它(端口80)时,我得到了主机系统的本地主机的内容,而不是VirtualBox中服务器的内容.

ipconfig on my host shows an IP number, but when I try to open this (Port 80), i get the content of localhost of the host system instead of the content of the server in the VirtualBox.

哪个是正确的网络设置?

Which is the proper network setting ?

推荐答案

我通常会进行桥接连接,因此vm将从路由器的dhcp中获取一个IP地址.如果该选项不可用,则另一个选择是采用端口转发,即在主机上分配一个未使用的端口以转发到vm上的端口.虚拟盒子手册在这两个选项上都有很多有用的信息.让我们知道您是否需要其他信息或示例.

I usually do a bridged connection so the vm will pick up an ip address from my router's dhcp; if that option is not available, your other option is to employ port forwarding where you assign an unused port on the host machine to forward to the port on the vm. The virtual box manual has a lot of useful info on both of these options. Let us know if you need additional info or examples.

这篇关于如何从主机访问VirtualBox中的Oracle DB(Windows)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆