您的位置:首页 > 数据库 > Oracle

如何禁止特定IP访问Oracle数据库

2010-08-01 22:28 381 查看
我们只需要在服务器端的sqlnet.ora文件中添加下面的内容即可。

  # This file is actually generated by netca. But if customers choose to
  # install "Software Only", this file wont exist and without the native
  # authentication, they will not be able to connect to the database on NT.
  SQLNET.AUTHENTICATION_SERVICES = (NTS)
  tcp.validnode_checking=yes
  tcp.invited_nodes=(9.123.112.34)
  tcp.excluded_nodes=(9.123.112.16)
  第一行的含义:开启IP限制功能;

  第二行的含义:允许访问数据库的IP地址列表,多个IP地址使用逗号分开,此例中我们写入数据库服务器的IP地址;

  第三行的含义:禁止访问数据库的IP地址列表,多个IP地址使用逗号分开,此处我们写入欲限制的IP地址9.123.112.16。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: