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

Similar Messages

  • 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.

  • 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

  • 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/'

  • Bug in Numbers "duplicate" command?

    When I use the duplicate command on an open file and save the (modified) duplicate file to disk, the original file I started from appears identical to the duplicated one, just like the two were aliases to each other. I tried several times but this happens every time. never seen something like this in 20 years. any hint?

    Fabio,
    That's never happened to me. Are you aware that when you File > Duplicate, the duplicte (new) file is on top and the file that was the original at the time of the duplication is underneath, and that the filenames look similar except for the word Copy appended to the duplicate? To avoid confusion, Save the Duplicate right away and close the original file before modifying the duplicate.
    Jerry

  • Duplicate command traying to use wrong backup

    RMAN 10g (10.2.0.3). All catalog, target and auxiliary databases are exactly the same release.
    The duplicate command is trying to use a backup that does not exist anymore.
    "report obsolete" command listed very old backups that does not exist.
    'delete obsolete" did not delete the old obsolete backups.
    I dropped and created again the catalog, but after that, the old obsolete backups are still reported!!!!!
    I issued "delete force obsolete" and "delete force expired..." commands. The "report obsolete" does not shows the old obsolete backups anymore.
    But, duplicate command says that there are not backups of any datafile.
    "list backup" command shows one available backup:
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    1057 Full 16.20M DISK 00:00:01 13-FEB-10
    BP Key: 1060 Status: AVAILABLE Compressed: NO Tag: TAG20100213T182350
    Piece Name: +DGB/siprod/autobackup/2010_02_13/s_710879030.714.710879031
    Control File Included: Ckp SCN: 5287726942 Ckp time: 13-FEB-10
    SPFILE Included: Modification time: 19-OCT-09
    How can I tell to "duplicate" command, that it must use one specific backupset?

    This is all the process, so you can see it complete.
    'test' server cannot see the ASM DGA where the target database is. So I send the backup to a filesystem in 'siprod1' ('/ocfs2a') and I mount by NFS this filesystem in 'test' server, so that 'test' server can see the backup to use in the duplicate process. I have done this procees in the sae way twice before. Default FRA is ASM DGB (which cannot be seen by 'test').
    I can send you a diagram of the servers and connections to you e-mail if you want, ahd the output of the query you asked for (it is a very long output).
    When I dropped the rman catalog, I delete manually al lthe backups saved in FRA and in /ocfs2a.
    This is a normal duplicate (non Data Guard). I am cloning from production to test.
    ===================================================================================
    I tried to put here the complete output of ALL the process (command by command) but it exceedes the maximum lenght. I have sent you by e-mail that output.

  • IP Conflict/Duplicate

    Hi Guys,
    Any suggestion on how to prevent, detect and contained IP conflicts/duplicats in Cisco switch network? Let us say I want to protect specific IP from assigning it to other host on the same vlan, is it possible?
    Thanks in advance!
    regards,
    Gagamboy

    Duplicate IP addresses should not be a problem even if you have hosts with statically configured IP addresses within the scope of the DHCP server.
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
    mso-para-margin-top:0cm;
    mso-para-margin-right:0cm;
    mso-para-margin-bottom:10.0pt;
    mso-para-margin-left:0cm;
    line-height:115%;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;}
    Any DHCP server should check if the IP address is available and not used before offering it to a host. This is done by pinging the IP address. If there is no answer the DHCP server proceeds and offer the IP address to the client.
    By default, the IOS DHCP Server pings the address twice before assigning a particular address to a requesting client.
    Normally this is enough but if you want to increase this you can use the following command:
    Command
    Purpose
    Router(config)#   ip dhcp ping packets number
    Specifies the   number of ping packets the DHCP Server sends to a pool address before   assigning the address to a requesting client. The default is two packets.   Setting the count argument to a value of 0 turns off DHCP Server ping   operation completely.
    /André

  • Appending a creation date/time stamp to a filename using MS Command Language

    I need to access the creation date and time of an existing file and then append that date/time to the filename using MS command language in a .bat file.  The code executes on a Windows server.   I'm looking at different options for doing
    this.  I know it can be done using MS Powershell scripting.  Any other suggestions appreciated.  Thanks

    I tested the answer you supplied here:
    http://social.technet.microsoft.com/Forums/en-US/38873a13-f3f2-40f2-bb96-c1c63722caab/adding-a-datetime-stamp-to-a-file-using-ms-command-language?forum=winserverpowershell
    and it worked.
    Richard Mueller - MVP Directory Services

  • Error while doing cloning using Duplicate command

    Hi,
    I am facing issue while doing clonning using duplicate command 'Active database'
    The error i am facing is as follows.
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 02/19/2013 07:31:10
    RMAN-05501: aborting duplication of target database
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-03009: failure of backup command on c14 channel at 02/19/2013 07:31:09
    ORA-17628: Oracle error 19510 returned by remote Oracle server
    Please help me in this.Not able to resolve it
    Thanks

    Aman wrote:
    Hi,
    I am facing issue while doing clonning using duplicate command 'Active database'
    The error i am facing is as follows.
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 02/19/2013 07:31:10
    RMAN-05501: aborting duplication of target database
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-03009: failure of backup command on c14 channel at 02/19/2013 07:31:09
    ORA-17628: Oracle error 19510 returned by remote Oracle server
    Please help me in this.Not able to resolve it
    Thanks[oracle@ora11gr2ee ~]$ oerr ora 17628
    17628, 00000, "Oracle error %s returned by remote Oracle server"
    // *Cause:  Oracle server on the remote instance has returned an error.
    // *Action: Look at remote instance alert log/trace file for more information
    // and take appropriate action or contact Oracle Support Services
    // for further assistance
    Seems pretty straightforward... is the target instance up?

  • I'm trying to clean up my library before I sync it with my new ipod touch.  Apparently there is a DISPLAY DUPLICATES command in the file menu...can't find it?

    Looking for the DISPLAY DUPLICATES command in the File Menu to delete songs before I sync with my new device????

    You might need to bring up the menu bar first.
    If you're using version 11.0.1.12, click on the wee boxy icon up in the top-left corner of your iTunes to see the "Show Menu Bar" control, as per the following screenshot:
    Now you should be able to find the duplicates thing in the View Menu.
    (If you're still using iTunes version 11.0.0.163, you'd need to update to 11.0.1.12 to get the Display duplicates control.)
    EDIT: Sorry, in the initial version of this reply, I said the Show Duplicate items was in the File Menu. It's in the View Menu in version 11.0.1.12.

  • Applescript duplicate command runs different as an Application than from Script Editor

    Hi,
    When I run my script from the Script Editor it copies (duplicates) only the new files from one folder to the other one, as desired.  That is, when the file already exists in the destination folder, it just skips to the next one until they are all done.
    However, if I save that very same script as an Application and run it, Finder throws up a dialog box for each item telling me that it already exists and asks if I'd like to Keep Both, Stop or Replace the file.
    I can't figure out why it would run differently as a Script in Script Editor, to how it would run as an Application?  Can somebody please tell me where I'm going wrong? Or perhaps there has been a change in the way Finder and Applescript operate the Duplicate command in Yosemite?
    Interestingly, this problem has only started occurring since I updated to Yosemite.  Before that, on Mavericks, I didn't have this problem!  And I've also just tried the same thing on my other MacBook Pro that's running Mavericks and it works as intended.
    Thanks so much!

    I think the replacing parameter may be broken. The first time I run this:
    tell application "Finder"
      make new folder at desktop with properties {name:"newf"} with replacing
    end tell
    I get a new folder. The second and subsequent times, I get this:
    Unless I'm completely misunderstanding how to use the replacing parameter...

  • Duplicate command is not working for custom importer

    Hi All,
    I am working on a custom importer plugin. Basic features are working fine, but, I'm facing an issue with Duplicate functionality.
    I added a new custom importer clip to project and created a duplicate of that clip (by right clicking the clip in Project window and selecting Duplicate from pop-up menu). Then I added both clip instances to timeline. Now, if I change properties of one clip instance it reflects in both clips. I noticed that both ClipIds are same and they are referring to same media path. I also observed the same behavior in SDK_Custom_importer sample. But, built in 'Color Matte' and 'Title' clips works fine.
    As per my understanding, Duplicate command should create a new clip from existing clip and new clip should be independent of original clip after creation.
    How to fix this issue? Is there any selector that I should handle to support Duplicate functionality?
    Thanks & Regards,
    Chandan

    Hi Chandan,
    The Color Matte and Title clips are not quite the same as your custom importer example.  Those are synthetic clips, without a file reference on disk.  If you exported a title to a file on disk, and then reimported it, and duplicated it so that there were two clips in the Project panel that reference the same file on disk, I think you would have the same behavior as what you're seeing with your custom importer.  Duplicate doesn't create a new file on disk.  The user would need to do that manually, and then import the new file.
    Regards,
    Zac

  • Pages.  Shorcut for "Duplicate" command from the "archive" menu ?

    When i make a keyboard shortcut for the "Duplicate" command from the "Archive" menu, it only works once, because when I close Pages and open it again, the shortcut disapears from the command "Duplicate" in the archive menu and it is reasigned to the "Duplicate" command from the "Edit" menu.  How can i fix this?

    I recommend sending feedback to Apple. I have sent feedback for Pages, Numbers & OS X.The more people who send feedback, the more likely changes will be made.
    Feedback works. When iWork '09 first came out there was a lot of ranting about the move of Export to the Share menu. With the first update Export was added back to the File menu & was also left in the Share menu.  
    Here's what I sent to the OS X feedback.
    The loss of Save As… in Numbers 2.1, Pages 4.1 & Preview in Lion is extremely frustrating, particularly since there is no keyboard command for File > Duplicate. Trying to assign ⌘ ⇧ S in System Preferences doesn't work because OS X "decides" to then assign that to Edit > Duplicate which, by default is ⌘ D.  I have to take my hands off the keyboard, go to the File menu & then select Duplicate in order to create a new document with the same basic content. Having a keyboard command for File > Duplicate would go a long way in solving this problem for me & many others who complain in Apple Support Communities.

  • Elements 6 - Error when using Duplicate command in Organiser

    I get the following error message if I try to use the "Duplicate" command within the Organiser:
    "An error occurred while reading files or writing files to disc. The disc may be full or there may be a problem with the source media"
    However, I have since realised that you can also access "Duplicate" from within the editor...and here it seems to work. That said, using "Duplicate" in the organizer would logically be where I think I'd want to duplicate an image. My images are all about 2Mb each and the computer has 1GB Ram and a 120GB capacity hard-drive.
    Thanks for any help.

    Thanks John, but unfortunately your suggested answer did not work. Here is further information. When I click on "Duplicate" within the Organiser, the progress bar gets to 90% before the error message appears. It seems the programme does also actually duplicate the image but then puts that second copy straight into the recycle bin (presumably because it's damaged or incomplete, although the file size is the same as the original). Any further suggestions would be greatly welcomed.
    Regards
    David Combes

  • The RMAN Duplicate Command Fails During The Recover.

    This exact script works fine in our lab. We are using Oracle 10.2.0.4.0.
    The hot backup for standby is also a script which runs without error in both the lab and
    the production machine.
    I am obviously missing something.
    Any help would be greatly appreciated.
    Thanks,
    Jeff
    =================
    RMAN BACKUP SCRIPT
    =================
    RMAN> run
    2> {
    3> allocate channel c1 device type disk format '/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_BK4STDBY_%U';
    4> backup current controlfile for standby format '/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_CNTRL4STDBY_%U';
    5> backup as compressed backupset check logical tag='1NETCMN1_3261_BK4STDBY' database include current controlfile for standby;
    6> backup archivelog from sequence 463 format '/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_LOGS4STDBY_%U';
    7> release channel c1;
    8> }
    released channel: ORA_DISK_1
    allocated channel: c1
    channel c1: sid=578 devtype=DISK
    Starting backup at 22-JAN-13
    channel c1: starting full datafile backupset
    channel c1: specifying datafile(s) in backupset
    including standby control file in backupset
    channel c1: starting piece 1 at 22-JAN-13
    channel c1: finished piece 1 at 22-JAN-13
    piece handle=/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_CNTRL4STDBY_05o02f01_1_1 tag=TAG20130122T144104 comment=NONE
    channel c1: backup set complete, elapsed time: 00:00:02
    Finished backup at 22-JAN-13
    Starting backup at 22-JAN-13
    channel c1: starting compressed full datafile backupset
    channel c1: specifying datafile(s) in backupset
    input datafile fno=00004 name=/u01/oradata/apoint/users01.dbf
    input datafile fno=00001 name=/u01/oradata/apoint/system01.dbf
    input datafile fno=00002 name=/u01/oradata/apoint/undotbs01.dbf
    input datafile fno=00003 name=/u01/oradata/apoint/sysaux01.dbf
    channel c1: starting piece 1 at 22-JAN-13
    channel c1: finished piece 1 at 22-JAN-13
    piece handle=/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_BK4STDBY_06o02f05_1_1 tag=1NETCMN1_3261_BK4STDBY comment=NONE
    channel c1: backup set complete, elapsed time: 00:22:35
    channel c1: starting compressed full datafile backupset
    channel c1: specifying datafile(s) in backupset
    including standby control file in backupset
    channel c1: starting piece 1 at 22-JAN-13
    channel c1: finished piece 1 at 22-JAN-13
    piece handle=/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_BK4STDBY_07o02gah_1_1 tag=1NETCMN1_3261_BK4STDBY comment=NONE
    channel c1: backup set complete, elapsed time: 00:00:07
    Finished backup at 22-JAN-13
    Starting backup at 22-JAN-13
    current log archived
    channel c1: starting archive log backupset
    channel c1: specifying archive log(s) in backup set
    input archive log thread=1 sequence=463 recid=5 stamp=805323439
    input archive log thread=1 sequence=464 recid=6 stamp=805331764
    input archive log thread=1 sequence=465 recid=7 stamp=805387242
    input archive log thread=1 sequence=466 recid=8 stamp=805387245
    input archive log thread=1 sequence=467 recid=9 stamp=805388633
    channel c1: starting piece 1 at 22-JAN-13
    channel c1: finished piece 1 at 22-JAN-13
    piece handle=/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_LOGS4STDBY_08o02gaq_1_1 tag=TAG20130122T150354 comment=NONE
    channel c1: backup set complete, elapsed time: 00:00:36
    Finished backup at 22-JAN-13
    released channel: c1
    RMAN> exit
    Recovery Manager complete.
    =====================
    RMAN DUPLICATE SCRIPT
    =====================
    RMAN> run
    2> {
    3> allocate auxiliary channel c1 device type disk;
    4>
    5> duplicate target database for standby dorecover nofilenamecheck;
    6> release channel c1;
    7> }
    allocated channel: c1
    channel c1: sid=299 devtype=DISK
    Starting Duplicate Db at 21-JAN-13
    contents of Memory Script:
    set until scn 143395851;
    restore clone standby controlfile;
    sql clone 'alter database mount standby database';
    executing Memory Script
    executing command: SET until clause
    Starting restore at 21-JAN-13
    channel c1: starting datafile backupset restore
    channel c1: restoring control file
    channel c1: reading from backup piece /u03/oradata/apoint/DB_BACKUPS/1NETCMN1_6874_BK4STDBY_03o008gn_1_1
    channel c1: restored backup piece 1
    piece handle=/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_6874_BK4STDBY_03o008gn_1_1 tag=1NETCMN1_6874_BK4STDBY
    channel c1: restore complete, elapsed time: 00:00:04
    output filename=/u01/oradata/apoint/control01.ctl
    output filename=/u02/oradata/apoint/control02.ctl
    output filename=/u03/oradata/apoint/control03.ctl
    Finished restore at 21-JAN-13
    sql statement: alter database mount standby database
    contents of Memory Script:
    set until scn 143395851;
    set newname for tempfile 1 to
    "/u01/oradata/apoint/temp01.dbf";
    switch clone tempfile all;
    set newname for datafile 1 to
    "/u01/oradata/apoint/system01.dbf";
    set newname for datafile 2 to
    "/u01/oradata/apoint/undotbs01.dbf";
    set newname for datafile 3 to
    "/u01/oradata/apoint/sysaux01.dbf";
    set newname for datafile 4 to
    "/u01/oradata/apoint/users01.dbf";
    restore
    check readonly
    clone database
    executing Memory Script
    executing command: SET until clause
    executing command: SET NEWNAME
    renamed temporary file 1 to /u01/oradata/apoint/temp01.dbf in control file
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    Starting restore at 21-JAN-13
    channel c1: starting datafile backupset restore
    channel c1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to /u01/oradata/apoint/system01.dbf
    restoring datafile 00002 to /u01/oradata/apoint/undotbs01.dbf
    restoring datafile 00003 to /u01/oradata/apoint/sysaux01.dbf
    restoring datafile 00004 to /u01/oradata/apoint/users01.dbf
    channel c1: reading from backup piece /u03/oradata/apoint/DB_BACKUPS/1NETCMN1_6874_BK4STDBY_02o0076b_1_1
    channel c1: restored backup piece 1
    piece handle=/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_6874_BK4STDBY_02o0076b_1_1 tag=1NETCMN1_6874_BK4STDBY
    channel c1: restore complete, elapsed time: 00:21:32
    Finished restore at 21-JAN-13
    contents of Memory Script:
    switch clone datafile all;
    executing Memory Script
    datafile 1 switched to datafile copy
    input datafile copy recid=5 stamp=805323205 filename=/u01/oradata/apoint/system01.dbf
    datafile 2 switched to datafile copy
    input datafile copy recid=6 stamp=805323205 filename=/u01/oradata/apoint/undotbs01.dbf
    datafile 3 switched to datafile copy
    input datafile copy recid=7 stamp=805323206 filename=/u01/oradata/apoint/sysaux01.dbf
    datafile 4 switched to datafile copy
    input datafile copy recid=8 stamp=805323206 filename=/u01/oradata/apoint/users01.dbf
    contents of Memory Script:
    set until scn 143395851;
    recover
    standby
    clone database
    delete archivelog
    executing Memory Script
    executing command: SET until clause
    Starting recover at 21-JAN-13
    starting media recovery
    channel c1: starting archive log restore to default destination
    channel c1: restoring archive log
    archive log thread=1 sequence=462
    channel c1: reading from backup piece /u03/oradata/apoint/DB_BACKUPS/1NETCMN1_6874_LOGS4STDBY_04o008gu_1_1
    channel c1: restored backup piece 1
    piece handle=/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_6874_LOGS4STDBY_04o008gu_1_1 tag=TAG20130121T183822
    channel c1: restore complete, elapsed time: 00:00:03
    archive log filename=/u03/oradata/apoint/DB_ARCHIVE_LOGS/apoint_1_688761648_462.arch thread=1 sequence=462
    Oracle Error:
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '/u01/oradata/apoint/system01.dbf'
    released channel: c1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 01/21/2013 20:53:44
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-11003: failure during parse/execution of SQL statement: alter database recover logfile '/u03/oradata/apoint/DB_ARCHIVE_LOGS/apoint_1_688761648_462.arch'
    ORA-16145: archival for thread# 1 sequence# 462 in progress
    RMAN> exit

    Jeff;
    I think the issue is in your backup. If you compare your command with mine, you may or may not see the issue, but this is how I got this to work.
    Yours
    RMAN run
    allocate channel c1 device type disk format '/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_BK4STDBY_%U';
    backup current controlfile for standby format '/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_CNTRL4STDBY_%U';
    backup as compressed backupset check logical tag='1NETCMN1_3261_BK4STDBY' database include current controlfile for standby;
    backup archivelog from sequence 463 format '/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_LOGS4STDBY_%U';
    release channel c1;
    Mine
    RMAN RUN {
    allocate channel d1 type disk;
    backup format '/u01/backups/PRIMARY/df_t%t_s%s_p%p' database;
    sql 'alter system archive log current';
    backup format '/u01/backups/PRIMARY/al_t%t_s%s_p%p' archivelog all;
    backup current controlfile for standby format '/u01/backups/PRIMARY/sb_t%t_s%s_p%p';
    release channel d1;
    }Your duplicate is very close to what I use :
    Yours
    RMAN> run
    allocate auxiliary channel c1 device type disk;
    duplicate target database for standby dorecover nofilenamecheck;
    release channel c1;
    Mine
    RMAN> run {
    allocate channel C1 device type disk;
    allocate auxiliary channel C2 device type disk;
    duplicate target database for standby nofilenamecheck;
    }Short notes :
    http://www.visi.com/~mseberg/duprman.html
    Best Regards
    mseberg

Maybe you are looking for