1、摘要session
經過表v$access就可以查看到使用到的表,存儲過程以及cursor
spa
查找用戶正在訪問的對象 一旦發現某些用戶或者系統中的查詢存在問題, 查詢 V$ACCESS 能夠爲您指出有潛在問題的對
3d
能夠經過如下視圖進行查詢code
SELECT DECODE (lob.kglobtyp,0, 'NEXT OBJECT',1, 'INDEX',2, 'TABLE',3, 'CLUSTER',4, 'VIEW',5, 'SYNONYM',6, 'SEQUENCE',7, 'PROCEDURE',8, 'FUNCTION',9, 'PACKAGE',11, 'PACKAGE BODY',12, 'TRIGGER',13, 'TYPE',14, 'TYPE BODY',19, 'TABLE PARTITION',20, 'INDEX PARTITION',21, 'LOB',22, 'LIBRARY',23, 'DIRECTORY',24, 'QUEUE',28, 'JAVA SOURCE',29, 'JAVA CLASS',30, 'JAVA RESOURCE',32, 'INDEXTYPE',33, 'OPERATOR',34, 'TABLE SUBPARTITION',35, 'INDEX SUBPARTITION',40, 'LOB PARTITION',41, 'LOB SUBPARTITION',42, 'MATERIALIZED VIEW',43, 'DIMENSION',44, 'CONTEXT',46, 'RULE SET',47, 'RESOURCE PLAN',48, 'CONSUMER GROUP',51, 'SUBSCRIPTION',52, 'LOCATION',55, 'XML SCHEMA',56, 'JAVA DATA',57, 'SECURITY PROFILE',59, 'RULE',62, 'EVALUATION CONTEXT','UNDEFINED')object_type,lob.kglnaobj object_name,pn.kglpnmod lock_mode_held,pn.kglpnreq lock_mode_requested,ses.sid,ses.serial#,ses.usernameFROM x$kglpn pn,v$session ses,x$kglob lob,v$session_wait vswWHERE pn.kglpnuse = ses.saddrand pn.kglpnhdl = lob.kglhdadrand lob.kglhdadr = vsw.p1rawORDER BY lock_mode_held DESC
Thanks and Regardsorm
2015-05-06 Created By BaoXinjian
對象