Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Redo a Tablespace

Redo a Tablespace

From: Burton, Laura L. <BurtonL_at_prismplus.com>
Date: Mon, 13 Nov 2000 16:34:42 -0600
Message-Id: <10679.121950@fatcity.com>


This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible.

------_=_NextPart_001_01C04DC1.EAE13FD2
Content-Type: text/plain;

        charset="iso-8859-1"

I want to delete a tablespace that is already in use (contains tables) and rebuild it. Would someone please look at the steps I am going to take and offer advice if you see a problem?

  1. Shutdown database and back it up (datafiles, redo, archive, etc)
  2. Restart database ... maybe exclusive to keep others off
  3. Export user (which only has tables on the tablespace I want to delete)
  4. Drop user cascade
  5. Drop tablespace
  6. Delete datafile file from disk (if the drop tablespace takes care of this then I'll go to step 7)
  7. Create tablespace with new info
  8. Create user
  9. Import user
  10. Alter database for everyone's use

Thank you in advance.

Laura

------_=_NextPart_001_01C04DC1.EAE13FD2
Content-Type: text/html;

        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>Redo a Tablespace</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2 FACE=3D"Arial">I want to delete a tablespace that is =
already in use (contains tables) and rebuild it.&nbsp; Would someone = please look at the steps I am going to take and offer advice if you see = a problem?&nbsp; </FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;1.&nbsp; Shutdown database and =
back it up (datafiles, redo, archive, etc)</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;2.&nbsp; Restart database ... =
maybe exclusive to keep others off</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;3.&nbsp; Export user (which =
only has tables on the tablespace I want to delete)</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;4.&nbsp; Drop user =
cascade</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;5.&nbsp; Drop tablespace</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;6.&nbsp; Delete datafile file =
from disk (if the drop tablespace takes care of this then I'll go to = step 7)</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;7.&nbsp; Create tablespace with =
new info</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;8.&nbsp; Create user</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;9.&nbsp;&nbsp; Import user =
</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">10.&nbsp; Alter database for =
everyone's use</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Thank you in advance.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Laura</FONT>
Received on Mon Nov 13 2000 - 16:34:42 CST

Original text of this message

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