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" <[EMAIL PROTECTED]>
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
[EMAIL PROTECTED]              Quad/Tech International, Sussex, WI USA
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jesse, Rich
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to