Session使用临时表空间

  • Post author:
  • Post category:其他


9i:V$SORT_USAGE、V$SORT_SEGMENT、V$TEMPSEG_USAGE

10g、11g:V$TEMPSEG_USAGE

V$TEMPSEG_USAGE和V$SORT_SEGMENT的区别是:V$TEMPSEG_USAGE将包括临时表空间和永久表空间中的临时段的信息。

SELECT s.sid, s.username, u.tablespace, s.sql_hash_value||’/’||u.sqlhash hash_value, u.segtype, u.contents, u.extents, u.blocks FROM v$session s,  v$sort_usage u WHERE s.saddr = u.session_addr;

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/5359/viewspace-624826/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/5359/viewspace-624826/