【Oracle】创建概要文件

任务1:创建profile
创建概要文件my_profile
1)密码复杂性要求:启用;
2)密码长度最小值:8位;
3)密码错误输入三次,锁定账户,2分钟后自动解锁

--创建密码复杂度校验函数 
@?/rdbms/admin/utlpwdmg.sql 
--创建概要文件 
create profile my_profile limit 
failed_login_attempts 3 password_lock_time 2/1440 
password_verify_function verify_function;

 

任务2:
1)修改siebel用户的概要文件为my_profile
2)修改siebel密码(自行设定)

--修改siebel用户使用my_profile概要文件 
alter user siebel profile my_profile; 

--查询用户的概要文件 
col username for a15 
col DEFAULT_TABLESPACE for a15 
col PROFILE for a15 
select username,default_tablespace,created,profile from dba_users; 

--修改用户密码 
alter user siebel identified by q1w2E#R$;

 

任务3:
设置profile失效

alter profile default limit password_verify_function null;

 

posted on 2016-12-07 15:31  Diegoal  阅读(1315)  评论(0编辑  收藏  举报

导航