Oracle Listener |
||
| Version 10.2 |
Listener Commands |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The listener's involvement is summarized as:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| change_password | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| exit | quit the listener application | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| c:\oracle\product\ora10\bin>
lsnrctl LSNRCTL> exit |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| help | view help information | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| c:\oracle\product\ora10\bin>
lsnrctl
start or c:\oracle\product\ora10\bin> lsnrctl LSNRCTL> help |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| kill on *NIX | ps -ef|grep tnslsnr|awk '{ print $2; }'|xargs kill -9 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| quit | quit the listener application | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| c:\oracle\product\ora10\bin>
lsnrctl LSNRCTL> quit |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| reload | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| save_config | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
set |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| services | view the current listener services | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| c:\oracle\product\ora10\bin> lsnrctl services | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| show |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| start | start the listener | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| c:\oracle\product\ora10\bin> lsnrctl start | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| status | view the current listener status | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| c:\oracle\product\ora10\bin> lsnrctl status | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| stop | stop the listener | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| c:\oracle\product\ora10\bin> lsnrctl stop | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| trace | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| version | Show the currently installed listener version | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| c:\oracle\product\ora10\bin> lsnrctl version | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Listener Parameters |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Prevent remote modification of listener.ora using lsnrctl commands | ADMIN_RESTRICTIONS_[listener_name]=<ON | OFF> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ADMIN_RESTRICTIONS_ORABASE=ON | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Listener.ora Samples |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Typical Listener.ora file | # listener.ora Network Configuration File: # c:\oracle\product\ora10\network\admin\listener.ora # Generated by Oracle configuration tools. SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = C:\oracle\product\ora10) (PROGRAM = extproc) ) (SID_DESC = (GLOBAL_DBNAME = orabase) (ORACLE_HOME = C:\oracle\product\ora10) (SID_NAME = orabase) ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC)) ) (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = perrito)(PORT = 1521)) ) ) ) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Queue Size | Add the queuesize parameter in your listener.ora file
in the address description. By default oracle is able to open only 16 simultaneous
connections The result should look like this: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
(ADDRESS= (PROTOCOL = TCP)(HOST = your-hostname)(PORT = 1521) (QUEUESIZE = 30) ) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Trace Levels | TRACE_LEVEL_<listener_name> = <value> Value equivalents: OFF (equivalent to 0) provides no tracing USER (equivalent to 4) identify user error error conditions ADMIN (equivalent to 6) identify installation-specific problems SUPPORT (equivalent to 16) provides trace information for support Trace file results are written to $ORACLE_HOME/network/trace. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| TRACE_LEVEL_LISTENER = USER | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Related Topics |