Oracle用户配置文件(User Profile)


用户配置文件(User Profile):

  用户配置文件是一个参数的集合,其功能是限制用户可使用的系统和数据库资源并管理口令。

  如果数据库没有创建用户配置文件,将使用默认的用户配置文件,默认用户配置文件指定对于所有用户资源没有限制。

  1)创建user profile syntax:

  ***必须要有create profile的系统权限才能够创建user profile***********************

  resource_parameters::=

  password_parameters ::=

  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


« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3