DBA Tips Archive for Oracle


List the details of database growth per month

by Vivek Gupta, vivek_guptaji@hotmail.com , OCP 8i,8 &7, High Wycombe, UK

This months DBA tip comes from Vivek Gupta. The script below will list the details of Database growth per month. It lists the total size of all datafiles, grouped by the month in which they are created.

This script needs to run as a user with dba privileges and only works with Oracle8 and above.

     SET PAGESIZE 5000
         TO_char(creation_time, 'RRRR Month') "Month"
       , SUM(bytes)/1024/1024 "Growth in Meg"
     WHERE creation_time > SYSDATE-365
     GROUP BY TO_CHAR(creation_time, 'RRRR Month');

Copyright (c) 1998-2018 Jeffrey M. Hunter. All rights reserved.

All articles, scripts and material located at the Internet address of http://www.idevelopment.info is the copyright of Jeffrey M. Hunter and is protected under copyright laws of the United States. This document may not be hosted on any other site without my express, prior, written permission. Application to host any of the material elsewhere can be made by contacting me at jhunter@idevelopment.info.

I have made every effort and taken great care in making sure that the material included on my web site is technically accurate, but I disclaim any and all responsibility for any loss, damage or destruction of data or any other property which may arise from relying on it. I will in no case be liable for any monetary damages arising from such loss, damage or destruction.

Last modified on
Wednesday, 19-Dec-2001 00:00:00 EST
Page Count: 22218