11g中_serial_direct_read是動態參數,可以在線修改
來源:程序員人生 發布時間:2015-05-20 10:28:02 閱讀次數:4743次
[oracle@rhel63single ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Sun Apr 26 13:54:56 2015
Copyright (c) 1982, 2013,
Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> alter system set "_serial_direct_read" = false sid = '*';
System altered.
SQL> show parameter serial
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
_serial_direct_read string FALSE
serial_reuse string disable
SQL> show parameter pfile
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string /u02/app/oracle/product/11.2.0
.4/db_1/dbs/spfiletest.ora
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 1068937216 bytes
Fixed Size 2260088 bytes
Variable Size 612369288 bytes
Database Buffers 448790528 bytes
Redo Buffers 5517312 bytes
Database mounted.
Database opened.
SQL> show parameter serial
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
_serial_direct_read string FALSE
serial_reuse string disable
SQL> select x.ksppinm, y.ksppstvl
2 from x$ksppi x , x$ksppcv y
3 where x.indx = y.indx
4 and x.ksppinm like '_serial_direct_read'
5 order by x.ksppinm;
KSPPINM
--------------------------------------------------------------------------------
KSPPSTVL
--------------------------------------------------------------------------------
_serial_direct_read
FALSE
值得注意的是,_serial_direct_read的默許值是auto,
以下參考自:http://www.savedba.com/?p=619
在11gr2以后,當1個表的塊數大于_small_table_threshold的時候,就被判定為大表,否則就視為小表。對大表,在進行全表掃描的時候,oracle會根據_serial_direct_read的值來肯定是不是履行direct path read,如果值為auto,那就會direct path read。
參考文章:
http://www.eygle.com/archives/2012/05/oracle_11g_direct_path_read.html
http://www.savedba.com/?p=619
生活不易,碼農辛苦
如果您覺得本網站對您的學習有所幫助,可以手機掃描二維碼進行捐贈