Efficiently query DBA_EXTENTS for FILE_ID / BLOCK_ID

By Franck Pachot . This was initially posted to CERN Database blog on Thursday, 27 September 2018 where it seems to be lost. Here is a copy thanks to web.archive.org Did you ever try to query DBA_EXTENTS on a very large database with LMT tablespaces? I had to, in the past, in order to find which segment a corrupt block belonged to. The information about extent allocation is stored in the datafiles headers, visible though … Continue reading Efficiently query DBA_EXTENTS for FILE_ID / BLOCK_ID