Précédent   Forum des professionnels en informatique > Bases de données > Oracle
Oracle Forum Oracle : le serveur, les outils, ... Voir F.A.Q Oracle Tutoriels Oracle
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 13/02/2007, 17h48   #1
Membre du Club
 
Inscription : mars 2005
Messages : 161
Détails du profil
Informations forums :
Inscription : mars 2005
Messages : 161
Points : 40
Points : 40
Envoyer un message via Skype™ à mehdi_swatch
Par défaut probleme pour tester la base par defaut, [erreur] lors du lancement du listener

bonjour tout le monde,

je viens d'installer oracle 10g, sur ma redhat 4.
en gros l'installation d'Oracle s'est bien deroulé si je crois les ecrans qu'il m'a affiché, maintenant je passe à la partie test.

je voulais tester la base qu'il a creé par defaut vu que je l'ai mentionné lors de l'installation.

losrque je lance la commande "lsnrctl start" voila ce qu'il m'affiche
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 
LSNRCTL FOR Linux: Version 10.1.0.3.0 - Production ON 13-FEB-2007 17:13:46
 
Copyright (c) 1991, 2004, Oracle.  ALL rights reserved.
 
Starting /u01/app/oracle/product/OraHome_2/bin/tnslsnr: please wait...
 
TNSLSNR FOR Linux: Version 10.1.0.3.0 - Production
Log messages written TO /u01/app/oracle/product/OraHome_2/network/log/listener.log
Error listening ON: (ADDRESS=(PROTOCOL=tcp)(PORT=1521))
TNS-12542: TNS:address already IN USE
 TNS-12560: TNS:protocol adapter error
  TNS-00512: Address already IN USE
   Linux Error: 98: Address already IN USE
 
Listener failed TO start. See the error message(s) above...
j'ai tapé la commande "lsnrctl status" voila ce qu'il m'affiche

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 
LSNRCTL FOR Linux: Version 10.1.0.3.0 - Production ON 13-FEB-2007 17:13:57
 
Copyright (c) 1991, 2004, Oracle.  ALL rights reserved.
 
Connecting TO (ADDRESS=(PROTOCOL=tcp)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR FOR Linux: Version 10.1.0.3.0 - Production
Start Date                13-FEB-2007 14:55:43
Uptime                    0 days 2 hr. 18 min. 14 sec
Trace Level               off
Security                  ON: LOCAL OS Authentication
SNMP                      OFF
Listener Log File         listener.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
The listener supports no services
The command completed successfully
enfin je constate de tout ça, je sais pas si j'ai raison ou pas mais je crois que l'installation c bien deroulé la base marche bien mais le listener n'est pas à l'ecoute de cette base .

j'ai essayé de modifié les deux fichiers listener.ora et tsnnames.ora mais en vain.
pour ce qui concerne la variable TNS_ADMIN, elle doit contenir le chemin des deux fichier listener.ora et tsnnames.ora ?

merci d'avance pour vos reponses
mehdi_swatch est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 13/02/2007, 19h06   #2
Rédacteur/Modérateur
 
Avatar de orafrance
 
Inscription : janvier 2004
Messages : 15 861
Détails du profil
Informations personnelles :
Âge : 35

Informations forums :
Inscription : janvier 2004
Messages : 15 861
Points : 16 212
Points : 16 212
et tnsping SID ?
orafrance est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 14/02/2007, 09h42   #3
Membre du Club
 
Inscription : mars 2005
Messages : 161
Détails du profil
Informations forums :
Inscription : mars 2005
Messages : 161
Points : 40
Points : 40
Envoyer un message via Skype™ à mehdi_swatch
merci Fred pour ta reponse,

voila ce que m'affiche tnsping SID,

Code :
1
2
3
4
5
6
7
8
 
TNS Ping Utility FOR Linux: Version 10.1.0.3.0 - Production ON 14-FEB-2007 09:28:49
 
Copyright (c) 1997, 2003, Oracle.  ALL rights reserved.
 
Used parameter files:
 
TNS-03505: Failed TO resolve name
je crois que j'ai un fichier ou des variables à paramétrer.
mehdi_swatch est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 14/02/2007, 10h34   #4
Membre du Club
 
Inscription : mars 2005
Messages : 161
Détails du profil
Informations forums :
Inscription : mars 2005
Messages : 161
Points : 40
Points : 40
Envoyer un message via Skype™ à mehdi_swatch
vu que la commande tnsping genere une erreur, j'ai cherché un peu pourquoi, donc apparemment c'est toujours une question de variable d'environnement, TNS_ADMIN qui pointe sur rien, j'ai essayé faire un export de la variable en lui indiquant le chemin exact ou ce trouve sqlnet.ora et listener.ora et tnsnames.ora mais en vain.

je ne vois pas pourquoi il y a des commentaires dans l'ensemble des trois fichiers? j'ai enlevé les commentaire pour certaine lignes jugées interessantes
mehdi_swatch est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 14/02/2007, 11h07   #5
Rédacteur/Modérateur
 
Avatar de orafrance
 
Inscription : janvier 2004
Messages : 15 861
Détails du profil
Informations personnelles :
Âge : 35

Informations forums :
Inscription : janvier 2004
Messages : 15 861
Points : 16 212
Points : 16 212
tu vois bien un process lsnrctl en route ?
orafrance est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 14/02/2007, 11h13   #6
Membre du Club
 
Inscription : mars 2005
Messages : 161
Détails du profil
Informations forums :
Inscription : mars 2005
Messages : 161
Points : 40
Points : 40
Envoyer un message via Skype™ à mehdi_swatch
justement noon quand je tape PS pour voir les process qui marche il y a pas celui de "lsnrctl".

et il n y a aucun service oracle
mehdi_swatch est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 14/02/2007, 11h31   #7
Rédacteur/Modérateur
 
Avatar de orafrance
 
Inscription : janvier 2004
Messages : 15 861
Détails du profil
Informations personnelles :
Âge : 35

Informations forums :
Inscription : janvier 2004
Messages : 15 861
Points : 16 212
Points : 16 212
ps -ef ?

lsnrctl start <SID> ça donne quoi ?
orafrance est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 14/02/2007, 11h41   #8
Membre du Club
 
Inscription : mars 2005
Messages : 161
Détails du profil
Informations forums :
Inscription : mars 2005
Messages : 161
Points : 40
Points : 40
Envoyer un message via Skype™ à mehdi_swatch
le resultat de la commande est le suivant :

j'ai mis en gras les process concernés.

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 Feb13 ?        00:00:00 init [5]
root         2     1  0 Feb13 ?        00:00:00 [migration/0]
root         3     1  0 Feb13 ?        00:00:00 [ksoftirqd/0]
root         4     1  0 Feb13 ?        00:00:00 [migration/1]
root         5     1  0 Feb13 ?        00:00:00 [ksoftirqd/1]
root         6     1  0 Feb13 ?        00:00:00 [events/0]
root         7     1  0 Feb13 ?        00:00:00 [events/1]
root         8     6  0 Feb13 ?        00:00:00 [khelper]
root         9     6  0 Feb13 ?        00:00:00 [kacpid]
root        57     6  0 Feb13 ?        00:00:00 [kblockd/0]
root        58     6  0 Feb13 ?        00:00:00 [kblockd/1]
root        59     1  0 Feb13 ?        00:00:00 [khubd]
root        82     6  0 Feb13 ?        00:00:00 [pdflush]
root        83     6  0 Feb13 ?        00:00:00 [pdflush]
root        85     6  0 Feb13 ?        00:00:00 [aio/0]
root        86     6  0 Feb13 ?        00:00:00 [aio/1]
root        84     1  0 Feb13 ?        00:00:00 [kswapd0]
root       230     1  0 Feb13 ?        00:00:00 [kseriod]
root       353     1  0 Feb13 ?        00:00:00 [scsi_eh_0]
root       369     7  0 Feb13 ?        00:00:00 [ata/0]
root       370     7  0 Feb13 ?        00:00:00 [ata/1]
root       391     6  0 Feb13 ?        00:00:00 [kmirrord]
root       409     1  0 Feb13 ?        00:00:00 [kjournald]
root      1616     1  0 Feb13 ?        00:00:00 udevd
root      2016     7  0 Feb13 ?        00:00:00 [kauditd]
root      2398     1  0 Feb13 ?        00:00:00 [kjournald]
root      2399     1  0 Feb13 ?        00:00:00 [kjournald]
root      2400     1  0 Feb13 ?        00:00:00 [kjournald]
root      2401     1  0 Feb13 ?        00:00:00 [kjournald]
root      2402     1  0 Feb13 ?        00:00:00 [kjournald]
root      2403     1  0 Feb13 ?        00:00:00 [kjournald]
root      2404     1  0 Feb13 ?        00:00:00 [kjournald]
root      3478     1  0 Feb13 ?        00:00:00 syslogd -m 0
root      3482     1  0 Feb13 ?        00:00:00 klogd -x
root      3493     1  0 Feb13 ?        00:00:00 irqbalance
rpc       3505     1  0 Feb13 ?        00:00:00 portmap
rpcuser   3525     1  0 Feb13 ?        00:00:00 rpc.statd
root      3560     1  0 Feb13 ?        00:00:00 rpc.idmapd
root      3637     1  0 Feb13 ?        00:00:00 /usr/sbin/acpid
root      3650     1  0 Feb13 ?        00:00:00 cupsd
root      3681     1  0 Feb13 ?        00:00:00 /usr/sbin/sshd
root      3696     1  0 Feb13 ?        00:00:00 xinetd -stayalive -pidfile /var/
root      3715     1  0 Feb13 ?        00:00:00 sendmail: accepting connections
smmsp     3723     1  0 Feb13 ?        00:00:00 sendmail: Queue runner@01:00:00
root      3734     1  0 Feb13 ?        00:00:00 gpm -m /dev/input/mice -t imps2
htt       3765     1  0 Feb13 ?        00:00:00 /usr/sbin/htt -retryonerror 0
htt       3766  3765  0 Feb13 ?        00:00:00 htt_server -nodaemon
canna     3778     1  0 Feb13 ?        00:00:00 /usr/sbin/cannaserver -syslog -u
root      3790     1  0 Feb13 ?        00:00:00 crond
xfs       3817     1  0 Feb13 ?        00:00:00 xfs -droppriv -daemon
root      3836     1  0 Feb13 ?        00:00:00 /usr/sbin/atd
dbus      3864     1  0 Feb13 ?        00:00:00 dbus-daemon-1 --system
root      3876     1  0 Feb13 ?        00:00:00 rhnsd --interval 240
root      3886     1  0 Feb13 ?        00:00:00 cups-config-daemon
root      3897     1  0 Feb13 ?        00:00:48 hald
root      3907     1  0 Feb13 tty1     00:00:00 /sbin/mingetty tty1
root      3908     1  0 Feb13 tty2     00:00:00 /sbin/mingetty tty2
root      3909     1  0 Feb13 tty3     00:00:00 /sbin/mingetty tty3
root      3910     1  0 Feb13 tty4     00:00:00 /sbin/mingetty tty4
root      3913     1  0 Feb13 tty5     00:00:00 /sbin/mingetty tty5
root      3914     1  0 Feb13 tty6     00:00:00 /sbin/mingetty tty6
root      3923     1  0 Feb13 ?        00:00:00 /usr/bin/gdm-binary -nodaemon
root      3924     1  0 Feb13 ?        00:00:00 /bin/su -l oracle -c exec /u01/a
root      4614  3923  0 Feb13 ?        00:00:00 /usr/bin/gdm-binary -nodaemon
root      4637  4614  1 Feb13 ?        00:20:07 /usr/X11R6/bin/X :0 -audit 0 -au
root      5078  4614  0 Feb13 ?        00:00:00 /usr/bin/gnome-session
root      5136  5078  0 Feb13 ?        00:00:00 /usr/bin/ssh-agent /usr/bin/dbus
root      5139     1  0 Feb13 ?        00:00:00 /usr/bin/dbus-launch --exit-with
root      5140     1  0 Feb13 ?        00:00:00 dbus-daemon-1 --fork --print-pid
root      5145     1  0 Feb13 ?        00:00:00 /usr/libexec/gconfd-2 5
root      5148     1  0 Feb13 ?        00:00:00 /usr/bin/gnome-keyring-daemon
root      5150     1  0 Feb13 ?        00:00:00 /usr/libexec/bonobo-activation-s
root      5152     1  0 Feb13 ?        00:00:00 /usr/libexec/gnome-settings-daem
root      5158     1  0 Feb13 ?        00:00:00 /usr/libexec/gam_server
root      5181     1  1 Feb13 ?        00:14:40 /usr/libexec/vino-server --oaf-a
root      5192     1  0 Feb13 ?        00:00:08 metacity --sm-save-file 11685959
root      5194     1  0 Feb13 ?        00:00:00 gnome-volume-manager --sm-config
root      5196     1  0 Feb13 ?        00:00:03 gnome-panel --sm-config-prefix /
root      5198     1  0 Feb13 ?        00:00:11 nautilus --sm-config-prefix /nau
root      5201     1  0 Feb13 ?        00:00:00 eggcups --sm-config-prefix /eggc
root      5203     1  0 Feb13 ?        00:00:00 /usr/bin/pam-panel-icon --sm-cli
root      5205     1  0 Feb13 ?        00:00:01 /usr/bin/python /usr/bin/rhn-app
root      5206  5203  0 Feb13 ?        00:00:00 /sbin/pam_timestamp_check -d roo
root      5241     1  0 Feb13 ?        00:00:00 /usr/libexec/gnome-vfs-daemon --
root      5254     1  0 Feb13 ?        00:00:00 /usr/libexec/mapping-daemon
root      5256     1  0 Feb13 ?        00:00:08 /usr/libexec/wnck-applet --oaf-a
root      5258     1  0 Feb13 ?        00:00:00 /usr/libexec/mixer_applet2 --oaf
root      5260     1  0 Feb13 ?        00:00:00 /usr/libexec/clock-applet --oaf-
root      5262     1  0 Feb13 ?        00:00:00 /usr/libexec/notification-area-a
root      7105  3696  0 Feb13 ?        00:00:01 nmbd
root     14663  3696  0 Feb13 ?        00:00:00 smbd
root     20115  3696  0 Feb13 ?        00:00:00 smbd
root     25840     1  0 Feb13 ?        00:00:11 gedit file:///u01/app/oracle/pro
oracle   26334  3924  0 Feb13 ?        00:00:00 /u01/app/oracle/product/OraHome_
oracle   26473     1  0 Feb13 ?        00:00:00 tnslsnr LISTENER -inherit
root     27344     1  0 Feb13 ?        00:00:05 gnome-terminal
root     27345 27344  0 Feb13 ?        00:00:00 gnome-pty-helper
root     27346 27344  0 Feb13 pts/1    00:00:00 bash
root     27363 27346  0 Feb13 pts/1    00:00:00 su - oracle
oracle   27364 27363  0 Feb13 pts/1    00:00:00 -bash
root     27409     1  0 Feb13 ?        00:00:00 /usr/libexec/nautilus-throbber -
root     28023     1  0 09:30 ?        00:00:00 /bin/sh /usr/lib64/firefox-1.5.0
root     28043 28023  0 09:30 ?        00:00:00 /bin/sh /usr/lib64/firefox-1.5.0
root     28048 28043  0 09:30 ?        00:00:04 /usr/lib64/firefox-1.5.0.9/firef
oracle   28098 27364  0 11:27 pts/1    00:00:00 ps -ef
et merci encore
mehdi_swatch est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 14/02/2007, 11h45   #9
Membre du Club
 
Inscription : mars 2005
Messages : 161
Détails du profil
Informations forums :
Inscription : mars 2005
Messages : 161
Points : 40
Points : 40
Envoyer un message via Skype™ à mehdi_swatch
pour ce qui concerne la deuxième commande

Code :
1
2
3
4
5
6
7
8
 
Starting /u01/app/oracle/product/OraHome_2/bin/tnslsnr: please wait...
 
TNSLSNR FOR Linux: Version 10.1.0.3.0 - Production
Log messages written TO /u01/app/oracle/product/OraHome_2/network/log/orcl.log
TNS-01151: Missing listener name, orcl, IN LISTENER.ORA
 
Listener failed TO start. See the error message(s) above..
mehdi_swatch est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 14/02/2007, 11h47   #10
Rédacteur/Modérateur
 
Avatar de orafrance
 
Inscription : janvier 2004
Messages : 15 861
Détails du profil
Informations personnelles :
Âge : 35

Informations forums :
Inscription : janvier 2004
Messages : 15 861
Points : 16 212
Points : 16 212
bah voila, tu n'as pas de listener pour ta base
orafrance est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 14/02/2007, 12h10   #11
Membre du Club
 
Inscription : mars 2005
Messages : 161
Détails du profil
Informations forums :
Inscription : mars 2005
Messages : 161
Points : 40
Points : 40
Envoyer un message via Skype™ à mehdi_swatch
wé je suis d'accord je l'ai meme signalé au debut, mais pour remedier à ce probleme comment je dois proceder.

est ce que j'ai des variables ou des fichiers à modifier. parce que normalement si je suis ce que la doc propose, il fallait juste lancer " lsnrctl" pour ça marche tout seul.

lors de la création de la base j'ai bien sur signalé que la ORACLE_SID = orcl , est ce que le SID est different.
est ce normal de ne voir aucun service d'oracle en marche


si t'as des pistes dans ce sens je suis preneur
mehdi_swatch est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 02h20.


 
 
 
 
Partenaires

Hébergement Web