RMAN Active Cloning fails with RMAN-06054: missing log file

Version Details:
O.S Version     HP-UX B.11.31 U ia64
Oracle DB Version     11.2.0.3.0
     Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
Scenario :
Using RMAN Active cloning to duplicate a RAC database from Production to Development environment.
Problem:
At the end of the cloning the below errors are reported;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 05/14/2013 07:03:43
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 24751 and starting SCN of 89285945274
RMAN Script used for Active cloning:
#!/bin/ksh
. setdb entDBu
start_dt=`date +%Y%m%d_%H%M`
job=`basename $0 ".sh"`
rman  >> ${job}_${start_dt}.log  2>&1 <<eof
set echo on;
connect target sys/@DCC&(_O@entDBp1
connect auxiliary sys/@DCC&(_O@entDBuu
run {
allocate channel prmy1 type disk;
allocate auxiliary channel stby1 type disk;
duplicate target database
to entDBu
from active database pfile=/app/oracle/product/11.2.0.3/db/dbs/initentDBu.ora;
show all;
exit
eof
end_dt=`date +%Y%m%d_%H%M`
mailx -s "DR RMAN Job: $job done" "[email protected]" <<eof2
started: ${start_dt}
finish: ${end_dt}
eof2How to prevent the error of RMAN-06054: media recovery requesting unknown archived log for thread  with sequence   and starting SCN of  while performing the RMAN Active Cloning? I do NOT want to use UNTIL clause.

Sivaprasad S wrote:
Version Details:
O.S Version     HP-UX B.11.31 U ia64
Oracle DB Version     11.2.0.3.0
     Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
Scenario :
Using RMAN Active cloning to duplicate a RAC database from Production to Development environment.
Problem:
At the end of the cloning the below errors are reported;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 05/14/2013 07:03:43
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 24751 and starting SCN of 89285945274RMAN Script used for Active cloning:
#!/bin/ksh
. setdb entDBu
start_dt=`date +%Y%m%d_%H%M`
job=`basename $0 ".sh"`
rman  >> ${job}_${start_dt}.log  2>&1 <<eof
set echo on;
connect target sys/@DCC&(_O@entDBp1
connect auxiliary sys/@DCC&(_O@entDBuu
run {
allocate channel prmy1 type disk;
allocate auxiliary channel stby1 type disk;
duplicate target database
to entDBu
from active database pfile=/app/oracle/product/11.2.0.3/db/dbs/initentDBu.ora;
show all;
exit
eof
end_dt=`date +%Y%m%d_%H%M`
mailx -s "DR RMAN Job: $job done" "[email protected]" <<eof2
started: ${start_dt}
finish: ${end_dt}
eof2How to prevent the error of RMAN-06054: media recovery requesting unknown archived log for thread  with sequence   and starting SCN of  while performing the RMAN Active Cloning? I do NOT want to use UNTIL clause.Where UNTIL clause in your script I didn't saw.
Please try following RMAN script
DUPLICATE TARGET DATABASE FOR STANDBY
  FROM ACTIVE DATABASE
SPFILE
   SET "control_files"="/u01/app/oracle/oradata/stbdbcontrol01.ctl"
   SET "db_name"="prmdb"
   SET "db_unique_name"="stbdb"
   SET "db_file_name_convert"="/u01/app/oracle/oradata/prmdb","/u01/app/oracle/oradata/stbdb"
   SET "log_file_name_convert"="/u01/app/oracle/oradata/prmdb","/u01/app/oracle/oradata/stbdb"
   SET "db_recovery_file_dest"="/u01/app/oracle/fra"
   SET "diagnostic_dest"=/u01/app/oracle"
   SET "audit_file_dest"="/u01/app/oracle/admin/stbdb/adump"
PASSWORD FILE
NOFILENAMECHECK;
{code}
Please change parameters for your environment.
Regards
Mahir M. Quluzade                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Rman archivelog backup fails with rman-03002,ora-19563

    Hi,
    D:\ Oracle- -\BIN\RMAN TARGET / NOCATALOG
    RMAN> backup archivelog all;
    RMAN-03002: Error with backup command on 06-25-2013
    ORA-19563: Header-Validation is not successful.
        fails with the given errors.
    11.2.0.2 PROD DB on Windows Server 2008  R2 Enterpriise.
    When I issue BACKUP INCREMENTAL LEVEL 0 DATABASE; it works fine. but with archivelog it is creating problems. Unfortunatly, I have not found exactly the same problem on google and on Oracle support.
    The DB is using INIT.ORA and last time when I switched the mode to archive log mode I set the parameter like SCOPE=MEMORY as SPFILE was not in use and ALTER SYSTEM with SCOPE=BOTH  FRA destination and size, but after the DB restarting of course that setting is gone and I am having these problems.
    Please suggest.
    Thanks a lot.
    Best Regards,

    Hi,
    Thanks a lot.
    I don't think that archivelogs were relocated, except I changed the location yesterday.
    As I wrote at the start that because of INIT.ORA file being in use instead of SPFILE. I set DB_RECOVERY_FILE_DEST, DB_RECOVERY_DEST_SIZE after changing the DB mode to ARCHIVELOG, but DB was restarted by somebody else, and as the parameter changing was NOT PERMANENT, it rollback.
    LOG_ARCHIVE_DEST was set to d:\oradata\db with archivelog mode but db_recovery_file_dest and size was set to 0. Now here, I have no idea that whether archivelogs were not being backed up or deleted physically, but I guess that as log_archive_dest parameter is deprecated and mode is set to archivelog with no real ARCHIVELOG DESTINATION. Please correct me if I am wrong or totally wrong :-)
    I performed DELETED EXPIRED ARCHIVELOG ALL, and it deleted 49 EXPIRED objects.
    Now CROSSCHECK ARCHIVELOG ALL and LIST ARCHIVELOG ALL shows nothing.
    LIST BACKUP OF ARCHIVELOG ALL has of course those 49 archivelog gap.
    Could you please tell the impacts of those 49 missing archivelogs. Retention policy is set to 14 days. I mean the risk is for 14 days right? As anyhow, the older backups are being DELETED according to retention policy of RMAN.

  • Bursting engine fails with NullPointerException in xdo.log file

    Hi all,
      Hi have developed a BI Publisher report but when trying to deliver it using the bursting concurrent program it fails wirh next error:
    Error!! Could not deliver the output for Delivery channel:null . Please check the Log for error details..
    If I look at the xdo.log file I can see next error:
    [122713_102535779][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] addAttachment(): Adding an attachment ...[filename]=[null], [content-type]=[text/plain;charset=UTF-8], [index]=[0], [disposition]=[inline]
    [122713_102535779][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] addAttachment(): Character set for MIME headers : UTF-8
    [122713_102535779][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] addAttachment(): Character encoding for MIME headers : B
    [122713_102535782][oracle.apps.xdo.batch.DeliveryHelper][EXCEPTION] java.lang.NullPointerException
        at javax.mail.internet.MimeUtility.checkAscii(MimeUtility.java:915)
        at javax.mail.internet.MimeUtility.encodeWord(MimeUtility.java:539)
        at javax.mail.internet.MimeUtility.encodeText(MimeUtility.java:373)
        at oracle.apps.xdo.delivery.smtp.Attachment.addAttachment(Attachment.java:354)
        at oracle.apps.xdo.delivery.smtp.Attachment.addAttachment(Attachment.java:283)
        at oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequestHandler.submitRequest(SMTPDeliveryRequestHandler.java:604)
        at oracle.apps.xdo.delivery.AbstractDeliveryRequest.submit(AbstractDeliveryRequest.java:1270)
        at oracle.apps.xdo.batch.DeliveryHelper.submitRequests(DeliveryHelper.java:626)
        at oracle.apps.xdo.batch.bursting.DocumentDelivery.submitCoreDeliveryRequests(DocumentDelivery.java:147)
        at oracle.apps.xdo.batch.BurstingProcessorEngine.addDocument2Queue(BurstingProcessorEngine.java:3268)
        at oracle.apps.xdo.batch.BurstingProcessorEngine.createBurstingDocument(BurstingProcessorEngine.java:2136)
        at oracle.apps.xdo.batch.BurstingProcessorEngine.burstDocument(BurstingProcessorEngine.java:2077)
        at oracle.apps.xdo.batch.BurstingProcessorEngine.globalDataEndElement(BurstingProcessorEngine.java:1999)
        at oracle.apps.xdo.batch.BurstingProcessorEngine.endElement(BurstingProcessorEngine.java:1135)
        at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:196)
        at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1212)
        at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
    I don´t know what to do, SMTP server parameters are rigth, bursting control file is also OK, original report with XML output ends OK with a pdf output.
    Any ideas?
    Best Regards
    Javier

    Hi all,
      Hi have developed a BI Publisher report but when trying to deliver it using the bursting concurrent program it fails wirh next error:
    Error!! Could not deliver the output for Delivery channel:null . Please check the Log for error details..
    If I look at the xdo.log file I can see next error:
    [122713_102535779][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] addAttachment(): Adding an attachment ...[filename]=[null], [content-type]=[text/plain;charset=UTF-8], [index]=[0], [disposition]=[inline]
    [122713_102535779][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] addAttachment(): Character set for MIME headers : UTF-8
    [122713_102535779][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] addAttachment(): Character encoding for MIME headers : B
    [122713_102535782][oracle.apps.xdo.batch.DeliveryHelper][EXCEPTION] java.lang.NullPointerException
        at javax.mail.internet.MimeUtility.checkAscii(MimeUtility.java:915)
        at javax.mail.internet.MimeUtility.encodeWord(MimeUtility.java:539)
        at javax.mail.internet.MimeUtility.encodeText(MimeUtility.java:373)
        at oracle.apps.xdo.delivery.smtp.Attachment.addAttachment(Attachment.java:354)
        at oracle.apps.xdo.delivery.smtp.Attachment.addAttachment(Attachment.java:283)
        at oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequestHandler.submitRequest(SMTPDeliveryRequestHandler.java:604)
        at oracle.apps.xdo.delivery.AbstractDeliveryRequest.submit(AbstractDeliveryRequest.java:1270)
        at oracle.apps.xdo.batch.DeliveryHelper.submitRequests(DeliveryHelper.java:626)
        at oracle.apps.xdo.batch.bursting.DocumentDelivery.submitCoreDeliveryRequests(DocumentDelivery.java:147)
        at oracle.apps.xdo.batch.BurstingProcessorEngine.addDocument2Queue(BurstingProcessorEngine.java:3268)
        at oracle.apps.xdo.batch.BurstingProcessorEngine.createBurstingDocument(BurstingProcessorEngine.java:2136)
        at oracle.apps.xdo.batch.BurstingProcessorEngine.burstDocument(BurstingProcessorEngine.java:2077)
        at oracle.apps.xdo.batch.BurstingProcessorEngine.globalDataEndElement(BurstingProcessorEngine.java:1999)
        at oracle.apps.xdo.batch.BurstingProcessorEngine.endElement(BurstingProcessorEngine.java:1135)
        at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:196)
        at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1212)
        at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
    I don´t know what to do, SMTP server parameters are rigth, bursting control file is also OK, original report with XML output ends OK with a pdf output.
    Any ideas?
    Best Regards
    Javier

  • RMAN Active cloning successful, but spfile found to be missing

    Environment:
    O.S Version :     HP-UX B.11.31 U ia64
    Oracle DB Version :     11.2.0.3.0
         Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    Database files on : +ASM managed Diskgroups
    RMAN Active cloning command below is used to clone the database from one host "A" to another host "B".
    duplicate target database to testDB from active database nofilenamecheck ; Cloning completed successfully. But when i checked on the spfile existance the spfile found missing.
    SQL> show parameter spfile
    NAME                                 TYPE        VALUE
    spfile                               string      /app/oracle/product/11.2.0.3/db/dbs/spfiletestDB.oraWhat could be the cause for the spfile missing?
    I have been advised below as workaround;
    1. Create spfile or pfile from memory and bounce the db to fix this issue.
    2. RMAN Active clone script specified with the the pfile clause.
    For example.
    duplicate target database to testDB  from active database file=/app/oracle/product/11.2.0.3/db/dbs/inittestDB.ora;  Would appreciate the advise on this.
    Edited by: Sivaprasad S on Jan 31, 2013 5:13 PM

    Hello;
    What could be the cause for the spfile missing?
    This :
    duplicate target database to testDB from active database nofilenamecheckInstead of this :
    duplicate target database to testDB from active database spfile nofilenamecheckSee :
    http://docs.oracle.com/cd/B28359_01/backup.111/b28270/rcmdupdb.htm
    Example 23-3
    Please consider closing some of your old questions
    Best Regards
    mseberg

  • Rman active cloning is getting failed

    Hi Team,
    when i am doing rman active cloning it is getting failed
    channel ORA_DISK_1: starting datafile copy
    input datafile file number=00406 name=/u01/oradata/ebstest/a_txn_ind05.dbf
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 02/24/2013 19:38:35
    ORA-17627: ORA-12577: Message 12577 not found; product=RDBMS; facility=ORA
    continuing other job steps, job failed will not be re-run
    channel ORA_DISK_1: starting datafile copy
    Please help

    user10721329 wrote:
    Hi Hussien,
    Thanks for the valuable reply,
    I have gone through that doc but i am trying to do cloning on the same machine not on the different machine
    My Linux version and database both are 32 bit i am trying to create a duplicate instance on the same 32 machine(side by side)Please see the solution in this link -- http://dbadailytelegraph.blogspot.ca/2009/06/duplicate-target-database-from-active.html
    Thanks,
    Hussein

  • RMAN Active Cloning: how to include SPFILE on ASM

    O.S Version     HP-UX B.11.31 U ia64
    Oracle DB Version     11.2.0.3.0
         Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    Storage : ASM Diskgroups
    On RMAN active cloning of databases, how to include the SPFILE to be cloned on the ASM Storage?

    Hello;
    Check out the example here :
    http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmdupad.htm
    Under "Example 25-4 Duplicating from a File System to ASM (Active)"
    or
    Example 25-5 Duplicating from ASM to ASM (Active)
    Best Regards
    mseberg
    Edited by: mseberg on May 15, 2013 10:34 AM

  • ORA-27369: job of type EXECUTABLE failed with exit code: No such file or directory

    Hi,
    I am using the scheduler to take backup of the dev database and it was working fine. Then I added notification to the scripts and then the scheduler started failing with the following code .
    BEGIN dbms_scheduler.run_job('BACKUP_DEV'); END;
    ERROR at line 1:
    ORA-27369: job of type EXECUTABLE failed with exit code: No such file or
    directory
    ORA-06512: at "SYS.DBMS_ISCHED", line 150
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 441
    ORA-06512: at line 1
    Here' the original which has no issues
    #!/bin/bash -x
    echo $@
    if [ -z "$ORACLE_HOME" ]; then
    source /path/oracle/.bash_profile
    fi
    RMAN="${ORACLE_HOME}/bin/rman";
    ${RMAN} $@
    exit $?
    And here's the one which gives me the errors. Also if I run this script from command line it works perfectly fine
    #!/bin/bash -x
    echo $@
    if [ -z "$ORACLE_HOME" ]; then
    source /path/oracle/.bash_profile
    fi
    RMAN="${ORACLE_HOME}/bin/rman";
    exec >> temp_log
    ${RMAN} $@
    /usr/bin/mailx -s "Backup status of $ORACLE_SID " [email protected] < temp_log
    /usr/bin/rm temp_log
    exit $?
    Pls let me know what could be the reason that the script fails with the scheduler.

    Hi,
    The user oracle who owns the scheduler already has permissions for the mailx and the same script is able to send notifications when run manully. Do I need to set additional permissions for scheduler ?
    Also the db version is 10.2.0.5.
    Thanks

  • EAL extract fails with ORA-03113 end-of-file on communication channel error

    Hi,
    We are trying to run an EAL (v11.1.1.4) extract from an HFM (v9.3.1.4) environment onto Oracle database. We are able to run the extract successfully for few hundred records, but when the records exceeds 10 million we get the error below
    [03 Dec 2011 06:02:41] [dbmgr] ERROR: OCI: HR#13579: Cannot execute statement for insert
    [03 Dec 2011 06:02:41] [dbmgr] ERROR: OCI: HR#01428: OCI_ERROR: (ORA-03113: end-of-file on communication channel;Process ID: 16323;Session ID: 15 Serial number: 8288; (code=3113)) [rec#1]
    [03 Dec 2011 06:02:41] [dbmgr] ERROR: OCI: HR#13580: Cannot rollback
    [03 Dec 2011 06:02:41] [dbmgr] ERROR: OCI: HR#01428: OCI_ERROR: (ORA-03114: not connected to ORACLE; (code=3114)) [rec#1]
    [03 Dec 2011 06:02:41] [dbmgr] WARN : HR#13674: Data move region job failed: HR#00000: some operations failed, see details in the log file; 81877900 cell(s) processed in 70348 second(s)
    We checked on the DB and the Oracle session that was doing the insert was open even after the extract failed with the above error.
    Any idea what could be causing this??
    Thanks
    Ramya Suresh

    Hi,
    I was able to fix this issue.
    From the trace file identified the related objects and validated them.
    More details can be found in below MOS note.
    [ID 421711.1]--Understanding and Diagnosing ORA-00600 [17069] Errors
    Thanks for all the inputs...

  • ORA-27369: job of type EXECUTABLE failed with exit code:No such file or dir

    Hi all,
    i am new with DBMS_SCHEDULER and my need is to create a job, without program and schedule, that i can call in an Apex app.
    This job run a window *.bat* file via cmd.exe
    I test the .bat with doubleclick and it work.
    I test window run with the string c:\windows\system32\cmd.exe/c C:/mycompletepath/myfilename.bat > nul and it work.
    I execute the following execute DBMS_SCHEDULER.create_job (
                   job_name=>'EIM_JOB',
                   job_type=>'EXECUTABLE',
                   job_action=>'c:\windows\system32\cmd.exe',
                   number_of_arguments=>1,
                   auto_drop=>FALSE,
                   enabled=>FALSE,
                   comments=>'Job Lancio EIM'
              ); and the job is created.
    I execute this execute DBMS_SCHEDULER.set_job_argument_value('EIM_JOB',1,' /c C:/mycompletepath/myfilename.bat > nul');
    execute DBMS_SCHEDULER.enable('EIM_JOB');
    execute DBMS_SCHEDULER.PURGE_LOG(job_name=>'EIM_JOB');
    execute DBMS_SCHEDULER.run_job('EIM_JOB');but the error ORA-27369: job of type EXECUTABLE failed with exit code: No such file or directory is raised
    The argument is uge and reading about it here https://forums.oracle.com/forums/thread.jspa?threadID=701740 here https://forums.oracle.com/forums/thread.jspa?threadID=555102 and here http://www.oracle-base.com/articles/11g/SchedulerEnhancements11gR1.php_ i suppose that my problem is quite about credentials but i need some help or tips to clearly identify, verify and solve the problem.
    Any kind of help will be appreciated.
    Thanks
    Alex

    Hi Ravi,
    thank you for your helpful reply.
    I am changing my script in order to meet your advices but when i run this execute DBMS_SCHEDULER.CREATE_CREDENTIAL (
       credential_name=>'SIECRMWIN',
       username=>'myusername',
       password=>'mypassword',
       database_role=>NULL,
       windows_domain=>'SIECRM',
       comments=>'Windows credential to run job'); the error PLS-00302: component 'CREATE_CREDENTIAL' must be declared is raised.
    My DB is Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    CORE     10.2.0.5.0     Production
    TNS for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Productio
    NLSRTL Version 10.2.0.5.0 - ProductionWhich is my mistakes?
    Searchibg the internet i found this OracleJobScheduler Windows service, how i can verify if service exist and start it on my server?
    Thanks again for any kind of help.
    Edited by: OraclePSP on 23-mar-2012 5.59

  • Tablespace Point in Time Recovery fails with RMAN-06026:

    I have cataloged with RMAN the datafiles from Snapshot backup. Still it fails with the following error.
    RMAN> RECOVER TABLESPACE TSPC UNTIL TIME "to_date('03-apr-2013 02:18:00','dd-mon-yyyy hh24:mi:ss')" AUXILIARY DESTINATION '/tmp/auxpran';
    Starting recover at 03-APR-13
    using channel ORA_DISK_1
    RMAN-05026: WARNING: presuming following set of tablespaces applies to specified point-in-time
    List of tablespaces expected to have UNDO segments
    Tablespace SYSTEM
    Tablespace UNDOTBS1
    Creating automatic instance, with SID='Ebgt'
    initialization parameters used for automatic instance:
    db_name=ORCL
    db_unique_name=Ebgt_tspitr_ORCL
    compatible=11.2.0.0.0
    db_block_size=8192
    db_files=200
    sga_target=280M
    processes=50
    db_create_file_dest=/tmp/auxpran
    log_archive_dest_1='location=/tmp/auxpran'
    #No auxiliary parameter file used
    starting up automatic instance ORCL
    Oracle instance started
    Total System Global Area 292933632 bytes
    Fixed Size 1336092 bytes
    Variable Size 100666596 bytes
    Database Buffers 184549376 bytes
    Redo Buffers 6381568 bytes
    Automatic instance created
    Running TRANSPORT_SET_CHECK on recovery set tablespaces
    TRANSPORT_SET_CHECK completed successfully
    contents of Memory Script:
    # set requested point in time
    set until time "to_date('03-apr-2013 02:18:00','dd-mon-yyyy hh24:mi:ss')";
    # restore the controlfile
    restore clone controlfile;
    # mount the controlfile
    sql clone 'alter database mount clone database';
    # archive current online log
    sql 'alter system archive log current';
    # avoid unnecessary autobackups for structural changes during TSPITR
    sql 'begin dbms_backup_restore.AutoBackupFlag(FALSE); end;';
    executing Memory Script
    executing command: SET until clause
    Starting restore at 03-APR-13
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=19 device type=DISK
    channel ORA_AUX_DISK_1: restoring control file
    channel ORA_AUX_DISK_1: copied control file copy
    input file name=/tmp/auxpran/controlbc.ctl
    output file name=/tmp/auxpran/ORCL/controlfile/o1_mf_8opkv8v4_.ctl
    Finished restore at 03-APR-13
    sql statement: alter database mount clone database
    sql statement: alter system archive log current
    sql statement: begin dbms_backup_restore.AutoBackupFlag(FALSE); end;
    contents of Memory Script:
    # set requested point in time
    set until time "to_date('03-apr-2013 02:18:00','dd-mon-yyyy hh24:mi:ss')";
    # set destinations for recovery set and auxiliary set datafiles
    set newname for clone datafile 1 to new;
    set newname for clone datafile 3 to new;
    set newname for clone datafile 2 to new;
    set newname for clone tempfile 1 to new;
    set newname for datafile 5 to
    "+DG_DATA/orcl/datafile/tspc.268.811733685";
    # switch all tempfiles
    switch clone tempfile all;
    # restore the tablespaces in the recovery set and the auxiliary set
    restore clone datafile 1, 3, 2, 5;
    switch clone datafile all;
    executing Memory Script
    executing command: SET until clause
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    renamed tempfile 1 to /tmp/auxpran/ORCL/datafile/o1_mf_temp_%u_.tmp in control file
    Starting restore at 03-APR-13
    using channel ORA_AUX_DISK_1
    One or more auxiliary set datafiles could not be removed
    Removing automatic instance
    shutting down automatic instance
    database dismounted
    Oracle instance shut down
    Automatic instance removed
    auxiliary instance file /tmp/auxpran/ORCL/controlfile/o1_mf_8opkv8v4_.ctl deleted
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 04/03/2013 02:32:55
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 2 found to restore
    RMAN-06023: no backup or copy of datafile 3 found to restore
    RMAN-06023: no backup or copy of datafile 1 found to restore
    Could anyone please reply ASAP?
    Regards,
    Pranam

    I had created a snapshot of the database(datafiles and archivelogs) and cataloged them.
    CATALOG START WITH "+TBL_DG_DATA/ORCL/DATAFILE/" NOPROMPT;
    catalog start with "+DG_ARCH/ORCL/ARCHIVELOG/" NOPROMPT;
    The time i gave was after the snapshot was created.
    When it failed the first time I created another controlfile using
    sql "alter database backup controlfile to ''/tmp/auxpran/controlbc.ctl''";
    And ran the recover command after the time after i generated this controlfile. Changed nothing else. TSPITR completed successfully. But it had failed first time. Cannot figure how it ran the second time but failed the first time.
    Removing automatic instance
    Automatic instance removed
    auxiliary instance file /tmp/auxpran/ORCL/datafile/o1_mf_temp_8opndd87_.tmp deleted
    auxiliary instance file /tmp/auxpran/ORCL/onlinelog/o1_mf_3_8opnd1o6_.log deleted
    auxiliary instance file /tmp/auxpran/ORCL/onlinelog/o1_mf_2_8opncy32_.log deleted
    auxiliary instance file /tmp/auxpran/ORCL/onlinelog/o1_mf_1_8opncv7d_.log deleted
    auxiliary instance file /tmp/auxpran/ORCL/datafile/o1_mf_sysaux_8opn516p_.dbf deleted
    auxiliary instance file /tmp/auxpran/ORCL/datafile/o1_mf_undotbs1_8opn4j14_.dbf deleted
    auxiliary instance file /tmp/auxpran/ORCL/datafile/o1_mf_system_8opmyvly_.dbf deleted
    auxiliary instance file /tmp/auxpran/ORCL/controlfile/o1_mf_8opmy14q_.ctl deleted
    Finished recover at 03-APR-13

  • Rman command fails with "RMAN-00554: initialization of internal RMAN"

    Hi
    I am at cross roads with no direction. 2 things and most like cause for the issue is same
    1)rman target rman1/rman1@ppmqa
    Recovery Manager: Release 11.2.0.1.0 - Production on Thu Dec 16 10:34:46 2010
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00554: initialization of internal recovery manager package failed
    RMAN-04005: error from target database:
    ORA-01031: insufficient privileges
    2) sqlnet userid/passwd@db1 "/as sysdba" works some times and fails with insufficient privileges" some times
    ppmqa1 10:24 AM sqrac202a:/oracle/base/diag/tnslsnr/sqrac202a/listener/trace > sqlplus rman1/rman1@ppmqa1 "as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Thu Dec 16 10:24:55 2010
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    ERROR:
    ORA-01031: insufficient privileges
    ppmqa1 10:24 AM sqrac202a:/oracle/base/diag/tnslsnr/sqrac202a/listener/trace > sqlplus rman1/rman1@ppmqa1 "as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Thu Dec 16 10:24:57 2010
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Testing options
    SQL>
    Information on environment and let me know if you need or know any more details... thanks in advance.
    CRS Version 11201 and so DB
    current parameters:
    SQL> show parameter remote
    NAME TYPE VALUE
    remote_dependencies_mode string TIMESTAMP
    remote_listener string sqrac202-scan.frxntnyc.frx2.co
    m:1521
    remote_login_passwordfile string EXCLUSIVE
    remote_os_authent boolean FALSE
    remote_os_roles boolean FALSE
    result_cache_remote_expiration integer 0
    SQL> select * from v$pwfile_users
    USERNAME SYSDB SYSOP SYSAS
    SYS TRUE TRUE FALSE
    RMAN1 TRUE TRUE FALSE
    sqlnet.ora from GRID Home
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    ADR_BASE = /oracle/base
    #################################

    I found solution just now, this is very simple i was not aware this but this is how it working
    Hope this helps
    I granted sysdba from node A but not from node B, thinking that if you grant any privilege at instance level that is applicable to db level but that is not the case with sysdba privs
    so i need to grant it from both nodes A and B.
    here is the output
    test case
    initially no entry for instance 2
    1) select * from gv$pwfile_users;
    INST_ID USERNAME SYSDB SYSOP SYSAS
    2 SYS TRUE TRUE FALSE
    1 SYS TRUE TRUE FALSE
    1 RMAN1 TRUE TRUE FALSE
    2) grant sysdba to rman1 -- this I did at NODE B or instance 2
    3) SQL> select * from gv$pwfile_users;
    INST_ID USERNAME SYSDB SYSOP SYSAS
    2 SYS TRUE TRUE FALSE
    2 RMAN1 TRUE FALSE FALSE
    1 SYS TRUE TRUE FALSE
    1 RMAN1 TRUE TRUE FALSE
    4) I am able to connect remotely
    C:\Documents and Settings\kthoka> sqlplus rman1/rman1@ppmqa "as sysdba"
    SQL*Plus: Release 10.2.0.3.0 - Production on Thu Dec 16 13:59:20 2010
    Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management
    OLAP,
    Data Mining and Real Application Testing options
    SQL> select instance_name from v$instance;
    INSTANCE_NAME
    ppmqa2
    5) rman also working fine
    ppmqa 03:00 PM sqrac202a:/oracle/NSQ/112_64/dbs > rman target rman1/rman1@ppmqa
    Recovery Manager: Release 11.2.0.1.0 - Production on Thu Dec 16 15:00:32 2010
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    connected to target database: PPMQA (DBID=774170541)
    RMAN> exit
    Recovery Manager complete.

  • Command fail with RMAN-02001

    Hi everyone.
    I have a command that I wish to insert into a RMAN script. It' actually an OS command, renaming a file (the log file generated by the script). Here's the command I'm using:
    RMAN> HOST 'mv /oracle/backup/database_backups/BackupLog/rman_backup.log
    /oracle/backup/database_backups/BackupLog/"rman_backup"`date '+_%Y%m%d_%H%M%S'`".log"';When executing, it fails with this error:
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01006: error signaled during parse
    RMAN-02001: unrecognized punctuation symbol "+"I tried different qutations to mark that "+" as a special character, but couldn't find the right way to get rid of the error.
    If anyone else already met this problem, please let me know how to solve it.
    Thanks.

    Razvan Balu wrote:
    Hi everyone.
    I have a command that I wish to insert into a RMAN script. It' actually an OS command, renaming a file (the log file generated by the script). Here's the command I'm using:
    RMAN> HOST 'mv /oracle/backup/database_backups/BackupLog/rman_backup.log
    /oracle/backup/database_backups/BackupLog/"rman_backup"`date '+_%Y%m%d_%H%M%S'`".log"';When executing, it fails with this error:
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01006: error signaled during parse
    RMAN-02001: unrecognized punctuation symbol "+"I tried different qutations to mark that "+" as a special character, but couldn't find the right way to get rid of the error.
    If anyone else already met this problem, please let me know how to solve it.
    Thanks.Could you try it like this:
    HOST 'mv /oracle/backup/database_backups/BackupLog/rman_backup.log /oracle/backup/database_backups/BackupLog/rman_backup `date +_%Y%m%d_%H%M%S`.log';
    Best regards
    Gokhan Atil
    If this question is answered, please mark the thread as closed and assign points where earned. Thanks

  • Backup fails with RMAN-08132

    Hi
    I'm trying to run rman backup on standby db. It seems like the backup completes but i'm getting the following message at the end. I cant issue commands like "list backup;" Fails with the same error. Tried searching metalink without any luck. Anyone seen this before??
    Finished backup at 25-APR-07
    RMAN-08132: WARNING: cannot update recovery area reclaimable file list
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of REFAF command on default channel at 04/25/2007 12:30:45
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01219: database not open: queries allowed on fixed tables/views only
    Any clues from you sharp-eyed dba's out there would be greatly appricated!!

    There's an entry on metalink:
    Known RMAN issues in Oracle10g
    Doc ID: Note:363409.1
    Inside this note search for 'WARNING: cannot update recovery area reclaimable file list'
    Werner

  • RMAN backup got failed with the error ORA-19566

    Hi,
    One of database, while taking backup using RMAN, it failed with the following error:
    RMAN-03009: failure of backup command on DISK4 channel at 11/28/2012 09:47:29
    ORA-19566: exceeded limit of 0 corrupt blocks for file <faile_name>
    I used DBV to identify the number of blocks corrupted.
    I referred the Metalink iD 457422.1 & 336133.1. But it did not help since the corrupted blocks have got object in it.
    I could able to find the object as well. it is one of the table in the datafile.
    I used 'ALTER TABLE ... MOVE..' command to see if that helps. But again getting the same error while taking the backup and corrupted blocks still exists.
    DB Version : 10.2.0.5
    OS Version : RHEL 5.6
    Please help me out to get this fixed.

    Here it is:
    SQL> Select * from v$database_block_corruption ;
    FILE# BLOCK# BLOCKS CORRUPTION_CHANGE# CORRUPTION_TYPE
    13 3988352 128 0 ALL ZERO

  • Rman duplication fails with RMAN-00600

    Hi All,
    I'm trying to perform a database duplication from a prod server to a non prod one with ORacle 11gR2.
    I'm performing a backup-based duplication without target connection from DEV3 database to DEV1 database. I followed the steps mentionned in the "backup & Recovery Guide" http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmdupdb.htm
    Here are the steps I followed:
    1. I configured my spfile of the auxiliary database like the target one. I also added these lines to change the location of the restores:
    SQL> alter system set log_file_name_convert='/u04/DEV3/rdo','/u04/DEV1/rdo','/u03/DEV3/rdo','/u03/DE V1/rdo','/u02/DEV3/rdo','/u02/DEV1/rdo' scope=spfile;
    SQL> alter system set db_file_name_convert='/u04/DEV3/rdo','/u04/DEV1/rdo','/u03/DEV3/rdo','/u03/DEV1/rdo','/u02/DEV3/rdo','/u02/DEV1/rdo','/u02/DEV3/dbf/DEV3','/u02/DEV1/dbf/DEV1' scope=spfile;
    2. I then shutdown the database, and start it in nomount mode.
    3. I connect to the auxiliary database, and the recovery catalog
    4. I run the following rman duplication command:
    RUN{
    DUPLICATE DATABASE DEV3 to DEV1;
    The restore succeeds but at the end, the recovery ends with the following error:
    channel ORA_AUX_DISK_6: reading from backup piece /RMAN/DEV3/DEV3_0_14:27:01-05-31-2011_2_138.rman
    channel ORA_AUX_DISK_4: piece handle=/RMAN/DEV3/DEV3_0_14:27:01-05-31-2011_2_136.rman tag=LVL0_DB_BKP
    channel ORA_AUX_DISK_4: restored backup piece 2
    channel ORA_AUX_DISK_4: restore complete, elapsed time: 02:24:10
    channel ORA_AUX_DISK_6: piece handle=/RMAN/DEV3/DEV3_0_14:27:01-05-31-2011_2_138.rman tag=LVL0_DB_BKP
    channel ORA_AUX_DISK_6: restored backup piece 2
    channel ORA_AUX_DISK_6: restore complete, elapsed time: 02:25:09
    Finished restore at 06/06/11 15:22:58
    contents of Memory Script:
    catalog clone datafilecopy "/u02/DEV1/dbf/DEV1/undotbs01.dbf";
    switch clone datafile 3 to datafilecopy
    "/u02/DEV1/dbf/DEV1/undotbs01.dbf";
    switch clone datafile all;
    executing Memory Script
    cataloged datafile copy
    datafile copy file name=/u02/DEV1/dbf/DEV1/undotbs01.dbf RECID=70 STAMP=753117778
    datafile 3 switched to datafile copy
    input datafile copy RECID=70 STAMP=753117778 file name=/u02/DEV1/dbf/DEV1/undotbs01.dbf
    datafile 1 switched to datafile copy
    input datafile copy RECID=71 STAMP=753117780 file name=/u02/DEV1/dbf/DEV1/system01.dbf
    datafile 2 switched to datafile copy
    input datafile copy RECID=72 STAMP=753117780 file name=/u02/DEV1/dbf/DEV1/sysaux01.dbf
    contents of Memory Script:
    set until scn 7241504550365;
    recover
    clone database
    delete archivelog
    executing Memory Script
    executing command: SET until clause
    Starting recover at 06/06/11 15:23:15
    using channel ORA_AUX_DISK_1
    using channel ORA_AUX_DISK_2
    using channel ORA_AUX_DISK_3
    using channel ORA_AUX_DISK_4
    using channel ORA_AUX_DISK_5
    using channel ORA_AUX_DISK_6
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00601: fatal error in recovery manager
    RMAN-03012: fatal error during compilation of command
    RMAN-03028: fatal error code for command recover : 600
    RMAN-00600: internal error, arguments [8029] [1] [] [] []
    Can someone please help me resolve this issue???it's quite urgent.
    Thank you,
    Farah

    I am facing same error, did any of you find a resolution yet?
    contents of Memory Script:
    set until scn 7243533883622;
    recover
    clone database
    delete archivelog
    executing Memory Script
    executing command: SET until clause
    Starting recover at 10/12/11 19:33:12
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00601: fatal error in recovery manager
    RMAN-03012: fatal error during compilation of command
    RMAN-03028: fatal error code for command recover : 600
    RMAN-00600: internal error, arguments [8029] [1] [] [] []
    Wed Oct 12 19:33:14 CEST 2011 Remove the lock file
    ERROR: RMAN FAILUR
    I see many kblockd processes, can this be an indication:
    applprod@gvaebsdb3:~ $ ps -ef|grep kblockd
    root 231 211 0 Oct05 ? 00:00:00 [kblockd/0]
    root 232 211 0 Oct05 ? 00:00:00 [kblockd/1]
    root 233 211 0 Oct05 ? 00:00:00 [kblockd/2]
    root 234 211 0 Oct05 ? 00:00:00 [kblockd/3]
    root 235 211 0 Oct05 ? 00:00:00 [kblockd/4]
    root 236 211 0 Oct05 ? 00:00:00 [kblockd/5]
    root 237 211 0 Oct05 ? 00:00:00 [kblockd/6]
    root 238 211 0 Oct05 ? 00:00:00 [kblockd/7]
    root 239 211 0 Oct05 ? 00:00:00 [kblockd/8]
    root 240 211 0 Oct05 ? 00:00:00 [kblockd/9]
    root 241 211 0 Oct05 ? 00:00:00 [kblockd/10]
    root 242 211 0 Oct05 ? 00:00:00 [kblockd/11]
    root 243 211 0 Oct05 ? 00:00:00 [kblockd/12]
    root 244 211 0 Oct05 ? 00:00:00 [kblockd/13]
    root 245 211 0 Oct05 ? 00:00:00 [kblockd/14]
    root 246 211 0 Oct05 ? 00:00:00 [kblockd/15]
    Thanks,
    Horia

Maybe you are looking for