Hi to all!! I'm working in a Java-Hibernate web project, but I am having a problem with my database connection. When I try to connect to it by writing localhost instead of my IP address, I can't connect to my db. The following error appears: java.sql.SQLException: I/O Exception: The Network Adapter could not establish the connection. Also, when I try to connect using the command telnet localhost 1521 the following error appears: Could not open connection to the host, on port 1521: Connection failed.
Why is this problem happening? How can I solve it?
I'm using Oracle 11g, any suggestion will be really appreaciated!
Thanks in advance
Fairy tales are more than true: not because they tell us that dragons exist, but because they tell us that dragons can be beaten. – G.K. Chesterton