home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!uranus!nswc-wo.nswc.navy.mil!rlarson
- From: rlarson@nswc-wo.nswc.navy.mil (Ruth Larson)
- Newsgroups: comp.databases.oracle
- Subject: Re: checking for full tablespaces
- Message-ID: <1993Jan22.194427.7252@relay.nswc.navy.mil>
- Date: 22 Jan 93 19:44:27 GMT
- References: <19930122.061744.917@almaden.ibm.com>
- Sender: news@relay.nswc.navy.mil
- Organization: Naval Surface Warfare Center
- Lines: 15
-
-
- >Is there a simple query one may run to see if a tablespace is
- >full or almost full? I am using Oracle V6 on AIX 3.2.
-
- >Alan Beal alanb@owgvm0.vnet.ibm.com
- > (607)751-2026
-
-
- select sum(blocks),count(blocks), sum(bytes),tablespace_name
- from system.dba_free_space
- group by tablespace_name
-
-
- This will give you the free space for all tablespaces. The count(blocks)
- will give you some idea of how fragmented it is.
-