| |

VerySource

 Forgot password?
 Register
Search
View: 780|Reply: 4

JDBC connection Oracle error under linux

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-10 15:00:01
| Show all posts |Read mode
Exception in thread "main" java.sql.SQLException: Io
ould not establish the connection
        at oracle.jdbc.driver.DatabaseError.throwSqlException (DatabaseError.java
: 111)
        at oracle.jdbc.driver.DatabaseError.throwSqlException (DatabaseError.java
: 145)
        at oracle.jdbc.driver.DatabaseError.throwSqlException (DatabaseError.java
: 254)
        at oracle.jdbc.driver.T4CConnection.logon (T4CConnection.java:386)
        at oracle.jdbc.driver.PhysicalConnection. <init> (PhysicalConnection.java:
413)
        at oracle.jdbc.driver.T4CConnection. <init> (T4CConnection.java:164)
        at oracle.jdbc.driver.T4CDriverExtension.getConnection (T4CDriverExtensio
n.java:34)
        at oracle.jdbc.driver.OracleDriver.connect (OracleDriver.java:752)
        at java.sql.DriverManager.getConnection (DriverManager.java:525)
        at java.sql.DriverManager.getConnection (DriverManager.java:171)
        at Test.main (Test.java:12)
Reply

Use magic Report

0

Threads

7

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-4-5 21:00:02
| Show all posts
Non-procedural issues,
1. Whether to connect the network cable
2. See if the IP and user name are correct
Reply

Use magic Report

0

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 Invalid IP Address

Post time: 2020-4-6 13:15:01
| Show all posts
There is a problem with the network connection ~~
Reply

Use magic Report

0

Threads

10

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-4-23 10:00:02
| Show all posts
See if there are open ports or the like. Ha ha, this kind of error is generally not a program problem.
Reply

Use magic Report

0

Threads

11

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-5-11 16:30:01
| Show all posts
Ping the database server to see if the IP is working.
If it works, use a sqlplus to connect to the database to see if you can log in!
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list