Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Q: I need to know the size of a database
On 22 Oct 1999 15:31:11 GMT, mau_at_kool.do.isst.fhg.de
(Patrick Mau) wrote:
>I must admit that I'm a newbie.
>I have orcale 8.0.5 on solaris 2.7 and I need to know
>how much space is currently in use for a database.
To get space allocated to tables, query dba_extents.
select sum(bytes) from dba_extents;
To get unallocated space:
select sum(bytes) from dba_free_space;
Log in as SYSTEM, or some other privileged user, in order to execute these queries.
Jonathan