初学者必读:Oracle监听口令及监听器安全[2]

发表于:2008-07-21来源:作者:点击数: 标签:
初学者必读: Oracle 监听口令及监听器 安全 [2] 作者:Andy 来源:赛迪网 在我们设置密码后,远程操作将会因缺失密码而出现失败: D:\lsnrctl stop eygle LSNRCTL for 32-bit Windows : Version 10.2.0.3.0 - Production on 28-11月-2007 10:22:57 Copyrigh

初学者必读:Oracle监听口令及监听器安全[2]

作者:Andy 来源:赛迪网

  在我们设置密码后,远程操作将会因缺失密码而出现失败:

  D:\>lsnrctl stop eygle
  LSNRCTL for 32-bit Windows: Version 10.2.0.3.0 - Production on 28-11月-2007 10:22:57
  Copyright (c) 1991, 2006, Oracle. All rights reserved.
  正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.33.11)
  (PORT=1521))(CONNECT_DATA=(SERVICE_NAME=eygle)))
  TNS-01169: 监听程序尚未识别口令

  注意:此时在服务器端或客户端,都需要我们通过密码来起停监听器:

  LSNRCTL> set password
  Password:
  The command completed suclearcase/" target="_blank" >ccessfully
  LSNRCTL> stop
  Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.33.11)(PORT=1521)))
  The command completed successfully
  LSNRCTL> start
  Starting /opt/oracle/product/9.2.0/bin/tnslsnr: please wait...
  TNSLSNR for Linux: Version 9.2.0.4.0 - Production
  System parameter file is /opt/oracle/product/9.2.0.network/admin/listener.ora
  Log messages written to /opt/oracle/product/9.2.0/network/log/listener.log
  Trace information written to /opt/oracle/product/9.2.0/network/trace/listener.trc
  Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.16.33.11)(PORT=1521)))
  Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.33.11)(PORT=1521)))
  STATUS of the LISTENER
  ------------------------
  Alias LISTENER
  Version TNSLSNR for Linux: Version 9.2.0.4.0 - Production
  Start Date 28-NOV-2007 10:22:23
  Uptime 0 days 0 hr. 0 min. 0 sec
  Trace Level support
  Security ON
  SNMP OFF
  Listener Parameter File /opt/oracle/product/9.2.0/network/admin/listener.ora
  Listener Log File /opt/oracle/product/9.2.0/network/log/listener.log
  Listener Trace File /opt/oracle/product/9.2.0/network/trace/listener.trc
  Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.16.33.11)(PORT=1521)))
  Services Summary...
  Service "eygle" has 1 instance(s).
  Instance "eygle", status UNKNOWN, has 1 handler(s) for this service...
  Service "julia" has 1 instance(s).
  Instance "eygle", status UNKNOWN, has 1 handler(s) for this service...
  The command completed successfully

  另外,ADMIN_RESTRICTIONS参数也是一个重要的安全选项,大家可以在 listener.ora 文件中设置 ADMIN_RESTRICTIONS_ 为 ON,此后所有在运行时对监听器的修改都将会被阻止,所有对监听器的修改都必须通过手工修改listener.ora文件才能顺利完成。

原文转自:http://www.ltesting.net