I have just installed Virtualbox and executed official Oracle Image (Database App Development VM).
- I can of course open SQL developer within the guest OS and connect to DB.
- I can connect to DB from host OS with SQL Developer.
I set up the network interface to bridged and:
- I can also connect to DB from other (than host) computer within my home network.
I also have static external IP, I did the port forwarding and appropriate firewall rules on router as well as I turned of Windows Firewall on host OS. But when I try to connect from outside my local network, I get the error Oracle Network Adapter could not establish the connection - even when I try to connect from host OS using external IP.
Below I attach my Listener.ora contents. I checked that oracle listener is running. I run out of ideas, anyone can help?
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orclcdb)
(SID_NAME = orclcdb)
(ORACLE_HOME = /u01/app/oracle/product/version/db_1)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.56)(PORT = 1521))
)
)
#HOSTNAME by pluggable not working rstriction or configuration error.
DEFAULT_SERVICE_LISTENER = (orclcdb)
question from:
https://stackoverflow.com/questions/65919934/virtualbox-oracle-network-adapter-could-not-establish-the-connection 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…