热门关键字:  ubuntu  分区  函数  Fedora  linux系统进程

oracle 用户配置文件 (User Profile)

来源: 作者: 时间:2008-09-01 Tag: 点击:
用户配置文件(User Profile):
用户配置文件是一个参数的集合,其功能是限制用户可使用的系统和数据库资源并管理口令。
如果数据库没有创建用户配置文件,将使用默认的用户配置文件,默认用户配置文件指定对于所有用户资源没有限制。
 
1)创建user profile syntax:
***必须要有create profile的系统权限才能够创建user profile***********************

Description of create_profile.gif follows



resource_parameters::=
Description of resource_parameters.gif follows


password_parameters ::=
Description of password_parameters.gif follows
Setting Profile Resource Limits: Example

The following statement creates the profile app_user:

CREATE PROFILE app_user LIMIT 
   SESSIONS_PER_USER          UNLIMITED 
   CPU_PER_SESSION            UNLIMITED 
   CPU_PER_CALL               3000 
   CONNECT_TIME               45 
   LOGICAL_READS_PER_SESSION  DEFAULT 
   LOGICAL_READS_PER_CALL     1000 
   PRIVATE_SGA                15K
   COMPOSITE_LIMIT            5000000; 

Setting Profile Password Limits: Example

The following statement creates the app_user2 profile with password limits values set:

CREATE PROFILE app_user2 LIMIT
   FAILED_LOGIN_ATTEMPTS 5
   PASSWORD_LIFE_TIME 60
   PASSWORD_REUSE_TIME 60
   PASSWORD_REUSE_MAX 5
   PASSWORD_VERIFY_FUNCTION verify_function
   PASSWORD_LOCK_TIME 1/24
   PASSWORD_GRACE_TIME 10;

2)将user profile指定给用户
 
2.1新建用户的果候指定user profile:
create user test
xxxxx
profile xxx(profile_name);
 
2.2为已经存在的用户指定user profile:
alter user test
profile new_profile_name

最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册