Saturday 26 May 2018

How to start/stop and check the status of listener.


This doc describes us how to start/stop and check the status of listener.

How to start listener:

Step 1: Find the listener name from listener configuration file. I.e., listener.ora which is under $ORACLE_HOME/network/admin

[oracle@silver ~]$ cd $ORACLE_HOME/network/admin
[oracle@silver admin]$ cat listener.ora
# listener.ora Network Configuration File: /u01/app/oracle/product/12.1.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.

OBIEE =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = silver.apps.com)(PORT = 1521))
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    )
  )

Step 2: Start listener

Syntax:  [oracle@silver admin]$ lsnrctl start <Listener Name>

Below is the example.

[oracle@silver admin]$ lsnrctl start OBIEE

LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 26-MAY-2018 21:27:51

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

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     OBIEE
Version                   TNSLSNR for Linux: Version 12.1.0.2.0 - Production
Start Date                26-MAY-2018 21:25:57
Uptime                    0 days 0 hr. 1 min. 53 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/12.1.0/dbhome_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/silver/obiee/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=silver.apps.com)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=silver.apps.com)(PORT=5500))(Security=(my_wallet_directory=/u01/app/oracle/admin/OBIEE/xdb_walSylet))(Presentation=HTTP)(Session=RAW))
Services Summary...
Service "OBIEE.apps.com" has 1 instance(s).
  Instance "OBIEE", status READY, has 1 handler(s) for this service...
Service "OBIEEXDB.apps.com" has 1 instance(s).
  Instance "OBIEE", status READY, has 1 handler(s) for this service...
The command completed successfully

How to stop listener:

Syntax: [oracle@silver admin]$ lsnrctl stop <Listenet Name>

[oracle@silver admin]$ lsnrctl stop OBIEE

LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 26-MAY-2018 21:33:47

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

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=silver.apps.com)(PORT=1521)))
The command completed successfully

How to check the status of listener:

Syntax: [oracle@silver admin]$ lsnrctl status <Listener Name>

[oracle@silver admin]$ lsnrctl status OBIEE

LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 26-MAY-2018 21:37:11

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

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=silver.apps.com)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     OBIEE
Version                   TNSLSNR for Linux: Version 12.1.0.2.0 - Production
Start Date                26-MAY-2018 21:36:03
Uptime                    0 days 0 hr. 1 min. 7 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/12.1.0/dbhome_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/silver/obiee/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=silver.apps.com)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=silver.apps.com)(PORT=5500))(Security=(my_wallet_directory=/u01/app/oracle/admin/OBIEE/xdb_wallet))(Presentation=HTTP)(Session=RAW))
Services Summary...
Service "OBIEE.apps.com" has 1 instance(s).
  Instance "OBIEE", status READY, has 1 handler(s) for this service...
Service "OBIEEXDB.apps.com" has 1 instance(s).
  Instance "OBIEE", status READY, has 1 handler(s) for this service...
The command completed successfully

How to check the background process for listener:

[oracle@silver admin]$ ps -ef | grep tns
root        15     2  0 20:28 ?        00:00:00 [netns]
oracle    4659     1  0 21:36 ?        00:00:00 /u01/app/oracle/product/12.1.0/dbhome_1/bin/tnslsnr OBIEE -inherit
oracle    4888  3020  0 21:49 pts/0    00:00:00 grep tns


Thanks for you patience to view my post........

No comments:

Post a Comment