Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

DB growth on schema

Prabhakar KJul 16 2018 — edited Jul 16 2018

Hi

I have query to find out DB growth for 1 year. (option on 1 year / 6 months / 3 months) .. based on the days.

DB GROWTH

-----------

select

  decode

  (

    grouping_id (to_char(creation_time, 'YYYY MM'))

    , 1

    , 'Total'

    , to_char(creation_time, 'YYYY MM')

  ) mnth

  , sum(bytes)/1024/1024/1024 growth_gb

from v$datafile

where creation_time > SYSDATE - 365

group by rollup (to_char(creation_time, 'YYYY MM'));

-- The above query will give particular DB space growth in GB. (db name like TELEPHONICA). in telephonica has several schemas.. I need to find out one schema space growth .

Please advise

BR

FRD

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 13 2018
Added on Jul 16 2018
9 comments
2,818 views