Finding the amount of used and
free space in a Tablespace
The following bit of SQL will do the trick: SELECT TABLESPACE_NAME,
You'll get a report that looks a bit like this: TABLESPACE_NAME MB_USED MB_SIZE PCT_FULL MB_FREE MB_MAXSIZE
PCT_UTIL
The various columns can be explained thus: MB_USED: Total amount of space currently in use within a tablespace MB_SIZE: Total size of the tablespace, adding up the physical sizes of all datafiles PCT_FULL: Used divided by Size, expressed as a percentage MB_FREE: Total amount of tablespace still sitting there empty MB_MAXSIZE: This shows how big the tablespace can become. Often this will be the same as the MB_SIZE column -but not if you've switched on autoextend, in which case this column will show the maxsize parameter PCT_UTIL: Size divided by Maxsize expressed as a percentage. In other words, PCT_FULL shows you what percentage of what you've currently got is being used, whereas PCT_UTIL shows what percentage of the maximum you could possibly *one day* have is being used. Personally, I wouldn't touch autoextend with a barge pole, and I'd be looking to resize or add extra datafiles when the PCT_FULL column is reaching around the 75 - 80% mark.
Have a Oracle Question
Oracle Books
Oracle Application
Oracle Home
All the site contents are Copyright © www.erpgreat.com
and the content authors. All rights reserved.
|