Oracle 参数 LISTENER_NETWORKS 官方解释,作用,如何配置最优化建议

本站中文解释

参数

LISTENER_NETWORKS参数是Oracle Net层的一个参数,它用于指定TNS Listener支持的网络协议。

此参数主要用于客户端-服务器通信,在客户端连接数据库时,TNS Listener将接受其网络协议并与之通信。 如果传输协议不在 LISTENER_NETWORKS 中声明,则TNS Listener不会通过此协议接受客户端连接。好处是,在客户端数量增加时,只需要添加一条LISTENER_NETWORKS参数即可。

正确设置 LISTENER_NETWORLK参数:

1.从Oracle官网下载 Oracle Net 软件包,或从安装的Oracle数据库的客户端路径中获取

2.解压Net软件包,并在解压缩的文件夹中打开./network/admin/例如 $ORACLE_HOME/network/admin 文件

3.打开listener.ora 文件,将LISTENER_NETWORKS参数设置为拥有的网络协议,例如:

(1)TCP:(TRANSPORT_CONNECT_TIMEOUT = 30)

LISTENER_NETWORKS = (TCP_SEND_BUF_SIZE = 1048576)

(2)UDP:(TRANSPORT_CONNECT_TIMEOUT = 30)

LISTENER_NETWORKS = (UDP_SEND_BUF_SIZE = 1048576)

(3)IPC:(TRANSPORT_CONNECT_TIMEOUT = 30)

LISTENER_NETWORKS = (IPC_SEND_BUF_SIZE = 1048576)

4.保存文件,并重启TNS Listener以启用LISTENER_NETWORKS参数

官方英文解释

LISTENER_NETWORKS specifies one or more sets of local, forward, and remote listeners for cross-registration. All listeners within the same network_name will cross-register.

Property Description

Parameter type

String

Syntax

LISTENER_NETWORKS =

'((NAME=network_name) (LOCAL_LISTENER=["]listener_address[,...]["]) (FORWARD_LISTENER=["]listener_address[,...]["]) [(REMOTE_LISTENER=["]listener_address[,...]["])])' [,...]

Default value

There is no default value.

Modifiable

ALTER SYSTEM

Modifiable in a PDB

Yes

Basic

No

If a network_name is specified multiple times, then the resulting listener set is the union of each specification. This can be used to specify sets that require more than 255 characters, which is the per element limit.

The listener_address specifies a string that is an address, address list, or an alias that resolves to an address or address list of Oracle Net listeners. If an alias, the address or address list is specified in the TNSNAMES.ORA file or another address repository as configured for your system.

If a comma is used to specify a listener_address list, then the set of addresses must be surrounded by double quotes.

See Also:

  • “LOCAL_LISTENER”

  • “FORWARD_LISTENER”

  • “REMOTE_LISTENER”

  • Oracle Database Net
    Services Administrator’s Guide
    for more information on setting this parameter


数据运维技术 » Oracle 参数 LISTENER_NETWORKS 官方解释,作用,如何配置最优化建议