Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: temp file does not exist
CREATE TABLESPACE <tbsname> TEMPORARY specifies that the tablespace
can hold only Temporary Segments [as opposed to Permanent ones like Tables
and Indexes].
But the tablespace, itself, is still "permanent" with a datafile [e.g. you
cannot
startup the database if the datafile is missing !]
CREATE TEMPORARY TABLESPACE <tbsname> actually creates
a tablespace that is "temporary" with a tempfile. The tempfile need
not exist when starting up the database [as I believe it, although I
haven't verified this myself].
The tempfile is treated as a temporary file by the underlying OS and
disk-space allocation is determined by the OS [ie, the OS may create
a sparse file which is not the actual size that you specify in the CREATE
statement, and the OS automatically grows the file as required].
You manage the TempFiles with ALTER DATABASE TEMPFILE ...
Note : A TEMPORARY TABLESPACE can only be Locally-Managed. Conversely, a TABLESPACE TEMPORARY is Dictionary-Managed.
Hemant
At 12:01 AM 01-05-03 -0800, you wrote:
>hmmm, so I've been creating my temp tablespaces in 8i
>using create tablespace temporary and not create temporary tablespace...
>never had any use for dba_temp_files you know ;)
>
>thanks.
>
>=)
>
>Hemant K Chitale wrote:
>
> > Does the TEMP tablespace have a DataFile or a TempFile. If it
> > was created as a TEMPORARY TABLESPACE, it has a TempFile.
> > Query DBA_TEMP_FILES, not DBA_DATA_FILES.
> > Hemant
> > At 09:16 PM 30-04-03 -0800, you wrote:
> > >I just did an alter database rename file on the new server (oracle9i -
> > >just starting to user it)
> > >and I encountered a 'datafile, logfile or tempfile does not exist' error
> > >or something like that for my datafile for the temp tablespace. funny
> > >thing is dictionary shows that there indeed is a TEMP tablespace with no
> > >datafiles.
> > >hmmm. how did that happen? i have this temp tablespace defined ok on the
> > >original server.
> > >I could add the datafile to temp but I can't understand why my
> > >controlfile doesn't have a listing for my temp datafile.
> > >
> > >--
> > >Please see the official ORACLE-L FAQ: http://www.orafaq.net
> > >--
> > >Author: Maria Aurora de la Vega
> > > INET: mtdelavega_at_pse.org.ph
> > >
> > >Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> > >San Diego, California -- Mailing list and web hosting services
> > >---------------------------------------------------------------------
> > >To REMOVE yourself from this mailing list, send an E-Mail message
> > >to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> > >the message BODY, include a line containing: UNSUB ORACLE-L
> > >(or the name of mailing list you want to be removed from). You may
> > >also send the HELP command for other information (like subscribing).
> >
> > Hemant K Chitale
> > My personal web site is : http://hkchital.tripod.com
> >
> > --
> > Please see the official ORACLE-L FAQ: http://www.orafaq.net
> > --
> > Author: Hemant K Chitale
> > INET: hkchital_at_singnet.com.sg
> >
> > Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> > San Diego, California -- Mailing list and web hosting services
> > ---------------------------------------------------------------------
> > To REMOVE yourself from this mailing list, send an E-Mail message
> > to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> > the message BODY, include a line containing: UNSUB ORACLE-L
> > (or the name of mailing list you want to be removed from). You may
> > also send the HELP command for other information (like subscribing).
>
>--
>Please see the official ORACLE-L FAQ: http://www.orafaq.net
>--
>Author: Maria Aurora de la Vega
> INET: mtdelavega_at_pse.org.ph
>
>Fat City Network Services -- 858-538-5051 http://www.fatcity.com
>San Diego, California -- Mailing list and web hosting services
>---------------------------------------------------------------------
>To REMOVE yourself from this mailing list, send an E-Mail message
>to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
>the message BODY, include a line containing: UNSUB ORACLE-L
>(or the name of mailing list you want to be removed from). You may
>also send the HELP command for other information (like subscribing).
Hemant K Chitale
My personal web site is : http://hkchital.tripod.com
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Hemant K Chitale INET: hkchital_at_singnet.com.sg Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Thu May 01 2003 - 06:41:37 CDT