NOTE:465840.1
要点:
[@more@]1、对RAC而言,一个实例分配的临时空间由这个实例的SGA管理,对其它实例不可见
2、实例并不会把这些临时空间归还给公共池
3、如果一个实例没有临时空间可供分配,会话就会请求其它实例的空间,该会话的等待事件是SS enqueue,而请求空间的CALL的等待事件是DFS lock handle,这样的话对性能而言是非常昂贵的
4、临时表空间组可以提供多个SS enqueue,每个临时表空间一个
5、临时段可以跨多个临时文件,但是不能跨多个临时表空间
6、当很多用户同时请求临时空间,有可能导致临时文件头上的争用(表现为buffer busy wait等待)
7、临时表空间使用情况监控:
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;
8、如何DROP掉一个实例的临时段?
alter session set events 'immediate trace name drop_segments level ';
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/85922/viewspace-1030368/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/85922/viewspace-1030368/