首页 > Linux操作系统 > Linux操作系统 > RMAN-05517: temporary file conflicts with file used by target database(zt)
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:
>
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/90618/viewspace-669957/ ,如需转载,请注明出处,否则将追究法律责任。