Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Extent management local problem
> >
> >> But the following won't work for locally managed, still don't know
> >> why:
> >>
> >> CREATE TABLESPACE temp
> >> DATAFILE 'c:\oracle\oradata\db2\temp.dbf' SIZE 100M
> >> EXTENT MANAGEMENT local
> >> TEMPORARY;
> >>
> >> My question is that why is a locally managed temporary tablespace
> >> shown as a data file in the dba_data_files table, but not as a temp
> >> file in dba_temp_files table?
> >
> >Datafile specifies a datafile,tempfile specifies a tempfile - clever huh?
>
>
> Why is a temporary file treated as a datafile? Why is it designed this
> way? A temporary file created with a datafile clause, and then listed
> as a datafile. It should be created with a tempfile clause instead and
> listed as a tempfile.
>
First:
Second:
Third:
Fourth:
CREATE TEMPORARY TABLESPACE ... uses the 'new' tempfiles and, hence, are visible through DBA_TEMP_FILES
A temp file is not treated as a datafile as you stated, Don't mix up a temporary tablespace (which we have in two flavours) with temporary file (only one flavour).
hth,
Peter
Received on Fri May 02 2003 - 05:12:45 CDT