--查詢表所在的空間和佔用表空間大小查詢
SELECT t1.TABLE_NAME, t1.TABLESPACE_NAME,Sum(bytes)/1024/1024 FROM user_TABLES t1, User_Extents t2 WHERE t1.TABLE_NAME = t2.segment_name GROUP BY t1.TABLE_NAME, t1.TABLESPACE_NAME;