找过很多资料,绝大多数是一致的,但每家企业都有不同的情况。所以对于对口的解决办法还真不好找,只好把现状发布出来 寻求解决!
    1.使用select * from v$sysstat where name like '%sorts%'
结果:
STATISTIC# NAME CLASS VALUE
188 sorts (memory) 64 231458
189 sorts (disk) 64 2630
190 sorts (rows) 64 7197120    2.使用
 select A.Value Disk_Sorts,
         B.Value Memory_Sorts,
         ROUND(100*A.Value/
         DECODE((A.Value+B.Value),0,1,(A.Value+B.Value)),2) 
             Pct_Disk_Sorts
    from V$SYSSTAT A, V$SYSSTAT B
   where A.Name = 'sorts (disk)'
     and B.Name = 'sorts (memory)';
结果:
DISK_SORTS MEMORY_SORTS PCT_DISK_SORTS
2630          231460          1.12正常用户数40左右,现sort_area_size = 65536
                    sort_area_retained_size = 65536
操作系统1G内存,无作其它应用服务,内存使用值大都在600M左右,没有见过700M以上的,数据库每日增量2~4M。查询数据大都在2000~7000条/15用户。     sort_area_size 要设置多大才合适!