Script to automate stop/start listener on aix

Hello everyone,
We have a database on oracle 8i on aix platform and we have a scheduled restart on the db everyday. But we have been facing problem with the db restart and it gets hanged.
As a solution, i wanted to develop a shell script that will stop the listener first before the db shut down.
Can anyone help me please?

If I remember correctly, example scripts to automate db and listener startup and shutdown are in the oracle 8i installation guide for your platform.
The following should work:
vi /etc/init.d/oracle
ORACLE_HOME=your path to oracle home directory
case "$1" in
    'start') 
         su - oracle -c "$ORACLE_HOME/bin/lsnrctl start"
         su - oracle -c "$ORACLE_HOME/bin/dbstart"
    'stop')  
         su - oracle -c "$ORACLE_HOME/bin/dbshut"
         su - oracle -c "$ORACLE_HOME/bin/lsnrctl stop"
esacThen set execute privileges on the above file:
chmod 750 oracle
Next add the appropriate symbolic links:
ln -s /etc/init.d/oracle /etc/rc.d/rc3.d/K01oracle
ln -s /etc/init.d/oracle /etc/rc.d/rc3.d/S99oracle
ln -s /etc/init.d/oracle /etc/rc.d/rc5.d/K01oracle
ln -s /etc/init.d/oracle /etc/rc.d/rc5.d/S99oracle
The oracle dbstart and dbshut scripts rely on entries in */etc/oratab*, so make sure you have a "Y" in the file for yes to autostart and auto shutdown.

Similar Messages

  • Stop start listener RAC

    Hi,
    DB : 10.2.0.4
    OS: AIX 5.3 L
    This is 2 node RAC on ASM with single standby on ASM.
    To stop listener in all RAC nodes , are the below steps correct?.
    crs_stop ora.rac1.LISTENER_rac1.lsnr
    crs_stop ora.rac2.LISTENER_rac2.lsnr
    OR
    srvctl stop listener -n rac1 -l ora.rac1.LISTENER_rac1.lsnr
    srvctl stop listener -n rac2 -l ora.rac2.LISTENER_rac2.lsnr
    Node1: rac1
    Node2: rac2
    Same i have to follow to start listener , start word in place of stop , right?.
    Please confirm me on this.
    Thanks,
    Sunand

    This is 2 node RAC on ASM with single standby on ASM.
    To stop listener in all RAC nodes , are the below steps correct?.
    crs_stop ora.rac1.LISTENER_rac1.lsnr
    crs_stop ora.rac2.LISTENER_rac2.lsnr
    OR
    srvctl stop listener -n rac1 -l ora.rac1.LISTENER_rac1.lsnr
    srvctl stop listener -n rac2 -l ora.rac2.LISTENER_rac2.lsnr
    Node1: rac1
    Node2: rac2
    Same i have to follow to start listener , start word in place of stop , right?.
    You should use the second option using srvctl.
    Because srvctl is meant for starting/stopping resources.
    Even using first command also you can achieve this and also using lsnrctl also. But I would prefer srvctl.
    Regards
    Rajesh

  • How to stop/start listener

    Hi Everyone,
    I am new in Oracle!
    I have oracle 11g installed on my windows system. I am trying to start/stop listener from em web console but it is not working.
    The system is asking for username and password, I am typing my own (which is DBA) or even SYS .... and it still unsuccessful...it is saying :
    Error: Invalid username and/or password
    Please, help!
    How can I do that from em console
    P.S. Before I was using 10g version and it was OK, I was able to start/stop listener from em web console using SYS or my username.
    Thanks

    If you want to perform OS related tasks from the enterprise manager, such as starting/stopping services or performing backup/recover, export/import, sqlldr, etc. you are required to provide an OS username and password, this password should be stored at the preferred credentials, and this user must have the 'log on as a batch job' , otherwise Enterprise Manager will keep on asking for a username/password.
    This is also a symptom of a missconfigured Enterprise manager, but before diagnosing this situation, verify at the preferred credentials section that your user's credentials are properly tested, validated and stored, if this is the case, then look for the logs found at the ORACLE_HOME\hostname_sid\log directory and find out if another error message is displayed there.
    ~ Madrid

  • Automatic stop/start of databases on solaris 10

    I've followed the documentation in terms of creating the dbora script and linking it but unfortunately, my db isn't coming back up on reboot.
    Anyone has seen this?
    My unix administrator is saying there is no log file to review on solaris 10 on reboot. Is there a log somewhere i can check?
    Thx.

    Thanks for the reply.
    This is what I did:
    1. Edit the /var/opt/oracle/oratab file for Solaris and /etc/oratab file for
    HP and Linux.
    Database entries in the oratab file appears in the following format:
    ORACLE_SID:ORACLE_HOME:Y
    In the preceding command, Y or N specifies whether you want the dbstart
    and dbshut scripts to start up and shut down the database. For each database
    that you want to start up, find the ORACLE_SID entry identified by the sid in
    the first field. Change the last field for each to Y.
    For Oracle Real Application Clusters installation, this entry appears in the
    following format:
    DB_NAME:ORACLE_HOME:Y
    In the preceding command, DB_NAME is the cluster database name. Y or N
    specifies whether you want the dbstart and dbshut scripts to start up and
    shut down the database.
    2. In the /etc/init.d directory, create a dbora script similar to the following, if
    it does not already exist. Be sure to give the full path of the dbstart utility.
    #!/bin/sh
    # Set ORA_HOME to be equivalent to the $ORACLE_HOME
    # from which you wish to execute dbstart and dbshut;
    # Set ORA_OWNER to the user id of the owner of the
    # Oracle database in ORA_HOME.
    ORA_HOME=/u01/app/oracle/product/9.2.0.1.0
    ORA_OWNER=oracle
    if [! -f $ORA_HOME/bin/dbstart]
    See Also: init command in your UNIX system documentation
    for more information on system startup and shutdown procedures.
    Configuration Tasks to Perform as the root User
    4-6 Installation Guide
    then
    echo "Oracle startup: cannot start"
    exit
    fi
    case "$1" in
    ’start’)
    # Start the Oracle databases:
    # The following command assumes that the oracle login
    # will not prompt the user for any values
    su - $ORA_OWNER -c $ORA_HOME/bin/dbstart &
    ’stop’)
    # Stop the Oracle databases:
    # The following command assumes that the oracle login
    # will not prompt the user for any values
    su - $ORA_OWNER -c $ORA_HOME/bin/dbshut &
    esac
    3. Create symbolic links to the dbora script in the appropriate run-level script
    directories, as follows:
    # ln -s /etc/init.d/dbora /etc/rc0.d/K10dbora
    # ln -s /etc/init.d/dbora /etc/rc3.d/S99dbora

  • Starting of database and listener automatically while starting server

    how to start the listener and database automatically while starting RH-LINUX server itself?
    thanks for advance
    Mohan

    Hello Mohan,
    following is the code of my shell, which i use for starting, stopping, restarting teh oracle and listener service, except your oracle home location and oracle user i do not think you need to change any thing..also i assume that you some basic knowledge of shell programming.
    put this /etc/rc.d/init.d, then add this service by chkconfig -- add oracle (if oracle is the file name in whcih this shell exists).
    it will run for 3,4,5 of runlevels with priority as 20, 80
    thanx in advance..subodh
    #!/bin/sh
    # Description: This Scripts starts stops Oracle database and listner
    # chkconfig: - 345 20 80
    ORACLE_OWNR='oracle'
    ORACLE_LOCN='/oracle/product/10.1.0/bin'
    echo "Check whethere the file exists or not"
    if [ ! -f '$ORACLE_LOCN/lsnrctl' -o ! -d $ORACLE_LOCN ]; then
    echo "Unable to Start the Oracle Service"
    fi
    case "$1" in
    start)
    echo "Starting up Oracle Database and Listener Service"
    su - $ORACLE_OWNR -c "$ORACLE_LOCN/dbstart"
    su - $ORACLE_OWNR -c "$ORACLE_LOCN/lsnrctl start"
    touch /var/log/oracle
    stop)
    echo "Stoping Oracle Database and Listener Service"
    su - $ORACLE_OWNR -c "$ORACLE_LOCN/dbshut"
    su - $ORACLE_OWNR -c "$ORACLE_LOCN/lsnrctl stop"
    touch /var/log/oracle
    restart|reload)
    echo "Restarting Oracle Database and Listener Service"
    $0 stop
    $0 start
    echo "Usuage Oracle start|stop|restart|reload"
    exit 1
    esac
    exit 0

  • How may I automatically stop and start Mail services at a set time please

    Hi folks. I was wondering if anyone could tell me how to automatically stop and start Mail services (or any other services) at a set time please in Leopard Server? Is there a script someone has created which might help?
    Cheers, David ( a realy newbie when it comes to administering OS X server)

    launchd works through a series of XML documents that define tasks to run, either at launch, on a time schedule, in response to network events, etc.
    So you'll need to create two .plists - one to start the mail server and one to stop it. They should be saved in /Library/LaunchDaemons. I'd suggest something like:
    /Library/LaunchDaemons/local.postfix.stop.plist:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple
    .com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
      <key>Label</key>
      <string>local.postfix.stop</string>
      <key>ProgramArguments</key>
      <array>
        <string>/usr/sbin/serveradmin</string>
        <string>stop</string>
        <string>mail</string>
      </array>
      <key>StartCalendarInterval</key>
      <dict>
        <key>Hour</key>
        <integer>1</integer>
        <key>Minute</key>
        <integer>00</integer>
      </dict>
    </dict>
    </plist>
    and /Library/LaunchDaemons/local.postfix.start.plist:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple
    .com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
      <key>Label</key>
      <string>local.postfix.start</string>
      <key>ProgramArguments</key>
      <array>
        <string>/usr/sbin/serveradmin</string>
        <string>start</string>
        <string>mail</string>
      </array>
      <key>StartCalendarInterval</key>
      <dict>
        <key>Hour</key>
        <integer>4</integer>
        <key>Minute</key>
        <integer>00</integer>
      </dict>
    </dict>
    </plist>
    You'll need to either use launchctl load /Library/LaunchDaemons/local.postfix.stop (or start) to load the tasks, or reboot your server.
    I'm curious, though, as to why you want to do this. Mail is typically one of the services that people want to run 24/7 so they don't miss out on any emails (even though SMTP can tolerate this). Why do you want to shut yours down?

  • Orarun rpm, stop/start scripts for tiers

    Is anyone using the orarun rpm? If so, how do you startup your tiers? I have the metalink note 211497.1, an oracle sales person gave me it since I am evaluating OCS and can't have a metalink account. I was able to successfully install all 3 tiers finally and I had to powerdown because electricians were coming in. Now I can't even bring up the ifrastructure tier using the commands. Someone help please. Thanks for any input.

    here u r the note
    How to start/stop components of Collaboration Suite
    PURPOSE
    Helping to start and stop all components of Collaboration Suite
    SCOPE & APPLICATION
    All administrators and consultants working with Collaboration Suite
    HOW TO START/STOP COLLABORATION SUITE
    There are several steps for starting and stopping Collaboration Suite
    components.
    Here you can find examples how to start and stop infrastructure,
    database and middletier components seperately
    1) INFRASTRUCTURE
    Please check first, which of the components you have configured
    ----infraenv begin----
    export ORACLE_BASE=<your ORACLE_BASE, e.g: /u01/oracle>
    export ORACLE_HOME=<your ORACLE_HOME, e.g: /u01/oracle/product/infra>
    export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/dcm/bin:$ORACLE_HOME/opmn/bin:/usr/local/bin:$PATH
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib:$LD_LIBRARY_PATH
    export NLS_LANG=<your NLS setting, e.g: american_america.UTF8>
    export ORACLE_SID=iasdb
    export TNS_ADMIN=$ORACLE_HOME/network/admin
    export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
    ----infraenv end------
    ----infrastart begin----
    # starting infrastructure components:
    # get env
    . ./infraenv
    ALTDISP=$DISPLAY
    export DISPLAY=localhost:0.0
    # listener starting
    lsnrctl start
    # listener checking
    lsnrctl status
    # database starting (refers to ORACLE_SID setting in infraenv)
    sqlplus "/ as sysdba" <<!
    startup
    # OID starting
    oidmon connect=iasdb start
    sleep 5
    oidctl connect=iasdb server=oidldapd instance=1 start
    # HTTP and OC4J starting
    dcmctl shell <<!
    getState -v
    start -v -ct ohs
    start -v -co OC4J_DAS
    getState -v
    # Webcache start (only necessary for portal)
    webcachectl start
    # OPMN start (sometimes necessary, please try first without it)
    opmnctl startall
    # EMD starting (not needed for OID, only for web administration)
    emctl start
    export DISPLAY=$ALTDISP
    ----infrastart end------
    ----infrastop begin----
    # stopping infrastructure components
    # get env
    . ./infraenv
    ALTDISP=$DISPLAY
    export DISPLAY=localhost:0.0
    # EMD stopping (not needed for OID, only for web administration)
    # setting pw variable to avoid emctl asking for pw
    export EM_ADMIN_PWD=<ias_admin_password>
    emctl stop
    # Webcache stop
    webcachectl stop
    # HTTP and OC4J stopping
    dcmctl shell <<!
    getState -v
    stop -v -ct ohs
    stop -v -co OC4J_DAS
    getState -v
    # OPMN stop (to stop opmn and his shadow process)
    opmnctl stopall
    # OID stopping
    oidctl connect=iasdb server=oidldapd instance=1 stop
    sleep 5
    oidmon connect=iasdb stop
    # listener stopping
    lsnrctl stop
    # database stopping
    sqlplus "/ as sysdba" <<!
    shutdown immediate
    export DISPLAY=$ALTDISP
    ----infrastop end------
    2) STORAGE
    If there are different databases for mailstore and Files, then each of them
    needs these scripts
    ----dbenv begin------
    export ORACLE_BASE=<your ORACLE_BASE, e.g. /u01/oracle>
    export ORACLE_HOME=<your ORACLE_HOME, e.g. /u01/oracle/product/storage>
    export PATH=$ORACLE_HOME/bin:/usr/local/bin:$PATH
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib:$LD_LIBRARY_PATH
    export NLS_LANG=<your NLS setting, e.g. american_america.UTF8>
    export ORACLE_SID=<your SID, e.g. OCS>
    export TNS_ADMIN=$ORACLE_HOME/network/admin
    export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
    ----dbenv end--------
    ----dbstart begin------
    # starting storage components
    # get env
    . ./dbenv
    # listener starting
    lsnrctl start
    # listener checking
    lsnrctl status
    # database starting
    sqlplus "/ as sysdba" <<!
    startup
    ----dbstart end--------
    ----dbstop begin------
    # stopping storage components
    # get env
    . ./dbenv
    # listener stopping
    lsnrctl stop
    # database stopping
    sqlplus "/ as sysdba" <<!
    shutdown immediate
    ----dbstop end--------
    3) MIDTIER COMPONENTS
    first of all start Calendar and Files before the other components always
    (both of them as root !)
    switch from oracle with environment set (see below) to root with 'su'
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
    cd /users/unison/bin
    ./unistart
    cd $ORACLE_HOME/ifs/files/bin
    ./ifsctl start
    check <Note.205298.1> Considerations how to start UM listener as oracle
    to see, if you can start listener_es as oracle (as desribed below) or not
    ----midenv begin------
    export ORACLE_BASE=<your ORACLE_BASE, e.g. /u01/oracle>
    export ORACLE_HOME=<your ORACLE_HOME, e.g. /u01/oracle/product/midtier>
    export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/dcm/bin:$ORACLE_HOME/opmn/bin:/usr/local/bin:$PATH
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib:$LD_LIBRARY_PATH
    export NLS_LANG=<your NLS setting, e.g. american_america.UTF8>
    export TNS_ADMIN=$ORACLE_HOME/network/admin
    export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
    ----midenv end--------
    ----midstart begin------
    # starting midtier components
    # get env
    . ./midenv
    # UM listener_es start
    lsnrctl start listener_es
    dcmctl shell <<!
    getState -v
    start -v -ct ohs
    start -v -co OC4J_Portal
    start -v -co OC4J_UM
    start -v -co OC4J_iFS_files
    getState -v
    # Webcache start (if configured, but not started, OC4J may fail)
    webcachectl start
    # EMD (if installed and enabled)
    emctl start
    # UM processes
    oesctl startup midtierhost:um_system:smtp_in
    oesctl startup midtierhost:um_system:smtp_out
    oesctl startup midtierhost:um_system:imap
    oesctl startup midtierhost:um_system:gc
    oesctl startup midtierhost:um_system:list
    oesctl startup midtierhost:um_system:pop
    ----midstart end--------
    ----midstop begin------
    # stopping midtier components
    # get env
    . ./midenv
    export password=oracle1
    export myprompt=false
    export prompt=false
    ifsctl stop
    oesctl shutdown sniprim2:um_system:smtp_in
    oesctl shutdown sniprim2:um_system:smtp_out
    oesctl shutdown sniprim2:um_system:imap
    oesctl shutdown sniprim2:um_system:gc
    oesctl shutdown sniprim2:um_system:list
    oesctl shutdown sniprim2:um_system:pop
    lsnrctl stop listener_es
    # Webcache stop
    webcachectl stop
    dcmctl shell <<!
    getState -v
    stop -v -ct ohs
    stop -v -co OC4J_Portal
    stop -v -co OC4J_UM
    stop -v -co OC4J_iFS_files
    getState -v
    opmnctl stopall
    ----midstop end--------

  • Stop and then start Listener from OEM

    Hi,
    I am new to Oracle. I notice after stopping listener using OEM on Windows XP, the TNSLNR.exe is terminated as I expected. At that point, all connections include OEM, iSQL*PLUS and SQL*PLUS should close connection.
    If this is right, how can one start listener from OEM? One needs listener work before using OEM to config something else. What is the purpose of Start button for listener on OEM? Even more perplexing me is that iSQL*PLUS is still works! Does iSQL*PLUS not use listener for connection?
    Your help will be appreciated,
    -Hong

    Hi
    i think its not possible to start the listener from oem, because the oem use the listener to communicate to the db.
    Regards
    Mirko

  • Oracle XE Listener Requiring Service To Be Set To 'Automatic (Delayed Start

    Can anyone offer any insight/explanation as to why the Oracle Listener would require the service to be set to 'Automatic (Delayed Start)' When it is set to just automatic, it does not even try to start. No output to the listener log, and nothing to the event viewer. It is as if it never even tries to start. Once switched to 'Automatic (Delayed Start)' it works as expected. Additionally if you manually start the service due to it not starting automatically, it works fine as well.
    OS: Windows 7 64BIT
    Service is being run by the local system account and is set to allow to interact with desktop. -Local system account is part of the administrator group.

    OS: Windows 7 64BITFirst point, win7 isn't on the 10g XE "supported OS" list. The installer is nearly as old as Firefox 1.0. Not to say folks haven't been able to get it working, plenty of other threads cover that topic.
    Delayed start, auto start ... how critical is that functionality for your install? My suggestion, set it to Manual, and if you need the database, start the listener and then start the database service. If the database isn't needed keep your RAM and system resources available for other stuff.
    Sorry can't be more helpful (esp. for win7, don't have it, don't use it, same for vista) but XE is more of a "playground" environment for test drives, kicking the tires, etc., a practice resource intended as an introduction to managing an oracle instance.
    And always start the listener service first, that allows the database to register with the listener as it completes its startup processing. If startup goes the other way around, the Apex might not be immediately available, but a sqlplus system connection and `alter system register;` command will fix that.

  • What effects when the scripts in INST_TOP were START / STOP

    What effects when the scripts in INST_TOP were START / STOP
    adalnctl.sh adforms-c4wsctl.sh adopmnctl.sh gsmstart.sh msc
    adapcctl.sh adformsctl.sh adpreclone.pl ieo mwactl.sh
    adautocfg.sh adformsrvctl.sh adstpall.sh javacache.log mwactlwrpr.sh
    adcmctl.sh adoacorectl.sh adstrtal.sh java.sh sqlnet.log
    adexecsql.pl adoafmctl.sh cm.sql jtffmctl.sh synonym.txt
    When we will connect through front end (URL), how will we know that which service is not working and what is the main problem and how to solve that.

    Please post the details of the application release, database version and OS.
    What is the status of the services? Please issue "adopmnctl.sh status" and post the output here.
    What is the reason, when we tried to connect through front end but its showing white screen and not connect? How to rectify it?Compile JSP files manually -- Blank Page Accessing R12 - 'Missing class: _RF' in OACore application.log [ID 467562.1]
    What is the reason, when we entered our Username and Password on first screen, but after that its not connected to our apps? How to rectify it?What is the error? Any errors in Apache log files?
    What is the reason, when it shows HTTP Error 500 Internal Server error. How to rectify it?Again, check Apache log files for details about the error.
    Please run AutoConfig and make sure it completes successfully.
    Also, make sure no errors are reported in the database log file.
    R12: Troubleshooting 500 Internal Server Error in Oracle E-Business suite [ID 813523.1]
    Thanks,
    Hussein

  • Why does my iphone 5 automatically revert to shuffle when I start listening to music after sitting overnight?

    I am playing through my music collection alphabetically at work. But, when I stop listening at the end of the day and then start listening at the beginning of the next day, my iPhone starts shuffling instead of continuing alphabetically. Anyone else having that problem? Any ideas why it is doing that?

    My new iphone 5 shuffles all the time even when the shuffle icon isn't selected.  It's driving me crazy I can never listen to the song I want to hear.  On my created playlist it won't play any song it just shuffles through all of them list wise then goes back to the main menu having not played even one song.  I'm so frustrated I could scream.  Something is worng some sort of software glitch.  I never had this problem until I got this new phone two weeks ago.

  • Stop/start logical standby db

    Version 10203 on AIX
    Have to stop/start logical standby db, new to data guard, Please confirm these are the steps to do that
    on primary db
    SQL > alter system switch logfile ;
    SQL > alter system archive log current ; ( to make sure current transactions come thru)
    check tail of alert log of standby to make sure these redologs shipped & mined
    standby db
    SQL> ALTER DATABASE STOP LOGICAL STANDBY APPLY; (stop SQL Apply)
    SQL> shutdown immediate;
    Lsnrctl stop listener_corp_remrpt-haprimary db
    SQL > shutdown immediate ;
    Lsnrctl stop listener_corp_remprd-ha
    Dont shutdown abort for any case, if both dbs are going down, first stop SQL apply on standby, take primary down and then take standby down)
    Startup
    primary
    SQL>startup;
    Lsnrctl start listener_corp_remprd-ha
    Standby
    SQL > startup
    SQL > alter database start logical standby apply immediate ;
    Lsnrctl start listener_corp_remrpt-ha

    Hi
    As you posted ,you are using Real Time Sql apply,So,it is LGWR who transfer changes to standby site.It is very safe to follow these steps for new user.
    1.Stop logical standby apply(Standby Database).
    2.Shutdown Primary Database.
    3.Shutdown logical standby Database.
    At startup
    1.Start Logical Standby Database.
    2.Start Primary Database.
    3.Start logical standby apply.
    At the case when primary database is taking long time to shutdown processed ,You can also use
    shutdown abort,but before doing abort be sure you have stop logical standby apply.When your primary database started,it automatically perform instance recovery.Primary site have to resolve gap in this case.
    At the case when you must have to perform shutdown abort at primary database,you can do it.By doing it you will not loose anything.Primary database has to resolve gap and it will take time to be consistent with primary site.
    Tinku

  • I can't start listener in the Control Painel/Admin Tools/ Services

    Windows XP - Home Edition (I know it´s not the better but came with my laptop)
    I installed the Oracle 10g and I don't know why I have 3 listener as services. Its services showed me different messages when I tried start it:
    1. OracleOraDb10g_home1TNSListener: Could not start the 2. OracleOraDb10g_home1TNSListener service on Local Computer
    2. OracleOraDb10g_home1TNSListenerORCL: The OracleOraDb10g_home1TNSListenerORCL service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performace Logs and Alerts service
    3. OracleOraDb10g_home1TNSListenerSID_LIST_LISTENER: The OracleOraDb10g_home1TNSListenerSID_LIST_LISTENER service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performace Logs and Alerts service
    ====PATH======
    Path=C:\oracle\product\10.1.0\Db_3\bin;C:\Program Files\oracle 8i\bin;C:\oracle\
    product\10.1.0\Db_3\jdk\jre\bin;C:\oracle\product\10.1.0\Db_3\jdk\jre\bin\classi
    c;C:\oracle\product\10.1.0\Db_3\jdk\jre\bin\classic;C:\oracle\product\10.1.0\Db_
    3\jlib;C:\oracle\product\10.1.0\Db_3\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C
    :\oracle\product\10.1.0\Db_3\jre\1.4.2\bin\client;C:\oracle\product\10.1.0\Db_3\
    jre\1.4.2\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
    Files\ATI Technologies\ATI Control Panel;%java_home%\bin;C:\Program Files\Commo
    n Files\Ulead Systems\MPEG;C:\WINDOWS\system32\gs\gs8.13\bin
    ====REGISTRY======
    TNS_ADMIN I set as Binary Data in the HKEY_CURRENT_USER\Environment with the path C:\oracle\product\10.1.0\Db_3\NETWORK\ADMIN
    ====LISTENER.ORA======
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.1.0\Db_3)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.17)(PORT = 1521))
    ====TNSNAMES.ORA========
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.17)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ====SQL.ORA========
    NAMES.DEFAULT_DOMAIN = 192.168.0.17
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    =======OS CONFIGURATION================
    C:\>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 23-MAR-2006 08:23
    :44
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    32-bit Windows Error: 2: No such file or directory
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.17)(PORT=1521)
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    32-bit Windows Error: 61: Unknown error
    C:\>ipconfig
    Windows IP Configuration
    Ethernet adapter Local Area Connection:
    Media State . . . . . . . . . . . : Media disconnected
    Ethernet adapter Wireless Network Connection 2:
    Connection-specific DNS Suffix . : myhome.westell.com
    IP Address. . . . . . . . . . . . : 192.168.0.17
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . . . . : 192.168.0.1
    C:\>
    Please, if somebody knows this problem I need a very urgent help. Thank you very much.

    Thanks ALL, I GOT IT, but I used other solution.
    Since I installed and uninstalled the Oracle several times, it keeps also many different Services for the listener. I don't know why, it didn't create a Service for my actual instalation with its path. In other words, all the services remained in the services.msc panel, had the path that was already removed from the Windows folder.
    Then what I did, was that I picked one service, took its name (OracleOraDb10g_home1TNSListener), went to regedit to [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\OracleOraDb10g_home1TNSListener] and simply changed the image path that was setted for the one that was removed (C:\oracle\product\10.1.0\Db_2\BIN\TNSLSNR ) for mine that is installed right now
    (C:\oracle\product\10.1.0\Db_1\BIN\TNSLSNR). Nothing more and finally works.
    I have tried something in the services.msc panel before, as you can see in this forum at the thread "I can't start listener in the Control Painel/Admin Tools/ Services", but I never got
    success.
    Appreciate your time!!

  • Trouble starting listener

    Hi.
    AIX 5.2 / 9i.
    I can connect to our DEV instance if I go to the server itself, no problem.
    If I try with SQL*Plus then I get the old "no listner" response.
    If I try "lsnrctl status" on the server I get:
    oradbdev@TEST:lsnrctl status
    LSNRCTL for IBM/AIX RISC System/6000: Version 9.2.0.5.0 - Production on 25-SEP-2
    008 12:31:47
    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(PORT=1521))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    IBM/AIX RISC System/6000 Error: 79: Connection refused
    If I try to lsnrctl start this is returned:
    oradbdev@TEST:lsnrctl start
    LSNRCTL for IBM/AIX RISC System/6000: Version 9.2.0.5.0 - Production on 25-SEP-2
    008 12:32:31
    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
    Starting /oradbi2/oracle/testdb/9.2.0/bin/tnslsnr: please wait...
    TNSLSNR for IBM/AIX RISC System/6000: Version 9.2.0.5.0 - Production
    NL-00280: error creating log stream /oradbi2/oracle/testdb/9.2.0/network/log/lis
    tener.log
    NL-00278: cannot open log file
    SNL-00016: snlfohd: error opening file
    IBM/AIX RISC System/6000 Error: 13: Permission denied
    Listener failed to start. See the error message(s) above...
    The line in bold worries me. I have just cloned this DEV instance from TEST, and the /oradbi2/oracle path is the TEST instance not the DEV.
    I have run adcfgclone almost to the end but it terminated with a connection failure.
    I have been discusing this with Metalink but for the last 3 hours I have heard nothing from them. So I thought I would give you unpaid experts a shot.
    Thanks for any advice in advance.

    No - that apps listener issue is (on advise of ML) to be left until we complete the cloning.
    You are right - there is an issue with permissions, but then I expect there would be because the listener on oradbi2 is owned by a different user since its on another instance (TEST).
    The problem is that the DEV user is still looking at TEST (we cloned from TEST).
    Perhaps this is because the adcfgclone script did not finish 100%.
    I dont know which .env file I might take a look at to ensure that DEV points to oradbi3 and not oradbi2.
    Actually, I just did a reload and now when I try Status it is pointing to the right destination (oradbi3)
    Connecting to (ADDRESS=(PROTOCOL=tcp)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for IBM/AIX RISC System/6000: Version 9.2.0.5.
    0 - Production
    Start Date 25-SEP-2008 13:16:33
    Uptime 0 days 0 hr. 0 min. 2 sec
    Trace Level off
    Security OFF
    SNMP OFF
    Listener Parameter File /oradbi3/oracle/devdb/9.2.0/network/admin/DEV_doraldb/
    listener.ora
    Listener Log File /oradbi3/oracle/devdb/9.2.0/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=doraldb.doral.com)(PORT=1521)))
    The listener supports no services
    The command completed successfully
    It claims to be set to port 1521, yet when I go to the listner.ora file itself, it is listening on port 1525, which is what I set it to in the adcfgclone.pl stage.
    Still cannot make sql connections - I have tried changing the port number in my own tnsnames.ora to both 1525 and / or 1521 and still the old "no listener" response.
    Edited by: Dan A on Sep 25, 2008 1:14 PM

  • Srvctl start listener -n rac1 gives CRS-1028 and CRS-0223

    Boot up 2 linux 10.2.0.1.0 RAC nodes.
    everything starts except listeners
    srvctl start listener -n rac1
    or
    srvctl start listener -n rac2
    gives
    CRS-1028
    CRS-0223
    However, if you start listeners manually, using
    lsnrctl start listener_rac1
    or
    lsnrctl start listener_rac2
    they start right up. Moreover, once you have started them manually, the srvctl start listener commands now work, both stopping and starting the listeners with srvctl now works. However, when reboot systems, again srvctl must be "primed" for starting listener by doing one "manual" startup of listener.
    Any thoughts on what is causing this behavior?
    Thanks!

    Alan, thanks - excellent advice. However, I just ended up redoing the entire install and this of course fixed the problem :-)
    Thanks for your reply, Gil
    PS also, btw I use the crsstat script instead of the crs_stat for better formatting, i.e. this script (which I named crsstat) lives in $ORA_CRS_HOME/bin. Also, note I am not the author of this script, I downloaded it from Metalink:
    #!/usr/bin/ksh
    # Sample 10g CRS resource status query script
    # Description:
    # - Returns formatted version of crs_stat -t, in tabular
    # format, with the complete rsc names and filtering keywords
    # - The argument, $RSC_KEY, is optional and if passed to the script, will
    # limit the output to HA resources whose names match $RSC_KEY.
    # Requirements:
    # - $ORA_CRS_HOME should be set in your environment
    RSC_KEY=$1
    QSTAT=-u
    AWK=/usr/bin/awk # if not available use /usr/bin/awk
    # Table header:echo ""
    $AWK \
    'BEGIN {printf "%-45s %-10s %-18s\n", "HA Resource", "Target", "State";
              printf "%-45s %-10s %-18s\n", "-----------", "------", "-----";}'
    # Table body:
    $ORA_CRS_HOME/bin/crs_stat $QSTAT | $AWK \
    'BEGIN { FS="="; state = 0; }
    $1~/NAME/ && $2~/'$RSC_KEY'/ {appname = $2; state=1};
    state == 0 {next;}
    $1~/TARGET/ && state == 1 {apptarget = $2; state=2;}
    $1~/STATE/ && state == 2 {appstate = $2; state=3;}
    state == 3 {printf "%-45s %-10s %-18s\n", appname, apptarget, appstate; state=0;}'

Maybe you are looking for

  • HT1918 can I remove my credit card from my account

    I see that I can create an account without a credit card, but can I remove my credit card info from my current account?

  • Crazy Trackpad Issue Again On Macbook Pro 13" 2011 OSX Lion

    anybody having the same problem with their trackpad? mine was bought last july 2011 and this crazy trackpad thing started a few days ago. It keeps moving, opening new folders, swiping through desktops. is this because of an update? advice anyone? tha

  • Output format at new

    hi , my requirement is at every new lifnr that lifnr no. should be displayed on the top of the output. TABLES: BSEG,         BKPF,         BSAK,         LFA1. TYPES : BEGIN OF TY_BSEG,       BELNR LIKE BSEG-BELNR,       BUZEI LIKE BSEG-BUZEI,       B

  • Xml slideshow playback controls issue

    Hi, I'm trying to create a picture slideshow which can be controled by the user with play / stop / next buttons. I've managed to program the play / stop events with success, but I'm stuck trying to create the next button event since it doesn´t work p

  • Sending Email Disappears Sometimes

    I help manage an exchange server for a small business (~100 users).  I have 1 user that says her sent email will disappear from time to time.  This is how she described it:  She creates and email and sends it to several users.  Usually about 30-60 mi