Home > database >  The Oracle database JDBC Connection problems: java.net.ConnectException: Connection refused: connect
The Oracle database JDBC Connection problems: java.net.ConnectException: Connection refused: connect

Time:09-25

Say: my first
No problem when studying the JDBC connection database
Later learned the servlet deployed tomcat a problem when I come back again write JDBC:
Baidu is loading port occupied set doesn't work to the oracle and JDK or cannot use
Everyone a great god, please show I am not really familiar with TCP communications

1. Write a very simple test code as follows;

2. The eclipse error

Part 3. The port number query results


The great god that how to solve?

CodePudding user response:

River's lake emergency, the great god, online, etc

CodePudding user response:

You first check the tnsnames. What is the port that is configured in the ora

CodePudding user response:

reference 1st floor fengkdcx response:
runescape emergency, such as the great god, online

You don't look at what o 'clock now, a great god have to have a meal,

CodePudding user response:

refer to the second floor springs of water faint reply:
you first check the tnsnames. Ora configured in the port number is how much

The port number is: localhost
And seemed not to rewrite the text

CodePudding user response:

reference 4 floor fengkdcx response:
Quote: refer to the second floor springs of water faint reply:
you first check the tnsnames. Ora configured in the port number is how much

The port number is: localhost
And seemed not to rewrite the text

Impossible to port number is: localhost,
Stick down your tnsnames. Ora configuration.

CodePudding user response:

The database itself connection configuration no problem,

CodePudding user response:

reference 3 floor springs of water faint reply:
Quote: refer to 1st floor fengkdcx response:

O river lake emergency, the great god, online etc.

You don't look at what o 'clock now, a great god were to have a meal,

A great god a lot of care, don't you worry, first to have a meal,
Waiting alone...

CodePudding user response:

Tnsnames. Ora:

CodePudding user response:

refer to 6th floor springs of water faint reply:
database connection configuration no problem itself,

No problem up sqlplus can

CodePudding user response:

The HOST server IP address,

CodePudding user response:

Wrong, is localhost into IP addresses

CodePudding user response:

11 references, faint blue water fountain response:
wrong, is localhost into IP address

Both the host changed, and restart the Oracle service,
Or the same old listeners. Ora do you want to change?

CodePudding user response:

Oracle service

CodePudding user response:

The same problem, the original poster is how to solve?

CodePudding user response:

The same problem, the original poster is how to solve?
  • Related