oracle 檢視資料表容量大小

2021-09-02 19:12:29 字數 494 閱讀 2424

1.檢視所有表,每張表占用大小(單位是byte)

2.檢視其中幾張表大小

需要再加判斷條件:segment_name–表名

還有一些查詢需要dba許可權,諸如表空間大小等等

檢視所有表的資料量並排序

select t.table_name,t.num_rows from user_tables t order by num_rows desc;

還可以直接檢視dblink的:

select t.table_name,t.num_rows from user_tables@dblink t order by num_rows desc;

MySQL檢視資料庫表容量大小

select table schema as 資料庫 sum table rows as 記錄數 sum truncate data length 1024 1024,2 as 資料容量 mb sum truncate index length 1024 1024,2 as 索引容量 mb from...

MySQL檢視資料庫表容量大小

1.檢視所有資料庫容量大小 select table schema as 資料庫 sum table rows as 記錄數 sum truncate data length 1024 1024,2 as 資料容量 mb sum truncate index length 1024 1024,2 a...

MySQL檢視資料庫表容量大小

1.檢視所有資料庫容量大小 select table schema as 資料庫 sum table rows as 記錄數 sum truncate data length 1024 1024,2 as 資料容量 mb sum truncate index length 1024 1024,2 a...