Re: Datafile Size
- From: Tim Gorman <tim@xxxxxxxxx>
- To: nagaraj.chk@xxxxxxxxx
- Date: Tue, 10 Feb 2009 07:45:20 -0700
|
Naga, The point is that both "ls -lh" and "du -sh" are telling the truth, just different truths based on the source data from which each utility is reporting. The "-h" flag is not a part of this issue, by the way -- that is just a reporting option. With regards to different truths, for source information the "ls" command is looking at the current size of the file contents, while the "du" command is looking at how much space (in file-system blocks) is consumed by those file contents. As you can imagine, if the file contents are packed into a minimum number of blocks, there will be little or no discrepancies in the output from the two utilities. However, if for any reason there are sparsely-populated or unpopulated blocks associated with these files, then we'll see discrepancies, perhaps on the scale you've shown. Anyone familiar with the differences between the BLOCKS column on the DBA_TABLES view and the BYTES column on the DBA_SEGMENTS view can start to guess at the real issues behind the discrepancies. File-systems are not very unlike the Oracle database in this respect, which is one reason why there has always been so much talk about bypassing file-systems in favor of raw devices over the years. By the way, what about my guess? Were the datafiles in this database created atop datafiles from a previous database using the REUSE clause during the CREATE DATABASE command? Inquiring minds want to know.... Thanks! Tim Gorman consultant - Evergreen Database Technologies, Inc. P.O. Box 630791, Highlands Ranch CO 80163-0791 website = http://www.EvDBT.com/ email = Tim@xxxxxxxxx mobile = +1-303-885-4526 fax = +1-303-484-3608 Yahoo IM = tim_evdbt Nagaraj S wrote: -- http://www.freelists.org/webpage/oracle-l |
- Follow-Ups:
- Re: Datafile Size
- From: Jared Still
- Re: Datafile Size
- References:
- Datafile Size
- From: Nagaraj S
- Re: Datafile Size
- From: Nagaraj S
- Re: Datafile Size
- From: Tim Gorman
- Re: Datafile Size
- From: Nagaraj S
- Datafile Size
Other related posts:
- » Datafile Size - Nagaraj S
- » Datafile Size - Nagaraj S
- » Re: Datafile Size - Nagaraj S
- » Re: Datafile Size - Nagaraj S
- » Re: Datafile Size - Dennis Williams
- » RE: Datafile Size - Mercadante, Thomas F (LABOR)
- » Re: Datafile Size - Jared Still
- » RE: Datafile Size - Goulet, Richard
- » Re: Datafile Size - Tim Gorman
- » Re: Datafile Size - Nagaraj S
- » Re: Datafile Size - Nagaraj S
- » Re: Datafile Size - Tim Gorman
- » Re: Datafile Size - Jared Still
- » Re: Datafile Size - Niall Litchfield
- » Re: Datafile Size - Nagaraj S
- » Re: Datafile Size - Nagaraj S
- » Re: Datafile Size - Jared Still