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: UNDO TABLESPACE

Re: UNDO TABLESPACE

From: Hemant K Chitale <hkchital_at_singnet.com.sg>
Date: Sat, 02 Dec 2006 12:40:21 +0800
Message-Id: <7.0.1.0.0.20061202123648.01b42008@singnet.com.sg>

  1. Create another Undo Tablespace (CREATE UNDO TABLESPACE UNDOTBS2 DATAFILE ...)
  2. Switch to that Tablespace (ALTER SYSTEM SET UNDO_TABLESPACE='UNDOTBS2' {with SCOPE=BOTH if using an spfile} or manually edit the init.ora to set UNDO_TABLESPACE, else the next restart will error out if UNDOTBS1 has been dropped but init.ora still points to UNDOTBS1)
  3. Wait for a decent interval (eg as long as UNDO_RETENTION)
  4. Take the old one offline and drop it (ALTER TABLESPACE UNDOTBS1 OFFLINE; DROP TABLESPACE UNDOTBS1 INCLUDING CONTENTS AND DATAFILES). Note however, that any sessions still referencing that Undo tablespace *will* get errors after that (I use "fuser" to see if any processes still have a read on the datafiles of that tablespace)

At 10:37 AM Thursday, Dean Paul wrote:
>Hi,
>
>I want to drop undo tablespace.
>and recreate it.What would be best way?
>Thanks
>
>_________________________________________________________________
>Fixing up the home? Live Search can help
>http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale=en-US&source=hmemailtaglinenov06&FORM=WLMTAG
>
>--
>http://www.freelists.org/webpage/oracle-l
>

Hemant K Chitale
http://web.singnet.com.sg/~hkchital

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Dec 01 2006 - 22:40:21 CST

Original text of this message

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