任务1:创建profile
创建概要文件my_profile
1)密码复杂性要求:启用;
2)密码长度最小值:8位;
3)密码错误输入三次,锁定账户,2分钟后自动解锁
任务2:
1)修改siebel用户的概要文件为my_profile
2)修改siebel密码(自行设定)
--创建密码复杂度校验函数
SYS@ENMOEDU>@?/rdbms/admin/utlpwdmg.sql
在linux里运行ORALCE_HOME
Function created.
Grant succeeded.
Profile altered.
Function created.
Grant succeeded.
SYS@ENMOEDU>
--创建概要文件
SYS@ENMOEDU>create profile my_profile limit
2 failed_login_attempts 3 pas@sword_lock_time 2/1440
3 password_verify_function verify_function;
Profile created.
SYS@ENMOEDU>
--修改siebel用户使用my_profile概要文件
SYS@ENMOEDU>alter user siebel profile my_profile;
User altered.
SYS@ENMOEDU>
SYS@ENMOEDU>col username for a15
SYS@ENMOEDU>col DEFAULT_TABLESPACE for a15
SYS@ENMOEDU>col PROFILE for a15
SYS@ENMOEDU>select username,default_tablespace,created,profile from dba_users;
USERNAME DEFAULT_TABLESP CREATED PROFILE
--------------- --------------- ------------------- ---------------
SYS SYSTEM 2016-05-26 02:22:25 DEFAULT
SYSTEM SYSTEM 2016-05-26 02:22:25 DEFAULT
SIEBEL TS_USERS 2016-05-26 13:46:04 MY_PROFILE
OUTLN SYSTEM 2016-05-26 02:22:27 DEFAULT
APPQOSSYS SYSAUX 2016-05-26 02:31:42 DEFAULT
DBSNMP SYSAUX 2016-05-26 02:31:41 DEFAULT
WMSYS SYSAUX 2016-05-26 02:54:46 DEFAULT
DIP TS_USERS 2016-05-26 02:24:17 DEFAULT
ORACLE_OCM TS_USERS 2016-05-26 02:25:08 DEFAULT
9 rows selected.
SYS@ENMOEDU>
SYS@ENMOEDU>alter user siebel identified by q1w2E#R$;
User altered.
创建概要文件my_profile
1)密码复杂性要求:启用;
2)密码长度最小值:8位;
3)密码错误输入三次,锁定账户,2分钟后自动解锁
任务2:
1)修改siebel用户的概要文件为my_profile
2)修改siebel密码(自行设定)
--创建密码复杂度校验函数
SYS@ENMOEDU>@?/rdbms/admin/utlpwdmg.sql
在linux里运行ORALCE_HOME
Function created.
Grant succeeded.
Profile altered.
Function created.
Grant succeeded.
SYS@ENMOEDU>
--创建概要文件
SYS@ENMOEDU>create profile my_profile limit
2 failed_login_attempts 3 pas@sword_lock_time 2/1440
3 password_verify_function verify_function;
Profile created.
SYS@ENMOEDU>
--修改siebel用户使用my_profile概要文件
SYS@ENMOEDU>alter user siebel profile my_profile;
User altered.
SYS@ENMOEDU>
SYS@ENMOEDU>col username for a15
SYS@ENMOEDU>col DEFAULT_TABLESPACE for a15
SYS@ENMOEDU>col PROFILE for a15
SYS@ENMOEDU>select username,default_tablespace,created,profile from dba_users;
USERNAME DEFAULT_TABLESP CREATED PROFILE
--------------- --------------- ------------------- ---------------
SYS SYSTEM 2016-05-26 02:22:25 DEFAULT
SYSTEM SYSTEM 2016-05-26 02:22:25 DEFAULT
SIEBEL TS_USERS 2016-05-26 13:46:04 MY_PROFILE
OUTLN SYSTEM 2016-05-26 02:22:27 DEFAULT
APPQOSSYS SYSAUX 2016-05-26 02:31:42 DEFAULT
DBSNMP SYSAUX 2016-05-26 02:31:41 DEFAULT
WMSYS SYSAUX 2016-05-26 02:54:46 DEFAULT
DIP TS_USERS 2016-05-26 02:24:17 DEFAULT
ORACLE_OCM TS_USERS 2016-05-26 02:25:08 DEFAULT
9 rows selected.
SYS@ENMOEDU>
SYS@ENMOEDU>alter user siebel identified by q1w2E#R$;
User altered.