- 最后登录
- 2015-3-26
- 在线时间
- 21 小时
- 威望
- 29
- 金钱
- 264
- 注册时间
- 2012-6-14
- 阅读权限
- 10
- 帖子
- 27
- 精华
- 0
- 积分
- 29
- UID
- 506
|
1#
发表于 2012-6-25 10:32:07
|
查看: 4179 |
回复: 2
所用版本win2003x86 ,数据库是10.2.0.4
Event | Waits | Time(s) | Avg Wait(ms) | % Total Call Time | Wait Class | CPU time | | 94 | | 44.9 | | direct path write temp | 12,733 | 75 | 6 | 35.5 | User I/O | direct path read temp | 12,735 | 33 | 3 | 15.5 | User I/O | control file parallel write | 1,246 | 16 | 13 | 7.4 | System I/O | log file parallel write | 1,056 | 9 | 8 | 4.2 | System I/O |
发现有一个会话的查询发生大量hash和sort,临时表空间发生大量读写。想通过手工修改参数,但修改后无效。
另外,该查询使用in,导致共享池内存太大。详见附件,谢谢!
SQL> alter session set workarea_size_policy=manual;
Session altered
Executed in 0 seconds
SQL> show parameter sort
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
nls_sort string
sort_area_retained_size integer 0
sort_area_size integer 65536
SQL> alter session set sort_area_size=10240000;
Session altered
Executed in 0 seconds
SQL> alter session set sort_area_size=10240000;
Session altered
Executed in 0.015 seconds
SQL> alter session set sort_area_size=10240000;
Session altered
Executed in 0 seconds
SQL> show parameter sort_area
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
sort_area_retained_size integer 0
sort_area_size integer 65536
我alter了三次还是没变 |
|