IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Oracle Discussion :

probleme pour tester la base par defaut, [erreur] lors du lancement du listener


Sujet :

Oracle

  1. #1
    Membre régulier
    Profil pro
    Inscrit en
    Mars 2005
    Messages
    160
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2005
    Messages : 160
    Points : 75
    Points
    75
    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 : Sélectionner tout - Visualiser dans une fenêtre à part
    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 : Sélectionner tout - Visualiser dans une fenêtre à part
    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

  2. #2
    Expert éminent sénior
    Avatar de orafrance
    Profil pro
    Inscrit en
    Janvier 2004
    Messages
    15 967
    Détails du profil
    Informations personnelles :
    Âge : 46
    Localisation : France

    Informations forums :
    Inscription : Janvier 2004
    Messages : 15 967
    Points : 19 073
    Points
    19 073
    Par défaut
    et tnsping SID ?

  3. #3
    Membre régulier
    Profil pro
    Inscrit en
    Mars 2005
    Messages
    160
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2005
    Messages : 160
    Points : 75
    Points
    75
    Par défaut
    merci Fred pour ta reponse,

    voila ce que m'affiche tnsping SID,

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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.

  4. #4
    Membre régulier
    Profil pro
    Inscrit en
    Mars 2005
    Messages
    160
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2005
    Messages : 160
    Points : 75
    Points
    75
    Par défaut
    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

  5. #5
    Expert éminent sénior
    Avatar de orafrance
    Profil pro
    Inscrit en
    Janvier 2004
    Messages
    15 967
    Détails du profil
    Informations personnelles :
    Âge : 46
    Localisation : France

    Informations forums :
    Inscription : Janvier 2004
    Messages : 15 967
    Points : 19 073
    Points
    19 073
    Par défaut
    tu vois bien un process lsnrctl en route ?

  6. #6
    Membre régulier
    Profil pro
    Inscrit en
    Mars 2005
    Messages
    160
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2005
    Messages : 160
    Points : 75
    Points
    75
    Par défaut
    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

  7. #7
    Expert éminent sénior
    Avatar de orafrance
    Profil pro
    Inscrit en
    Janvier 2004
    Messages
    15 967
    Détails du profil
    Informations personnelles :
    Âge : 46
    Localisation : France

    Informations forums :
    Inscription : Janvier 2004
    Messages : 15 967
    Points : 19 073
    Points
    19 073
    Par défaut
    ps -ef ?

    lsnrctl start <SID> ça donne quoi ?

  8. #8
    Membre régulier
    Profil pro
    Inscrit en
    Mars 2005
    Messages
    160
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2005
    Messages : 160
    Points : 75
    Points
    75
    Par défaut
    le resultat de la commande est le suivant :

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

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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

  9. #9
    Membre régulier
    Profil pro
    Inscrit en
    Mars 2005
    Messages
    160
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2005
    Messages : 160
    Points : 75
    Points
    75
    Par défaut
    pour ce qui concerne la deuxième commande

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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..

  10. #10
    Expert éminent sénior
    Avatar de orafrance
    Profil pro
    Inscrit en
    Janvier 2004
    Messages
    15 967
    Détails du profil
    Informations personnelles :
    Âge : 46
    Localisation : France

    Informations forums :
    Inscription : Janvier 2004
    Messages : 15 967
    Points : 19 073
    Points
    19 073
    Par défaut
    bah voila, tu n'as pas de listener pour ta base

  11. #11
    Membre régulier
    Profil pro
    Inscrit en
    Mars 2005
    Messages
    160
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2005
    Messages : 160
    Points : 75
    Points
    75
    Par défaut
    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

Discussions similaires

  1. Réponses: 4
    Dernier message: 17/10/2014, 09h56
  2. [MySQL] Probleme pour intérroger une base avec "%" (Tous)
    Par pierrot10 dans le forum PHP & Base de données
    Réponses: 6
    Dernier message: 03/04/2008, 13h03
  3. probleme pour le format jpeg par raport à access
    Par sailten dans le forum Access
    Réponses: 4
    Dernier message: 16/06/2006, 14h30
  4. Probleme pour reattacher une base
    Par bisounours75012 dans le forum MS SQL Server
    Réponses: 4
    Dernier message: 20/02/2006, 15h01
  5. Probleme pour créer un base de données...
    Par _matt_44 dans le forum PostgreSQL
    Réponses: 5
    Dernier message: 03/06/2005, 14h36

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo