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!

Database size in GB

user616124Apr 29 2008 — edited Apr 30 2008
Hi All,
I am executing following select to find db size.

I want this to be displayed on GB.

SQL> select sum(a) from
2 ( select sum(bytes) a from dba_data_files
3 union all
4 select sum(bytes) b from dba_temp_files
5 ) c
6 ;

SUM(A)
----------
1.3012E+11

SQL> select sum(a)/1024 from ( select sum(bytes) a from dba_data_files union all
2 select sum(bytes) b from dba_temp_files ) c ;

SUM(A)/1024
-----------
127071656


This figures in GB come to how much.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 28 2008
Added on Apr 29 2008
4 comments
653 views