|
本帖最后由 botang 于 2016-1-27 10:43 编辑
(52-28)上完1Z0-052第9章
(53-29)上完1Z0-052第10章
开始闪回
052-9-P3.sql:
- select sid,serial#, s.BLOCKING_SESSION , s.BLOCKING_SESSION_STATUS ,
- s.LOCKWAIT
- from v_$session s
- where s.BLOCKING_SESSION is not null;
-
- select * from v$session where sid in (select BLOCKING_SESSION from v$session
- where BLOCKING_SESSION is not null);
-
-
- select * from v_$lock l
- where l.addr='00000001EAEAF888' ;
-
-
-
-
- select * from v_$lock l
- where l.KADDR in ('00000001EECD7900') ;
-
- select * from v_$lock l
- where l.sid=202;
-
- select * from v_$lock l
- where l.sid=17;
-
复制代码
052-9-P8.sql:
- select sid,serial#, s.BLOCKING_SESSION , s.BLOCKING_SESSION_STATUS ,
- s.LOCKWAIT
-
- from v_$session s
- where s.BLOCKING_SESSION is not null;
-
-
- select * from v_$lock l
- where l.KADDR in ('00000001EECD7900','00000001EECD7BA0') ;
-
-
- select * from v$session where terminal='pts/6';
复制代码
2016-01-22.sql:
- select sid,serial#, s.BLOCKING_SESSION , s.BLOCKING_SESSION_STATUS ,
- s.LOCKWAIT
- from v_$session s
- where s.BLOCKING_SESSION is not null;
-
- select * from v$session where sid in (select BLOCKING_SESSION from v$session
- where BLOCKING_SESSION is not null);
-
-
- select * from v_$lock l
- where l.addr='00000001EAEAF888' ;
-
-
-
-
- select * from v_$lock l
- where l.KADDR in ('00000001EECD7900') ;
-
- select * from v_$lock l
- where l.sid=130;
-
- select * from v_$lock l
- where l.sid=17;
-
- ------
- select * from dba_rollback_segs;
- ---
- select * from dba_tablespaces;
-
- select * from dba_data_files where tablespace_name='UNDOTBS1';
- alter tablespace undotbs1 retention noguarantee;
- ---
- select * from v$fixed_table where name like '%V$%ADVICE';
- select * from v$fixed_table where name like '%V$%STAT';
- select * from v$rollstat;
- select * from v$undostat;
- ---
复制代码
|
|