mysql - Difference between dba_SEGMENTS and dba_data_files -
shouldn't these 2 queries give same result? first sum of segments while other sum of data files. giving different results me. while first 1 gives me 149522mb, other gives 214973.34 mb
select sum(bytes)/1024/1024 mb dba_segments; select sum(bytes)/1024/1024 mb dba_data_files;
oracle uses "logical" und "physical" structures store data. case: extents of segment can stored in different datafiles, summing can work must not work see here:
http://docs.oracle.com/cd/e11882_01/server.112/e40540/logical.htm#cncpt301
plus: oracle has "high water mark" if segment size sinks, extends , datafiles don't shrink beneath size of hwm automatically, i. e. see here:
http://www.dbspecialists.com/resizing-datafiles-and-understanding-the-high-water-mark/
Comments
Post a Comment