我想将我的oracle服务器设置为指定IP的用户可以访问连接,其它用户不可连接,该如何实现?

解决方案 »

  1.   

    我觉得没有这个必要!
    如果你是为了防止未授权用户在获取服务器的ip后企图登录服务器,那只要把用户名密码控制好就可以了。
    如果要监控客户端到服务器的sql交互,下面的例子可能对你有所帮助:
    客户机对数据库数据进行的任何操作,如何在服务器上拦截并取得相应的SQL语句?
    即:无论客户端对服务器数据库进行了什么操作,我都能从服务器上知道,用于分析日志。解答:
    SELECT osuser, username, sql_text from v$session a, v$sqltext b 
    where a.sql_address =b.address order by address, piece;//注:这是我保存的别人的解答。或者你可以说说你要这样做的初衷,大家一起探讨探讨!
      

  2.   

    oracle是一个开发性数据库,控制地址访问没有多大必要,关键是如何管好自己的数据库
      

  3.   

    orcle没有限制ip访问的功能
    这部分的功能可以通过以下两方面来实现
    1、使用防火墙,比如checkpoint的,在防火墙中定义策略完全可以实现的,我这里对于一些ip就是这么做的。
    2、是指对应用软件来说的,一般的c/s的程序,比如客户端是用pb开发的,这样你可以设一个ip认证服务器,应认证一下,可以的才去连oracle。
      

  4.   

    If all the users to be restricted are to access the database via SQL*Net (Net8 or OracleNet) then you can utilize the 'protocol.ora' file to allow/disallow set I.P address. 
    This file would normally reside in the $ORACLE_HOME/network/admin directory. I've also listed an exmaple below........ TCP.nodelay=yes 
    TCP.validnode_checking=yes 
    TCP.invited_nodes=(100.0.1.1, 100.0.1.2, 100.0.1.3, 100.0.1.4) # list the IP address that can connect
      

  5.   

    or you can create a database level LOGON trigger in the SYS schema.
    For details, please look at the oracle reference document.In such cost-free forum, I think you should be satisfied when someone cost their limited time for your questions. regardless he/she gave a solution or some advice or only something outlying.
    Anyway, you should thank them, but not complain.
      

  6.   

    wenzhulz(触丝),我觉得你说的很对
      

  7.   

    oracle8i可以装connection manager,实现access control建议找相关资料看下
      

  8.   

    通过oracle自身至少在92之前还没实现,要做的话要通过自己写程序来控制。