Précédent   Forum du club des développeurs et IT Pro > Bases de données > Oracle > Connexions aux bases de données
Connexions aux bases de données Forum d'entraide sur les problèmes de connectivité Oracle
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse
 
Outils de la discussion
Publicité
'
Vieux 11/03/2012, 21h42   #1
sophiesophie
Invité régulier
 
Inscription : janvier 2008
Messages : 57
Détails du profil
Informations forums :
Inscription : janvier 2008
Messages : 57
Points : 6
Points : 6
Par défaut Connexion à une base Oracle

bonsoir,
hier j'ai formaté mon pc et j'ai installé windows sweet 6.2, oracle 10g, jdk1.6 et netbeans7.0.
j'ai mis le driver ojdbc6.jar dans ce dossier
E:\Program Files\Java\jdk1.6.0_16\jre\lib\ext\ojdbc6.jar

le driver est chargé, la connection est bien établie sans problème.
aujourd'hui il m'affiche cet erreur
Code :
1
2
3
4
5
6
7
8
 
Driver chargé
java.sql.SQLException: Exception d'E/S: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=169869568)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
	at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
	at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
	at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
	at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:3668)
	at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:353)
Code :
1
2
3
4
 
Class.forName("oracle.jdbc.OracleDriver").newInstance();
System.out.println ("Driver chargé");
cnx = DriverManager.getConnection ("jdbc:oracle:thin:@127.0.0.1:1521:orclaudi","system","admin");
bd: orclaudi
nom utilisateur: system
login: admin

s'il vous plait aidez moi à résoudre ce problème , merci
sophiesophie est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 19/03/2012, 16h06   #2
samaury
Membre habitué
 
Avatar de samaury
 
Padawan bidoulleur
Inscription : mars 2008
Messages : 107
Détails du profil
Informations professionnelles :
Activité : Padawan bidoulleur
Secteur : Industrie

Informations forums :
Inscription : mars 2008
Messages : 107
Points : 100
Points : 100
Envoyer un message via MSN à samaury
1 - Arrives-tu à te connecter avec d'autres outils (sqldevelopper)
2 - Le port 1521 est-il ouvert (voir firewall)
3 - Le login et mot de passe sont-ils corrects?
samaury est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/03/2012, 11h14   #3
13thFloor
Membre chevronné
 
Avatar de 13thFloor
 
Homme
DBA Oracle freelance
Inscription : janvier 2005
Messages : 578
Détails du profil
Informations personnelles :
Sexe : Homme
Âge : 46
Localisation : France

Informations professionnelles :
Activité : DBA Oracle freelance

Informations forums :
Inscription : janvier 2005
Messages : 578
Points : 787
Points : 787
Citation:
Erreur 12505 :
12505, 00000, "TNS:listener does not currently know of SID given in connect descriptor"
// *Cause: The listener received a request to establish a connection to a
// database or other service. The connect descriptor received by the listener
// specified a SID for an instance (usually a database instance) that either
// has not yet dynamically registered with the listener or has not been
// statically configured for the listener. This may be a temporary condition
// such as after the listener has started, but before the database instance
// has registered with the listener.
// *Action:
// - Wait a moment and try to connect a second time.
// - Check which instances are currently known by the listener by executing:
// lsnrctl services <listener name>
// - Check that the SID parameter in the connect descriptor specifies
// an instance known by the listener.
// - Check for an event in the listener.log file.
13thFloor est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse
Outils de la discussion

Navigation rapide


Fuseau horaire GMT +2. Il est actuellement 18h24.


 
 
 
 
Partenaires

Hébergement Web