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:Convert TEMP tablespace from datafiles to tempfiles

Re:Convert TEMP tablespace from datafiles to tempfiles

From: <dgoulet_at_vicr.com>
Date: Wed, 06 Nov 2002 10:23:44 -0800
Message-ID: <F001.004FCE88.20021106102344@fatcity.com>


Jesse,

    When you drop the temp tablespace everyone who had it assigned as their temp space will have that changed to SYSTEM. The following should fix that:

    declare

         s varchar2(200);
      begin
         for a in (select username from dba_users) loop
          s := 'alter user '||a.username||' temporary tablespace temp';
          execute immediate s;
         end loop;
      end;


Dick Goulet

____________________Reply Separator____________________
Author: "Jesse; Rich" <Rich.Jesse_at_qtiworld.com>
Date:       11/6/2002 7:56 AM

Hey all,

I've got some downtime coming up on an 8.1.6 DB on Solaris, and I'd like to take the opportunity to convert the datafiles of the TEMP tablespace to tempfiles. My reason for this change is primarily to get the TEMP tablespace LMT, but also to shrink our hotbacks w/o modifying the working script.

I've been trying to reason out this task in my head, as I can't find much on MetaLink, and here's what I've got so far:

  1. Shutdown DB.
  2. Backup DB.
  3. Startup restricted.
  4. Offline tablespace TEMP.
  5. Drop tablespace TEMP.
  6. Create new temporary TEMP LMT.
  7. Bounce instance.

I don't yet have an arena to try this in. Will users whose assigned TEMPORARY TABLESPACE is TEMP need to be ALTERed? Anyone have any comments on the procedure?

TIA! Rich

Rich Jesse                           System/Database Administrator
Rich.Jesse_at_qtiworld.com              Quad/Tech International, Sussex, WI USA

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Jesse, Rich
  INET: Rich.Jesse_at_qtiworld.com
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.com
--

Author:
  INET: dgoulet_at_vicr.com
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 Wed Nov 06 2002 - 12:23:44 CST

Original text of this message

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