You are on page 1of 1

script- 1

col growth_gb format 999G999D99


col month format a20

select to_char(creation_time, 'YYYY MM') month, sum(bytes)/1024/1024/1024 growth_gb


from v$datafile
where creation_time > SYSDATE - 720
group by to_char(creation_time, 'YYYY MM')
order by 1 desc

script -2

select to_char(CREATION_TIME,'RRRR') year, to_char(CREATION_TIME,'MM') month,


round(sum(bytes)/1024/1024/1024) GB
from v$datafile
group by to_char(CREATION_TIME,'RRRR'), to_char(CREATION_TIME,'MM')
order by 1, 2;

You might also like