zoukankan      html  css  js  c++  java
  • 监控RAC中的临时表空间

    it is from metalink:Note:465840.1

    1>Monitor the temp space allocation to make sure each instance has enough temp space available and that the temp space is allocated evenly among the instances. The following SQL is used:

    select inst_id, tablespace_name, segment_file, total_blocks, 
    used_blocks, free_blocks, max_used_blocks, max_sort_blocks 
    from gv$sort_segment;

    select inst_id, tablespace_name, blocks_cached, blocks_used 
    from gv$temp_extent_pool;

    select inst_id,tablespace_name, blocks_used, blocks_free 
    from gv$temp_space_header;

    select inst_id,free_requests,freed_extents 
    from gv$sort_segment;

    2>If temp space allocation between instances has become imbalanced, it might be necessary to manually drop temporary segments from an instance. The following command is used for this:

    alter session set events 'immediate trace name drop_segments level <TS number + 1>';

    3〉SQL STATEMENT running on temporary tablespace

    Select se.username,se.sid,se.serial#,su.extents,su.blocks*to_number(rtrim(p.value))as Space,
    tablespace,segtype,sql_text
    from v$sort_usage su,v$parameter p,v$session se,v$sql s
    where p.name='db_block_size' and su.session_addr=se.saddr and s.hash_value=su.sqlhash
    and s.address=su.sqladdr
    order by se.username,se.sid;

    you can kill these sql statement:

    alter system kill session 'sid,serial#'; 

    转载:http://blog.itpub.net/543979/viewspace-448444/

  • 相关阅读:
    JS事件处理中心的构想
    form的novalidate属性
    AOP思想在JS中的应用
    推行浏览器升级提示,从自己做起
    doT.js模板引擎
    关于JS获取元素宽度的一点儿思考
    类似百度图片,360图片页面的布局插件
    ASCII、Unicode、UTF-8编码关系
    python字符串格式化符号及转移字符含义
    python字符串的方法介绍
  • 原文地址:https://www.cnblogs.com/future2012lg/p/4529659.html
Copyright © 2011-2022 走看看