Home » RDBMS Server » Performance Tuning » When I should increase the size of datafile,tablespace,redolog files as well as sort area size (Oracle 9i,Windows XP/2000)
|
|
|
Re: When I should increase the size of datafile,tablespace,redolog files as well as sort area size [message #308474 is a reply to message #307217] |
Mon, 24 March 2008 08:05 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
msmallya
Messages: 66 Registered: March 2008 Location: AHMEDABAD, GUJARAT
|
Member |
|
|
Hi,
For SortArea Size parameter you can obtain Disk Sort Ratio and
if value retruned by following query is more than 5%, you can think of increasing SortArea Size parameter
SELECT (d.value/m.value) * 100
INTO v_value
FROM v$sysstat d,
v$sysstat m
WHERE d.name = 'sorts (disk)'
AND m.name = 'sorts (memory)';
For datafiles (tablespace) you can following query which will show you freespace and also free %ge in each tablespace. If %ge falls below 15% you can plan for resizing datafiles.
break on report
compute sum of free on report
compute sum of used on report
compute sum of totsz on report
column "(%)" format 999
set feedback off;
set pages 24
select
a.tablespace_name, sum(round(a.bytes/(1024*1024))) totsz, sum(used) used,
sum(nvl(free,0)) free,
round((sum(nvl(free,0))/sum(round(a.bytes/(1024*1024))))*100) "(%)"
from
dba_data_files a,
(select file_id,round(sum(bytes)/(1024*1024)) used
from dba_extents group by file_id) b,
(select tablespace_name,file_id,round(sum(bytes)/(1024*1024)) free
from dba_free_space group by tablespace_name, file_id) c
where
a.file_id=b.file_id and a.file_id=c.file_id(+)
group
by a.tablespace_name;
set feedback on;
Regards,
MSMallya
|
|
|
|
Goto Forum:
Current Time: Mon Feb 17 00:52:42 CST 2025
|