1. Get rid of all advertisements and get unlimited access to documents by upgrading to Premium Membership. Upgrade to Premium Now and also get a Premium Badge!

TNS-12541: TNS:no listener

Discussion in 'Installation - Unix and Unix Like' started by ujjwalrana, Jan 1, 2015.

  1. ujjwalrana

    ujjwalrana Guest

    I have grid installed in my pc but the problem is LISTENER does not start automatically. I have to start listener manually and then only LISTENER get started. But before starting listener if you check the status first then here is what is shows if you try LSNRCTL STATUS

    MY QUESTION IS HOW SHOULD I MAKE THE LISTENER RUN AUTOMATICALLY ?

    Please check the necessary required information below : -

    *************************************************************************************************************************************************************************************************************

    [grid@netsystemsolution ~]$ lsnrctl status

    LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 01-JAN-2015 12:01:56

    Copyright (c) 1991, 2011, Oracle. All rights reserved.

    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=netsystemsolution[dot]com)(PORT=1521)))

    TNS-12541: TNS:no listener

    TNS-12560: TNS:protocol adapter error

    TNS-00511: No listener

    Linux Error: 111: Connection refused

    *************************************************************************************************************************************************************************************************************
     
  2. jagadekara

    jagadekara Forum Guru

    Messages:
    1,126
    Likes Received:
    145
    Trophy Points:
    1,805
    Location:
    Pulivendula
    Hi,

    Post this thread in respective forum.
     
  3. Bharat

    Bharat Community Moderator Forum Guru

    Messages:
    1,747
    Likes Received:
    147
    Trophy Points:
    1,805
    Location:
    Vijayawada, India
    Hi Ujjwalrana,

    In the Start Menu, type as services.msc
    There you can find the installed software.
    Double click on it, then properties will be opened.
    There choose Startup Type as Automatically from Manual.
    and apply and ok.
    Then there after whenever we start our machine, then that service will be started automatically.
     
  4. zargon

    zargon Community Moderator Forum Guru

    Messages:
    2,345
    Likes Received:
    347
    Trophy Points:
    1,430
    Location:
    Aurora, CO
    This is a Linux system, not Windows.


    If this is recent Red Hat or Oracle Linux you can use the @reboot date/time specifier in cron and schedule a script to start the listener (you will need to write such a script). An example follows:


    #
    # cron entries
    #
    @reboot /home/oracle/bin/start_listener.sh > /home/oracle/logs/start_listener.log 2>&1


    This way every time the server reboots the listener will start.