Quantcast
Channel: SCRIPTS – ORACLE-HELP
Viewing all articles
Browse latest Browse all 27

How to find database growth on a Monthly wise

$
0
0

Today we are going to have look at the Database growth. With the help of the given query. DBA can find the monthly growth of there database. Sometimes little information is too much useful.

 

 

 

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;

Output

YEAR MO              GB
---- -- ---------------
2011 0              75
2012 6            4578
2012 7             334
2012 8             525
2012 9             659

The post How to find database growth on a Monthly wise appeared first on ORACLE-HELP.


Viewing all articles
Browse latest Browse all 27

Trending Articles