Oracle 10g Database Standard (ODBSEONUPP0) Logo
Anonymous Posted on Sep 04, 2008

Oracle SQL Error

I get this sql error every time I try to connect to an Oracle instance using JDBC.

java.sql.SQLException: Io exception:
The Network Adapter could not establish connection
SQLException: SQLState (null) vendor code (17002)


What am I doing wrong?

  • Anonymous May 11, 2010

    you are a problem in you client.
    Your tnsnames.ora is misconfigured.
    Your sqlnet.ora is misconfigured
    your listener is misconfigured or not started
    your connexion settings from java is misconfigured


×

1 Answer

Anonymous

Level 1:

An expert who has achieved level 1.

Corporal:

An expert that hasĀ over 10 points.

Problem Solver:

An expert who has answered 5 questions.

  • Contributor 13 Answers
  • Posted on Sep 27, 2009
Anonymous
Contributor
Level 1:

An expert who has achieved level 1.

Corporal:

An expert that hasĀ over 10 points.

Problem Solver:

An expert who has answered 5 questions.

Joined: Sep 27, 2009
Answers
13
Questions
0
Helped
5840
Points
21

Does it connect after the error ?. First try to connect from your client to Oracle server using SQL plus client.

Second - Do a tnsping <server name>

This will give you the correct Host name, SID and Port number.

Make sure that your JDBC connection parameters match with the actual connection from TNS output

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

462 views

Ask a Question

Usually answered in minutes!

Top Oracle Computers & Internet Experts

ADMIN Andrew
ADMIN Andrew

Level 3 Expert

73784 Answers

ADMIN Eric
ADMIN Eric

Level 3 Expert

42225 Answers

Anonymous

Level 1 Expert

1 Answers

Are you an Oracle Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...