|
|
|
Re: why temporary tablespace have uniform extents [message #576661 is a reply to message #576641] |
Thu, 07 February 2013 01:33 |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Quote:Why oracle is not allowing for auto allocating extents in TEMP and still extents of uniform size of 1 MB is used. The 1M uniform size is only a default, you can specify any size you want. One might want significantly larger to take advantage of the larger direct multiblock reads that we can have nowadays: a multiblock read cannot go over an extent boundary. And of course if using ASM, the extent size should be a multiple of the allocation unit size, which many sites set to 4M.
|
|
|
|
|
|
|
|
Re: why temporary tablespace have uniform extents [message #577704 is a reply to message #576690] |
Tue, 19 February 2013 14:35 |
|
alan.kendall@nfl.com
Messages: 163 Registered: June 2012 Location: Culver City, California
|
Senior Member |
|
|
If you set the pga_aggregate_target big enough, few sorts will be done on disk. Run the following scripts to see home disk sorts since startup. If many disk sorts are performed, you should increase pga_aggregate_target and if that is not enough then increase the uniform extent size.
ECSCDAP1P > select host_name,instance_name,round((sysdate-i.startup_time)*100)/100 up_days,
2 A.Value Disk_Sorts,
3 A.Value/to_number(sysdate-i.startup_time)/24 disk_sorts_per_hour,
4 B.Value Memory_Sorts,
5 ROUND(100*A.Value/
6 DECODE((A.Value+B.Value),0,1,(A.Value+B.Value)),2)
7 Pct_Disk_Sorts
8 from V$SYSSTAT A, V$SYSSTAT B, v$instance i
9 where A.Name = 'sorts (disk)'
10 and B.Name = 'sorts (memory)';
HOST_NAME INSTANCE_NAME UP_DAYS DISK_SORTS DISK_SORTS_PER_HOUR MEMORY_SORTS
-------------------- ---------------- ---------- ---------- ------------------- ------------
csprdcdadb11 CSCDAP1 78.54 0 0 113398750
|
|
|