Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: DBA_TEMP_FILES.MAXBYTES is wrong

Re: DBA_TEMP_FILES.MAXBYTES is wrong

From: Tanel Põder <tanel.poder.003_at_mail.ee>
Date: Fri, 17 Jun 2005 01:40:30 +0100
Message-ID: <0aed01c572d5$29df55b0$0301a8c0@porgand>


Hi,

Sorry for late answer, but I wrote about ls -ls not ls -l in my earlier post.
ls -ls shows the *real* filesystem space usage of a file, in filesystem blocks.

Note that newer cp and tar commands can handle sparse files the way that they remain sparse after copying to different location, so if you want to force a tempfile to actually use all of the space allowed for it, you could either use dd or cp special option to disable sparsity (like --sparse=never on redhat linux)

Tanel.

> Tanel,
> For sparse file, ls -l will not show the actual file. as oracle tempfiles.
> For example, in solaris 10/redhat 3.
> In linux redhat as3:
>
> SQL> create temporary tablespace tmp tempfile '/tmp/a.dbf' size 20001m
> autoextend on maxsize 40001m;
>
> Tablespace created.
>
>
> SQL> ! ls -l /tmp/a.dbf
> -rw-r----- 1 oracle dba 20972584960 May 31 08:24 /tmp/a.dbf
>
> SQL> ! df -k /tmp
> Filesystem 1k-blocks Used Available Use% Mounted on
> /dev/sda5 2055600 32996 1918184 2% /tmp
> On 5/31/05, Tanel Põder <tanel.poder.003_at_mail.ee> wrote:
>
>> 'ls -ls' shows the real size of file in filesystem blocks on most modern
>> unixes as well...
>>
>> Tanel.

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Jun 16 2005 - 20:45:40 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US