Re: Sanity Check Please: Removing Datafiles after Dropping Tablespace?
Date: Tue, 25 May 2021 15:02:52 -0400
Message-ID: <CAKVQkW6nN_X0yQExPMCi6imfdi3BRvK+T=ncGK=Er+G0XBZjkQ_at_mail.gmail.com>
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_at_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
>
>
>
-- http://www.freelists.org/webpage/oracle-lReceived on Tue May 25 2021 - 21:02:52 CEST