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: Removing datafiles

RE: Removing datafiles

From: Koivu, Lisa <lkoivu_at_qode.com>
Date: Wed, 26 Jul 2000 09:19:53 -0400
Message-Id: <10570.113000@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_01BFF704.2F624544
Content-Type: text/plain;

        charset="iso-8859-1"

If I remember right, if you try to bring the tablespace back after this you will get an error because the ts is still looking for the datafile, it gets really messy. If you want to get rid of a datafile, drop the tablespace, then the datafiles. Then remove the file from the O/S.

Lisa
Ft. Lauderdale, FL, USA

-----Original Message-----
From: Taylor, Shirley [mailto:TaylorSI_at_mar.dfo-mpo.gc.ca] Sent: Wednesday, July 26, 2000 9:03 AM
To: Multiple recipients of list ORACLE-L Subject: RE: Removing datafiles

First

        alter tablespace xxx offline;
Then from the o/s

        rm filename (if on unix)

> -----Original Message-----
> From: Weerd de E.C. Kirsten [SMTP:Kirsten.deWeerd_at_Oranjewoud.nl]
> Sent: Wednesday, July 26, 2000 6:16 AM
> To: Multiple recipients of list ORACLE-L
> Subject: Removing datafiles
>
> Hi all,
>
> Yeah yeah, I should know this, but I'm just out of a two weeks 'Forget it
> all'-vacation, and I simply can't remember and don't have the necessary
> docs
> to find it.
>
> There are several tablespaces that I want to export, drop everything and
> recreate with an import.
>
> Dropping everything is very easy using : Drop User ... cascade ;
> When the datafiles are empty, I want to remove them so that I can replace
> and resize them more appropriately.
>
> Is it as simple is I think it is : Alter Tablespace ... Remove datafile
> '...' ;
>
> Thanx for your attention!
>
> Greets,
>
> Kirsten
>
> --
> Author: Weerd de E.C. Kirsten
> INET: Kirsten.deWeerd_at_Oranjewoud.nl
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> 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).

-- 
Author: Taylor, Shirley
  INET: TaylorSI_at_mar.dfo-mpo.gc.ca

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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).

------_=_NextPart_001_01BFF704.2F624544
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>RE: Removing datafiles</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>If I remember right, if you try to bring the =
tablespace back after this you will get an error because the ts is =
still looking for the datafile, it gets really messy. If you want to =
get rid of a datafile, drop the tablespace, then the datafiles. Then =
remove the file from the O/S.</FONT></P>

<P><FONT SIZE=3D2>Lisa</FONT>
<BR><FONT SIZE=3D2>Ft. Lauderdale, FL, USA</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Taylor, Shirley [<A =
HREF=3D"mailto:TaylorSI_at_mar.dfo-mpo.gc.ca">mailto:TaylorSI_at_mar.dfo-mpo.g=
c.ca</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Wednesday, July 26, 2000 9:03 AM</FONT>
<BR><FONT SIZE=3D2>To: Multiple recipients of list ORACLE-L</FONT>
<BR><FONT SIZE=3D2>Subject: RE: Removing datafiles</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>First </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>alter =
tablespace xxx offline;</FONT>
<BR><FONT SIZE=3D2>Then from the o/s</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>rm =
filename&nbsp; (if on unix)</FONT>
</P>

<P><FONT SIZE=3D2>&gt; -----Original Message-----</FONT>
<BR><FONT SIZE=3D2>&gt; From: Weerd de E.C. Kirsten =
[SMTP:Kirsten.deWeerd_at_Oranjewoud.nl]</FONT>
<BR><FONT SIZE=3D2>&gt; Sent: Wednesday, July 26, 2000 6:16 AM</FONT>
<BR><FONT SIZE=3D2>&gt; To:&nbsp;&nbsp; Multiple recipients of list =
ORACLE-L</FONT>
<BR><FONT SIZE=3D2>&gt; Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Removing =
datafiles</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Hi all,</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Yeah yeah, I should know this, but I'm just out =
of a two weeks 'Forget it</FONT>
<BR><FONT SIZE=3D2>&gt; all'-vacation, and I simply can't remember and =
don't have the necessary</FONT>
<BR><FONT SIZE=3D2>&gt; docs</FONT>
<BR><FONT SIZE=3D2>&gt; to find it.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; There are several tablespaces that I want to =
export, drop everything and</FONT>
<BR><FONT SIZE=3D2>&gt; recreate with an import.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Dropping everything is very easy using : Drop =
User ... cascade ;</FONT>
<BR><FONT SIZE=3D2>&gt; When the datafiles are empty, I want to remove =
them so that I can replace</FONT>
<BR><FONT SIZE=3D2>&gt; and resize them more appropriately.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Is it as simple is I think it is : Alter =
Tablespace ... Remove datafile</FONT>
<BR><FONT SIZE=3D2>&gt; '...' ;</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Thanx for your attention!</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Greets,</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Kirsten</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; -- </FONT>
<BR><FONT SIZE=3D2>&gt; Author: Weerd de E.C. Kirsten</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp; INET: =
Kirsten.deWeerd_at_Oranjewoud.nl</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Fat City Network Services&nbsp;&nbsp;&nbsp; -- =
(858) 538-5051&nbsp; FAX: (858) 538-5051</FONT>
<BR><FONT SIZE=3D2>&gt; San Diego, =
California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Public Internet =
access / Mailing Lists</FONT>
<BR><FONT SIZE=3D2>&gt; =
--------------------------------------------------------------------</FO=
NT>
<BR><FONT SIZE=3D2>&gt; To REMOVE yourself from this mailing list, send =
an E-Mail message</FONT>
<BR><FONT SIZE=3D2>&gt; to: ListGuru_at_fatcity.com (note EXACT spelling =
of 'ListGuru') and in</FONT>
<BR><FONT SIZE=3D2>&gt; the message BODY, include a line containing: =
UNSUB ORACLE-L</FONT>
<BR><FONT SIZE=3D2>&gt; (or the name of mailing list you want to be =
removed from).&nbsp; You may</FONT>
<BR><FONT SIZE=3D2>&gt; also send the HELP command for other =
information (like subscribing).</FONT>
<BR><FONT SIZE=3D2>-- </FONT>
<BR><FONT SIZE=3D2>Author: Taylor, Shirley</FONT>
<BR><FONT SIZE=3D2>&nbsp; INET: TaylorSI_at_mar.dfo-mpo.gc.ca</FONT>
</P>

<P><FONT SIZE=3D2>Fat City Network Services&nbsp;&nbsp;&nbsp; -- (858) =
538-5051&nbsp; FAX: (858) 538-5051</FONT>
<BR><FONT SIZE=3D2>San Diego, =
California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Public Internet =
access / Mailing Lists</FONT>
<BR><FONT =
SIZE=3D2>---------------------------------------------------------------=
-----</FONT>
<BR><FONT SIZE=3D2>To REMOVE yourself from this mailing list, send an =
E-Mail message</FONT>
<BR><FONT SIZE=3D2>to: ListGuru_at_fatcity.com (note EXACT spelling of =
'ListGuru') and in</FONT>
<BR><FONT SIZE=3D2>the message BODY, include a line containing: UNSUB =
ORACLE-L</FONT>
<BR><FONT SIZE=3D2>(or the name of mailing list you want to be removed =
Received on Wed Jul 26 2000 - 08:19:53 CDT

Original text of this message

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