Oracle SQL Developer: Failure - Test failed: The Network Adapter could not establish the connection?

后端 未结 10 1763
孤城傲影
孤城傲影 2020-12-09 04:52

Problem

Please note that I changed details for security purposes. However, the problem remains intact.

I installed an Oracle 11g database on a server at l

10条回答
  •  时光取名叫无心
    2020-12-09 05:42

    I had a similar issue where I also continuously got the same error. I tried many things like changing the listener port number, turning off the firewall etc. Finally I was able to resolve the issue by changing listener.ora file. I changed the following line:

    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    

    to

    (ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1521)) 
    

    I also added an entry in the /etc/hosts file.

    you can use Oracle net manager to change the above line in listener.ora file. See Oracle Net Services Administrator's Guide for more information on how to do it using net manager.

    Also you can use the service name (database_name.domain_name) instead of SID while making the connnection.

    I Hope it helps.

提交回复
热议问题