RMAN-05001: auxiliary filename

I am trying to duplicate a database using rman nocatalog on local host. I have set the convert file names to db_file_name_convert and log_file_name_convert in PFILE to AUXILIARY instance.
when I execute the duplicate command in Rman I do get this error..
RUN
allocate auxiliary channel c1 DEVICE TYPE disk;
DUPLICATE TARGET DATABASE to "RMAN"
PFILE=C:\oracle\ora92\database\INITrman.ORA
LOGFILE
GROUP 1 ('C:\ORACLE\ORADATA\RMAN\REDO01.RDO') SIZE 102400K REUSE,
GROUP 2 ('C:\ORACLE\ORADATA\RMAN\REDO02.RDO') SIZE 102400K REUSE,
GROUP 3 ('C:\ORACLE\ORADATA\RMAN\REDO03.RDO') SIZE 102400K REUSE;
RMAN-05001: auxiliary filename C:\ORACLE\ORADATA\LOCAL\REDO03.RDO conflicts with
I saw the document http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96566/rcmdupdb.htm#441628 but i don't know what is the problem.
SO: Xp
DB: 9.2.0.1

---INITlocal.ora
*.aq_tm_processes=1
*.background_dump_dest='C:\oracle\admin\local\bdump'
*.compatible='9.2.0.0.0'
*.control_files='C:\oracle\oradata\local\CONTROL01.CTL','C:\oracle\oradata\local\CONTROL02.CTL','C:\oracle\oradata\local\CONTROL03.CTL'
*.core_dump_dest='C:\oracle\admin\local\cdump'
*.db_block_size=8192
*.db_cache_size=25165824
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_name='local'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=localXDB)'
*.fast_start_mttr_target=300
*.hash_join_enabled=TRUE
*.instance_name='local'
*.java_pool_size=33554432
*.job_queue_processes=10
*.large_pool_size=8388608
*.log_archive_start=TRUE
*.open_cursors=300
*.pga_aggregate_target=25165824
*.processes=150
*.query_rewrite_enabled='FALSE'
*.remote_login_passwordfile='EXCLUSIVE'
*.shared_pool_size=50331648
*.sort_area_size=524288
*.star_transformation_enabled='FALSE'
*.timed_statistics=TRUE
*.undo_management='AUTO'
*.undo_retention=10800
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='C:\oracle\admin\local\udump'
--INITrman.ora
*.aq_tm_processes=1
*.background_dump_dest='C:\oracle\admin\rman\bdump'
*.compatible='9.2.0.0.0'
*.control_files='C:\oracle\oradata\rman\CONTROL01.CTL','C:\oracle\oradata\rman\CONTROL02.CTL','C:\oracle\oradata\rman\CONTROL03.CTL'
*.core_dump_dest='C:\oracle\admin\rman\cdump'
*.db_block_size=8192
*.db_cache_size=25165824
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_name='rman'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=rmanXDB)'
*.fast_start_mttr_target=300
*.hash_join_enabled=TRUE
*.instance_name='rman'
*.java_pool_size=33554432
*.job_queue_processes=10
*.large_pool_size=8388608
*.log_archive_start=TRUE
*.open_cursors=300
*.pga_aggregate_target=25165824
*.processes=150
*.query_rewrite_enabled='FALSE'
*.remote_login_passwordfile='EXCLUSIVE'
*.shared_pool_size=50331648
*.sort_area_size=524288
*.star_transformation_enabled='FALSE'
*.timed_statistics=TRUE
*.undo_management='AUTO'
*.undo_retention=10800
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='C:\oracle\admin\rman\udump'
*.db_file_name_convert=('C:\ORACLE\ORADATA\LOCAL\','C:\ORACLE\ORADATA\RMAN\')
*.log_file_name_convert=('C:\ORACLE\ORADATA\LOCAL\','C:\ORACLE\ORADATA\RMAN\')
--Target and Aux are on same machine
--RMAN command
RUN
allocate auxiliary channel c1 DEVICE TYPE disk;
DUPLICATE TARGET DATABASE to "RMAN"
PFILE=C:\oracle\ora92\database\INITrman.ORA;
LOGFILE
GROUP 1 ('C:\ORACLE\ORADATA\RMAN\REDO01.RDO') SIZE 102400K REUSE,
GROUP 2 ('C:\ORACLE\ORADATA\RMAN\REDO02.RDO') SIZE 102400K REUSE,
GROUP 3 ('C:\ORACLE\ORADATA\RMAN\REDO03.RDO') SIZE 102400K REUSE;
I follow "Preparing the RMAN DUPLICATE Auxiliary Instance: Basic Steps".
I think the problem is in LOG_FILE_NAME_CONVERT or the logfile clause to convert the online redo log filenames
Message was edited by:
juanudo

Similar Messages

  • RMAN-05001: auxiliary filename +ARS_DAT9/ars/datafile/arsystem1.259.6326886

    Hi Forum
    I'm trying to create a standby database, but rman was returning this error:
    Recovery Manager: Release 10.2.0.3.0 - Production on Sun Sep 9 14:57:57 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: ARS (DBID=3312174455)
    connected to auxiliary database: ARS (not mounted)
    RMAN> duplicate target database for standby;
    Starting Duplicate Db at 09-SEP-07
    using target database control file instead of recovery catalog
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: sid=156 devtype=DISK
    contents of Memory Script:
    restore clone standby controlfile;
    sql clone 'alter database mount standby database';
    executing Memory Script
    Starting restore at 09-SEP-07
    using channel ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: starting datafile backupset restore
    channel ORA_AUX_DISK_1: restoring control file
    channel ORA_AUX_DISK_1: reading from backup piece /oracle/bkp2/qoirgqbb_1_1
    channel ORA_AUX_DISK_1: restored backup piece 1
    piece handle=/oracle/bkp2/qoirgqbb_1_1 tag=TAG20070909T133643
    channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:08
    output filename=+ARS_DAT1/ars_stb/controlfile/current.259.632847497
    Finished restore at 09-SEP-07
    sql statement: alter database mount standby database
    released channel: ORA_AUX_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 09/09/2007 14:58:23
    RMAN-05501: aborting duplication of target database
    RMAN-05001: auxiliary filename +ARS_DAT9/ars/datafile/arsystem1.259.632688645 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +ARS_DAT8/ars/datafile/arsystem1.259.632688517 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +ARS_DAT11/ars/datafile/arsystem1.258.632688041 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +ARS_DAT10/ars/datafile/arsystem1.258.632687911 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +ARS_DAT9/ars/datafile/arsystem1.258.632687595 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +ARS_DAT8/ars/datafile/arsystem1.258.632687189 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +ARS_DAT11/ars/datafile/arsystem1.257.632687073 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +ARS_DAT10/ars/datafile/arsystem1.257.632686841 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +ARS_DAT9/ars/datafile/arsystem1.257.632686671 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +ARS_DAT8/ars/datafile/arsystem1.257.632686585 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +ARS_DAT11/ars/datafile/arsystem1.256.632686301 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +ARS_DAT10/ars/datafile/arsystem1.256.632686193 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +ARS_DAT9/ars/datafile/arsystem1.256.632685671 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +ARS_DAT8/ars/datafile/arsystem1.256.632685547 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +ARS_DAT3/ars/datafile/arindex.258.624755731 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +ARS_DAT3/ars/datafile/arindex.257.624755679 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +ARS_DAT3/ars/datafile/arindex.256.624755627 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +ARS_DAT2/ars/datafile/arhistory.258.624755445 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +ARS_DAT2/ars/datafile/arsystem2.259.624755449 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +ARS_DAT2/ars/datafile/arsystem2.257.624755395 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +ARS_DAT2/ars/datafile/integracao.256.624755339 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +ARS_DAT1/ars/datafile/undotbs2.264.624752453 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +ARS_DAT1/ars/datafile/users.259.624752397 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +ARS_DAT1/ars/datafile/sysaux.257.624752397 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +ARS_DAT1/ars/datafile/undotbs1.258.624752397 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +ARS_DAT1/ars/datafile/system.256.624752397 conflicts with a file used by the target database
    Bellow is my init file of standby instance:
    *.audit_file_dest='/oracle/admin/ars_stb/adump'
    *.background_dump_dest='/oracle/admin/ars_stb/bdump'
    *.core_dump_dest=/oracle/admin/ARS_STB/cdump
    *.user_dump_dest='/oracle/admin/ars_stb/udump'
    *.cluster_database_instances=2
    *.cluster_database=false
    *.db_unique_name=ars_stb
    *.instance_name=ars_stb
    *.compatible='10.2.0.3.0'
    *.control_files='+ARS_DAT1/ars/controlfile/current.260.624761147','+ARS_DAT6/ars/controlfile/current.269.624761147'#Restore Controlfile
    *.db_block_size=8192
    *.db_create_file_dest='+ARS_DAT1'
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_name='ars'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=ars_stbXDB)'
    *.job_queue_processes=10
    *.local_listener='LISTENERS_ARS'
    *.log_archive_dest_1='LOCATION=+ARS_ARCH MANDATORY'
    *.log_archive_format='ars%t_%s_%r.arc'
    *.open_cursors=300
    *.pga_aggregate_target=3145728000
    *.processes=150
    *.remote_listener='LISTENERS_ARS'
    *.remote_login_passwordfile='exclusive'
    *.sga_target=8388608000
    *.thread=1
    *.undo_management='AUTO'
    *.undo_retention=3600
    *.undo_tablespace=UNDOTBS1
    *.log_archive_config='dg_config=(ARS_STB,ARS)'
    *.log_archive_dest_2='service=ARS1 valid_for=(online_logfiles,primary_role) db_unique_name=ARS'
    *.db_file_name_convert= '+DAT_ARS1/ars/','+DAT_ARS1/ars_stb/',
    '+DAT_ARS2/ars/','+DAT_ARS2/ars_stb/',
    '+DAT_ARS3/ars/','+DAT_ARS3/ars_stb/',
    '+DAT_ARS4/ars/','+DAT_ARS4/ars_stb/',
    '+DAT_ARS5/ars/','+DAT_ARS5/ars_stb/',
    '+DAT_ARS6/ars/','+DAT_ARS6/ars_stb/',
    '+DAT_ARS7/ars/','+DAT_ARS7/ars_stb/',
    '+DAT_ARS8/ars/','+DAT_ARS8/ars_stb/',
    '+DAT_ARS9/ars/','+DAT_ARS9/ars_stb/',
    '+DAT_ARS10/ars/','+DAT_ARS10/ars_stb/',
    '+DAT_ARS11/ars/','+DAT_ARS11/ars_stb/',
    '+DAT_ARS12/ars/','+DAT_ARS12/ars_stb/',
    '+DAT_ARS13/ars/','+DAT_ARS13/ars_stb/'
    *.log_file_name_convert='+DAT_ARCH/ars/','+DAT_ARCH/ars_stb/'
    *.standby_file_management=auto
    *.fal_server='ARS1','ARS2'
    *.fal_client='ARS_STB'
    *.service_names='ARS_STB'
    Thanks in advance

    A big mistake, sorry
    The correct convert parameters must be:
    *.db_file_name_convert=     '+ARS_DAT1/ARS/','+ARS_DAT1/ARS_STB/',
    '+ARS_DAT2/ARS/','+ARS_DAT2/ARS_STB/',
    '+ARS_DAT3/ARS/','+ARS_DAT3/ARS_STB/',
    '+ARS_DAT4/ARS/','+ARS_DAT4/ARS_STB/',
    '+ARS_DAT5/ARS/','+ARS_DAT5/ARS_STB/',
    '+ARS_DAT6/ARS/','+ARS_DAT6/ARS_STB/',
    '+ARS_DAT7/ARS/','+ARS_DAT7/ARS_STB/',
    '+ARS_DAT8/ARS/','+ARS_DAT8/ARS_STB/',
    '+ARS_DAT9/ARS/','+ARS_DAT9/ARS_STB/',
    '+ARS_DAT10/ARS/','+ARS_DAT10/ARS_STB/',
    '+ARS_DAT11/ARS/','+ARS_DAT11/ARS_STB/',
    '+ARS_DAT12/ARS/','+ARS_DAT12/ARS_STB/',
    '+ARS_DAT13/ARS/','+ARS_DAT13/ARS_STB/'
    *.log_file_name_convert='+DAT_ARCH/ARS/','+DAT_ARCH/ARS_STB/'

  • RMAN-05001 auxiliary .... conflicts with a file used by the target database

    I can´t recreate my physical standby.
    It worked in the past.
    Now I reinstalled the 3 standbyclients.
    Copied the spfile from the primary - modified the entries and did a rman backup.
    But when issuing the duplicate database command - it comes up with the error above
    SPFILE standyby db:
    *.db_file_name_convert='+DATA/prim/','+DATA/stdy/','+RECOVERY/prim','+RECOVERY/stdy'
    *.log_file_name_convert='+DATA/prim/','+DATA/stdy/','+RECOVERY/prim','+RECOVERY/stdy'
    Starting restore at 15-APR-10
    using channel ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: starting datafile backupset restore
    channel ORA_AUX_DISK_1: restoring control file
    channel ORA_AUX_DISK_1: reading from backup piece /oracle/stage/33lb65n2_1_1
    channel ORA_AUX_DISK_1: restored backup piece 1
    piece handle=/oracle/stage/33lb65n2_1_1 tag=TAG20100415T102434
    channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:11
    output filename=+REDO1/stdy/controlfile/current.262.716293055
    output filename=+REDO2/stdy/controlfile/backup.262.716293055
    Finished restore at 15-APR-10
    sql statement: alter database mount standby database
    released channel: ORA_AUX_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 04/15/2010 10:31:46
    RMAN-05501: aborting duplication of target database
    RMAN-05001: auxiliary filename DATA/prim/datafile/system.262.715097535 conflicts with a file used by the target database+
    RMAN-05001: auxiliary filename DATA/prim/datafile/sysaux.263.715097499 conflicts with a file used by the target database+
    RMAN-05001: auxiliary filename DATA/prim/datafile/undotbs3.269.710521021 conflicts with a file used by the target database+
    RMAN-05001: auxiliary filename DATA/prim/datafile/undotbs2.270.710521021 conflicts with a file used by the target database+
    RMAN-05001: auxiliary filename DATA/prim/datafile/example.272.710521021 conflicts with a file used by the target database+
    RMAN-05001: auxiliary filename DATA/prim/datafile/users.268.710521021 conflicts with a file used by the target database+
    RMAN-05001: auxiliary filename DATA/prim/datafile/sysaux.273.710521021 conflicts with a file used by the target database+
    RMAN-05001: auxiliary filename DATA/prim/datafile/undotbs1.271.710521021 conflicts with a file used by the target database+
    RMAN-05001: auxiliary filename DATA/prim/datafile/system.264.710521021 conflicts with a file used by the target database+

    Hi ,
    I feel you are using ASM but still check the below details:
    Cause
    Production and Auxiliary have same directory structure and are running on two different machines. RMAN must be told not check that the target datafiles are sharing the same names as the duplicated files being created. Otherwise, the following errors will be returned:
    RMAN-05001: auxiliary filename /qmaxnt/u04/qmaxntorafiles/table/QMAXAD08_03.dbf
    conflicts with a file used by the target database
    RMAN-05001: auxiliary filename /qmaxnt/u04/qmaxntorafiles/table/QMAXAD08_02.dbf
    Solution
    To implement the solution, please use nofilenamecheck in syntax as follows:
    1. Connect to Target, auxiliary, and rman catalog and
    2. use script as
    run{
    set until time "to_date('2005/09/17 14:00:00','yyyy/mm/dd HH24:MI:SS')";
    allocate auxiliary channel aux1 type 'sbt_tape';
    allocate auxiliary channel aux2 type 'sbt_tape';
    duplicate target database for standby dorecover nofilenamecheck;
    Make sure to use auxiliary type of channel so RMAN restore take place at auxiliary database.
    Thanks,
    Rafi.
    http://rafioracledba.blogspot.com/

  • Auxiliary filename  conflicts with a file used by the target database

    Hi,
    I am using RMAN backup to duplicate my prod database.
    My database is 10g on Linux.
    My RMAN script is like this
    connect auxiliary /;
    connect catalog rman/rman@catalog;
    connect target sys/sys@prod;
    sql "alter session set optimizer_mode=RULE";
    run {
    allocate auxiliary channel dup1 type disk;
    allocate auxiliary channel dup2 type disk;
    allocate auxiliary channel dup3 type disk;
    set newname for datafile 1 to '/d05/u08/oracle/qadata/system01.dbf';
    set newname for datafile 2 to '/d05/u08/oracle/qadata/system02.dbf';
    set newname for datafile 3 to '/d05/u08/oracle/qadata/system03.dbf';
    set newname for tempfile 1 to '/d05/u09/oracle/qadata/temp01.dbf';
    set newname for tempfile 2 to '/d05/u09/oracle/qadata/temp02.dbf';
    set newname for tempfile 3 to '/d05/u09/oracle/qadata/temp03.dbf';
    set newname for tempfile 4 to '/d05/u09/oracle/qadata/temp04.dbf';
    duplicate target database to qa logfile
    group 1 ('/d05/u09/oracle/qadata/log1a.log',
    '/d05/u09/oracle/qadata/log1b.log') size 50m,
    group 2 ('/d05/u09/oracle/qadata/log2a.log',
    '/d05/u09/oracle/qadata/log2b.log') size 50m,
    group 3 ('/d05/u09/oracle/qadata/log3a.log',
    '/d05/u09/oracle/qadata/log3b.log') size 50m;
    I am getting the following error in the middle
    Starting Duplicate Db at 18-SEP-10
    released channel: dup1
    released channel: dup2
    released channel: dup3
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 09/18/2010 11:32:07
    RMAN-05501: aborting duplication of target database
    RMAN-05001: auxiliary filename /db01/u08/oracle/proddata/GRCM.dbf conflicts with a file used by the target database
    Recovery Manager complete.
    Previously the duplicate db was successful, but now it is giving error.
    How can I solve this.
    Thanks,
    Kavitha

    5001, 1, "auxiliary file name %s conflicts with a file used by the target database"
    // *Cause: RMAN is attempting to use the specified file name as a restore
    //         destination in the auxiliary database, but this name is already
    //         in use by the target database.
    // *Action: Use the CONFIGURE AUXNAME command to specify a name for the data
    //          file that does not conflict with a file name in use by the
    //          target db.

  • Auxiliary filename conflict - duplicate command

    Hi,
    We want to duplicate our production database (repos) from machine wmd-portal to auxiliary database (reposdup) of machine vmcdemo6.
    Following are the command and error message:
    Command:
    RMAN> duplicate target database to reposdup;
    Error message:
    RMAN-05001: auxiliary filename C:\IASINFRA\ORADATA\REPOS\UNDOTBS01.DBF conflicts
    with a file used by the target database
    init.ora of auxiliary instance contains the following lines:
    DB_FILE_NAME_CONVERT=(\\Wmd-portal\iasInfra\oradata\repos,\\vmcdev6\oracle\oradata\reposdup)
    LOG_FILE_NAME_CONVERT=("\\Wmd-portal\iasInfra\oradata\repos","\\vmcdev6\oracle\oradata\reposdup")
    Why are we getting a filename conflict?
    We started the database using the following command:
    sql> startup nomount pfile=c:\oracle\admin\reposdup\pfile\init.ora....
    Thanks,
    Karthik
    ps: RMAN executable of wmd-portal was used.

    Tedious work around is to use "set auxname ..." for each datafile and use "logfile clause" of duplicate command as below:
    duplicate target database to reposdup
    pfile='\\vmcdev6\oracle\admin\reposdup\pfile\init.ora' logfile GROUP 1('\\vmcdev\oracle\oradata\reposdup\redo01_1.f','\\vmcdev6\oracle\oradata\reposdup\redo01_2.f') size 200K,
    GROUP 2
    ('\\vmcdev6\oracle\oradata\reposdup\redo02_1.f','\\vmcdev6\oracle\oradata\reposdup\redo02_2.f') size 200K,
    GROUP 3
    ('\\vmcdev6\oracle\oradata\reposdup\redo03_1.f','\\vmcdev6\oracle\oradata\reposdup\redo03_2.f') size 200K reuse;
    Seems to work.
    I thought it was a precedence problem. However setting the auxname of each datafile to null doesn't work. Does anyone have a clue?
    I use RMAN 9.0
    Thanks,
    karthik

  • RMAN-05001 - without files data

    I dublicate DB prod host1 on prod host2. On host2 - no files data. RMAN return error - RMAN-05001: auxiliary filename /ora_oebs/data/u01/APPS_TS_MEDIA10.dbf conflicts with a file used by the target database.
    RMAN returns 05001 pay no regard to presence of the files data ?

    From Oracle error messages book:
    RMAN-05001 auxiliary filename string conflicts with a file used by the target
    database
    Cause: RMAN is attempting to use the specified file name as a restore
    destination in the auxiliary database, but this name is already in use by the
    target database.
    Action: Use the SET AUXNAME command to specify a name for the datafile
    that does not conflict with a file name in use by the target database.
    Are target & auxiliary databases on the same host (machine)?

  • RMAN-05001 - RMAN-03002 | Duplicating Database fails | Redo-Logs

    Sorry guys,
    first of all...my english is the worsteds you´ve ever seen...
    I got some kind of problem using rman duplicating a DB called cs2t into cs2b.
    Starting Duplicate Db at 17.05.2006 07:54:10
    released channel: t1
    released channel: t2
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 05/17/2006 07:54:10
    RMAN-05501: aborting duplication of target database
    RMAN-05001: auxiliary filename /oracle/orasys/cs2t/redo05.log conflicts with a file used by the target database
    RMAN-05001: auxiliary filename /oracle/orasys/cs2t/redo04.log conflicts with a file used by the target database
    RMAN-05001: auxiliary filename /oracle/orasys/cs2t/redo03.log conflicts with a file used by the target database
    RMAN-05001: auxiliary filename /oracle/orasys/cs2t/redo02.log conflicts with a file used by the target database
    RMAN-05001: auxiliary filename /oracle/orasys/cs2t/redo01.log conflicts with a file used by the target database
    Recovery Manager complete.
    Therefore I found on metalink some informations about using UNTIL TIME.
    I´ve tryed it....but now...there are some other erros on my rman.log
    executing command: SET until clause
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of set command at 05/17/2006 08:22:14
    ORA-01830: date format picture ends before converting entire input string
    Recovery Manager complete.
    and now: no ideas anymore...i´ve googled for it about 3hours...nothing found....may anybody help me - please?
    P.S. I hope you´ll understand anything i´ve wrote into this message ;-)

    hi,
    you have to use db_file_name_convert and db_log-filename_convert parameter in the auxiliary database parameter file and use nofilenamecheck parameter with the duplicate command.
    This is also recommended that you create new redo og files for auxiliary databse just like --
    RMAN> run{
    2> allocate auxiliary channel c1 device type disk;
    3> duplicate target database to prod1 pfile='c:\oracle\ora92\database\initprod1.ora'
    4> logfile 'c:\oracle\oradata\prod1\redo01.log' size 50m,
    5> 'c:\oracle\oradata\prod1\redo02.log' size 50m,
    6> 'c:\oracle\oradata\prod1\redo03.log' size 50m ;}
    i hope it solve your problem..
    Navneet

  • Rman connect auxiliary displays wrong database

    I am trying to use the new 11g duplicate from active database feature. I am running into the following error and can't figure out what is wrong.
    RMAN> connect target sys/xxxxx@ebsprod
    connected to target database: EBSPROD (DBID=3420264532)
    RMAN> connect auxiliary sys/xxxxx@abc
    connected to auxiliary database: EBSPROD (not mounted)
    RMAN>
    The auxiliary database shows the same DB name as the target. The correct auxiliary name is ABC in this case. The DB is started in nomount with the correct name. The new init.ora is correct as well. What is it looking at? Any help would be greatly appreciated.

    The correct auxiliary name is ABC in this case. The DB is started in nomount with the correct name. The new init.ora is correct as well.show us the requested db_name parameter, init.ora and tnsnames.ora
    RMAN displays the value of db_name
    db_unique_name and instance_name doesnt matter here

  • Error in Creation of Dataguard for RAC

    My pfile of RAC looks like:
    RACDB2.__large_pool_size=4194304
    RACDB1.__large_pool_size=4194304
    RACDB2.__shared_pool_size=92274688
    RACDB1.__shared_pool_size=92274688
    RACDB2.__streams_pool_size=0
    RACDB1.__streams_pool_size=0
    *.audit_file_dest='/u01/app/oracle/admin/RACDB/adump'
    *.background_dump_dest='/u01/app/oracle/admin/RACDB/bdump'
    *.cluster_database_instances=2
    *.cluster_database=true
    *.compatible='10.2.0.1.0'
    *.control_files='+DATA/racdb/controlfile/current.260.627905745','+FLASH/racdb/controlfile/current.256.627905753'
    *.core_dump_dest='/u01/app/oracle/admin/RACDB/cdump'
    *.db_block_size=8192
    *.db_create_file_dest='+DATA'
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_file_name_convert='+DATA/RACDB','+DATADG/RACDG'
    *.db_name='RACDB'
    *.db_recovery_file_dest='+FLASH'
    *.db_recovery_file_dest_size=2147483648
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=RACDBXDB)'
    *.fal_client='RACDB'
    *.fal_server='RACDG'
    RACDB1.instance_number=1
    RACDB2.instance_number=2
    *.job_queue_processes=10
    *.log_archive_config='DG_CONFIG=(RACDB,RACDG)'
    *.log_archive_dest_1='LOCATION=+FLASH/RACDB/ VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=RACDB'
    *.log_archive_dest_2='SERVICE=RACDG VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=RACDG'
    *.log_archive_dest_state_1='ENABLE'
    *.log_archive_dest_state_2='DEFER'
    *.log_archive_format='%t_%s_%r.arc'
    *.log_file_name_convert='+DATA/RACDB','+DATADG/RACDG'
    *.open_cursors=300
    *.pga_aggregate_target=16777216
    *.processes=150
    *.remote_listener='LISTENERS_RACDB'
    *.remote_login_passwordfile='exclusive'
    *.service_names='RACDB'
    *.sga_target=167772160
    *.standby_file_management='AUTO'
    RACDB2.thread=2
    RACDB1.thread=1
    *.undo_management='AUTO'
    RACDB2.undo_tablespace='UNDOTBS2'
    RACDB1.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='/u01/app/oracle/admin/RACDB/udump'
    My pfile of Dataguard Instance in nomount state looks like:
    RACDG.__db_cache_size=58720256
    RACDG.__java_pool_size=4194304
    RACDG.__large_pool_size=4194304
    RACDG.__shared_pool_size=96468992
    RACDG.__streams_pool_size=0
    *.audit_file_dest='/u01/app/oracle/admin/RACDG/adump'
    *.background_dump_dest='/u01/app/oracle/admin/RACDG/bdump'
    ##*.cluster_database_instances=2
    ##*.cluster_database=true
    *.compatible='10.2.0.1.0'
    ##*.control_files='+DATA/RACDG/controlfile/current.260.627905745','+FLASH/RACDG/controlfile/current.256.627905753'
    *.core_dump_dest='/u01/app/oracle/admin/RACDG/cdump'
    *.db_block_size=8192
    *.db_create_file_dest='+DATADG'
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_file_name_convert='+DATADG/RACDG','+DATA/RACDB'
    *.db_name='RACDB'
    *.db_recovery_file_dest='+FLASHDG'
    *.db_recovery_file_dest_size=2147483648
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=RACDGXDB)'
    *.FAL_CLIENT='RACDG'
    *.FAL_SERVER='RACDB'
    *.job_queue_processes=10
    *.LOG_ARCHIVE_CONFIG='DG_CONFIG=(RACDB,RACDG)'
    *.log_archive_dest_1='LOCATION=+FLASHDG/RACDG/ VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=RACDG'
    *.log_archive_dest_2='SERVICE=RACDB VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=RACDB'
    *.LOG_ARCHIVE_DEST_STATE_1='ENABLE'
    *.LOG_ARCHIVE_DEST_STATE_2='ENABLE'
    *.log_archive_format='%t_%s_%r.arc'
    *.log_file_name_convert='+DATADG/RACDG','+DATA/RACDB'
    *.open_cursors=300
    *.pga_aggregate_target=16777216
    *.processes=150
    ##*.remote_listener='LISTENERS_RACDG'
    *.remote_login_passwordfile='exclusive'
    SERVICE_NAMES='RACDG'
    sga_target=167772160
    standby_file_management='auto'
    undo_management='AUTO'
    undo_tablespace='UNDOTBS1'
    user_dump_dest='/u01/app/oracle/admin/RACDG/udump'
    DB_UNIQUE_NAME=RACDG
    and here is what I am doing on the standby location:
    [oracle@dg01 ~]$ echo $ORACLE_SID
    RACDG
    [oracle@dg01 ~]$ rman
    Recovery Manager: Release 10.2.0.1.0 - Production on Tue Jul 17 21:19:21 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    RMAN> connect auxiliary /
    connected to auxiliary database: RACDG (not mounted)
    RMAN> connect target sys/xxxxxxx@RACDB
    connected to target database: RACDB (DBID=625522512)
    RMAN> duplicate target database for standby;
    Starting Duplicate Db at 2007-07-17 22:27:08
    using target database control file instead of recovery catalog
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: sid=156 devtype=DISK
    contents of Memory Script:
    restore clone standby controlfile;
    sql clone 'alter database mount standby database';
    executing Memory Script
    Starting restore at 2007-07-17 22:27:10
    using channel ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: starting datafile backupset restore
    channel ORA_AUX_DISK_1: restoring control file
    channel ORA_AUX_DISK_1: reading from backup piece /software/backup/ctl4.ctl
    channel ORA_AUX_DISK_1: restored backup piece 1
    piece handle=/software/backup/ctl4.ctl tag=TAG20070717T201921
    channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:23
    output filename=+DATADG/racdg/controlfile/current.275.628208075
    output filename=+FLASHDG/racdg/controlfile/backup.268.628208079
    Finished restore at 2007-07-17 22:27:34
    sql statement: alter database mount standby database
    released channel: ORA_AUX_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 07/17/2007 22:27:43
    RMAN-05501: aborting duplication of target database
    RMAN-05001: auxiliary filename +DATA/racdb/datafile/undotbs2.265.627906771 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +DATA/racdb/datafile/example.264.627905917 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +DATA/racdb/datafile/users.259.627905395 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +DATA/racdb/datafile/sysaux.257.627905385 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +DATA/racdb/datafile/undotbs1.258.627905395 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +DATA/racdb/datafile/system.256.627905375 conflicts with a file used by the target database
    RMAN>
    Any help to clear this error will be apprecited.......
    Message was edited by:
    Bal
    null

    Hi
    Thanks everybody for helping me on this issue...........
    As suggested, I had taken the parameter log_file_name_convert and db_file_name_convert out of my RAC primary database but still I am getting the same error.
    Any help will be appriciated..............
    SQL> show parameter convert
    NAME TYPE VALUE
    db_file_name_convert string
    log_file_name_convert string
    SQL>
    oracle@dg01<3>:/u01/app/oracle> rman
    Recovery Manager: Release 10.2.0.1.0 - Production on Wed Jul 18 17:07:49 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    RMAN> connect auxiliary /
    connected to auxiliary database: RACDB (not mounted)
    RMAN> connect target sys/xxx@RACDB
    connected to target database: RACDB (DBID=625522512)
    RMAN> duplicate target database for standby;
    Starting Duplicate Db at 2007-07-18 17:10:53
    using target database control file instead of recovery catalog
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: sid=156 devtype=DISK
    contents of Memory Script:
    restore clone standby controlfile;
    sql clone 'alter database mount standby database';
    executing Memory Script
    Starting restore at 2007-07-18 17:10:54
    using channel ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: starting datafile backupset restore
    channel ORA_AUX_DISK_1: restoring control file
    channel ORA_AUX_DISK_1: reading from backup piece /software/backup/ctl5.ctr
    channel ORA_AUX_DISK_1: restored backup piece 1
    piece handle=/software/backup/ctl5.ctr tag=TAG20070718T170529
    channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:33
    output filename=+DATADG/racdg/controlfile/current.275.628208075
    output filename=+FLASHDG/racdg/controlfile/backup.268.628208079
    Finished restore at 2007-07-18 17:11:31
    sql statement: alter database mount standby database
    released channel: ORA_AUX_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 07/18/2007 17:11:43
    RMAN-05501: aborting duplication of target database
    RMAN-05001: auxiliary filename +DATA/racdb/datafile/undotbs2.265.627906771 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +DATA/racdb/datafile/example.264.627905917 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +DATA/racdb/datafile/users.259.627905395 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +DATA/racdb/datafile/sysaux.257.627905385 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +DATA/racdb/datafile/undotbs1.258.627905395 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +DATA/racdb/datafile/system.256.627905375 conflicts with a file used by the target database                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Duplicate database from ASM to Non-ASM problem

    Friends,
    I am unable to duplicate the database from ASM TO Non-ASM,
    OS: Linux AS4
    Oracle version: 10.2.0.1
    initAUXDB.ora parameters:
    background_dump_dest=/u01/oracle/product/10.2.0/admin/auxdb/adump
    core_dump_dest=/u01/oracle/product/10.2.0/admin/auxdb/cdump
    background_dump_dest=/u01/oracle/product/10.2.0/admin/auxdb/bdump
    user_dump_dest=/u01/oracle/product/10.2.0/admin/auxdb/udump
    db_name=auxdb
    undo_tablespace=undotbs1
    undo_management=auto
    undo_retention=900
    db_block_size=8192
    compatible=10.2.0.1
    control_files='/u01/oracle/product/10.2.0/oradata/auxdb/control01.ctl'
    db_file_name_convert=('+DATA','/u01/oracle/product/10.2.0/oradata/auxdb')
    log_file_name_convert=('+DATA','/u01/oracle/product/10.2.0/oradata/auxdb')
    db_create_file_dest='/u01/oracle/product/10.2.0/oradata/auxdb'
    db_create_online_log_dest_1='/u01/oracle/product/10.2.0/oradata/auxdb'
    My target database diskgroup info:
    GROUP_NUMBER NAME SECTOR_SIZE BLOCK_SIZE STATE
    1 DATA 512 4096 MOUNTED N
    2 FLASH 512 4096 MOUNTED E
    Please could you have look the following error:
    type1:
    Note: when I configure The log_file_name_convert=('+DATA') in initAUXDB.ora parameter file, the following error are occurring:
    RMAN> run {
    2> allocate auxiliary channel C1 device type disk;
    3> duplicate target database to auxdb;
    4> }
    Starting Duplicate Db at 03-MAR-13
    released channel: C1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 03/03/2013 14:43:05
    RMAN-05501: aborting duplication of target database
    RMAN-05001: auxiliary filename +FLASH/prod/onlinelog/group_3.259.809008171 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +FLASH/prod/onlinelog/group_2.258.809008167 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +FLASH/prod/onlinelog/group_1.257.809008165 conflicts with a file used by the target database
    type2:
    when I configure The log_file_name_convert=('+FLASH') in initAUXDB.ora, again I am getting the following error:
    RMAN> run {
    2> allocate auxiliary channel C1 device type disk;
    3> duplicate target database to auxdb;
    4> }
    allocated channel: C1
    channel C1: sid=36 devtype=DISK
    Starting Duplicate Db at 04-MAR-13
    released channel: C1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 03/04/2013 08:37:10
    RMAN-05501: aborting duplication of target database
    RMAN-05001: auxiliary filename +DATA/prod/onlinelog/group_3.263.809008169 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +DATA/prod/onlinelog/group_2.262.809008165 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +DATA/prod/onlinelog/group_1.261.809008163 conflicts with a file used by the target database
    Please suggest me to overcome the above errors.

    Hi Mr.Rao,
    Thank you for your reply..
    I follwed as per as your query, but I am getting different error:
    channel C1: starting datafile backupset restore
    channel C1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/system.256.809008077 <---------here the directory structure is "/u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/" but I mention in initauxdb.ora parameter only "/u01/oracle/product/10.2.0/odata/auxdb/".
    restoring datafile 00002 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/undotbs1.258.809008077
    restoring datafile 00003 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/sysaux.257.809008077
    restoring datafile 00004 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/users.259.809008077
    channel C1: reading from backup piece +FLASH/prod/backupset/2013_03_04/nnndf0_tag20130304t072249_0.265.809162569
    ORA-19870: error reading backup piece +FLASH/prod/backupset/2013_03_04/nnndf0_tag20130304t072249_0.265.809162569
    ORA-19505: failed to identify file "+FLASH/prod/backupset/2013_03_04/nnndf0_tag20130304t072249_0.265.809162569"
    ORA-17503: ksfdopn:2 Failed to open file +FLASH/prod/backupset/2013_03_04/nnndf0_tag20130304t072249_0.265.809162569
    ORA-15001: diskgroup "FLASH" does not exist or is not mounte
    failover to previous backup
    channel C1: starting datafile backupset restore
    channel C1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/system.256.809008077
    restoring datafile 00002 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/undotbs1.258.809008077
    restoring datafile 00003 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/sysaux.257.809008077
    restoring datafile 00004 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/users.259.809008077
    channel C1: reading from backup piece /u01/backup/prod/df_t809162421_s24_p1
    channel C1: restored backup piece 1
    piece handle=/u01/backup/prod/df_t809162421_s24_p1 tag=TAG20130304T072021
    channel C1: restore complete, elapsed time: 00:01:17
    Finished restore at 04-MAR-13
    sql statement: CREATE CONTROLFILE REUSE SET DATABASE "AUXDB" RESETLOGS ARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 292
    LOGFILE
    GROUP 1 ( '/u01/oracle/product/10.2.0/oradata/auxdb/prod/onlinelog/group_1.261.809008163',
    '/u01/oracle/product/10.2.0/oradata/auxdb/prod/onlinelog/group_1.257.809008165' ) SIZE 50 M REUSE,
    GROUP 2 ( '/u01/oracle/product/10.2.0/oradata/auxdb/prod/onlinelog/group_2.262.809008165',
    '/u01/oracle/product/10.2.0/oradata/auxdb/prod/onlinelog/group_2.258.809008167' ) SIZE 50 M REUSE,
    GROUP 3 ( '/u01/oracle/product/10.2.0/oradata/auxdb/prod/onlinelog/group_3.263.809008169',
    '/u01/oracle/product/10.2.0/oradata/auxdb/prod/onlinelog/group_3.259.809008171' ) SIZE 50 M REUSE
    DATAFILE
    '/u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/system.256.809008077'
    CHARACTER SET WE8ISO8859P1
    contents of Memory Script:
    switch clone datafile all;
    executing Memory Script
    datafile 2 switched to datafile copy
    input datafile copy recid=1 stamp=809171578 filename=/u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/undotbs1.258.809008077
    datafile 3 switched to datafile copy
    input datafile copy recid=2 stamp=809171578 filename=/u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/sysaux.257.809008077
    datafile 4 switched to datafile copy
    input datafile copy recid=3 stamp=809171578 filename=/u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/users.259.809008077
    channel C1: starting archive log restore to default destination
    channel C1: restoring archive log
    archive log thread=1 sequence=12
    channel C1: restoring archive log
    archive log thread=1 sequence=13
    channel C1: reading from backup piece /u01/backup/prod/al_t809162496_s26_p1
    channel C1: restored backup piece 1
    piece handle=/u01/backup/prod/al_t809162496_s26_p1 tag=TAG20130304T072136
    channel C1: restore complete, elapsed time: 00:00:04
    archive log filename=/u01/oracle/product/10.2.0/db_1/dbs/arch1_12_809008161.dbf thread=1 sequence=12
    channel clone_default: deleting archive log(s)
    archive log filename=/u01/oracle/product/10.2.0/db_1/dbs/arch1_12_809008161.dbf recid=2 stamp=809171585
    archive log filename=/u01/oracle/product/10.2.0/db_1/dbs/arch1_13_809008161.dbf thread=1 sequence=13
    channel clone_default: deleting archive log(s)
    archive log filename=/u01/oracle/product/10.2.0/db_1/dbs/arch1_13_809008161.dbf recid=1 stamp=809171583
    channel C1: starting archive log restore to default destination
    channel C1: restoring archive log
    archive log thread=1 sequence=14
    channel C1: reading from backup piece +FLASH/prod/backupset/2013_03_04/annnf0_tag20130304t072246_0.264.809162567
    ORA-19870: error reading backup piece +FLASH/prod/backupset/2013_03_04/annnf0_tag20130304t072246_0.264.809162567
    ORA-19505: failed to identify file "+FLASH/prod/backupset/2013_03_04/annnf0_tag20130304t072246_0.264.809162567"
    ORA-17503: ksfdopn:2 Failed to open file +FLASH/prod/backupset/2013_03_04/annnf0_tag20130304t072246_0.264.809162567
    ORA-15001: diskgroup "FLASH" does not exist or is not mounte
    released channel: C1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 03/04/2013 09:53:11
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-20506: no backup of archivelog found
    RMAN-06053: unable to perform media recovery because of missing log
    RMAN-06025: no backup of log thread 1 seq 14 lowscn 542329 found to restore

  • RMAN Clone Errors

    Hello,
    We use Commvault for our backup software. I can successfully clone one application's PROD instance on server1 to TEST on server2.
    However, for another application, attempting the same process of cloning the app's PROD instance on server1 to TEST on server2, I'm getting RMAN errors.
    The prod database is ISLP and test database is ISLT. I've set the parameters:
    o     alter system set db_file_name_convert = '/u02/oradata/ISLP', '/u02/oradata/ISLT'
    o     alter system set log_file_name_convert= '/u01/oradata/ISLP', '/data/oracle/ISLT'
    Again the destination is on a second server.
    The error message I receive is:
    Oracle instance shut down
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 05/09/2013 12:48:55
    RMAN-05501: aborting duplication of target database
    RMAN-05001: auxiliary file name /u02/oradata/ISLP/redo_ISLP_2b.log conflicts with a file used by the target database
    RMAN-05001: auxiliary file name /u02/oradata/ISLP/redo_ISLP_1b.log conflicts with a file used by the target database
    RMAN>
    Recovery Manager complete.
    I don't understand why RMAN keeps trying to create new redo log files in a directory that is not specified by the log_file_name_convert parameter. I also don't understand why this exact same process works for cloning one applications database but not this application. I would appreciate any help. Thank you. Here is the RMAN script being executed by Commvault.
    Rman Script:
    [run {
    set newname for datafile '/u02/oradata/ISLP/infosilem_ISLP_01.dbf' to '/u02/oradata/ISLT/infosilem_ISLP_01.dbf';
    set newname for datafile '/u02/oradata/ISLP/sysaux_ISLP_01.dbf' to '/u02/oradata/ISLT/sysaux_ISLP_01.dbf';
    set newname for datafile '/u02/oradata/ISLP/system_ISLP_01.dbf' to '/u02/oradata/ISLT/system_ISLP_01.dbf';
    set newname for datafile '/u02/oradata/ISLP/tools_ISLP_01.dbf' to '/u02/oradata/ISLT/tools_ISLP_01.dbf';
    set newname for datafile '/u02/oradata/ISLP/undo_ISLP_01.dbf' to '/u02/oradata/ISLT/undo_ISLP_01.dbf';
    set newname for datafile '/u02/oradata/ISLP/users_ISLP_01.dbf' to '/u02/oradata/ISLT/users_ISLP_01.dbf';
    allocate auxiliary channel ch1 type 'sbt_tape'
    PARMS="SBT_LIBRARY=/opt/galaxy/Base64/libobk.so,BLKSIZE=262144,ENV=(CV_mmsApiVsn=2,CV_channelPar=ch1,ThreadCommandLine= RESTORE  -jm 142 -a 2:0 -cl 137 -ins 150 -at 22 -j 700481 -jt 700481:3:1 -bal 0 -rcp 0 -ms 1 -p 2 -cn s-dbint -vm Instance001)"
    TRACE 0;
    set until time = "TO_DATE('05/08/2013 09:00:00','MM/DD/YYYY HH24:MI:SS')" ;
    duplicate target database to 'ISLT'
    exit;
    ]

    You haven't defined a log_file_name_convert for /u02/oradata/ISLP/
    Possibly, the database has multiplexed redo log files, one member each in /u01/oradata/ISLP and one member each in /u02/oradata/ISLP.
    Hemant K Chitale

  • Dataguard configured using RMAN not in sync with Primary

    Hi All.
    I have configured physical standby using RMAN it has errored out as below message since the Physical standby is came in Mount state and it is not in sync with Primary.
    $ rman target sys/oracle1@PROD_st_STBY auxiliary /
    Recovery Manager: Release 11.2.0.1.0 - Production on Sun Jul 29 13:27:02 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    connected to target database: PROD_ST (DBID=609107922)
    connected to auxiliary database: PROD_ST (not mounted)
    RMAN> duplicate target database for standby dorecover;
    Starting Duplicate Db at 29-JUL-12
    using target database control file instead of recovery catalog
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=156 device type=DISK
    contents of Memory Script:
    set until scn 239665;
    restore clone standby controlfile;
    executing Memory Script
    executing command: SET until clause
    Starting restore at 29-JUL-12
    using channel ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: starting datafile backup set restore
    channel ORA_AUX_DISK_1: restoring control file
    channel ORA_AUX_DISK_1: reading from backup piece /oracle1/oraerp/PROD_st/rman/07ngg1p6_1_1
    channel ORA_AUX_DISK_1: piece handle=/oracle1/oraerp/PROD_st/rman/07ngg1p6_1_1 tag=TAG20120719T140110
    channel ORA_AUX_DISK_1: restored backup piece 1
    channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
    output file name=/oracle1/oraerp/PROD_st/cont_.ctl
    Finished restore at 29-JUL-12
    contents of Memory Script:
    sql clone 'alter database mount standby database';
    executing Memory Script
    sql statement: alter database mount standby database
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 07/29/2012 13:27:29
    RMAN-05501: aborting duplication of target database
    RMAN-05001: auxiliary file name /oracle1/oraerp/PROD_st/undotbs1.dbf conflicts with a file used by the target database
    RMAN-05001: auxiliary file name /oracle1/oraerp/PROD_st/sysaux.dbf conflicts with a file used by the target database
    RMAN-05001: auxiliary file name /oracle1/oraerp/PROD_st/system01.dbf conflicts with a file used by the target database
    RMAN>
    SQL> select name,open_mode from v$database;
    NAME OPEN_MODE
    PROD_ST MOUNTED
    SQL> select name,db_unique_name,database_role from v$database;
    NAME DB_UNIQUE_NAME DATABASE_ROLE
    PROD_ST PROD_st_STBY PHYSICAL STANDBY
    SQL>
    SQL> alter database recover managed standby database disconnect;
    Database altered.
    SQL>
    SQL> alter system set log_archive_dest_state_2=enable;
    System altered.
    SQL> sho parameter log_archive_dest_2
    NAME TYPE VALUE
    log_archive_dest_2 string LOCATION=/oracle1/oraerp/PROD_
    st/arch/ VALID_FOR=(ALL_LOGFIL
    ES,ALL_ROLES)
    On Primary
    ==========
    SQL> SELECT THREAD# "Thread",SEQUENCE# "Last Sequence Generated"
    FROM V$ARCHIVED_LOG
    WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG GROUP BY THREAD#)
    ORDER BY 1; 2 3 4
    Thread Last Sequence Generated
    1 281
    ON STANDBY
    SQL> SELECT ARCH.THREAD# "Thread", ARCH.SEQUENCE# "Last Sequence Received", APPL.SEQUENCE# "Last Sequence Applied", (ARCH.SEQUENCE# - APPL.SEQUENCE#) "Difference"
    2 FROM
    3 (SELECT THREAD# ,SEQUENCE# FROM V$ARCHIVED_LOG WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG GROUP BY THREAD#)) ARCH,
    4 (SELECT THREAD# ,SEQUENCE# FROM V$LOG_HISTORY WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$LOG_HISTORY GROUP BY THREAD#)) APPL
    5 WHERE
    6 ARCH.THREAD# = APPL.THREAD#
    ORDER BY 1; 7
    no rows selected
    SQL>
    SQL> SELECT THREAD#, LOW_SEQUENCE#, HIGH_SEQUENCE# FROM V$ARCHIVE_GAP;
    no rows selected
    SQL>
    Please suggest solution.
    Best Regards,
    Edited by: user13707876 on 19-Jul-2012 02:04

    Hi,
    It has worked now since error with warnings encountered as below:
    $ rman target sys/oracle1@PROD_st_STBY auxiliary /
    Recovery Manager: Release 11.2.0.1.0 - Production on Sun Jul 29 15:57:39 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    connected to target database: PROD_ST (DBID=609107922)
    connected to auxiliary database: PROD_ST (not mounted)
    RMAN> duplicate target database for standby nofilenamecheck;
    Starting Duplicate Db at 29-JUL-12
    using target database control file instead of recovery catalog
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=156 device type=DISK
    contents of Memory Script:
    restore clone standby controlfile;
    executing Memory Script
    Starting restore at 29-JUL-12
    using channel ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: starting datafile backup set restore
    channel ORA_AUX_DISK_1: restoring control file
    channel ORA_AUX_DISK_1: reading from backup piece /oracle1/oraerp/PROD_st/rman/0enggc17_1_1
    channel ORA_AUX_DISK_1: piece handle=/oracle1/oraerp/PROD_st/rman/0enggc17_1_1 tag=TAG20120719T165607
    channel ORA_AUX_DISK_1: restored backup piece 1
    channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
    output file name=/oracle1/oraerp/PROD_st/cont_.ctl
    Finished restore at 29-JUL-12
    contents of Memory Script:
    sql clone 'alter database mount standby database';
    executing Memory Script
    sql statement: alter database mount standby database
    contents of Memory Script:
    set newname for tempfile 1 to
    "/oracle1/oraerp/PROD_st/temp01.dbf";
    switch clone tempfile all;
    set newname for datafile 1 to
    "/oracle1/oraerp/PROD_st/system01.dbf";
    set newname for datafile 2 to
    "/oracle1/oraerp/PROD_st/sysaux.dbf";
    set newname for datafile 3 to
    "/oracle1/oraerp/PROD_st/undotbs1.dbf";
    set newname for datafile 4 to
    "/oracle1/oraerp/PROD_st/users01.dbf";
    restore
    clone database
    executing Memory Script
    executing command: SET NEWNAME
    renamed tempfile 1 to /oracle1/oraerp/PROD_st/temp01.dbf in control file
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    Starting restore at 29-JUL-12
    using channel ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: starting datafile backup set restore
    channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
    channel ORA_AUX_DISK_1: restoring datafile 00001 to /oracle1/oraerp/PROD_st/system01.dbf
    channel ORA_AUX_DISK_1: restoring datafile 00004 to /oracle1/oraerp/PROD_st/users01.dbf
    channel ORA_AUX_DISK_1: reading from backup piece /oracle1/oraerp/PROD_st/rman/09nggc0j_1_1
    channel ORA_AUX_DISK_1: piece handle=/oracle1/oraerp/PROD_st/rman/09nggc0j_1_1 tag=TAG20120719T165547
    channel ORA_AUX_DISK_1: restored backup piece 1
    channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:03
    channel ORA_AUX_DISK_1: starting datafile backup set restore
    channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
    channel ORA_AUX_DISK_1: restoring datafile 00002 to /oracle1/oraerp/PROD_st/sysaux.dbf
    channel ORA_AUX_DISK_1: restoring datafile 00003 to /oracle1/oraerp/PROD_st/undotbs1.dbf
    channel ORA_AUX_DISK_1: reading from backup piece /oracle1/oraerp/PROD_st/rman/08nggc0j_1_1
    channel ORA_AUX_DISK_1: piece handle=/oracle1/oraerp/PROD_st/rman/08nggc0j_1_1 tag=TAG20120719T165547
    channel ORA_AUX_DISK_1: restored backup piece 1
    channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:03
    Finished restore at 29-JUL-12
    contents of Memory Script:
    switch clone datafile all;
    executing Memory Script
    datafile 1 switched to datafile copy
    input datafile copy RECID=1 STAMP=789926299 file name=/oracle1/oraerp/PROD_st/system01.dbf
    datafile 2 switched to datafile copy
    input datafile copy RECID=2 STAMP=789926299 file name=/oracle1/oraerp/PROD_st/sysaux.dbf
    datafile 3 switched to datafile copy
    input datafile copy RECID=3 STAMP=789926299 file name=/oracle1/oraerp/PROD_st/undotbs1.dbf
    datafile 4 switched to datafile copy
    input datafile copy RECID=4 STAMP=789926299 file name=/oracle1/oraerp/PROD_st/users01.dbf
    ORACLE error from auxiliary database: ORA-19527: physical standby redo log must be renamed
    ORA-00312: online log 1 thread 1: '/oracle1/oraerp/PROD_st/redo.log'
    RMAN-05535: WARNING: All redo log files were not defined properly.
    ORACLE error from auxiliary database: ORA-19527: physical standby redo log must be renamed
    ORA-00312: online log 2 thread 1: '/oracle1/oraerp/PROD_st/redo_2.log'
    RMAN-05535: WARNING: All redo log files were not defined properly.
    ORACLE error from auxiliary database: ORA-19527: physical standby redo log must be renamed
    ORA-00312: online log 5 thread 0: '/oracle1/oraerp/PROD_st/log5.log'
    RMAN-05535: WARNING: All redo log files were not defined properly.
    ORACLE error from auxiliary database: ORA-19527: physical standby redo log must be renamed
    ORA-00312: online log 6 thread 0: '/oracle1/oraerp/PROD_st/log6.log'
    RMAN-05535: WARNING: All redo log files were not defined properly.
    Finished Duplicate Db at 29-JUL-12
    RMAN>
    So please suggest can i rename them all redolog file.
    Best Regards,

  • Auxiliary channel allocation in TSPITR with RMAN-managed instance

    Hi,
    I'm trying do perform TSPITR with RMAN-managed auxiliary instance. All backups are stored on tape. I need to send MML environment values while allocating auxiliary channel to connect to correct NetWorker server and send other NetWorker parameters.
    Unfortunately I have issues with sending these params - I can't send them from recover RUN block, as auxiliary instance does not exists at the time when I'm starting to execute script. (example from test env using disk channels)
    RMAN> RUN
    2> {
    3> ALLOCATE CHANNEL c1 DEVICE TYPE disk;
    4> ALLOCATE AUXILIARY CHANNEL aux1 DEVICE TYPE disk;
    5> SET NEWNAME FOR DATAFILE 1 TO '/u01/backup/tspitr/10gdb2/system01.f';
    6> SET NEWNAME FOR DATAFILE 2 TO '/u01/backup/tspitr/10gdb2/undo01.f';
    7> SET NEWNAME FOR DATAFILE 7 TO '/u01/backup/tspitr/10gdb2/hr_bak01.f';
    8> SET AUXILIARY INSTANCE PARAMETER FILE TO '/home/oracle/params_auxinit.ora';
    9> RECOVER TABLESPACE hr_test UNTIL TIME "SYSDATE - 1/4"
    10> AUXILIARY DESTINATION '/u01/backup/tspitr/10gdb2';
    11> RELEASE CHANNEL c1;
    12> RELEASE CHANNEL aux1;
    13> }
    allocated channel: c1
    channel c1: sid=141 devtype=DISK
    released channel: c1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of allocate command at 04/07/2010 17:21:53
    RMAN-06174: not connected to auxiliary databaseI know I can do it using configure, but is there any way to set this on session level?
    10.2.0.4, RHEL
    Thanks,
    Lukasz

    What can be done here, is to CONFIGURE AUXILIARY CHANNEL to set appropriate params for auxiliary instance (without allocating channels manually).
    I just wanted to know, if I can do it just for this one session (without permanent modification). What I can do, is:
    CONFIGURE AUXILIARY CHANNEL DEVICE TYPE sbt_tape PARMS 'mml settings';
    CONFIGURE CHANNEL DEVICE TYPE sbt_tape PARMS 'mml settings';
    CONFIGURE DEFAULT DEVICE TYPE TO sbt_tape;
    RUN
    (new names, auxiliary parameter file)
    RECOVER TABLESPACE ...
    CONFIGURE AUXILIARY CHANNEL DEVICE TYPE sbt_tape CLEAR;
    CONFIGURE CHANNEL DEVICE TYPE sbt_tape CLEAR;
    CONFIGURE DEFAULT DEVICE TYPE CLEAR;I just wanted more 'elegant' solution.
    Update:
    Due to bug no. 4768353 there is no possibility to use automatic channel allocation in auxiliary instance. Problem resolved by using own customized auxiliary instance started before recovery process. Channels have been allocated manually using ALLOCATE AUXILIARY CHANNEL c1 DEVICE TYPE sbt... on already running aux.
    Thanks,
    Lukasz
    Edited by: Łukasz Mastalerz on Apr 19, 2010 6:47 PM

  • RMAN-05520: database name mismatch, auxiliary instance has ORADB

    Hi,
    i am using Oracle 10g (10.2.0.1.0) in RHEL 5 server. i am trying to duplicate my primary database(ORADB) to standby database with name DEVDB in different server. I have taken an RMAN backup and transferred to standby server and now i am trying to duplicate with the below commands
    [oracle@rhel5 data]$ rman target / auxiliary sys/oracle@DEVDB
    Recovery Manager: Release 10.2.0.1.0 - Production on Sat Mar 9 16:11:52 2013
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: ORADB (DBID=2542358497, not open)
    connected to auxiliary database: ORADB (not mounted)
    RMAN>
    RMAN>
    RMAN> duplicate target database to DEVDB
    2> ;
    Starting Duplicate Db at 09-MAR-13
    using target database control file instead of recovery catalog
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: sid=151 devtype=DISK
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 03/09/2013 16:14:02
    RMAN-05520: database name mismatch, auxiliary instance has ORADB, command specified DEVDB
    My primary db pfile has
    *.db_name='ORADB'
    *.db_unique_name='ORADB'
    My standby db has
    *.db_name='ORADB'
    *.db_unique_name='DEVDB'
    Regards,
    007

    Hello again;
    Agreed. You have at least two issues.
    Generally I change the SID
    export ORACLE_SID=DEVDB
    Then I start NOMOUNT using an INIT file.
    Then this should be correct
    connected to target database: ORADB (DBID=2542358497, not open)
    connected to auxiliary database: ORADB (not mounted)h2. Later
    I think I was wrong I would like to change my answer. I looked back and found my old notes and things are not as I stated above.
    I used an INIT file ( standby side ) for cloning as follows :
    db_name=RECOVER2
    instance_name=RECOVER2
    control_files=("/u01/app/oracle/oradata/RECOVER2/control01.ctl", "/u01/app/oracle/flash_recovery_area/RECOVER2/control02.ctl")
    db_recovery_file_dest=/u01/app/oracle/flash_recovery_area
    db_recovery_file_dest_size=4070572032
    compatible=11.2.0.0.0
    core_dump_dest='/u01/app/oracle/diag/rdbms/recover2/RECOVER2/cdump'
    db_block_size=8192
    audit_file_dest=/u01/app/oracle/admin/RECOVER2/adump
    undo_tablespace=UNDOTBS1
    undo_management = AUTO
    undo_retention=10800So for the duplicate I don't set DB_UNIQUE_NAME
    I Backed up the target database as shown here with the ‘backup current controlfile for standby format’ command:
    RMAN RUN {
    allocate channel d1 type disk;
    backup format '/u01/backups/RECOVER2/df_t%t_s%s_p%p' database;
    sql 'alter system archive log current';
    backup format '/u01/backups/RECOVER2/al_t%t_s%s_p%p' archivelog all;
    backup current controlfile for standby format '/u01/backups/RECOVER2/sb_t%t_s%s_p%p';
    release channel d1;
    }I did a startup the standby as follows : ( Notice you are correct about the SID and I was incorrect )
    export ORACLE_SID=RECOVER2
    /home/oracle:SRECOVER2 >sysplus "/ as sysdba"
    Connected to an idle instance.
    SQL> startup nomount pfile='/u01/app/oracle/admin/RECOVER2/pfile/initRECOVER2.ora';I started RMAN like this :
    /home/oracle:SRECOVER2 >export ORACLE_SID=RECOVER2
    rman target sys/password@recover2 auxiliary /
    Recovery Manager: Release 11.2.0.1.0 - Production on Fri Sep 10 13:35:29 2010
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: RECOVER2 (DBID=3806912436)
    connected to auxiliary database: RECOVER2 (not mounted)So you connect to the Primary, but the auxiliary should show "not mounted"
    Finally I issue the duplicate command
    RMAN> run {
    2> allocate channel C1 device type disk;
    3> allocate auxiliary channel C2 device type disk;
    4> duplicate target database for standby nofilenamecheck;
    5> }Best Regards
    mseberg
    Edited by: mseberg on Mar 9, 2013 10:39 AM

  • Recover database to another database -- RMAN duplicate?

    I have a situation where I want to restore our production DB on server 1 (prod1) to test DB on server 2 (test1) to a paticular point in time. I have rman catalog and backup of production database. DB versions our both 10.2..0.3.
    I have been attemtping the following
    rman target sys@prod1 catalog rman@catalog
    connect auxiliary sys@test1
    run{
    set until time "to_date('07-05-2007 07:00', 'DD-MM-YYYY HH24:MI')";
    duplicate target database to test1;
    This fails with RMAN aboritng and then a bunch of RMAN-05001 errors saying that auxiliary filename XXXX conflicts with a file used by the target database...
    I am confused why does it care what the target DB files are or that there is a conflict when it should be restoring to the auxiliary database (test1)? I want to restore my target DB (prod1) to my auxiliary DB (test1)... What am I doing wrong?
    Is there a better way to attempt to use a backup from yesterday to restore into another (non-production) DB? Is the approach I am using correct or workable, and I am just missing something?
    Thanks

    There are a couple of work around for this, the Oracle document has this fully covered.
    13 Creating and Updating Duplicate Databases with RMAN

Maybe you are looking for