`

监听文件 LISTENER.ORA 各参数意思

阅读更多
监听文件 LISTENER.ORA 各参数意思

The following items are available in the network listener configuration file (listener.ora).
    * Listener Address Section
    * SID_LIST_listener_name Static Service Section
    * Control Parameters

The listener.ora file is located in $ORACLE_HOME/network/admin on UNIX and ORACLE_HOME\network\admin on Windows NT, or in the directory specified by the TNS_ADMIN environment variable or registry value.

1. Listener Address Section

The listener address section of the listener.ora file defines the protocol address(es) of the listener.

DESCRIPTION

Purpose: Defines listener protocol address(es)
Example:
listener_name=
(description=
(address=(protocol=ipc)(key=extproc0))
(address=(protocol=tcp)(host=sales-pc)(port=1521)))

ADDRESS

Purpose: Defines a listener protocol address. This parameter can be embedded under a ADDRESS_LIST or DESCRIPTION.
Example:
listener_name=
(description=
(address=(protocol=ipc)(key=extproc0))
(address=(protocol=tcp)(host=sales-pc)(port=1521)))

ADDRESS_LIST

Purpose:
Defines lists of listener protocol addresses. If there is only one list of addresses, it is not necessary to use this parameter. This parameter can be embedded under a DESCRIPTION.
Example:
listener_name=
(description=
(address_list=
   (address=(protocol=ipc)(key=extproc0))
   (address=(protocol=tcp)(host=sales-pc)(port=1521))))

2. SID_LIST_listener_name Static Service Section

You can use the SID_LIST section of the listener.ora to statically configure service information with the listener.
The SID_LIST is required for backward compatibility with Oracle8 or Oracle7 databases, as well as external procedures and heterogeneous services, and some management tools, including Oracle Enterprise Manager.
Oracle8i database information is dynamically registered with the listener during instance startup. Therefore, this information is not required, unless Oracle Enterprise Manager is used to monitor an Oracle8i database.

sid_list_listener_name=
(sid_list=
   (sid_desc=
    (global_dbname=global_database_name)
    (sid_name=sid)
    (oracle_home=oracle_home)
    (prespawn_max=99)
    (prespawn_list=
      (prespawn_desc=
        (protocol=tcp)
        (pool_size=10)
        (timeout=2))
      (prespawn_desc=...)))
   (sid_desc=...))

SID_LIST contains the following parameters:

GLOBAL_DBNAME

Purpose: Identifies the global database name of the database, a name comprised of the database name and database domain. You can obtain the GLOBAL_DBNAME value from the SERVICE_NAMES parameter in the initialization parameter file. This parameter must be embedded under SID_DESC and should match the value of the SERVICE_NAMES parameter.
Example:
sid_list_listener_name=
(sid_list=
   (sid_desc=
    (global_dbname=oracle.com)
    (sid_name=orcl)
    (oracle_home=/usr/oracle)))

ORACLE_HOME

Purpose: Identifies the Oracle home location of the service. This parameter must be embedded under SID_DESC.
Example:
sid_list_listener_name=
(sid_list=
   (sid_desc=
     (sid_name=extproc)
     (oracle_home=/usr/oracle)
     (program=extproc)))

PROGRAM

Purpose: Identifies the service's executable program name
Example:
sid_list_listener_name=
(sid_list=
   (sid_desc=
     (sid_name=extproc)
     (oracle_home=oracle)
     (program=extproc)))

SID_NAME

Purpose: Identifies the Oracle System Identifier (SID) of the instance. You can obtain the SID value from the INSTANCE_NAME parameter in the initialization parameter file. This parameter must be embedded under SID_DESC.
Example:
sid_list_listener_name=
(sid_list=
   (sid_desc=
    (global_dbname=oracle.com)
    (sid_name=orcl)
    (oracle_home=/usr/oracle)))

SID_LIST

Purpose: Identifies a list of SID descriptions
Example:
sid_list_listener_name=
(sid_list=
   (sid_desc=...)
   (sid_desc=...))

SID_DESC

Purpose: Provides service information for a specific database instance. This parameter can be embedded under SID_LIST.
Example:
sid_list_listener_name=
(sid_list=
   (sid_desc=...)
   (sid_desc=...))

PRESPAWN_MAX

Purpose: Specifies the maximum number of prespawned dedicated server processes the listener creates. This number must be at least as many as the sum of the pool size for each protocol. Set this value to a large number so that prespawned dedicated server processes are always available for new connections. This parameter must be embedded under SID_LIST.
Note: Prespawned dedicated servers cannot be configured on Windows NT.
Example:
sid_list_listener_name=
(sid_list=
   (sid_desc=
    (global_dbname=oracle.com)
    (sid_name=sid)
    (oracle_home=/usr/oracle)
    (prespawn_max=99)))

PRESPAWN_LIST

Purpose: Specifies a list of prespawnd dedicated server process protocol descriptions. This parameter must be embedded under SID_DESC.
Example:
sid_list_listener_name=
(sid_list=
   (sid_desc=
    (global_dbname=oracle.com)
    (sid_name=sid)
    (oracle_home=/usr/oracle)
    (prespawn_max=99)
    (prespawn_list=
      (prespawn_desc=
        (protocol=tcp)
        (pool_size=10)
        (timeout=2))
        (prespawn_desc=...)))

PRESPAWN_DESC

Purpose: Defines the protocol on which the listener creates prespawned dedicated server processes, as well as characteristics of the prespawned dedicated server. Each protocol must have its own PRESPAWN_DESC description. This parameter must be embedded under PRESPAWN_LIST.
Example:
sid_list_listener_name=
(sid_list=
   (sid_desc=
    (global_dbname=oracle.com)
    (sid_name=sid)
    (oracle_home=/usr/oracle)
    (prespawn_max=99)
    (prespawn_list=
      (prespawn_desc=
        (protocol=tcp)
        (pool_size=10)
        (timeout=2))
        (prespawn_desc=...))))

3. Control Parameters

CONNECT_TIMEOUT_listener_name

Purpose: Determines the amount of time in seconds the listener waits for a valid connection request after a connection has been started
Default: 10 seconds
Example: connect_timeout_listener=12

LOG_DIRECTORY_listener_name

Purpose: Specifies the destination directory for the listener log file
Default: $ORACLE_HOME/network/log on UNIX and ORACLE_HOME/network/log on Windows NT
Example: log_directory_listener=/oracle/network/admin/log

LOG_FILE_listener_name

Purpose: Specifies the name of the log file for the listener
Default: listener.log
Example: log_file_listener=list.log

LOGGING_listener_name

Purpose: Turns logging on or off
Default: ON
Values: ON | OFF
Example: logging_listener=on

OSS.SOURCE.MY_WALLET

Purpose: Specifies the location of wallets. Wallets are certificates, keys and trustpoints processed by SSL that allow for secure connections.
Default: None
Example:
oss.source.my_wallet=
   (source=
      (method=file)
      (method_data=
        (directory=/home/smalladi/oss)))

PASSWORDS_listener_name

Purpose: Sets an unencrypted password for a listener, so that certain privileges operations, such as SAVE_CONFIG and STOP, used from the LSNRCTL utility are secure. Allows one or more passwords. An encrypted password can set with the LSNRCTL utility's CHANGE_PASSWORD command.
Default: oracle
Example: passwords_listener=(oracle8)

SAVE_CONFIG_ON_STOP_listener_name

Purpose: If set to TRUE, any parameters which were modified through the LSNCRCTL SET command replace prior listener.ora file settings
Default: FALSE
Example: save_config_on_stop_listener=true

SSL_CLIENT_AUTHENTICATION

Purpose: Specifies whether or not a client is authenticated using SSL
Default: TRUE
Values: TRUE | FALSE
Usage Notes: The database authenticates the client. Therefore, this value should be set to FALSE. If this parameter is set to TRUE, the listener attempts to authenticate the client, which can result in a failure.
Example: ssl_cipher_suite=(ssl_dh_dss_with_des_cdc_sha)

STARTUP_WAIT_TIME_listener_name

Purpose: Sets the number of seconds that the network listener sleeps before responding to the first LSNRCTL STATUS command
Default: 0 seconds
Example: startup_wait_time_listener=5

TRACE_DIRECTORY_listener_name

Purpose: Specifies the destination directory for the listener trace files
Default: $ORACLE_HOME/network/trace on UNIX and ORACLE_HOME/network/trace on Windows NT
Example: trace_directory_listener=/oracle/network/admin/trace

TRACE_FILE_listener_name

Purpose: Specifies the name of the trace file for the listener
Default: listener.trc
Example: trace_file_listener=list.trc

TRACE_FILELEN_listener_name

Purpose: Specifies the size of the listener trace files in kilobytes (KB). When the size is met, the trace information is written to the next file. The number of files is specified with the TRACE_FILENO_listener_name parameter.
Default: Unlimited
Example: trace_filelen_listener=100

TRACE_FILENO_listener_name

Purpose: Specifies the number of trace files for listener tracing. When this parameter is set along with the TRACE_FILEN_listener_name parameter, trace files are used in a cyclical fashion. The first file is filled first, then the second file, and so on. When the last file has been filled, the first file is re-used, and so on. The trace file names are distinguished from one another by their sequence number. For example, if the default trace file of listener.trc is used, and this parameter is set to 3, the trace files would be named listener1.trc, listener2.trc and listener3.trc. In addition, trace events in the trace files are preceded by the sequence number of the file.
Default: 1
Example: trace_fileno_listener=3

TRACE_LEVEL_listener_name

Purpose: Turns tracing on/off to a certain specified level
Default: OFF
Values:
    * OFF - No trace output
    * USER - User trace information
    * ADMIN - Administration trace information
    * SUPPORT - WorldWide Customer Support trace information
Example:
trace_level_listener=admin

TRACE_TIMESTAMP_listener_name

Purpose: Adds a timestamp in form of dd-month-yyyy hh:mm:ss to a trace event in the listener trace file
Default: OFF
Values: ON or TRUE | OFF or FALSE
Example: trace_timestamp_listener=true

USE_PLUG_AND_PLAY_listener_name

Purpose: Instructs the listener to register database information with an Oracle Names server
Default: OFF
Values: ON | OFF
Example: use_plug_and_play=on



例子:
http://www.oracleblog.cn/working-case/start-lsnr-need-write-tmp/
分享到:
评论

相关推荐

    RAC listener.ora详解.docx

    oracleRAC监听文件详解

    ORACLE透明网关连接SQLSERVER操作

    三、 配置透明网关的监听器文件LISTENER.ORA 四、 配置透明网关的TNS文件TNSNAMES.ORA 五、 配置DB_1目录下的监听器文件LISTENER.ORA 六、 配置DB_1目录下的TNS文件TNSNAMES.ORA 七、 测试配置 八、 在ORACLE数据库...

    Oracle 11g2的监听器配置教程

    在11g2版本中,监听器的配置方式发生了变化,增加了一个新的配置文件endpoints_listener.ora,并且此文件和原来的listener.ora文件都转移到$GRID_HOME/network/admin目录下了。 11g2的监听器的配置信息保存在$GRID_...

    Oracle9i的init.ora参数中文说明

    请注意所有用户均可读取或写入 UTL_FILE_DIR 参数中指定的所有文件。 值范围: 任何有效的目录路径。 默认值: 无 plsql_v2_compatibility: 说明: 设置 PL/SQL 兼容级。如果设置为 FALSE, 将执行 PL/SQL V3 行为, ...

    oracle监听配置

    一、监听器(LISTENER)  监听器是Oracle基于服务器端的一种网络服务,主要用于监听客户端向数据库服务器端提出的连接请求。既然是基于服务器端的服务,那么它也只存在于数据库服务器端,进行监听器的设置也是在...

    listener.ora

    监听程序无法识别连接描述符中请求的服务 下载配置文件放到\product\11.2.0\client_1\network\admin

    oracle监听配置文件介绍

    挺基础的一些东西,通俗易懂。 为了使得外部进程 如 CAMS后台程序 ... listener.ora sqlnet.ora 和 tnsnames.ora 共三个文件来进行的 listener.ora 即监听配置文件 在本小节说明 另两个文件分别在随后的两个小节说明

    linux下oracle安装两个实例一个监听的配置

    oracle两个实例,配置一个监听 主要是修改listener.ora文件和tnsnames.ora文件

    Oracle静态监听注册详解

    网上有很多关于oracle 监听静态注册的文章,但大多都是简单说说,并没有详细的例子,这里,将结合linux as4 下的oracle 10gR2.0.1 举一个具体的例子  1、在 $ORACLE_HOME/network/admin/listener.ora 文件中加入一...

    Oracle10g局域网成功连接远程数据库详细步骤

    第一,在我朋友的Oracel数据库中的listener.ora文件中添加监听;第二,在我电脑的客户端的tnsnames.ora文件中添加连接的代码;第三,设置我朋友的电脑的防火墙,开放Oracle的1521端口,具体的步骤全在压缩包里,所需...

    oracle 11g localhost可以访问,ip不能访问解决方法

    ORACLE 11G 安装后只能localhost 访问...在监听文件 listener.ora 中加入如下: (SID_DESC = (GLOBAL_DBNAME = orcl01) (ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1) (SID_NAME = orcl01) )

    Oracle安装文档.docx

    经过漫长的等待;Oracle安装就完成 四. Oracle网络配置 数据库启动之后,要想提供对外服务。还需要配置 Oracle 的监听器配置文件 listener.ora

    oracle数据库最全收集

    oracle\product\10.2.0\server\NETWORK\ADMIN\Listener.ora b. HOST=计算机名 PORT=1521 (推荐使用) 2) 客户端:可以修改ip、端口号、sid(系统标识符或叫全局数据库名) a. 目录 d:\。。。oracle\product\...

    Windows Oracle常见服务介绍

    (1)OracleServiceSID 数据库服务,这个服务会自动地启动和停止数据库。如果安装了一个数据库,它的缺省启动类型为自动。服务进程为ORACLE.EXE,参数文件initSID.ora...服务进程为TNSLSNR.EXE,参数文件Listener.ora,

    ORACLE数据库逐步解决ORA-12541、ORA-01034和ORA-27101、ORA-00119和ORA00132的过程

    刚开始时,有一台服务器的ORACLE 11G数据库连接不上,报错:ORA-12541:TNS:无监听程序 重启服务里面的两个Oracle服务,都没解决。 在网上看到一篇文章说另一种可能是oracle目录目录下listener.log日志文件过大(达到...

    plsql客户端

    服务端修改listener.ora 我的在 D:\oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN”目录下的 ORCL = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (ADDRESS = (PROTOCOL = TCP)...

    Linux操作系统下oracle安装静默安装,2018年亲测有效

    Linux操作系统下oracle安装静默安装,2018年亲测有效!!!! 安装前准备 ... ...4.1 操作系统准备 查看主机名 ...4.4创建安装用户、组、目录 ...4.5.1 修改内核参数 4.5.2修改用户限制文件 ...8.2检查listener.ora 9 卸载ORACLE

    oracle手工建立数据库

    不使用OMF创建数据库; 1.创建数据库实例; 2.为了sys用户可以连入数据库执行操作,先创建...4.在listener.ora中添加下列信息,把此数据库注册在监听器中(可选) 5.为了可以访问数据库,在tnsnames.ora添加下列信息

    Oracle 主要配置文件介绍

    监听配置文件 listener.ora 的存放路径为 $ORACLE_HOME/network/admin 以下是一个示例 LISTENER = #监听器名称 (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL ...

    中兴Oracle培训.PDF(高清)

    第1章数据库基础......................................................................................................................................1 1.1 基本概念........................................

Global site tag (gtag.js) - Google Analytics