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: temp file does not exist

Re: temp file does not exist

From: Maria Aurora de la Vega <mtdelavega_at_pse.org.ph>
Date: Sun, 04 May 2003 22:51:44 -0800
Message-ID: <F001.0058F22E.20030504225144@fatcity.com>


Yup. this is correct. that's why I had my 9i databases started even if I had that error in alter database.
This confusion started all because 8i's DBCA creates TEMP as datafile and 9i creates TEMP as tempfile.
Of the 4 instances on that particular server, I had 4 9i instances wherein 2 of them were created as 9i databases
and the other 2 were originally 8i databases migrated to 9i. So when I created the scripts to rename the datafiles (Lazy me shutdown the databases first before
getting a list of all the files and did not bother to start up again to get a dump)...I simply ran a for loop in unix on all known datafile directories...luckily, I know them all! =) So when I ran the scripts and 2 databases had errors and 2 did not...I didn't immediately realize that the same 2 that didn't show any errors were originally in 8i.
Well, at that point, it was 9pm already...so I thought, I'll let it pass overnight and let someone willing and able do the thinking... Thanks for that! Great help!

Hemant K Chitale wrote:

> 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).

-- 
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).
Received on Mon May 05 2003 - 01:51:44 CDT

Original text of this message

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