Database Administration (MOSC)

MOSC Banner

Schedule weekly database / tablespace growth report

edited Oct 27, 2019 5:04AM in Database Administration (MOSC) 4 commentsAnswered

Hi All,

I'm looking for ways to scheduled a weekly job to gather database or tablespace growth report.

Currently I'm using a very basic query and scheduled it via cron to retrieve the database size every week.

Is there any better query which I can use? My databases do not have any diagnostic pack licenses.

col "Database Size" format a20

col "Free space" format a20

col "Used space" format a20

select round(sum(used.bytes) / 1024 / 1024 / 1024 ) || ' GB' "Database Size"

, round(sum(used.bytes) / 1024 / 1024 / 1024 ) -

round(free.p / 1024 / 1024 / 1024) || ' GB' "Used space"

, round(free.p / 1024 / 1024 / 1024) || ' GB' "Free space"

from (select bytes

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center