JOURNAL of COIL RMAN

Hello

10.2.0.3 on Win 2003 server.

When I run the following manually it works well and the output is written to the sppol file:

JOURNAL of the COIL to "D:\SCRIPTS\Scripts\backup\Test_log_MyDB.txt".

run

{

View all;

}

COIL DISCONNECTION;

But when run from a file of commands like follow the hold file is created but empty:

=================BATCH=========================

Define WORK_DIR = % ~ dp0

Set ORACLE_SID = MYDB

RMAN nocatalog target / @Test.sql

= END OF BATCH =.

Thank you.

Try

RMAN nocatalog target / @Test.sql log='D:\SCRIPTS\Scripts\backup\Test_log_MyDB.txt'

See cmdLine where you can read

LOG='filename' Specifies the file where RMAN records its output, that is, orders that were processed and their results. If you do not specify this argument, then RMAN writes its file on the standard output message log.

Note: remove commands of the coil of your file.

Tags: Database

Similar Questions

  • Switch journal during the RMAN backup

    I saw a lot of scripts in RMAN backup that a manual log switching is performed in the first line of the script? That is - this goal, just to write the changes necessary to rebuild instructions DML/DDL of redo log online and start archiving process so db runs in log mode archive?

    918868 wrote:
    I saw a lot of scripts in RMAN backup that a manual log switching is performed in the first line of the script? That is - this goal, just to write the changes necessary to rebuild instructions DML/DDL of redo log online and start archiving process so db runs in log mode archive?

    This could be the only reason, but even this is not necessary, as would a log switch automatically to push the current log file again to do is archive log and include it in the RMAN backup.

    Aman...

  • How can access data in the rman 'daily.log' output file

    Hi all

    I used the following question for rman out
    the output file "daily.log" has been created, but there is no data.

    How can access the data in the output file 'daily.log '.


    bash-3. $00 sh rmant.sh

    Recovery Manager: release 10.2.0.3.0 - Production Thu Jun 30 16:54:16 2011

    Copyright (c) 1982, 2005, Oracle. All rights reserved.

    connected to target database: DEV (DBID = 45558086)

    RMAN > Journal of coil to daily.log;
    2 > run
    3 > {}
    4 > backup databas.
    {5 >}
    6 > spool log off;
    7 >
    Winding began in the log file: daily.log

    Recovery Manager10.2.0.3.0

    From backup 30 June 11
    using the control file of the target instead of recovery catalog database
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid = 634 devtype = DISK
    channel ORA_DISK_1: additional start-up compressed 0 datafile backupset
    channel ORA_DISK_1: specifying datafile (s) in backupset
    input datafile fno = name=/u02/proddata/a_int01.dbf 00014
    input datafile fno = name=/u02/proddata/a_txn_data01.dbf 00022
    input datafile fno = name=/u02/proddata/a_txn_data02.dbf 00023
    input datafile fno = name=/u02/proddata/a_txn_data03.dbf 00024
    input datafile fno = name=/u02/proddata/a_txn_data04.dbf 00039
    input datafile fno = name=/u02/proddata/undo02.dbf 00038
    input datafile fno = name=/u02/proddata/a_txn_ind03.dbf 00027
    input datafile fno = name=/u02/proddata/a_txn_ind04.dbf 00028
    input datafile fno = name=/u02/proddata/undo01.dbf 00012
    input datafile fno = name=/u02/proddata/a_media01.dbf 00015
    input datafile fno = name=/u02/proddata/a_txn_ind01.dbf 00025
    input datafile fno = name=/u02/proddata/a_txn_ind02.dbf 00026
    input datafile fno = name=/u02/proddata/a_txn_ind05.dbf 00029
    input datafile fno = name=/u02/proddata/a_summ01.dbf 00021
    input datafile fno = name=/u02/proddata/a_ref01.dbf 00019
    input datafile fno = name=/u02/proddata/a_ref02.dbf 00020
    input datafile fno = 00001 name=/u02/proddata/system01.dbf
    input datafile fno = name=/u02/proddata/system02.dbf 00002
    input datafile fno = name=/u02/proddata/system03.dbf 00003
    input datafile fno = name=/u02/proddata/system04.dbf 00004
    input datafile fno = 00005 name=/u02/proddata/system05.dbf
    input datafile fno = name=/u02/proddata/system06.dbf 00006
    input datafile fno = name=/u02/proddata/system07.dbf 00007
    input datafile fno = name=/u02/proddata/system08.dbf 00008
    input datafile fno = name=/u02/proddata/system09.dbf 00009
    input datafile fno = name=/u02/proddata/system10.dbf 00010
    input datafile fno = name=/u02/proddata/system11.dbf 00011
    input datafile fno = name=/u02/proddata/a_archive01.dbf 00013
    input datafile fno = name=/u02/proddata/sysaux01.dbf 00036
    input datafile fno = name=/u02/proddata/a_nolog01.dbf 00016
    input datafile fno = name=/u02/proddata/izu01.dbf 00037
    input datafile fno = name=/u02/proddata/a_queue01.dbf 00017
    input datafile fno = name=/u02/proddata/a_queue02.dbf 00018
    input datafile fno = name=/u02/proddata/odm.dbf 00031
    input datafile fno = name=/u02/proddata/portal01.dbf 00034
    input datafile fno = name=/u02/proddata/sfx01.dbf 00035
    input datafile fno = name=/u02/proddata/ctxd01.dbf 00030
    input datafile fno = name=/u02/proddata/olap.dbf 00032
    input datafile fno = name=/u02/proddata/owad01.dbf 00033
    channel ORA_DISK_1: starting total, 1 to June 30, 11
    channel ORA_DISK_1: finished piece 1 at June 30, 11
    total, handle = / sw/weekly_cum_database_DEV_t755196858_c1_s24_p1 tag = WEEKLY_CUM_DAT
    ABASE comment = NONE
    channel ORA_DISK_1: complete set of backups, time: 00:32:55
    channel ORA_DISK_1: additional start-up compressed 0 datafile backupset
    channel ORA_DISK_1: specifying datafile (s) in backupset
    including the current control in backupset file
    including current SPFILE in backupset
    channel ORA_DISK_1: starting total, 1 to June 30, 11
    channel ORA_DISK_1: finished piece 1 at June 30, 11
    total, handle = / sw/weekly_cum_database_DEV_t755198834_c1_s25_p1 tag = WEEKLY_CUM_DAT
    ABASE comment = NONE
    channel ORA_DISK_1: complete set of backups, time: 00:00:02
    Backup completed on June 30, 11

    Queue log disabled

    Recovery Manager10.2.0.3.0

    Complete recovery manager.
    bash-3. $ 00

    No need to mention to the coil of logoff.

    coil disconnection;

    out this above command and run again.

  • How to monitor all RMAN operations using single script in the recovery catalog?

    I use the rman recovery catalog, all databases are stored on the catalog database, is there any script to monitor all the databases that are registered in the recovery catalog.

    I have the script that displays only the last time success of the work of recovery catalog

    SELECT name, Inc., Journal, ctl
    Of
    RMAN.rc_database d,
    (select db_id, to_char (max (START_TIME),' MM/DD / YYYY:HH24:MI:SS') full)
    of s rman.rc_backup_set
    where s.backup_type in (')
    and controlfile_included = 'NONE '.
    Db_id group) f.
    (select db_id, to_char (max (START_TIME),' MM/DD / YYYY:HH24:MI:SS') Inc.)
    of s rman.rc_backup_set
    where s.backup_type ('i')
    Db_id group) i.
    (select db_id, Journal of to_char (max (START_TIME),' MM/DD / YYYY:HH24:MI:SS'))
    of s rman.rc_backup_set
    where s.backup_type ('l')
    l band db_id),
    (select db_key, ctl to_char (max (completion_TIME),' MM/DD / YYYY:HH24:MI:SS'))
    of s rman.rc_backup_controlfile
    Db_key group) c
    where f.db_id (+) = d.dbid
    and i.db_id (+) = d.dbid
    and l.db_id (+) = d.dbid
    and c.db_key (+) = d.db_key
    order by 1;

    Published by: 987633 on February 12, 2013 09:03

    Real!

    Difficult to shoot everything I want in a single query.

    select
            db_name,
            start_time,
            end_time,
            status,
            time_taken_display,
            output_bytes_display,
            output_device_type,
            session_key,
            session_recid,
            session_stamp
    from rc_rman_backup_job_details where end_time > sysdate -1
    

    Best regards

    mseberg

  • Log in Oracle

    Hello

    I'm collecting different types of newspapers in Oracle, while I have gathered up to now 11 type of newspapers:

    1 redo log
    2 log archiving
    3 alert log
    4 journal of MV of
    5 journal of flashback
    6. journal of EM of
    7 journal of the listener to
    8 journal DBCA
    9 supplemental Journal
    10. journal of the DML errors
    11 audit log of

    Can you tell me more.

    Thank you.

    I'll add below newspapers:

    Task log
    http://docs.Oracle.com/CD/E11882_01/server.112/e25494/schedadmin002.htm#autoId3

    Log window
    http://docs.Oracle.com/CD/E11882_01/server.112/e25494/schedadmin002.htm#autoId4

    Oracle Clusterware Alert Log
    Oracle Grid Infrastructure Journal Alerts
    Log RMAN
    Journal of the YES
    Journal of OPatch
    ... Continue the list...

    Why continue to list? Because there are mainly 2 types of marbles i.e. which are written in binary form and which are written in binary form / non-text. If you just rethink the list until now, you can say "AnyTool.log." that is, Oracle each tool creates his own newspaper, its own path/way. If you run RMAN, there may be paper RMAN, if I do something with DBCA then dbca log; While Srini Chavali gave you the link, you can get more and more newspapers, but I think that its enough learn more about all these to get you an id of something like "logman"... :-)

    Concerning
    Girish Sharma

  • RMAN restore error - recovery of media asking unknown journal: thread 1 seq 7

    IM using RMAN to copy a database to another server. The new server is IDENTICAL to the former. By identical I mean she has the same break the name, ip address, operating system, directory structure and the Oracle version.

    The new server has already created instance, (same name as the old server example, paths etc.)

    The backup files have been restored manually on the new server, the same places that they were on the old. (RMAN makes a backup controlfile automatic and also the archivelogs on the old server).

    Ive restored the control file to the new server from the elements of RMAN backup.

    Ive cataloged items of RMAN backup on the new server.

    I know that the last available in the backup of the archivelogs sequence running on the new server:

    backup from the list of the archivelog all;

    List of backup sets
    ===================

    Time of accomplishment time BS key size Device Type
    ------- ---------- ----------- ------------ ---------------
    14,43 5 M DISK 00:00:03 11 MAY 11
    BP key: 9 situation: AVAILABLE Tablet: NO Tag: TAG20110511T163502
    Part name: C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\BACKUPSET\
    011_05_11\O1_MF_ANNNN_TAG20110511T163502_6WOC5833_. BKP

    List of newspapers archived on backup the value 5
    The next time that THRD Seq YVERT low low time next YVERT
    ---- ------- ---------- --------- ---------- ---------
    1 2 550217 10 MAY 11 556559 11 MAY 11
    1 3 556559 11 MAY 11 559776 11 MAY 11
    1 4 559776 11 MAY 11 560093 11 MAY 11
    1 5 560093 11 MAY 11 560794 11 MAY 11

    Time of accomplishment time BS key size Device Type
    ------- ---------- ----------- ------------ ---------------
    RECORD OF 15.50 K 7 00:00:01 11 MAY 11
    BP key: 10 location: AVAILABLE Tablet: NO Tag: TAG20110511T163653
    Part name: C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\BACKUPSET\
    011_05_11\O1_MF_ANNNN_TAG20110511T163653_6WOC8PMP_. BKP

    List of newspapers archived in backup set 7
    The next time that THRD Seq YVERT low low time next YVERT
    ---- ------- ---------- --------- ---------- ---------
    1 6 560794 11 MAY 11 560851 11 MAY 11


    So far its all perfectly fine.

    Now I want to restore the data files and recover. So I ran:

    RMAN run {restore database; recover database; alter database open resetlogs ;}}

    This gave me the result below is going very well, but I get a final error, I think that the error is because its search for an archive log that is not in the backup set, but it should be. However, I think 560851 SNA is for a journal that had not yet been created on the old server when the backup was run?

    I address, how to fix the error? Its interesting to note the journal, "archive log filename=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\ARCHIVELOG".
    \2011_05_11\O1_MF_1_6_6WOK1X4W_. ARCH-recid = 10 = 750881741 "stamp is not on the old server or which explains why this isn't in the backup set.

    I can do an alter database open reset connects but Id prefer to know why its failure.


    Any help would be appreciated.

    ........................................................


    RMAN > run {restore database, recover databases; alter database open resetlogs ;}}

    From restoration to 11 May 11
    using channel ORA_DISK_1

    channel ORA_DISK_1: from datafile backupset restoration
    channel ORA_DISK_1: specifying datafile (s) to restore from backup set
    restoring datafile 00001 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\SAT\SYSTEM01. DBF
    restoring datafile 00002 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\SAT\UNDOTBS01. DBF
    restoring datafile 00003 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\SAT\SYSAUX01. DBF
    restoring datafile 00004 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\SAT\USERS01. DBF
    channel ORA_DISK_1: backup C:\ORACLE\PRODUCT\10.2.0\FLASH_REC piece reading
    OVERY_AREA\SAT\BACKUPSET\2011_05_11\O1_MF_NNNDF_TAG20110511T163507_6WOC5CM7_. BKP

    channel ORA_DISK_1: restored the backup part 1
    room handle=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\BACKUPSET\2011_05_
    11\O1_MF_NNNDF_TAG20110511T163507_6WOC5CM7_. Tag BKP = TAG20110511T163507
    channel ORA_DISK_1: restore complete, duration: 00:00:55
    Restoration finished in 11 May 11


    From back to 11 May 11
    using channel ORA_DISK_1

    starting media recovery

    channel ORA_DISK_1: from the archives to default destination log restore
    channel ORA_DISK_1: restore the newspaper archive
    archive log thread = 1 sequence = 6
    channel ORA_DISK_1: backup C:\ORACLE\PRODUCT\10.2.0\FLASH_REC piece reading
    OVERY_AREA\SAT\BACKUPSET\2011_05_11\O1_MF_ANNNN_TAG20110511T163653_6WOC8PMP_. BKP

    channel ORA_DISK_1: restored the backup part 1
    room handle=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\BACKUPSET\2011_05_
    11\O1_MF_ANNNN_TAG20110511T163653_6WOC8PMP_. Tag BKP = TAG20110511T163653
    channel ORA_DISK_1: restore complete, duration: 00:00:01
    archive log filename=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\ARCHIVELOG
    \2011_05_11\O1_MF_1_6_6WOK1X4W_. Wire ARC = 1 sequence = 6
    default channel: delete records or newspapers
    archive log filename=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\ARCHIVELOG
    \2011_05_11\O1_MF_1_6_6WOK1X4W_. ARCH-recid = stamp 10 = 750881741
    Cannot find the log archiving
    archive log thread = 1 sequence = 7
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the command recover at 11/05/2011 18:15:42
    RMAN-06054: recovery of media asking unknown journal: thread 1 seq 7 lowscn 560851

    RMAN >

    Published by: user12173666 on May 11, 2011 10:28

    He asked all of the available archives, whenever you give the database recovery, he keeps searching for the next archives, actually these archives are not yet generated, then you can ignore.

    Now just connect to SQL and give

    SQL > alter database open resetlogs;

    It should work.

  • RMAN-06054: recovery of media asking unknown journal: thread 1 seq 23888

    version 10203

    Can I change the time or the SNA and re - run recovery without restoring all db files?
    How do I know exact time/scn? where rman can perform recovery...

    RMAN wasn't able to restore automatic backup controlfile;
    I had to restore controlfile from "c-2568036611-20100912-13.
    &
    run
    {
    until the time = 2010 - 09 - 12 18:30 ';
    restore the database;
    recover the database;
    ALTER database open resetlogs;
    }

    RMAN recovery ends with this error
    RMAN-06054: recovery of media asking unknown journal: thread 1 seq 23888 lowscn 4473176866475

    DBA2008 wrote:
    version 10203

    Can I change the time or the SNA and re - run recovery without restoring all db files?

    No, recovery average is you have to restore before database/data file according to this time/SNA and
    need to recover this database/data file

    How do I know exact time/scn? where rman can perform recovery...

    You can use rman back catalogue or views of performance Dynamics controlfiles(v$backup_*).

    RMAN wasn't able to restore automatic backup controlfile;
    I had to restore controlfile from "c-2568036611-20100912-13.

    When you try to restore controlfile what error do you have?
    Or have you tried restore controlfile to 'your_controlfile_backup' command via rman

    run
    {
    until the time = 2010 - 09 - 12 18:30 ';
    restore the database;
    recover the database;
    ALTER database open resetlogs;
    }

    RMAN recovery ends with this error
    RMAN-06054: recovery of media asking unknown journal: thread 1 seq 23888 lowscn 4473176866475

    It seems that this error occur because of you actually restored controlfile sauvegardΘ but in controlfile are not
    any information on your logs archiving offer you have to catalogue start with "archive_log_location" through rman. After you run this command, please perform recover database and alter database open resetlogs

  • RMAN-06054: recovery of media asking unknown journal: thread 1 seq 31 lowscn 1

    Hello

    I have oracle 10g on redhat linux 4 my database is in archivelog mode.

    When I use the output of the command.
    select name,sequence#,first_time from v$archived_log;
    
    NAME                                                         SEQUENCE#  FIRST_TIME                                                                     
    -----------------------------------------------------------  ---------  ----------                                                                                                                            
    /home/oracle/DataBaseBackups/ArchiveDest/1_39_694492901.dbf  39         2009-08-19                                                                                                                     
    /home/oracle/DataBaseBackups/ArchiveDest/1_40_694492901.dbf  40         2009-08-19                                                                                                                     
    /home/oracle/DataBaseBackups/ArchiveDest/1_41_694492901.dbf  41         2009-08-19                                                                                                                     
    /home/oracle/DataBaseBackups/ArchiveDest/1_42_694492901.dbf  42         2009-08-20                                                                                                                     
    /home/oracle/DataBaseBackups/ArchiveDest/1_43_694492901.dbf  43         2009-08-20                                                                                                                     
    /home/oracle/DataBaseBackups/ArchiveDest/1_44_694492901.dbf  44         2009-08-20                                                                                                                     
    /home/oracle/DataBaseBackups/ArchiveDest/1_45_694492901.dbf  45         2009-08-21                                                                                                                     
    /home/oracle/DataBaseBackups/ArchiveDest/1_46_694492901.dbf  46         2009-08-21                                                                                                                     
    /home/oracle/DataBaseBackups/ArchiveDest/1_47_694492901.dbf  47         2009-08-21                                                                                                                     
    /home/oracle/DataBaseBackups/ArchiveDest/1_48_694492901.dbf  48         2009-08-21                                                                                                                     
    /home/oracle/DataBaseBackups/ArchiveDest/1_49_694492901.dbf  49         2009-08-22                                                                                                                     
    /home/oracle/DataBaseBackups/ArchiveDest/1_50_694492901.dbf  50         2009-08-22                                                                                                                     
    /home/oracle/DataBaseBackups/ArchiveDest/1_51_694492901.dbf  51         2009-08-22                                                                                                                     
    /home/oracle/DataBaseBackups/ArchiveDest/1_52_694492901.dbf  52         2009-08-23                                                                                                                     
    /home/oracle/DataBaseBackups/ArchiveDest/1_53_694492901.dbf  53         2009-08-23                                                                                                                     
    /home/oracle/DataBaseBackups/ArchiveDest/1_54_694492901.dbf  54         2009-08-23      
    My only sequence no begins with 39 by this command.

    but when I try to restore the database I found the error
             RMAN-06054: media recovery requesting unknown log: thread 1 seq 31 lowscn 1330926
    but when I physically check the destination of the journal archive

    I think it's
    [oracle@Oracledatabas ArchiveDest]$ ll
    total 1650176
    -rw-r-----  1 oracle oinstall  2147328 Aug 17 02:47 1_30_694492901.dbf
    -rw-r-----  1 oracle oinstall 14567424 Aug 17 05:50 1_31_694492901.dbf
    -rw-r-----  1 oracle oinstall 47700480 Aug 17 15:00 1_32_694492901.dbf
    -rw-r-----  1 oracle oinstall 47700480 Aug 17 22:00 1_33_694492901.dbf
    -rw-r-----  1 oracle oinstall 47699968 Aug 18 03:01 1_34_694492901.dbf
    -rw-r-----  1 oracle oinstall 47706624 Aug 18 13:00 1_35_694492901.dbf
    -rw-r-----  1 oracle oinstall 49021440 Aug 18 22:00 1_36_694492901.dbf
    -rw-r-----  1 oracle oinstall 47713280 Aug 19 00:56 1_37_694492901.dbf
    -rw-r-----  1 oracle oinstall 47700480 Aug 19 08:01 1_38_694492901.dbf
    -rw-r-----  1 oracle oinstall 47703040 Aug 19 17:35 1_39_694492901.dbf
    -rw-r-----  1 oracle oinstall 47700480 Aug 19 22:00 1_40_694492901.dbf
    -rw-r-----  1 oracle oinstall 47708672 Aug 20 05:00 1_41_694492901.dbf
    This shows that I have files in archive with sequence No 30 and more.

    When I try to record
    SQL> alter database register logfile '/home/oracle/DataBaseBackups/ArchiveDest/1_30_694492901.dbf';
    alter database register logfile '/home/oracle/DataBaseBackups/ArchiveDest/1_30_694492901.dbf'
    *
    ERROR at line 1:
    ORA-16225: Missing LogMiner session name for Streams
    Please suggest what to do.

    Thank you
    Umesh

    The ALTER DATABASE REGISTER LOGFILE in SQLPlus command is implementation ensures and streams.

    You must use the RMAN CATALOG command.

  • Removal of RMAN, Data Guard, and Archives journal

    Our DG Environment running Oracle 11 g R2
    We have a 3 node DG Environment with
    A primary being
    B and C being Active Data Guard Standby
    Backups are taken out of B and go directly to tape.
    Standby Redo Logs and fast recovery area are used



    Holding the recommendation of "Using Recovery Manager with Oracle Data Guard in Oracle Database 10g"
    RMAN primary control ('A')
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED PENDING

    RMAN standby ("B") where the backup is performed
    CONFIGURE THE NONE ARCHIVELOG DELETION POLICY

    RMAN set the other Standby ("C")
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED PENDING

    How can we know what newspaper Archives are eligible to be removed from 'A' and 'C '?
    When remove it takes place?
    How can say us when archiving logs are deleted from the 'A' and 'C '?

    Dear user10260925,

    The documentation that you read is reliable but not enough.

    The Oracle can handle the archivelog directory and know that you are eligible for deletion. Stuff you posted here was derived from the books online and is supported and can be used when the Oracle knows and manages the archivelogs. This is simply called the flash recovery area. Please read the FRA at this very moment.

    Under the personal component normal circumstances in the industry use a few scripts to achieve on backup archivelog deletion.

    Here's a useful example to you;

    # Remove old archivelogs
    ######################################
    00,30 * * * * /home/oracle/scripts/delete_applied_redo_logs_OPTSTBY.sh
    ######################################
    
    vals3:/home/oracle#cat /home/oracle/scripts/delete_applied_redo_logs_OPTSTBY.sh
    export ORACLE_SID=optstby
    export ORACLE_HOME=/oracle/product/10.2.0/db_1
    cd /db/optima/archive/OPTPROD/archivelog
    
    /oracle/product/10.2.0/db_1/bin/sqlplus "/ as sysdba" @delete_applied_redo_logs.sql
    grep arc delete_applied_redo_logs.lst > delete_applied_redo_logs_1.sh
    chmod 755 delete_applied_redo_logs_1.sh
    sh delete_applied_redo_logs_1.sh
    rm delete_applied_redo_logs_1.sh
    rm delete_applied_redo_logs.lst
    
    vals3:/home/oracle#cd /db/optima/archive/OPTPROD/archivelog
    vals3:/db/optima/archive/OPTPROD/archivelog#cat delete_applied_redo_logs.sql
    set echo off
    set heading off
    spool /db/optima/archive/OPTPROD/archivelog/delete_applied_redo_logs.lst
    select 'rm -f ' || name from v$archived_log where applied = 'YES';
    spool off
    exit
    vals3:/db/optima/archive/OPTPROD/archivelog#
    

    Hope that helps.

    Ogan

  • Understanding of database backup RMAN

    Hello
    Previously a TA Guy left me with this code.

    #! / bin/bash - x
    #
    #
    #
    =======================================================================
    ORACLE_SID = IMAGINABLE; export ORACLE_SID
    Log_file=/U03/backup/Oracle/$ORACLE_SID/backup_$ORACLE_SID.log

    Target of $ORACLE_HOME/bin/rman / < < EOF
    JOURNAL of the COIL to $log_file
    SQL 'alter system archive log current;
    SQL 'alter system archive log current;
    BACKUP DATABASE;
    SQL 'alter system archive log current;
    SQL 'alter system archive log current;
    COIL DISCONNECTION;
    quit smoking;
    EXPRESSIONS OF FOLKLORE

    / usr/bin/compress/u03/backup/oracle / $ ORACLE_SID / * backup
    ==============================================

    Its supposed to make a backup, while the DB is a high and open based on the backup of oracle documentation database
    [http://docs.oracle.com/cd/B28359_01/backup.111/b28270/rcmbckba.htm#g1050005 | http://docs.oracle.com/cd/B28359_01/backup.111/b28270/rcmbckba.htm#g1050005]
    Using the Backup Database command, what is backup and what is not? Also, if the next time that the script comes new RMAN will recreate a different physical file to save the dbf, redo log, etc. n of the command file or it will reuse the existing file previously created by RMAN?

    Published by: Joey Tan on 10 June 2012 21:27

    Hello

    Using the Backup Database command, what is backup and what is not? Also, if the next time that the script comes new RMAN will recreate a different physical file to save the dbf, redo log, etc. n of the command file or it will reuse the existing file previously created by RMAN?

    Rman backup data files, the controlfile and the spfile. RMAN backup never backups upward the redo log. Check the show all set of parameters. The backup database command would take full db backup and create new backupsets whenever it is run.

    Anand

  • Problem with the archive log when you use RMAN for backup and restore (11g 2)

    Hello world
    Please help me solve this problem.
    I'm just beginner in Oracle Database (11 g 2). Today, I had a problem, I tried to back up and restore my db by RMAN. I delete all the files in /u01/app/oracle/oradata/orcl / * , then I restore them easily, but the point is I have a table, I can restore Hungarian, but cannot restore anything ranks in it (something wrong with step restore database). I'll tell the detail below.
    -First, I create a 'Day' with command table create table hr.day (varchar (20)) day. Then I backup complete by this:
    run{
    allocate channel bkp device type DISK FORMAT '/u01/backup/DB_FULL_%d_%T_s%s_p%p' ;
    backup as compressed backupset incremental level 0 tag 'DB_FULL' database include current controlfile;
    backup as compressed backupset tag 'ARCL_BKP_FULL' archivelog all delete input;
    crosscheck archivelog all;
    crosscheck backup;
    delete noprompt obsolete;
    release channel bkp;
    }


    D ' other hand, I have insert 'Monday' to table. then do an incremental backup by this:

    run{
    allocate channel bkp device type DISK FORMAT '/u01/backup/DB_INC_%d_%T_s%s_p%p' ;
    backup as compressed backupset incremental level 1 tag 'DB_INC' database include current controlfile;
    backup as compressed backupset tag 'ARCL_BKP_INC' archivelog all delete input;
    crosscheck archivelog all;
    crosscheck backup;
    delete noprompt obsolete;
    release channel bkp;
    }

    Repeat 7 times (Monday-> Saturday). And I got these files:

    [oracle@rac ~]$ ls -l /u01/backup/
    total 400280
    -rw-r----- 1 oracle oinstall  10158080 Jan 20 07:23 c-1428943247-20160120-01
    -rw-r----- 1 oracle oinstall  10158080 Jan 20 08:04 c-1428943247-20160120-02
    -rw-r----- 1 oracle oinstall  10158080 Jan 20 08:05 c-1428943247-20160120-03
    -rw-r----- 1 oracle oinstall  10158080 Jan 20 08:06 c-1428943247-20160120-04
    -rw-r----- 1 oracle oinstall  10158080 Jan 20 08:08 c-1428943247-20160120-05
    -rw-r----- 1 oracle oinstall  10158080 Jan 20 08:08 c-1428943247-20160120-06
    -rw-r----- 1 oracle oinstall  10158080 Jan 20 08:09 c-1428943247-20160120-07
    -rw-r----- 1 oracle oinstall  10158080 Jan 20 08:32 c-1428943247-20160120-08
    -rw-r----- 1 oracle oinstall 296337408 Jan 20 07:23 DB_FULL_ORCL_20160120_s89_p1
    -rw-r----- 1 oracle oinstall   1130496 Jan 20 07:23 DB_FULL_ORCL_20160120_s90_p1
    -rw-r----- 1 oracle oinstall   2266624 Jan 20 07:23 DB_FULL_ORCL_20160120_s91_p1
    -rw-r----- 1 oracle oinstall   4073984 Jan 20 07:23 DB_FULL_ORCL_20160120_s92_p1
    -rw-r----- 1 oracle oinstall  11201536 Jan 20 07:23 DB_FULL_ORCL_20160120_s93_p1
    -rw-r----- 1 oracle oinstall   1130496 Jan 20 08:05 DB_INC_ORCL_20160120_s100_p1
    -rw-r----- 1 oracle oinstall    146944 Jan 20 08:05 DB_INC_ORCL_20160120_s101_p1
    -rw-r----- 1 oracle oinstall    884736 Jan 20 08:06 DB_INC_ORCL_20160120_s103_p1
    -rw-r----- 1 oracle oinstall   1130496 Jan 20 08:06 DB_INC_ORCL_20160120_s104_p1
    -rw-r----- 1 oracle oinstall     82432 Jan 20 08:06 DB_INC_ORCL_20160120_s105_p1
    -rw-r----- 1 oracle oinstall    294912 Jan 20 08:07 DB_INC_ORCL_20160120_s107_p1
    -rw-r----- 1 oracle oinstall   1130496 Jan 20 08:07 DB_INC_ORCL_20160120_s108_p1
    -rw-r----- 1 oracle oinstall     18944 Jan 20 08:08 DB_INC_ORCL_20160120_s109_p1
    -rw-r----- 1 oracle oinstall    155648 Jan 20 08:08 DB_INC_ORCL_20160120_s111_p1
    -rw-r----- 1 oracle oinstall   1130496 Jan 20 08:08 DB_INC_ORCL_20160120_s112_p1
    -rw-r----- 1 oracle oinstall    131584 Jan 20 08:08 DB_INC_ORCL_20160120_s113_p1
    -rw-r----- 1 oracle oinstall    647168 Jan 20 08:09 DB_INC_ORCL_20160120_s115_p1
    -rw-r----- 1 oracle oinstall   1130496 Jan 20 08:09 DB_INC_ORCL_20160120_s116_p1
    -rw-r----- 1 oracle oinstall      8704 Jan 20 08:09 DB_INC_ORCL_20160120_s117_p1
    -rw-r----- 1 oracle oinstall   2203648 Jan 20 08:04 DB_INC_ORCL_20160120_s95_p1
    -rw-r----- 1 oracle oinstall   1130496 Jan 20 08:04 DB_INC_ORCL_20160120_s96_p1
    -rw-r----- 1 oracle oinstall   1899008 Jan 20 08:04 DB_INC_ORCL_20160120_s97_p1
    -rw-r----- 1 oracle oinstall    327680 Jan 20 08:05 DB_INC_ORCL_20160120_s99_p1

    And
    RMAN> list backup summary;
    List of Backups
    ===============
    Key     TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
    ------- -- -- - ----------- --------------- ------- ------- ---------- ---
    80      B  0  A DISK        20-JAN-16       1       1       YES        DB_FULL
    81      B  0  A DISK        20-JAN-16       1       1       YES        DB_FULL
    82      B  A  A DISK        20-JAN-16       1       1       YES        ARCL_BKP_FULL
    83      B  A  A DISK        20-JAN-16       1       1       YES        ARCL_BKP_FULL
    84      B  A  A DISK        20-JAN-16       1       1       YES        ARCL_BKP_FULL
    85      B  F  A DISK        20-JAN-16       1       1       NO         TAG20160120T072332
    86      B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    87      B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    88      B  A  A DISK        20-JAN-16       1       1       YES        ARCL_BKP_INC
    89      B  F  A DISK        20-JAN-16       1       1       NO         TAG20160120T080440
    90      B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    91      B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    92      B  A  A DISK        20-JAN-16       1       1       YES        ARCL_BKP_INC
    93      B  F  A DISK        20-JAN-16       1       1       NO         TAG20160120T080545
    94      B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    95      B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    96      B  A  A DISK        20-JAN-16       1       1       YES        ARCL_BKP_INC
    97      B  F  A DISK        20-JAN-16       1       1       NO         TAG20160120T080657
    98      B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    99      B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    100     B  A  A DISK        20-JAN-16       1       1       YES        ARCL_BKP_INC
    101     B  F  A DISK        20-JAN-16       1       1       NO         TAG20160120T080801
    102     B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    103     B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    104     B  A  A DISK        20-JAN-16       1       1       YES        ARCL_BKP_INC
    105     B  F  A DISK        20-JAN-16       1       1       NO         TAG20160120T080844
    106     B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    107     B  1  A DISK        20-JAN-16       1       1       YES        DB_INC
    108     B  A  A DISK        20-JAN-16       1       1       YES        ARCL_BKP_INC

    My configuration of rman:
    RMAN> show all;
    RMAN configuration parameters for database with db_unique_name ORCL are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u01/backup/%F';
    CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT   '/u01/backup/backup_df%t_s%s_s%p';
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/dbhome/dbs/snapcf_orcl.f'; # default

    - Thirdly, i removed all file in /u01/app/oracle/oradata/orcl/*. then restore control file from the newest backup control file (saturday backup) + restore database. Seem nothing's wrong here.
    RMAN> restore controlfile from '/u01/backup/c-1428943247-20160120-08';
    Starting restore at 20-JAN-16
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=18 device type=DISK
    allocated channel: ORA_DISK_2
    channel ORA_DISK_2: SID=20 device type=DISK
    channel ORA_DISK_2: skipped, AUTOBACKUP already found
    channel ORA_DISK_1: restoring control file
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:09
    output file name=/u01/app/oracle/oradata/orcl/control01.ctl
    output file name=/u01/app/oracle/flash_recovery_area/orcl/control02.ctl
    Finished restore at 20-JAN-16

    RMAN> alter database mount;
    database mounted
    released channel: ORA_DISK_1
    released channel: ORA_DISK_2

    RMAN> restore database;
    Starting restore at 20-JAN-16
    Starting implicit crosscheck backup at 20-JAN-16
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=20 device type=DISK
    allocated channel: ORA_DISK_2
    channel ORA_DISK_2: SID=18 device type=DISK
    Crosschecked 29 objects
    Finished implicit crosscheck backup at 20-JAN-16

    Starting implicit crosscheck copy at 20-JAN-16
    using channel ORA_DISK_1
    using channel ORA_DISK_2
    Finished implicit crosscheck copy at 20-JAN-16

    searching for all files in the recovery area
    cataloging files...
    no files cataloged

    using channel ORA_DISK_1
    using channel ORA_DISK_2

    channel ORA_DISK_1: starting datafile backup set restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    channel ORA_DISK_1: restoring datafile 00001 to /u01/app/oracle/oradata/orcl/system01.dbf
    channel ORA_DISK_1: restoring datafile 00002 to /u01/app/oracle/oradata/orcl/sysaux01.dbf
    channel ORA_DISK_1: restoring datafile 00003 to /u01/app/oracle/oradata/orcl/undotbs01.dbf
    channel ORA_DISK_1: restoring datafile 00004 to /u01/app/oracle/oradata/orcl/users01.dbf
    channel ORA_DISK_1: restoring datafile 00005 to /u01/app/oracle/oradata/orcl/example01.dbf
    channel ORA_DISK_1: reading from backup piece /u01/backup/DB_FULL_ORCL_20160120_s89_p1
    channel ORA_DISK_1: piece handle=/u01/backup/DB_FULL_ORCL_20160120_s89_p1 tag=DB_FULL
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:01:15
    Finished restore at 20-JAN-16

    -Fourth, the problem here, I got the database;
    .. .every oky until this line...
    starting media recovery

    channel ORA_DISK_1: starting archived log restore to default destination
    channel ORA_DISK_1: restoring archived log
    archived log thread=1 sequence=15
    channel ORA_DISK_1: reading from backup piece /u01/backup/DB_INC_ORCL_20160120_s117_p1
    channel ORA_DISK_1: piece handle=/u01/backup/DB_INC_ORCL_20160120_s117_p1 tag=ARCL_BKP_INC
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
    archived log file name=/u01/app/oracle/flash_recovery_area/ORCL/archivelog/2016_01_20/o1_mf_1_15_c9xsyx9k_.arc thread=1 sequence=15
    unable to find archived log
    archived log thread=1 sequence=1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 01/20/2016 08:50:22
    RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 1 and starting SCN of 1205841

    The error said that it is impossible to find the archived log thread = 1 sequence = 1. Then I check it with this command always there (oh, I'm wrong?)
    RMAN> list backup of archivelog all;
    List of Backup Sets
    ===================
    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ ---------------
    82      2.16M      DISK        00:00:00     20-JAN-16     
            BP Key: 82   Status: AVAILABLE  Compressed: YES  Tag: ARCL_BKP_FULL
            Piece Name: /u01/backup/DB_FULL_ORCL_20160120_s91_p1

      List of Archived Logs in backup set 82
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      ---- ------- ---------- --------- ---------- ---------
    1    1       1154833    20-JAN-16 1177422    20-JAN-16

    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ ---------------
    83      3.88M      DISK        00:00:00     20-JAN-16     
            BP Key: 83   Status: AVAILABLE  Compressed: YES  Tag: ARCL_BKP_FULL
            Piece Name: /u01/backup/DB_FULL_ORCL_20160120_s92_p1

      List of Archived Logs in backup set 83
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      ---- ------- ---------- --------- ---------- ---------
    1    1       1162729    20-JAN-16 1188784    20-JAN-16

    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ ---------------
    84      10.68M     DISK        00:00:01     20-JAN-16     
            BP Key: 84   Status: AVAILABLE  Compressed: YES  Tag: ARCL_BKP_FULL
            Piece Name: /u01/backup/DB_FULL_ORCL_20160120_s93_p1

      List of Archived Logs in backup set 84
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      ---- ------- ---------- --------- ---------- ---------
      1    2       1177422    20-JAN-16 1201833    20-JAN-16

    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ ---------------
    88      1.81M      DISK        00:00:01     20-JAN-16     
            BP Key: 88   Status: AVAILABLE  Compressed: YES  Tag: ARCL_BKP_INC
            Piece Name: /u01/backup/DB_INC_ORCL_20160120_s97_p1

      List of Archived Logs in backup set 88
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      ---- ------- ---------- --------- ---------- ---------
      1    3       1201833    20-JAN-16 1204844    20-JAN-16
      1    4       1204844    20-JAN-16 1204893    20-JAN-16
      1    5       1204893    20-JAN-16 1204958    20-JAN-16

    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ ---------------
    92      143.00K    DISK        00:00:00     20-JAN-16     
            BP Key: 92   Status: AVAILABLE  Compressed: YES  Tag: ARCL_BKP_INC
            Piece Name: /u01/backup/DB_INC_ORCL_20160120_s101_p1

      List of Archived Logs in backup set 92
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      ---- ------- ---------- --------- ---------- ---------
      1    6       1204958    20-JAN-16 1205034    20-JAN-16
      1    7       1205034    20-JAN-16 1205253    20-JAN-16

    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ ---------------
    96      80.00K     DISK        00:00:00     20-JAN-16     
            BP Key: 96   Status: AVAILABLE  Compressed: YES  Tag: ARCL_BKP_INC
            Piece Name: /u01/backup/DB_INC_ORCL_20160120_s105_p1

      List of Archived Logs in backup set 96
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      ---- ------- ---------- --------- ---------- ---------
      1    8       1205253    20-JAN-16 1205354    20-JAN-16
      1    9       1205354    20-JAN-16 1205433    20-JAN-16

    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ ---------------
    100     18.00K     DISK        00:00:00     20-JAN-16     
            BP Key: 100   Status: AVAILABLE  Compressed: YES  Tag: ARCL_BKP_INC
            Piece Name: /u01/backup/DB_INC_ORCL_20160120_s109_p1

      List of Archived Logs in backup set 100
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      ---- ------- ---------- --------- ---------- ---------
      1    10      1205433    20-JAN-16 1205519    20-JAN-16
      1    11      1205519    20-JAN-16 1205559    20-JAN-16

    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ ---------------
    104     128.00K    DISK        00:00:00     20-JAN-16     
            BP Key: 104   Status: AVAILABLE  Compressed: YES  Tag: ARCL_BKP_INC
            Piece Name: /u01/backup/DB_INC_ORCL_20160120_s113_p1

      List of Archived Logs in backup set 104
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      ---- ------- ---------- --------- ---------- ---------
      1    12      1205559    20-JAN-16 1205624    20-JAN-16
      1    13      1205624    20-JAN-16 1205739    20-JAN-16

    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ ---------------
    108     8.00K      DISK        00:00:00     20-JAN-16     
            BP Key: 108   Status: AVAILABLE  Compressed: YES  Tag: ARCL_BKP_INC
            Piece Name: /u01/backup/DB_INC_ORCL_20160120_s117_p1

      List of Archived Logs in backup set 108
      Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
      ---- ------- ---------- --------- ---------- ---------
      1    14      1205739    20-JAN-16 1205796    20-JAN-16
      1    15      1205796    20-JAN-16 1205840    20-JAN-16


    If i ignore it and open the database, just my table in full backup come back but rows was not restored. I'm sure the problem is my archive log backup but i don't know how to solve it. Plz help me.

    Sorry for a long post.

    > 1 and from the 1205841 SNA sequence

    The SCN that indicates Oracle is above the range of SNA that you have in the ArchiveLog backups for sequence 1 to 15 (15 sequence ends at 1205840).

    The message

    channel ORA_DISK_1: restoring archives Journal

    Archives journal thread = 1 sequence = 15

    channel ORA_DISK_1: backup/u01/backup/DB_INC_ORCL_20160120_s117_p1 piece reading

    channel ORA_DISK_1: piece handle = / u01/backup/DB_INC_ORCL_20160120_s117_p1 tag = ARCL_BKP_INC

    indicates that he has restored the sequence up to 15

    You can check the log file alert database instance for messages on the fact of recovery.

    He is now asking sequence #1 it seems you did a RESETLOGS after sequence #15.

    Note: If you have NOT issued a COMMIT after the line is INSERTED in the table 'Day', the recovery of the database will have no * transactions * to retrieve.  An uncomitted transaction is cancelled.

    Hemant K Collette

  • RMAN block recovery

    Hello

    I have an Oracle 11 g R2 server and the journal of alerts reported the following

    ORA-01578: ORACLE data block corrupted (file # xx, block # xxx)


    Yes, I didRMAN> validate check logical database;

    And after that on checkingV$ database_block_corruption I found 3 block are corrupt, all 3 are indexes of the index table_space segment_type.


    Please let me know what would be the best way to recover the corrupt blocks

    Will,RMAN> recover corruption list;  repair the block corruption



    Another concern is that the backup of the database doesn't do 'check logical' before doing the backup. Does it mean that the recovery from backup might not work ?


    Thanks

    No, you need to do both.

    The first command handles the bad or blocks

    Best regards

    mseberg

  • RMAN SBT_TAPE BACKUP FAILURE

    Hi all

    I met the following error when backing up the database. The device type is SBT_TAPE. We have replaced the tape media but still error persist.see journal of the errors below:

    RMAN-03009: failure of the backup command on channel t2 to 2015/12/29 07:10:49

    (ORA-19509: impossible de supprimer le fichier sequeIntial, gérer = «diqq0t84_1_1», parms="ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo.opt)".

    ORA-27027: sbtremove2 returned error

    ORA-19511: error received from layer media manager, error text:

    ANS1355E Session (RC55) rejected: off server

    ORA-27191: sbtinfo2 returned the error

    Additional information: 3276

    ORA-19511: error received from layer media manager, error text:

    ORACLE recovery catalog database error: ORA-03113: end of file on communication channel

    Process ID: 13762638

    Session ID: 166 serial number: 18103

    Any ideas.

    Thank you.

    Hello

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-06004: the recovery catalog database ORACLE error: ORA-03113: end of file on communication channel

    Process ID: 7667754

    Session ID: 166 serial number: 18303

    ORACLE recovery catalog database error: ORA-03114: not connected to ORACLE

    Common causes of the error ORA-03114 include:

    • Process of Web server or headset does not work
    • Missing entry in the tnsnames.ora.
    • Network problems.
    • Problems with connection pooling (shared servers, MTS).

    Kind regards

    Katia V.

  • Backup RMAN when FRA is configured

    I configured on a db Flash recovery area 11.2.0.4;  I want RMAN full backup to a different location of FRA.

    I ran the full backup of rman with specified format...

    backup in the database format compressed more archivelog backupset ' / backup/BKPD15/%U';

    I see, some files will FRA and a few other small files are there in /backup/BKPD15 location as well.


    What is the right way to take backup to any location of fra.

    Hello

    1. According to my knowledge, you must use two format, since the format applies to only backup of database archives goes for fra (see demo below)

    Demo:

    SYS@demo1 December 27, 15 > db_rec setting sho

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    db_recovery_file_dest string/u04/temp_data/demo1

    whole large db_recovery_file_dest_size 10G

    db_recycle_cache_size large integer 0

    [oracle@host1 test_backup] $ pwd

    u04 / / test_backup

    [oracle@host1 test_backup] $ ls - tl

    Total 0

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    db_recovery_file_dest string/u04/temp_data/demo1

    whole large db_recovery_file_dest_size 10G

    db_recycle_cache_size large integer 0

    [oracle@host1 test_backup] $ pwd

    u04 / / test_backup

    [oracle@host1 test_backup] $ ls - tl

    Total 0

    RMAN > backup as database format compressed more archivelog backupset ' / u04/test_backup/%U';

    From December 27, 15 backup

    Current archived log

    using channel ORA_DISK_1

    channel ORA_DISK_1: starting compressed archived log backup set

    channel ORA_DISK_1: specifying the newspapers archived in the backup set

    archived journal thread = 1 = 3 sequence entry RECID = STAMP 3 = 899558724

    channel ORA_DISK_1: from room 1 to 27 December 15

    channel ORA_DISK_1: finished piece 1 to December 27, 15

    total, handle = / u04/test_backup/01qpsba4_1_1 tag = TAG20151227T132524 comment = NONE - location no fra

    channel ORA_DISK_1: complete set of backups, time: 00:00:01

    Backup over at December 27, 15

    From December 27, 15 backup

    using channel ORA_DISK_1

    channel ORA_DISK_1: from complete compressed datafile backup set

    channel ORA_DISK_1: specifying datafile (s) in the backup set

    Enter a number of file datafile = 00005 name=/u02/demo1/oradata/demo1/example01.dbf

    Enter a number of file datafile = name=/u02/demo1/oradata/demo1/mssm_tbs.dbf 00002

    Enter a number of file datafile = name=/u02/demo1/oradata/demo1/assm_tbs.dbf 00007

    Enter a number of file datafile = 00001 name=/u02/demo1/oradata/demo1/system01.dbf

    Enter a number of file datafile = name=/u02/demo1/oradata/demo1/sysaux01.dbf 00003

    Enter a number of file datafile = name=/u02/demo1/oradata/demo1/undotbs01.dbf 00004

    Enter a number of file datafile = name=/u02/demo1/oradata/demo1/users01.dbf 00006

    channel ORA_DISK_1: from room 1 to 27 December 15

    channel ORA_DISK_1: finished piece 1 to December 27, 15

    piece handle=/u04/temp_data/demo1/DEMO1/backupset/2015_12_27/o1_mf_nnndf_TAG20151227T132526_c7z6cgf1_.bkp tag = TAG20151227T132526 comment = NONE - fra position control file

    channel ORA_DISK_1: complete set of backups, time: 00:01:05

    channel ORA_DISK_1: from complete compressed datafile backup set

    channel ORA_DISK_1: specifying datafile (s) in the backup set

    including the current control in the backup set file

    including current SPFILE in the backup set

    channel ORA_DISK_1: from room 1 to 27 December 15

    channel ORA_DISK_1: finished piece 1 to December 27, 15

    piece handle=/u04/temp_data/demo1/DEMO1/backupset/2015_12_27/o1_mf_ncsnf_TAG20151227T132526_c7z6fjyk_.bkp tag = TAG20151227T132526 comment = NONE - fra location spfile

    channel ORA_DISK_1: complete set of backups, time: 00:00:02

    Backup over at December 27, 15

    From December 27, 15 backup

    Current archived log

    using channel ORA_DISK_1

    channel ORA_DISK_1: starting compressed archived log backup set

    channel ORA_DISK_1: specifying the newspapers archived in the backup set

    archived journal thread = 1 = 4 sequence entry RECID = STAMP 4 = 899558794

    channel ORA_DISK_1: from room 1 to 27 December 15

    channel ORA_DISK_1: finished piece 1 to December 27, 15

    total, handle = / u04/test_backup/04qpsbca_1_1 tag = TAG20151227T132634 comment = NONE - location no fra

    channel ORA_DISK_1: complete set of backups, time: 00:00:01

    Backup over at December 27, 15

    channel ORA_DISK_1: complete set of backups, time: 00:00:02

    Backup over at December 27, 15

    From December 27, 15 backup

    Current archived log

    using channel ORA_DISK_1

    channel ORA_DISK_1: starting compressed archived log backup set

    channel ORA_DISK_1: specifying the newspapers archived in the backup set

    archived journal thread = 1 = 4 sequence entry RECID = STAMP 4 = 899558794

    channel ORA_DISK_1: from room 1 to 27 December 15

    channel ORA_DISK_1: finished piece 1 to December 27, 15

    total, handle = / u04/test_backup/04qpsbca_1_1 tag = comment TAG20151227T132634 = NONE

    channel ORA_DISK_1: complete set of backups, time: 00:00:01

    Backup over at December 27, 15

    Correct way:

    RMAN > run {}

    2 > allocate channel backup_disk1 type disk;

    3 > backup format COMPRESSED BACKUPSET DATABASE TAG 'DB' ' / u04/test_backup/%U.db'

    4 > format PLUS ARCHIVELOG ' / u04/test_backup/%U.arc';

    {5 >}

    output channel: ORA_DISK_1

    allocated channel: backup_disk1

    channel backup_disk1: SID = 48 type device = DISK

    From December 27, 15 backup

    Current archived log

    channel backup_disk1: compressed boot archived log backup set

    channel backup_disk1: specifying the newspapers archived in the backup set

    archived journal thread = 1 = 3 sequence entry RECID = STAMP 3 = 899558724

    archived journal thread = 1 = 4 sequence entry RECID = STAMP 4 = 899558794

    archived journal entry thread = 1 sequence = RECID 5 = 5 STAMP = 899559573

    channel backup_disk1: from room 1 to 27 December 15

    channel backup_disk1: finished piece 1 to December 27, 15

    piece handle=/u04/test_backup/05qpsc4l_1_1.arc tag = TAG20151227T133933 comment = NONE

    channel backup_disk1: complete set of backups, time: 00:00:01

    Backup over at December 27, 15

    From December 27, 15 backup

    channel backup_disk1: from complete compressed datafile backup set

    channel backup_disk1: specifying datafile (s) in the backup set

    Enter a number of file datafile = 00005 name=/u02/demo1/oradata/demo1/example01.dbf

    Enter a number of file datafile = name=/u02/demo1/oradata/demo1/mssm_tbs.dbf 00002

    Enter a number of file datafile = name=/u02/demo1/oradata/demo1/assm_tbs.dbf 00007

    Enter a number of file datafile = 00001 name=/u02/demo1/oradata/demo1/system01.dbf

    Enter a number of file datafile = name=/u02/demo1/oradata/demo1/sysaux01.dbf 00003

    Enter a number of file datafile = name=/u02/demo1/oradata/demo1/undotbs01.dbf 00004

    Enter a number of file datafile = name=/u02/demo1/oradata/demo1/users01.dbf 00006

    channel backup_disk1: from room 1 to 27 December 15

    channel backup_disk1: finished piece 1 to December 27, 15

    piece handle=/u04/test_backup/06qpsc4m_1_1.db tag = comment DB = NONE

    channel backup_disk1: complete set of backups, time: 00:00:55

    channel backup_disk1: from complete compressed datafile backup set

    channel backup_disk1: specifying datafile (s) in the backup set

    including the current control in the backup set file

    including current SPFILE in the backup set

    channel backup_disk1: from room 1 to 27 December 15

    channel backup_disk1: finished piece 1 to December 27, 15

    piece handle=/u04/test_backup/07qpsc6d_1_1.db tag = comment DB = NONE

    channel backup_disk1: complete set of backups, time: 00:00:01

    Backup over at December 27, 15

    From December 27, 15 backup

    Current archived log

    channel backup_disk1: compressed boot archived log backup set

    channel backup_disk1: specifying the newspapers archived in the backup set

    archived journal entry thread = 1 sequence = RECID 6 = 6 STAMP = 899559632

    channel backup_disk1: from room 1 to 27 December 15

    channel backup_disk1: finished piece 1 to December 27, 15

    piece handle=/u04/test_backup/08qpsc6g_1_1.arc tag = TAG20151227T134032 comment = NONE

    channel backup_disk1: complete set of backups, time: 00:00:01

    Backup over at December 27, 15

    output channel: backup_disk1

    RMAN >

    RMAN > list backupset;

    List of backup sets

    ===================

    Time of accomplishment time BS key size Device Type

    ------- ---------- ----------- ------------ ---------------

    5.89 5 M DISK 00:00:00 DECEMBER 27, 15

    BP key: 5 location: AVAILABLE Tablet: YES Tag: TAG20151227T133933

    Part name: /u04/test_backup/05qpsc4l_1_1.arc

    List of newspapers archived on backup the value 5

    The next time that THRD Seq YVERT low low time next YVERT

    ---- ------- ---------- --------- ---------- ---------

    1 3 2871101 DECEMBER 27, 15 2875107 27 DECEMBER 15

    1 4 2875107 27 DECEMBER 15 2875234 27 DECEMBER 15

    1 5 2875234 27 DECEMBER 15 2875749 27 DECEMBER 15

    Time of accomplishment BS key Type LV size device Type elapsed time

    ------- ---- -- ---------- ----------- ------------ ---------------

    6 integer M DISK 00:00:55 360,54 27 December 15

    BP key: 6 location: AVAILABLE Tablet: YES Tag: DB

    Part name: /u04/test_backup/06qpsc4m_1_1.db

    List of files of backup data the value 6

    Name of file LV Type cash SNA cash time

    ---- -- ---- ---------- --------- ----

    2875757 full 1 /u02/demo1/oradata/demo1/system01.dbf December 27, 15

    2 full 2875757 /u02/demo1/oradata/demo1/mssm_tbs.dbf 27 December 15

    3 full 2875757 /u02/demo1/oradata/demo1/sysaux01.dbf 27 December 15

    4 integer 2875757 /u02/demo1/oradata/demo1/undotbs01.dbf 27 December 15

    5 integer 2875757 /u02/demo1/oradata/demo1/example01.dbf 27 December 15

    6 integer 2875757 /u02/demo1/oradata/demo1/users01.dbf 27 December 15

    7 full 2875757 /u02/demo1/oradata/demo1/assm_tbs.dbf 27 December 15

    Time of accomplishment BS key Type LV size device Type elapsed time

    ------- ---- -- ---------- ----------- ------------ ---------------

    7 full 1.03 M DISK 00:00:02 27 December 15

    BP key: 7 location: AVAILABLE Tablet: YES Tag: DB

    Part name: /u04/test_backup/07qpsc6d_1_1.db

    SPFILE included: Change Date: 27 December 15

    SPFILE db_unique_name: DEMO1

    Control file included: cash SNA: 2875780 cash time: 27 December 15

    Time of accomplishment time BS key size Device Type

    ------- ---------- ----------- ------------ ---------------

    13.50 8 K DISK 00:00:00 DECEMBER 27, 15

    BP key: situation 8: AVAILABLE Tablet: YES Tag: TAG20151227T134032

    Part name: /u04/test_backup/08qpsc6g_1_1.arc

    List of newspapers archived in backup set of 8

    The next time that THRD Seq YVERT low low time next YVERT

    ---- ------- ---------- --------- ---------- ---------

    1 6 2875749 DECEMBER 27, 15 2875786 27 DECEMBER 15

    It may be useful

    -Pavan Kumar N

  • Duplicate RMAN


    I am trying to perform RMAN duplicate in 11.2.0.2, but faced with the below error.

    mounted database

    output channel: ORA_AUX_DISK_1

    allocated channel: ORA_AUX_DISK_1

    channel ORA_AUX_DISK_1: SID = 19 type of device = DISK

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03002: failure of Db in dual at 12:57:28 05/12/2015

    RMAN-05501: abandonment of duplicate target database

    RMAN-05541: no newspaper archived in the database to target

    controlfile restores successfully but, restore fails. Please help me on this.

    Is this the first time you save the target database or do there are backups of the journal of the archives previously taken?

    Can you try ' overlap archivelog all ' on the basis of target data, if any expired archivelog all found, delete them and then try to make a level 0 backup.

    Include archivelogs all well in backup of L0, may not be the case, but you can do a test and then perform the duplication.

    run

    {

    format of database backup incremental level 0 ' / u02/bkp/%d_inc0_%T_%U.bak';

    ARCHIVELOG backup all the format ' / u02/bkp/%d_arc_%T_%U.bak';

    }

    -Jonathan Rolland

Maybe you are looking for