Return-Path: <oracle-l-bounce@freelists.org>
X-Original-To: oracle-l@orafaq.com
Delivered-To: oracle-l@orafaq.com
Received: from smtp-aa.freelists.org (smtp-aa.freelists.org [23.23.80.81])
 by malta2546.startdedicated.com (Postfix) with ESMTPS id 79A791002F3868
 for <oracle-l@orafaq.com>; Tue, 25 May 2021 21:03:10 +0200 (CEST)
Received: from turing.freelists.org (ip-10-0-0-164.ec2.internal [10.0.0.164])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
 (No client certificate requested)
 by smtp-aa.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id A4D5140FCD;
 Tue, 25 May 2021 19:03:09 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id 7F09840B27;
 Tue, 25 May 2021 19:03:09 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1621969389;
 bh=2WktKz4GjgiJKTjOQZZaJYWm6RGCzl1k5scx6vHBdm8=;
 h=From:Sender:Sender:From;
 b=PN88MoxLGBUEcfBs9wItrZeGxCutXb5ShAAY05zQ9tdY59miUF8jqvmWhDD/SmnQ0
	 DuD7C2529AXWsj8O41uQ8jZtMy7X1W76Wx9hEO5eM77h0sGxZfyK2IxIqalqoRyVS5
	 /6RNCV/w1ojP3bqjEekGrVLN1seytuztNMvWWAE4=
X-Virus-Scanned: by FreeLists at turing2.freelists.org
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id gDIKQFOFXQNb; Tue, 25 May 2021 19:03:09 +0000 (UTC)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id BA5A240B29;
 Tue, 25 May 2021 19:03:05 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1621969387;
 bh=2WktKz4GjgiJKTjOQZZaJYWm6RGCzl1k5scx6vHBdm8=;
 h=From:Sender:Sender:From;
 b=D2G+5PoKDanhiMCbc96Xo2IWvq1Ydjnu243g1Rg7IZzQ87voHwwOsODBtWD9Hx8P4
	 3rvRO15ZTsMOOFA3I/Z9odSQyPODtcxqgfgavatCW4uS26Cm8ezTY4Fm+2PA3a72QI
	 jGv+OQ5HSI2ZoY75sXzEyQnESLjPMd+3YYXyr/PE=
Received: with ECARTIS (v1.0.0; list oracle-l); Tue, 25 May 2021 19:03:04 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id E720240B27
 for <oracle-l@freelists.org>; Tue, 25 May 2021 19:03:03 +0000 (UTC)
Authentication-Results: turing.freelists.org;
 dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=KL5CwWpY;
 dkim-atps=neutral
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id OxFVyajs14mw for <oracle-l@freelists.org>;
 Tue, 25 May 2021 19:03:03 +0000 (UTC)
Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41])
 (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
 (No client certificate requested)
 by turing.freelists.org (Postfix) with ESMTPS id D90CB40A7A
 for <oracle-l@freelists.org>; Tue, 25 May 2021 19:03:03 +0000 (UTC)
Received: by mail-ej1-f41.google.com with SMTP id et19so41948881ejc.4
        for <oracle-l@freelists.org>; Tue, 25 May 2021 12:03:03 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:references:in-reply-to:from:date
         :message-id:subject:to:cc;
        bh=aOpoZb9e50Wmx6gn/Z9PFSLlWEAmaG/fYen3Q/iGSLQ=;
        b=GZy58RG/dBYMQtB9LFBC66KF5bJS5nM1EwNdOPZj7ObBN/U601ruurnUpiYCyQBDU/
         lTmhszzPG+VIIUgHPgx3XAC+Uaa6JjRNmHEZegngqM0cubKBZgAseishjTpzktyRt1Bh
         EAx9Lujd0Jz6xnsklvz0UEAlwgryu4qLK6XYLTZY/RKUviZBSUrqwx3uI4Qt7ynvRrJY
         WJhSqNW/osEU3jLl0HlqJzaEdCesPIKHuMw42ZUfX02ggJlQpkUbOVNelHAddXSu0ll8
         qODAzarACod/aMUSFGc5HBpPDtymgdEorZ65pDQOyx/BRKnkAI6DPTWzV/NtRMSJCvXr
         46Ag==
X-Gm-Message-State: AOAM532uLNmVh+bRYxlqNHniM0BBam1lCmuJLH8xImTCbJg7s0/S2icE
 TZJ4iPIr3+K9CAtmmvfnhEiD7w6R8YQB80lwmQA=
X-Google-Smtp-Source: ABdhPJzqWwXge7yR31tQ+DRzkVyO3SmoyDb6H8rGUX0gl1/cHTO2e/svN4ECIXW0doYsQLdztdCUyAHY87wFvXtw1rI=
X-Received: by 2002:a17:906:e2d9:: with SMTP id gr25mr31154314ejb.373.1621969382898;
 Tue, 25 May 2021 12:03:02 -0700 (PDT)
MIME-Version: 1.0
References: <CAP79kiT2z8xcR0nhU4pYYhcQrBW4mH79_ct8askC-8hjXGSiBA@mail.gmail.com>
In-Reply-To: <CAP79kiT2z8xcR0nhU4pYYhcQrBW4mH79_ct8askC-8hjXGSiBA@mail.gmail.com>
From: Todd Bellaver <todd.bellaver@gmail.com>
Date: Tue, 25 May 2021 15:02:52 -0400
Message-ID: <CAKVQkW6nN_X0yQExPMCi6imfdi3BRvK+T=ncGK=Er+G0XBZjkQ@mail.gmail.com>
Subject: Re: Sanity Check Please: Removing Datafiles after Dropping Tablespace?
To: christopherdtaylor1994@gmail.com
Cc: "oracle-l@freelists.org" <oracle-l@freelists.org>
Content-Type: multipart/alternative; boundary="000000000000e77ecd05c32c2c9f"
X-archive-position: 80053
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: todd.bellaver@gmail.com
Precedence: normal
Reply-To: todd.bellaver@gmail.com
List-Help: <mailto:ecartis@freelists.org?Subject=help>
List-Unsubscribe: <mailto:oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-Subscribe: <mailto:oracle-l-request@freelists.org?Subject=subscribe>
List-Owner: <mailto:>
List-post: <mailto:oracle-l@freelists.org>
List-Archive: <https://www.freelists.org/archive/oracle-l>
X-list: oracle-l
--000000000000e77ecd05c32c2c9f
Content-Type: text/plain; charset="UTF-8"

Hey there,

Some things you may want to try before deleting them:
 - If Linux, run lsof (lsof | grep filename) to check if the database still
has these files open
 - Check the date/time stamp.  If timestamps are current, the file(s) are
still being used
 - if you're still unsure, rename/compress the files.  This way if files
are still needed, you can 'restore' them by renaming/uncompressing them

hth,

Todd

On Tue, May 25, 2021 at 9:21 AM Chris Taylor <
christopherdtaylor1994@gmail.com> wrote:

> Env :12.1.0.2 x86-64 Linux NON-RAC,NON-ASM
>
> As haste makes waste (or leaves waste as the case may be), I dropped a
> tablespace as part of a scheduled maintenance.  However, I neglected the
> "INCLUDING CONTENTS AND DATAFILES" portion of the drop command.
>
> So now I have a lot of datafiles left on the OS.
>
> I've confirmed that fuser doesn't show any PIDs touching the datafiles.
>
> I *think *I can drop the datafiles straight from the OS now on both the
> primary and standby, but need a sanity check here if anyone knows something
> different?  I'm being careful here in case I've forgotten something.
>
> Thanks,
> Chris
>
>
>

--000000000000e77ecd05c32c2c9f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hey there,<div><br></div><div>Some things you may want to =
try before deleting them:</div><div>=C2=A0- If Linux, run lsof (lsof | grep=
 filename) to check if the database still has these files open</div><div>=
=C2=A0- Check the date/time stamp.=C2=A0 If timestamps are current, the fil=
e(s) are still being used</div><div>=C2=A0- if you&#39;re still unsure, ren=
ame/compress the files.=C2=A0 This way if files are still needed, you can &=
#39;restore&#39; them by renaming/uncompressing them</div><div><br></div><d=
iv>hth,</div><div><br></div><div>Todd</div></div><br><div class=3D"gmail_qu=
ote"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, May 25, 2021 at 9:21 AM =
Chris Taylor &lt;<a href=3D"mailto:christopherdtaylor1994@gmail.com">christ=
opherdtaylor1994@gmail.com</a>&gt; wrote:<br></div><blockquote class=3D"gma=
il_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,2=
04,204);padding-left:1ex"><div dir=3D"ltr"><div class=3D"gmail_default" sty=
le=3D"font-family:arial,helvetica,sans-serif">Env :12.1.0.2 x86-64 Linux NO=
N-RAC,NON-ASM</div><div class=3D"gmail_default" style=3D"font-family:arial,=
helvetica,sans-serif"><br></div><div class=3D"gmail_default" style=3D"font-=
family:arial,helvetica,sans-serif">As haste makes waste (or leaves waste as=
 the case may be), I dropped a tablespace as part of a scheduled maintenanc=
e.=C2=A0 However, I neglected the &quot;INCLUDING CONTENTS AND DATAFILES&qu=
ot; portion of the drop command.<br></div><div class=3D"gmail_default" styl=
e=3D"font-family:arial,helvetica,sans-serif"><br></div><div class=3D"gmail_=
default" style=3D"font-family:arial,helvetica,sans-serif">So now I have a l=
ot of datafiles left on the OS.=C2=A0 =C2=A0=C2=A0<br><br>I&#39;ve confirme=
d that fuser doesn&#39;t show any PIDs touching the datafiles.</div><div cl=
ass=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif"><br>=
</div><div class=3D"gmail_default" style=3D"font-family:arial,helvetica,san=
s-serif">I <i>think </i>I can drop the datafiles straight from the OS now o=
n both the primary and standby, but need a sanity check here if anyone know=
s something different?=C2=A0 I&#39;m being careful here in case I&#39;ve fo=
rgotten something.=C2=A0</div><div class=3D"gmail_default" style=3D"font-fa=
mily:arial,helvetica,sans-serif"><br></div><div class=3D"gmail_default" sty=
le=3D"font-family:arial,helvetica,sans-serif">Thanks,<br>Chris</div><div cl=
ass=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif"><br>=
<br></div></div>
</blockquote></div>

--000000000000e77ecd05c32c2c9f--
--
http://www.freelists.org/webpage/oracle-l


