如果支持,应该如何设置?

解决方案 »

  1.   

    支持的。只需在监听配置中加入NMP协议的配置即可。
      

  2.   

    怎么设置啊?配置文件中好像没有支持snmp的选项。
    # 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
      

  3.   

    直接打开net manager配置listner就可以啊。
      

  4.   

    什么是nmp?还要配管道名我是说snmp协议。我想通过snmp采集oracle的性能参数,像用snmp采集交换机的性能参数一样。window本身提供snmp但只能提供一些平台信息,不能提供oracle的信息。
      

  5.   

    nmp就是网络管理协议,既然支持nmp,也肯定支持snmp。而且,你配置完毕后,系统会自动为你将SNMP配置好。以下是我机器上的例子:
    listner.ora文件中,
    LISTENER =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = NMP)(SERVER = 172.16.6.168)(PIPE = snmp))snmp_ro.ora文件中,
    snmp.visibleservices = (listener, OEMREP, ora9i.com)
    snmp.shortname.listener = LISTENER
    snmp.longname.listener = listener_lemon
    snmp.configfile.listener = C:\oracle\ora92\network\admin\listener.ora
    snmp.oraclehome.listener = C:\oracle\ora92
    snmp.servicename.listener_lemon = OracleOraHome92TNSListener
    snmp.SID.OEMREP = OEMREP
    snmp.oraclehome.OEMREP = c:\oracle\ora92
    snmp.address.OEMREP = (ADDRESS=(PROTOCOL=BEQ)(PROGRAM=ORACLE)(ARGV0=ORACLEOEMREP)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))
    snmp.remoteaddress.OEMREP = (DESCRIPTION=(ADDRESS_LIST =   (ADDRESS = (PROTOCOL = TCP)(HOST = lemon)(PORT = 1521)) ) (CONNECT_DATA=(SID=OEMREP)(SERVER=DEDICATED)))
    snmp.SID.ora9i.com = ORA9I
    snmp.oraclehome.ora9i.com = c:\oracle\ora92
    snmp.address.ora9i.com = (ADDRESS=(PROTOCOL=BEQ)(PROGRAM=ORACLE)(ARGV0=ORACLEORA9I)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))
    snmp.remoteaddress.ora9i.com = (DESCRIPTION=(ADDRESS_LIST =   (ADDRESS = (PROTOCOL = TCP)(HOST = lemon)(PORT = 1521)) ) (CONNECT_DATA=(SID=ORA9I)(SERVER=DEDICATED)))
    ifile = C:\oracle\ora92\network\admin\snmp_rw.ora
    ifile = C:\oracle\ora92\network\admin\sqlnet.orasnmp_rw.ora文件中,snmp.contact.listener = ""
    snmp.index.listener = 1
    snmp.contact.OEMREP = ""
    snmp.index.OEMREP = 2
    snmp.contact.ora9i.com = ""
    snmp.index.ora9i.com = 3
      

  6.   

    10g的Enterprise Manager 不是很好的工具吗?什么性能统计都有的。
      

  7.   

    多谢 lemon223(oracle)snmp_ro.ora 是readonly的,snmp_rw.ora是readwrite的吧。可我怎么读出这些信息呢?community string 是否就是你的管道名snmp?我用solarwinds怎么读不出这些信息啊?oracle是否有自己的mib呢?
      

  8.   

    这些信息可以很容易读到,因为是文本格式的啊。
    oracle数据库开放snmp以后,同你读取一台交换机上的mib没有任何区别。至于怎么读嘛,我还真不清楚。不过,我会关注这个问题,也希望你知道后告诉大家。
      

  9.   

    我的机器起了snmp,community string是public,oracle的community string是aa。我把community string指定为public时可以读出机器的snmp信息,指定为aa时就认不到了。
      

  10.   

    另外,还有你的机器上要启动oracle for SNMP的服务
      

  11.   

    oracle有专门的讲如何使用SNMP的手册,你可以在oracle官方网站下载到。
      

  12.   

    有一个OracleOraHome92SNMPPeerMasterAgent 服务,我开启了,还是没用。还在尝试中。