|
2015-04-09-a.sql
- select * from dba_profiles p where p.resource_type='PASSWORD' and p.profile='DEFAULT';
- create profile profile1 limit
- FAILED_LOGIN_ATTEMPTS 1;
- select * from dba_profiles p where p.resource_type='PASSWORD' and p.profile='PROFILE1';
- select * from dba_users where username='HR';
- alter user hr profile profile1;
- select * from dba_users where username='HR';
- select * from dba_profiles p where p.resource_type='PASSWORD' and p.profile='PROFILE1';
- alter profile profile1 limit
- PASSWORD_REUSE_TIME 2/1440;
- ----
- alter profile profile1 limit
- password_verify_function verify_function_11g;
复制代码
2015-04-09-b.sql
- select BLOCKING_SESSION from v$session where terminal='pts/8';
- #140 63
- #195 88
- #8 711
- select SID, SERIAL#, USERNAME
- from V$SESSION where SID in
- (select BLOCKING_SESSION from V$SESSION);
-
-
- select * from v$session where terminal='pts/6';
-
- #140 65
-
- select * from v_$lock l where l.SID=140;
复制代码
|
|