Comment démarrer le LISTENER sous Oracle. ?
Si vous avez ce type d'erreur ORA-TNS en tentant de vous connecter sur une base Oracle :
● ORA-12541 : TNS - pas de processus d’écoute.
● TNS-12541 : TNS - aucun processus d’écoute.
● ORA-12170 : TNS - délai de connexion dépassé.
● TNS-12535 : TNS - le délai imparti à l’opération est écoulé.
Il y a de forte chance que votre LISTENER soit arrêté.
On démarre le LISTENER Oracle avec l'outil LSNRCTL ou avec NET START <nom_service_windows>
C:\>SQLPLUS /NOLOG SQL*Plus: Release 10.2.0.1.0 - Production on Sat Jul 9 19:03:20 2011 Copyright (c) 1982, 2005, Oracle. All rights reserved. SQL> CONNECT scott/tiger@dbtest ERROR: ORA-12541: TNS:no listener SQL> |
SQL> exit
C:\>LSNRCTL START
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 09-JUL-2011 19:10:16
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting tnslsnr: please wait...
TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
System parameter file is C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
Log messages written to C:\oracle\product\10.2.0\db_1\network\log\listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PC-DDD)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=PC-DDD)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
Start Date 09-JUL-2011 19:10:22
Uptime 0 days 0 hr. 0 min. 5 sec
Trace Level off
Security ON: Password or Local OS Authentication
SNMP OFF
Listener Parameter File C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
Listener Log File C:\oracle\product\10.2.0\db_1\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PC-DDD)(PORT=1521)))
Services Summary...
Service "dbtest" has 1 instance(s).
Instance "dbtest", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
C:\>
|
Maintenant le LISTENER est démarré. Les connexions sont possibles.
C:\> C:\>NET START OracleOraDb10g_home1TNSListener Le service OracleOraDb10g_home1TNSListener démarre. Le service OracleOraDb10g_home1TNSListener a démarré. C:\> |
Maintenant le LISTENER est démarré. Les connexions sont possibles.
| Liens en rapport avec l'article et qui sont susceptibles de vous intéresser |
|
●
Description Listener Oracle ● Messages Erreurs LISTENER (ORA-TNS) ● Connection impossible Limite Ressource Processes TNS-12518 ● Securité OracleNet Listener Oracle |