Skip to content

Instantly share code, notes, and snippets.

@dotmaik1
Created October 6, 2016 16:22
Show Gist options
  • Select an option

  • Save dotmaik1/599d39ac350a81eb83d7634fc7e72e29 to your computer and use it in GitHub Desktop.

Select an option

Save dotmaik1/599d39ac350a81eb83d7634fc7e72e29 to your computer and use it in GitHub Desktop.
--Note: 135294.1
--Note: 135294.1
select to_char(creation_time, 'RRRR Month') "Month",
sum(bytes)/1024/1024 "Growth in Meg"
from sys.v_$datafile
where creation_time > SYSDATE-365
group by to_char(creation_time, 'RRRR Month')
order by "Month" desc;
select to_char(CREATION_TIME,'RRRR') year, to_char(CREATION_TIME,'MM') month, round(sum(bytes)/1024/1024/1024) "Growth in GB"
from v$datafile
group by to_char(CREATION_TIME,'RRRR'), to_char(CREATION_TIME,'MM')
order by 1, 2;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment