Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: 10gR2 (10g Release 2) RMAN Duplicate database which has tempfiles?
I realise that this was the case with pre 10gR2 RMAN backups, but the
latest 10gR2 RMAN now records information about tempfiles, eg,
[1020]$ rman nocatalog
Recovery Manager: Release 10.2.0.1.0 - Production on Thu Nov 3
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN> connect target /
connected to target database: DUP (DBID=877644596) using target database control file instead of recovery catalog
RMAN> report schema ;
Report of database schema
List of Permanent Datafiles
---- -------- ------------- ------- ------------------------ 1 250 SYSTEM *** /a01/o/DUP/system_01.dbf 2 118 UNDOTBS *** /a01/o/DUP/undotbs_01.dbf 3 67 SYSAUX *** /a01/o/DUP/sysaux_01.dbf
List of Temporary Files
---- -------- ------------- ----------- -------------------- 1 50 TEMP 1000 /a01/o/DUP/temp_01.dbf
So, when duplicating a database with a tempfile, it appears that you need the following extra line
set newname for tempfile 1 to '/a01/o/DUP/temp.dbf';
Otherwise you will get this error message:
RMAN-05517: temporary file /a01/o/DUP/temp_01.dbf conflicts with file used by target database
So, I can duplicate the database without error until you need to access the tempfile. So if the added functionality for tempfiles is now included it seems strange that you still need to drop and recreate the tempfile?
Eric de Redelijkheid wrote:
> Anno Domini 2-11-2005 5:50, Snewber sprak aldus: >
> > You need to ad a tempfile to the temporary tablespace manually. This has > always been the case.Received on Wed Nov 02 2005 - 18:21:59 CST
![]() |
![]() |