在下面的例子中,创建一个供用户testuser使用的test_profile环境文件: create profile test_profile limit failed_login_attempts 3; create user testuser identified by abcd1234 profile test_profile; grant create session to testuser; 如果连续3次与testuser账户的连接失败,该账户将自动被oracle锁定。此后当输入testuser账户的正确口令时,会收到一条错误信息: error:ora-28000: the account is locked 环境文件是通过“create profile”命令创建的,可以用“alter profile”命令修改。下例所示的“alter profile”命令用于修改现有的环境文件。在这个例子中,数据库的缺省环境文件被修改成允许最大空闲时间为1小时: alter profile default 或 profile文件名 limit idle_time 60; |
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/77580/viewspace-212725/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/77580/viewspace-212725/