最简单的监听配置
listener=--监听名 默认是listener
(descripion=--它的上头还有一个可选项 description_list 没有监听只能有一个description_list
--description_list中可定义多个description
--multiple descriptions in order to listen on multiple ports, or to support more than one protocol stack.
(address=--配置需要被监控的地址 一个description中可配置多个address
(host= 127.0.0.1)--可以是IP 也可以是主机名 主机名通过DNS服务器被进一步解析为IP 地址
(port = 1521)--默认的端口号
(protocol = tcp)) --监听协议 10g版本中支持TCP NAMED PIPES(NMP) SDP(SOCKETS DIRECT PROTOCOL)
--以及IPC协议 操作系统专有的进程间通信协议
)
listener is the software that runs on the server and that monitors the network for incoming database connection requests.
说白了就是开放主机的入口 如果不配置某些主机监听,任何连接的请求都是无效 这个东东权利很大 它可以限制端口、协议等 还能指定客户端连接的时限。。见下文。。
控制参数
Control parameters are used in the listener.ora file to control and specify various aspects of a listener's behavior. Among
other things, these allow you to specify listener trace settings, log file locations, and listener timeouts. Control parameters are all simple name/value pairs that
take the following form.:
parameter_name_listener_name = value
The listener name is always appended to the end of the parameter name. This allows Net8 to distinguish the parameters
controlling one listener from those
controlling another
同SID_LIST一样的 参数的命名都是参数名后跟监听名
这个参数的作用等同于lsnrctl中部分命令
例如:
CONNECT_TIMEOUT_PROD_LISTENER = 20
TRACE_LEVEL_PROD_LISTENER = OFF
CONNECT_TIMEOUT_DEV_LISTENER = 60
TRACE_LEVEL_DEV_LISTENER = SUPPORT
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/21993926/viewspace-665432/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/21993926/viewspace-665432/