Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Where to find EXTENTS and SEGMENTS of a table

YockeeMar 8 2022

Hi,
I have thousands of tables that do not have Extents nor Segments.
Here are my queries :
Query to find tables : SELECT table_name FROM all_tables WHERE table_name LIKE 'KEYSET%' (this gives me some thousands records / tables)
To find segments : select segment_name,segment_type, bytes from dba_segments WHERE segment_name LIKE 'KEYSET%' (gives me 28 records)
To find extents : select segment_name,segment_type, bytes from dba_extents WHERE segment_name LIKE 'KEYSET% (gives me 28 records)
Questions are :
The segments_name in both extent are not exactly the same. Why ?
Why many many tables do not have segments nor extents ? I thought if a table exists, it must have been allocated an extent / segment
BTW, i want to delete those unused keyset tables and then reclaim the space. I just need to see the after and before the deletion happens in term of space.
Need your enlightment. Please.
Ps : I am not a dba.
Thanks

Comments
Post Details
Added on Mar 8 2022
12 comments
5,330 views