dba_segments,dba_tables

SELECT * FROM DBA_TABLESPACES – 记录各个表空间的详细信息
SELECT * FROM DBA_TABLESPACE_USAGE_METRICS – 记录各个表空间的使用状况
SELECT * FROM DBA_DATA_FILES – 记录各个数据文件的详细信息
SELECT * FROM DBA_SEGMENTS – 记录各个段的详细信息,与 DBA_TABLES,DBA_INDEXES,DBA_LOBS,DBA_PART_TABLES,DBA_PART_INDEXES,DBA_PART_LOBS,DBA_OBJECTS 搭配使用
SELECT * FROM DBA_LOBS --BLOB 字段所对应的字段名称
SELECT * FROM DBA_INDEXES – 分区索引需要通过 DBA_INDEXS 来找到对应的表名
SELECT * FROM DBA_EXTENTS – 记录各个区间对象的详细信息

Question: What is the difference between dba_segments and dba_tables?
Answer: The dba_tables view describes a “logical” structure while dba_segments describes the “physical” data segment, like a data file.
Also, columns like “blocks” are different between dba_tables and dba_segments. In dba_tables, the “blocks” are calculated when you run dbms_stats, while in dba_segments, “blocks” is the actual number of blocks used by the object on disk.

Reference:http://baoqiangwang.blog.51cto.com/1554549/312705

http://dba-oracle.com/t_difference_dba_tables_dba_segments.htm
————————————————
版权声明:本文为CSDN博主「田攀」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/pan_tian/article/details/8268792

你可能感兴趣的:(dba_segments,dba_tables)