TABLE size (including table,index,lob,lobindex)
TABLE size (including table,index,lob,lobindex)
COLUMN TABLE_NAME FORMAT A32 COLUMN OBJECT_NAME FORMAT A32 COLUMN OWNER FORMAT A10 SELECT owner, table_name, TRUNC(sum(bytes)/1024/1024) Meg FROM (SELECT segment_name table_name, owner, bytes FROM dba_segments WHERE segment_type = 'TABLE' UNION ALL SELECT i.table_name, i.owner, s.bytes FROM dba_indexes i, dba_segments s WHERE s.segment_name = i.index_name AND s.owner = i.owner AND s.segment_type = 'INDEX' UNION ALL SELECT l.table_name, l.owner, s.bytes FROM dba_lobs l, dba_segments s WHERE s.segment_name = l.segment_name AND s.owner = l.owner AND s.segment_type = 'LOBSEGMENT' UNION ALL SELECT l.table_name, l.owner, s.bytes FROM dba_lobs l, dba_segments s WHERE s.segment_name = l.index_name AND s.owner = l.owner AND s.segment_type = 'LOBINDEX') WHERE owner in UPPER('&owner') GROUP BY table_name, owner HAVING SUM(bytes)/1024/1024 > 10 /* Ignore really small tables */ ORDER BY SUM(bytes) desc ;
reference:http://stackoverflow.com/questions/264914/how-do-i-calculate-tables-size-in-oracle
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26442936/viewspace-768851/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- table/index/LOBINDEX遷移表空間Index
- index table (IOT)Index
- partition table and partition indexIndex
- Script: Computing Table Size
- alter table using indexIndex
- 收集full table / index scan sqlIndexSQL
- 資料庫表--index organized table資料庫IndexZed
- 資料庫表--index clustered table資料庫Index
- Get table and index DDL in the easy way(轉)Index
- Oracle Index-organized table (IOT)概述OracleIndexZed
- 索引組織表(Index Organizied Table)索引Index
- 查詢使用表空間的TABLE,INDEX,INDEX SUBPARTITIONIndex
- CREATE INDEX index1 ON table1(col1)Index
- 簡述Oracle IOT(Index Organized Table)(上)OracleIndexZed
- 簡述Oracle IOT(Index Organized Table)(下)OracleIndexZed
- 簡述Oracle IOT(Index Organized Table)(中)OracleIndexZed
- 索引組織表(index organized table ,IOT)索引IndexZed
- Index-Organized Table Applications (236)IndexZedAPP
- SIZE AUTO和SIZE SKEWONLY在gather_table_stats時的區別
- 0317TABLE ACCESS BY INDEX ROWID BATCHEDIndexBAT
- Some indexes or index partitions of table have been marked unusableIndex
- 如何更改table及index的表空間Index
- 我眼中的 Nginx(二):HTTP/2 dynamic table size updateNginxHTTP
- Oracle模擬MySQL的show index from table命令OracleMySqlIndex
- index為什麼可能會比table大很多Index
- 壓縮table and index 對 space 的影響testIndex
- 拆分Table 為Partition Table
- 317TABLE ACCESS BY INDEX ROWID BATCHED2IndexBAT
- 317TABLE ACCESS BY INDEX ROWID BATCHED3IndexBAT
- oracle10.2.0.4_create table_constraint_indexOracleAIIndex
- analyze table/index validate structure加鎖的問題IndexStruct
- #1118 - Row size too large. The maximum row size for the used table type, not counting BLOBs
- [Oracle] Partition table exchange Heap tableOracle
- html~table、table cell的使用HTML
- 如何修改table及partitions Table
- table
- User defined table type and table valued parameters
- MysqL中的Show Index From Table_Name命令說明MySqlIndex