I get an error:-
Cannot establish a connection to jdbc:oracle:thin:@localhost:1521:orcl using oracle.jdbc.OracleDriver (Io exception: The Network Adapter could not establish the connection)
Please help me.
And guide me what to do as I need to use it in my web project.
Try any of the following solutions
1. If the network port is not open, or it is blocked by a firewall, you can try TELNET.
2. If DB listener is not running or is binding to a different network interface, you can try either TELNET or else use Oracle client tools to connect.
3. If again the problem persists, you may please start the listener through command prompt (lsnrctl start)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.