Database size
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: Database size

  1. #1
    Join Date
    Feb 2010
    Posts
    4

    Database size

    Hi All,

    I want to know growth status of oracle database.

    I gave the below command:

    SQL>set pagesize 500
    SQL>tti "Database growth per month for last year"

    SQL>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');
    /

    no rows selected


    I want to find the growth status. Please can any one help me in finding this.

  2. #2
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,554
    That means no datafile was added during the last 364 days.
    Are datafiles set to autogrowth?
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

  3. #3
    Join Date
    Feb 2010
    Posts
    4
    Quote Originally Posted by PAVB View Post
    That means no datafile was added during the last 364 days.
    Are datafiles set to autogrowth?

    Hi Paul,

    All the datafiles are setted as autogrowth only

  4. #4
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,333
    it isnt logged when datafiles autoextend, so you cannot find out

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width