Oracle LSNRCTL – Listener Shutdown and Startup Procedures
1) Oracle listener is not running .
connect user prabhakarh
pass:
1) sudo bash
2) connect oracle user (su - oracle)
C:\>lsnrctl status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))
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=localhost)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 61: Unknown error
2) Oracle listener is running
C:\>lsnrctl status
LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 10-JAN-2015 12:17
:41
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Produ
ction
Start Date 10-JAN-2015 12:17:34
Uptime 0 days 0 hr. 0 min. 7 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File E:\app\honnikery\product\11.2.0\dbhome_1\network\admin
\listener.ora
Listener Log File e:\app\honnikery\diag\tnslsnr\honnikery-PC\listener\al
ert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
3. Stop Oracle Listener
$ lsnrctl stop Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))) The command completed successfully
4. Restart Oracle Listener
lsnrctl reload Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.2)(PORT=1521))) The command completed successfully
listener full help
C:\>lsnrctl LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 10-JAN-2015 12:28 :24 Copyright (c) 1991, 2010, Oracle. All rights reserved. Welcome to LSNRCTL, type "help" for information. LSNRCTL> help The following operations are available An asterisk (*) denotes a modifier or extended command: start stop status services version reload save_config trace change_password quit exit set* show* LSNRCTL> Oracle Listener Help 1. View Available Listener Commands lsnrctl help command will display all available listener commands. In Oracle 11g following are the available listener commands. start – Start the Oracle listener stop – Stop the Oracle listener status – Display the current status of the Oracle listener services – Retrieve the listener services information version – Display the oracle listener version information reload – This will reload the oracle listener SID and parameter files. This is equivalent to lsnrctl stop and lsnrctl start. save_config – This will save the current settings to the listener.ora file and also take a backup of the listener.ora file before overwriting it. If there are no changes, it will display the message “No changes to save for LISTENER” trace – Enable the tracing at the listener level. The available options are ‘trace OFF’, ‘trace USER’, ‘trace ADMIN’ or ‘trace SUPPORT’ spawn – Spawns a new with the program with the spawn_alias mentioned in the listener.ora file change_password – Set the new password to the oracle listener (or) change the existing listener password. show – Display log files and other relevant listener information.
No comments:
Post a Comment