zoukankan      html  css  js  c++  java
  • 【翻译】listener.ora

    今天仔细过一遍oracle的监听配置文件描述。

    cat $ORACLE_HOME/network/admin/samples/listener.ora

    # copyright (c) 1997 by the Oracle Corporation
    # 
    # NAME
    #   listener.ora
    # FUNCTION
    #   Network Listener startup parameter file example
    # NOTES
    #   This file contains all the parameters for listener.ora,
    #   and could be used to configure the listener by uncommenting
    #   and changing values.  Multiple listeners can be configured
    #   in one listener.ora, so listener.ora parameters take the form
    #   of SID_LIST_<lsnr>, where <lsnr> is the name of the listener
    #   this parameter refers to.  All parameters and values are
    #   case-insensitive.
    
    # <lsnr>
    #   This parameter specifies both the name of the listener, and
    #   it listening address(es). Other parameters for this listener
    #   us this name in place of <lsnr>.  When not specified,
    #   the name for <lsnr> defaults to "LISTENER", with the default
    #   address value as shown below.
    #
    # LISTENER =
    #  (ADDRESS_LIST=
    #       (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
    #       (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY)))
    
    # SID_LIST_<lsnr>
    #   List of services the listener knows about and can connect 
    #   clients to.  There is no default.  See the Net8 Administrator's
    #   Guide for more information.
    #
    # SID_LIST_LISTENER=
    #   (SID_LIST=
    #       (SID_DESC=
    #                       #BEQUEATH CONFIG
    #          (GLOBAL_DBNAME=salesdb.mycompany)
    #          (SID_NAME=sid1)
    #          (ORACLE_HOME=/private/app/oracle/product/8.0.3)
    #                       #PRESPAWN CONFIG
    #         (PRESPAWN_MAX=20)
    #         (PRESPAWN_LIST=
    #           (PRESPAWN_DESC=(PROTOCOL=tcp)(POOL_SIZE=2)(TIMEOUT=1))
    #         )
    #        )
    #       )
    
    # PASSWORDS_<lsnr>
    #   Specifies a password to authenticate stopping the listener.
    #   Both encrypted and plain-text values can be set.  Encrypted passwords
    #   can be set and stored using lsnrctl.  
    #     LSNRCTL> change_password
    #       Will prompt for old and new passwords, and use encryption both
    #       to match the old password and to set the new one.
    #     LSNRCTL> set password
    #       Will prompt for the new password, for authentication with 
    #       the listener. The password must be set before running the next
    #       command.
    #     LSNRCTL> save_config
    #       Will save the changed password to listener.ora. These last two
    #       steps are not necessary if SAVE_CONFIG_ON_STOP_<lsnr> is ON.
    #       See below.
    #
    # Default: NONE
    #
    # PASSWORDS_LISTENER = 20A22647832FB454      # "foobar"
    
    # SAVE_CONFIG_ON_STOP_<lsnr>
    #   Tells the listener to save configuration changes to listener.ora when
    #   it shuts down.  Changed parameter values will be written to the file,
    #   while preserving formatting and comments.
    # Default: OFF
    # Values: ON/OFF
    #
    # SAVE_CONFIG_ON_STOP_LISTENER = ON
    
    # USE_PLUG_AND_PLAY_<lsnr>
    #   Tells the listener to contact an Onames server and register itself
    #   and its services with Onames.
    # Values: ON/OFF
    # Default: OFF
    #
    # USE_PLUG_AND_PLAY_LISTENER = ON
    
    # LOG_FILE_<lsnr>
    #   Sets the name of the listener's log file.  The .log extension
    #   is added automatically.
    # Default=<lsnr>
    #
    # LOG_FILE_LISTENER = lsnr
    
    # LOG_DIRECTORY_<lsnr>
    #   Sets the directory for the listener's log file.
    # Default: <oracle_home>/network/log
    #
    # LOG_DIRECTORY_LISTENER = /private/app/oracle/product/8.0.3/network/log
    
    # TRACE_LEVEL_<lsnr>
    #   Specifies desired tracing level.
    # Default: OFF
    # Values: OFF/USER/ADMIN/SUPPORT/0-16
    #
    # TRACE_LEVEL_LISTENER = SUPPORT
    
    # TRACE_FILE_<lsnr>
    #   Sets the name of the listener's trace file. The .trc extension
    #   is added automatically.
    # Default: <lsnr>
    #
    # TRACE_FILE_LISTENER = lsnr
    
    # TRACE_DIRECTORY_<lsnr>
    #   Sets the directory for the listener's trace file.
    # Default: <oracle_home>/network/trace
    #
    # TRACE_DIRECTORY_LISTENER=/private/app/oracle/product/8.0.3/network/trace
    # CONNECT_TIMEOUT_<lsnr>
    #   Sets the number of seconds that the listener waits to get a 
    #   valid database query after it has been started.
    # Default: 10
    #
    # CONNECT_TIMEOUT_LISTENER=10

    翻译如下:

    # 文件名
    #   listener.ora
    # 功能
    #   网络监听启动参数示例
    # 备注
    #   此文件包含配置文件的所有参数,可以去掉注释修改参数值来配置监听。
    #   在一个配置文件里可以配置多个监听,使用SID_LIST_<lsnr>形式,其中lsnr是监听名字。所有的参数及其取值都区分大小写。
    # <lsnr> # 这个参数指定监听名字和监听地址,如果不指定lsnr,则默认为LISTENER,并且使用默认地址,如下所示。
    # LISTENER = # (ADDRESS_LIST= # (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)) # (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY))) # SID_LIST_<lsnr> # 列出了监听器所知道和客户端可连接的监听,这是默认值,可参考《Net8 Administrator's Guide》查看更多信息。 # SID_LIST_LISTENER= # (SID_LIST= # (SID_DESC= # #BEQUEATH CONFIG # (GLOBAL_DBNAME=salesdb.mycompany) # (SID_NAME=sid1) # (ORACLE_HOME=/private/app/oracle/product/8.0.3) # #PRESPAWN CONFIG # (PRESPAWN_MAX=20) # (PRESPAWN_LIST= # (PRESPAWN_DESC=(PROTOCOL=tcp)(POOL_SIZE=2)(TIMEOUT=1)) # ) # ) # ) # PASSWORDS_<lsnr> # 指定一个密码以鉴权停止监听,可以使用加密和明文。加密密码可以使用lsnrctl设置和保存。 # LSNRCTL> change_password # 提示旧密码和新密码,使用加密方式匹配旧密码、设置新密码。 # LSNRCTL> set password # 为监听鉴权提示设置新密码,执行下一个命令前必须设置密码。 # LSNRCTL> save_config # 向listener.ora保存改变后的密码。最后两步不是必须的,如果参数SAVE_CONFIG_ON_STOP_<lsnr>设置为ON的话。如下所示。
    # Default: NONE
    # PASSWORDS_LISTENER = 20A22647832FB454 # "foobar"
    # SAVE_CONFIG_ON_STOP_<lsnr>
    #   告诉监听器当停止时向listener.ora保存配置改变。改变的参数值写到配置文件里,同时保存格式和注释。
    # Default: OFF # Values: ON/OFF # SAVE_CONFIG_ON_STOP_LISTENER = ON # USE_PLUG_AND_PLAY_<lsnr> # 告诉监听联系一个Onames服务器,使用Onames注册它自己和它的服务。
    # Values: ON
    /OFF # Default: OFF # USE_PLUG_AND_PLAY_LISTENER = ON # LOG_FILE_<lsnr> # 设置监听日志文件名,会自动添加.log扩展名。
    # Default=<lsnr> # LOG_FILE_LISTENER = lsnr # LOG_DIRECTORY_<lsnr> # 设置监听日志文件路径 # Default: <oracle_home>/network/log # LOG_DIRECTORY_LISTENER = /private/app/oracle/product/8.0.3/network/log # TRACE_LEVEL_<lsnr> # 设置期望的trace级别 # Default: OFF # Values: OFF/USER/ADMIN/SUPPORT/0-16 # TRACE_LEVEL_LISTENER = SUPPORT # TRACE_FILE_<lsnr> # 设置trace文件名,会自动添加扩展名.trc # Default: <lsnr> # TRACE_FILE_LISTENER = lsnr # TRACE_DIRECTORY_<lsnr> # 设置trace文件路径 # Default: <oracle_home>/network/trace # # TRACE_DIRECTORY_LISTENER=/private/app/oracle/product/8.0.3/network/trace # CONNECT_TIMEOUT_<lsnr> # 设置监听获取有效数据库查询等待的秒数,当它启动后。
    # Default: 10 # CONNECT_TIMEOUT_LISTENER=10
  • 相关阅读:
    CMU Database Systems
    Calcite分析
    CMU Database Systems
    CMU Advanced DB System
    笔记
    MyBatis Generator中文文档
    Run Test Case on Spark
    Flex报错Error #2048: 安全沙箱冲突
    看看这个超级有用的一种类型——匿名类型
    Java实战_手把手编写记事本
  • 原文地址:https://www.cnblogs.com/likingzi/p/6508536.html
Copyright © 2011-2022 走看看