做不同的Unix OS 一次最多可以读多少个block的测试。 结果发现得到的常常是direct read path wait event.我无语了……于是就尝试着找出如何关闭direct path read 的办法。
其中倒是找到一些好玩的东西。
· http://afatkulin.blogspot.com/2009/01/11g-adaptive-direct-path-reads-what-is.html
Oracle 11g has introduced 10949 event to control this.
1 | UKJA@ukja116> @oerr 10949 | |
2 | 10949 |
3 | "Disable autotune direct path read for full table scan" | |
4 | // *Cause: |
5 | // *Action: Disable autotune direct path read for serial full table scan. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Enable 10949 event 就关闭了 direct path read.
算了 还是来说点10G的东西吧
_small_table_threshold 这个参数在10g中就有
[oracle@testdb2 ~]$ ora params small
NAME VALUE DESCRIPTION
--------------------------------------------- -------------------- ----------------------------------------------------------------------
_olap_parallel_update_small_group 400 OLAP parallel update pagespace by group
_olap_parallel_update_small_threshold 1000 OLAP parallel update threshold for number of small pagespaces
_parallel_broadcast_enabled TRUE enable broadcasting of small inputs to hash and sort merge joins
_small_table_threshold 7243 threshold level of table size for direct reads
[oracle@testdb2 ~]$ ora params _serial_direct_read
NAME VALUE DESCRIPTION
--------------------------------------------- -------------------- ----------------------------------------------------------------------
_serial_direct_read FALSE enable direct read in serial
“_serial_direct_read” parameter which forces the full scan on the big table to be a direct read – The opposite of 10949 event.
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/21818314/viewspace-693216/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/21818314/viewspace-693216/