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

Home -> Community -> Usenet -> c.d.o.server -> Re: Impossible to move tempfile

Re: Impossible to move tempfile

From: Renzo Zagni <renzo.zagni_at_gmail.com>
Date: 14 Nov 2006 13:20:48 -0800
Message-ID: <1163539248.073704.69000@h54g2000cwb.googlegroups.com>


I believe this is the expected behaviour. You can either drop and recreate the tablespace or the tempfiles

--Renzo
astalavista wrote:
> Hi,
>
> Something weird, I can't move a tempfile,
> something I miss ? Thannks
>
> 9.2.0.7 on AIX 5.3
>
>
> SQL> select name from v$tempfile;
> NAME
>
> --------------------------------------------------------------------------------
>
> /oracle/app/oracle/oradata/DVSAUDIT/temp01.dbf
>
> /base/DVSAUDIT/data/dts101.dbf
>
>
>
> Database in mount state:
>
> $ mv /oracle/app/oracle/oradata/DVSAUDIT/temp01.dbf /base/DVSAUDIT/data
>
> SQL> alter database rename file
> '/oracle/app/oracle/oradata/DVSAUDIT/temp01.dbf'
>
> to '/base/DVSAUDIT/data/temp01.dbf';
>
> alter database rename file '/oracle/app/oracle/oradata/DVSAUDIT/temp01.dbf'
> to '
>
> /base/DVSAUDIT/data/temp01.dbf'
>
> *
>
> ERROR at line 1:
>
> ORA-01511: error in renaming log/data files
>
> ORA-01516: nonexistent log file, datafile, or tempfile
>
> "/oracle/app/oracle/oradata/DVSAUDIT/temp01.dbf"
>
>
>
> $ ls -l /base/DVSAUDIT/data/temp01.dbf
>
> -rw-r----- 1 oracle9 dba 41951232 Oct 06 22:58
> /base/DVSAUDIT/data/temp01.dbf
Received on Tue Nov 14 2006 - 15:20:48 CST

Original text of this message

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