S
S
Shurik2020-05-07 01:08:41
Oracle
Shurik, 2020-05-07 01:08:41

How to connect to oracle db on virtual OS from main?

Hello. I have an operating system running on virtualbox. In it it was necessary to work with the oracle database. In order not to fool around with its installation, I launched it in a container. Everything started up fine. But in order to work with it on this guest OS, I cannot install a client (for example, sqldeveloper - some problems with java).
Therefore, I decided to try to connect to oracle from the main system, where there is already an installed client for the oracle database.
Is it even possible to do this? From the point of view of network interaction between the main OS, the virtual machine and docker in it?
So far, I have tried to find out the ip in the guest OS, and when setting up the connection in the client, I specified this IP in the host field. Didn't connect. Error:
I/O Error: The Network Adapter could not establish the connection
The Network Adapter could not establish the connection
The Network Adapter could not establish the connection
Connection refused, socket connect lapse 0 ms. /172.17.0.1 1521 0 1 true
Connection refused, socket connect lapse 0 ms. /172.17.0.1 1521 0 1 true
Connection refused
Connection refused

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dim Boy, 2020-05-07
@svisch

so you need to do port forwarding from virtualbox

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question