HOW TO QUERY DATABASE SIZE

.

--------------------------

If you're looking for the total size of all of the datafiles (i.e., how much disk space is occupied by the database's datafiles):

select sum(bytes) from dba_data_files;

If you're looking for the total space used by all of the segments in the database (i.e., how much data is in the database):

select sum(bytes) from dba_segments;

2 comments:

Cindy said...

How database and Search Engine Differ. Click www.gofastek.com for more information.

Cindy
www.gofastek.com

Pebbles said...

I’m impressed. Very informative and trustworthy blog does exactly what it sets out to do. I’ll bookmark your weblog for future use.

Pebbles
www.joeydavila.net