Can't connect Oracle on Fedora Virtual Box
Hi to all, im a newbie in this of linux. I want to have a linux virtualbox with DB servers like Oracle, MySQL, PostgreSQL and so on, so i installed Fedora in virtual machine of virtualbox. In the network configuration i set the Bridge Connection to enable Fedora to get IP from DHCP and it works fine. After that i've installed Oracle 10G Express and it works fine, i can connect without problems to oracle admin web application from Fedora. Previously i checked if port 1521 is open on fedora so when Oracle is running i use nmap and i get this:
Code:
nmap locahost Code:
Error: Excepción de E/S: The Network Adapter could not establish the connection Code:
telnet ip port Code:
aniceto@mypc:~/apps/sqldeveloper$ telnet 192.168.1.4 1521 Code:
aniceto@mypc:~/apps/sqldeveloper$ netstat -nr Code:
aniceto@mypc:~/apps/sqldeveloper$ traceroute 192.168.1.4 |
Can you post the output of 'netstat -tnlp' from the vm and also the content of your listener.ora file ?
thanks |
Thanks for answer kbp, this is the output:
Code:
[root@server ~]# netstat -tnlp Code:
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 1087/tnslsnr About the listener.ora file, here is it (also tnsnames.ora): Code:
# listener.ora Network Configuration File: |
Does sqlplus connect ok from 'server' to itself ? ... also, just to confirm can you post the output of 'iptables -L' from host and vm ?
|
Well, this is the output from my host machine (Ubuntu) of iptables -L:
Code:
oskar@ubuntupc:~$ sudo iptables -L Code:
[root@server Desktop]# iptables -L Code:
[root@server server]# sqlplus Thanks for answer |
It looks like iptables on the vm will be blocking access to the database, you'll need to permit port 1521
|
Ok, i'm going to try tonight. I only have to modify iptables in vm or also i need to do the same on host machine?
|
Only in the vm, the pc's iptables rule list is empty with an accept policy so it won't block anything
cheers |
All times are GMT -5. The time now is 12:59 AM. |