Bo's Oracle Station

查看: 1965|回复: 0

第32次:2015-04-09星期四

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2015-4-10 17:17:42 | 显示全部楼层 |阅读模式
2015-04-09-a.sql
  1. select  * from dba_profiles p where p.resource_type='PASSWORD'  and   p.profile='DEFAULT';

  2. create profile profile1  limit
  3. FAILED_LOGIN_ATTEMPTS 1;

  4. select  * from dba_profiles p where p.resource_type='PASSWORD'  and   p.profile='PROFILE1';

  5. select  * from dba_users where username='HR';

  6. alter user hr profile profile1;

  7. select  * from dba_users where username='HR';

  8. select  * from dba_profiles p where p.resource_type='PASSWORD'  and   p.profile='PROFILE1';

  9. alter profile profile1  limit
  10. PASSWORD_REUSE_TIME  2/1440;

  11. ----



  12. alter profile profile1  limit
  13. password_verify_function verify_function_11g;
复制代码

2015-04-09-b.sql
  1. select   BLOCKING_SESSION   from v$session where terminal='pts/8';

  2. #140 63
  3. #195 88
  4. #8 711

  5. select SID, SERIAL#, USERNAME
  6.                 from V$SESSION where SID in
  7.                 (select BLOCKING_SESSION from V$SESSION);
  8.    
  9.    
  10.     select  * from v$session where terminal='pts/6';
  11.    
  12.     #140 65
  13.    
  14.     select * from v_$lock  l where l.SID=140;
复制代码



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-3-29 22:46 , Processed in 0.036186 second(s), 24 queries .

快速回复 返回顶部 返回列表