DBA Tips Archive for Oracle
Queries to handle Local Extent Management and Tempfiles
by Jeff Hunter, Sr. Database Administrator
Prior to Oracle8i, all tablespaces were created as Dictionary Managed. To track space utilization using Dictionary Managed tablespaces, Oracle relys on SQL data dictionary tables. Begining with Oracle8i, the DBA can now create Locally Managed Tablespaces which use bitmaped indexes (instead of the SQL data dictionary tables) to track used and free space.
Also introduced in Oracle8i is the idea of "tempfiles" used to create Temporary Tablespaces.
These changes though makes it more difficult to query information like size and space usage. Provided below are links to several scripts that can be used to query both tablespace and datafile space usage.
|Data/Tempfile Space Usage||file_space_usage.lst|
Copyright (c) 1998-2018 Jeffrey M. Hunter. All rights reserved.
All articles, scripts and material located at the Internet address of http://www.idevelopment.info is the copyright of Jeffrey M. Hunter and is protected under copyright laws of the United States. This document may not be hosted on any other site without my express, prior, written permission. Application to host any of the material elsewhere can be made by contacting me at email@example.com.
I have made every effort and taken great care in making sure that the material included on my web site is technically accurate, but I disclaim any and all responsibility for any loss, damage or destruction of data or any other property which may arise from relying on it. I will in no case be liable for any monetary damages arising from such loss, damage or destruction.