Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Question: Safest way to 'recreate' a tablespace
"gazzag" <gareth_at_jamms.org> wrote in message
news:1130356501.052393.326630_at_g44g2000cwa.googlegroups.com...
>I believe the Oracle documentation gives an example of this:
>
> 1. alter tablespace <tablespace_name> offline normal;
>
> 2. Copy the datafile in question to the desired location with the
> relevant O/S command.
>
> 3. alter tablespace <tablespace_name> rename datafile
> '<old_datafile_name>' to '<new_datafile_name>';
>
> 4. alter tablespace <tablespace_name> online;
>
> Clean up by deleting the unwanted datafile with the O/S.
>
This will only *move* the datafile, not remove it from the tablespace. I believe dropping datafiles from tablespaces is only supported in 10g Release 2.
Matthias Received on Wed Oct 26 2005 - 15:06:50 CDT