• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

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

发布: 2008-7-21 11:32 | 作者: Andy | 来源: 赛迪网 | 查看: 162次 | 进入软件测试论坛讨论

领测软件测试网

初学者必读: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 successfully
  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文件才能顺利完成。

延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网