RMAN-05517: temporary file conflicts with file used by target database(zt)
Re: 10gR2 (10g Release 2) RMAN Duplicate database which has tempfiles?
Date: Thu, 03 Nov 2005 10:21:59 +1000
Message-ID:
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
File Size(MB) Tablespace RB segs Datafile Name
---- -------- ------------- ------- ------------------------
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
File Size(MB) Tablespace Maxsize(MB) Tempfile Name
---- -------- ------------- ----------- --------------------
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:
>
>> I can duplicate the database without error, but the tempfile(s) are
>> not setup correctly. For example, when I run the following query, on
>> the newly duplicated database, I get the following error:
>>
>> select * from dba_temp_files ;
>> ORA-01187: cannot read from file 151 because it failed verification tests
>> ORA-01110: data file 151: '/a01/oradata/DUP/temp_01.dbf'
>>
>> So I need to drop the tempfile and then add it again. Is there a
>> better way of doing this with RMAN in the latest 10gR2 version?
>>
>> I'm using the following RMAN commnads:
>>
>> # target and auxilary connections are set up prior to here
>> run {
>> set until time = '02-NOV-2005 10:26:36';
>> set newname for tempfile 1 to '/a01/o/DUP/temp.dbf';
>> set newname for datafile 1 to '/a01/o/DUP/system.dbf';
>> set newname for datafile 2 to '/a01/o/DUP/undo.dbf';
>> set newname for datafile 3 to '/a01/o/DUP/sysaux.dbf';
>> duplicate target database to DUP
>> LOGFILE
>> GROUP 1 ('/a04/oradata/DUP/redo_01a.log') SIZE 100M,
>> GROUP 2 ('/a04/oradata/DUP/redo_02a.log') SIZE 100M;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/90618/viewspace-669957/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- reduce the database log fileDatabase
- SQL SERVER – Attach mdf file without ldf file in DatabaseSQLServerDatabase
- ftp_rawlist: Unable to create temporary file.FTP
- 【RMAN】RMAN-05001: auxiliary filename conflicts with the target databaseUXDatabase
- nginx的an upstream response is buffered to a temporary file報錯Nginx
- ORA-00245: control file backup failed; target is likely on a local file systemAI
- how to check unsolved conflicts file list in git merge?Git
- Specifying the Database Time Zone File (81)Database
- 【MySQL】ERROR 1878 (HY000): Temporary file write failure.MySqlErrorAI
- Unload data to a flat file from Oracle databaseOracleDatabase
- /usr/share/mysql/czech/errmsg.sys from *** conflicts with file from package **MySqlPackage
- zt_Oracle Dump Redo Log File 說明Oracle
- ORA-03297: file contains used data beyond requested RESIZE valueAI
- Check mod for temporary file : /usr/local/centreon/var/lib/centplugins/Plugin
- recover database using backup control fileDatabase
- Migrate database to Exadata with DBMS_FILE_TRANSFERDatabase
- Database Clone by rebuilding control file.DatabaseRebuild
- DBMS_FILE_TRANSFER Package in Oracle Database 10gPackageOracleDatabase
- Oracle Database on NFS : unable to lock file - already in use" ErrorOracleDatabaseNFSError
- Oracle Database 11gR2引入的DBFS(Database File System)OracleDatabase
- name server cannot be used, reason: Temporary failure in name resolutionServerAI
- (zt)Oracle中password file orapwd的作用及說明Oracle
- utl_file.file_type使用
- CentOS安裝mysql*.rpm提示conflicts with file from package的解決辦法CentOSMySqlPackage
- pod》error:The dependency `` is not used in any concrete targetError
- alter database drop datafile 與 drop tablespace file 的區別Database
- To use Rman to duplicate database be careful of db_file_name_convertDatabase
- File
- Oracle 12C Database File Mapping for Oracle ASM FilesOracleDatabaseAPPASM
- log file sync 和 log file parallel writeParallel
- zt_日誌檔案相關等待_log file waitAI
- jQuery :filejQuery
- Bat FileBAT
- docker fileDocker
- 記一次 ORA-01206: file is not part of this database - wrong database idDatabase
- File雜談——初識file控制元件控制元件
- ORA-01116: error in opening database file 14ErrorDatabase
- OGG-01453 Database login information not specified in parameter fileDatabaseORM