backup RMAN with damaged block

Hello

First-, I have problem on non-production 11.2.0.1.0 database, so I'm not deeply concerned about data. But I need to understand what happened with database backups and how to prevent these things in the future.
So - I have backup complete regular weekly EM and daily incremental backups. Later, he had problem with equipment and some blocks corrupted database found. The weekly backup ran without error and obsolete backups have been removed. Now, it is not possible to 'retrieve the list of corruption' because there is no backup without the corruption (RMAN-06023: no backup or copy of the data file 6 found to restore). I'm not worried about the loss of data, but I need to know how is the backup contains the corrupt blocks.

I checked the data file using utility dbv
DBVERIFY - Verification starting : FILE = /opt/oracle/oradata/orcl/users03.dbf

DBV-00200: Block, DBA 27525766, already marked corrupt
csc(0x0001.7b01729f) higher than block scn(0x0000.00000000)
Page 2359942 failed with check code 6054


DBVERIFY - Verification complete

Total Pages Examined         : 3840000
Total Pages Processed (Data) : 453896
Total Pages Failing   (Data) : 1
Total Pages Processed (Index): 2959104
Total Pages Failing   (Index): 0
Total Pages Processed (Other): 424025
Total Pages Processed (Seg)  : 0
Total Pages Failing   (Seg)  : 0
Total Pages Empty            : 2975
Total Pages Marked Corrupt   : 1
Total Pages Influx           : 0
Total Pages Encrypted        : 0
Highest block SCN            : 2156227446 (1.2156227446)
As you can see the data file 6 - user03.dbf contains errors. Also the backups now contain errors.

(1) so how is it possible that the scheduled backup EM took place without problems and now the backup contains corrupted blocks. How to avoid this in the future? I know there is MAXCORRUPT setting. How can I check its current value? How can I configure using backups EM on-demand?

(2) Secondly, at the same time, I studied the RMAN commands. So I have suspended the work of backup EM and run follwing command. And backup represented without error. How is this possible, if the data in the file users06.dbf is corrupted block?


Thank you!
RMAN> run {
 set MAXCORRUPT for datafile 6 to 0;
 backup as compressed backupset datafile 6;
 }
2> 3> 4>
executing command: SET MAX CORRUPT

Starting backup at 07-NOV-12
using channel ORA_DISK_1
using channel ORA_DISK_2
using channel ORA_DISK_3
using channel ORA_DISK_4
using channel ORA_DISK_5
channel ORA_DISK_1: starting compressed full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00006 name=/opt/oracle/oradata/orcl/users03.dbf
channel ORA_DISK_1: starting piece 1 at 07-NOV-12
channel ORA_DISK_1: finished piece 1 at 07-NOV-12
piece handle=/opt/oraBackup/rman/nrnpo0sg_1_1 tag=TAG20121107T200120 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 01:13:05
Finished backup at 07-NOV-12

Starting Control File and SPFILE Autobackup at 07-NOV-12
piece handle=/opt/oraBackup/rman/c-1253245572-20121107-03 comment=NONE
Finished Control File and SPFILE Autobackup at 07-NOV-12

OK, sounds good, do not hesitate to open a TAR because bedbugs are not all public...

Keep us in the loop.

Good bye.

Tags: Database

Similar Questions

  • Logical backup RMAN containing unused blocks

    Dear Experts

    When I backup logic to the data file of the utility, RMAN that warn that this will be also saved all the unused blocks of datafile, so what I need to do, how to avoid this unused block to be backed up while you are taking a logical backup of data files.

    System in detail as follows

    HP Itanium server
    OS - Linux Redhet 5
    DB - Oracle10g

    Suggest me urgent.

    Ikram,

    No I did not lack the full result. I noticed these lines, but I don't know which are the most recent. So I took the high ones.

    For these lines, we must say that the data blocks have been used when the backup took. Maybe you populated tables with the lines of the sample and then deleted?

    I changed the query to display backups the last 3 days:

    SELECT
    (SELECT NAME FROM V$DATAFILE WHERE FILE#=V$BACKUP_DATAFILE.FILE#) DFNAME,
    DATAFILE_BLOCKS, BLOCKS,
    DATAFILE_BLOCKS - BLOCKS DIFF,
    COMPLETION_TIME
    FROM V$BACKUP_DATAFILE WHERE COMPLETION_TIME > SYSDATE - 3
    ORDER BY COMPLETION_TIME, DFNAME;
    

    Could you run this query again?

    Best regards

    Gokhan Atil

    -------------------------------------------------------
    If you answer this question, please mark appropriate as correct/useful messages and the thread as closed. Thank you

  • Database backup RMAN with Veritas NetBackup catalog

    Hello

    How can I use Veritas NetBackup to backup my database of catalog RMAN? I need to stop this catalog DB in order to save it. How can I plan with NetBackup?

    Thanks in advance.

    qtpham

    Hello

    Normally, the catalog database backup is currently off cause is very small database and may remain unavailable for a few minutes. In my company, we use netbackup.
    Try to schedule an offline backup of the database via the Netbackup graphical interface, it will generate RMAN scripts bpstart_notify. YOUR_POLICY_NAME and bpend_notify. YOUR_POLICY_NAME under/usr/openv/netbackup/bin/if you use SOLARIS.

    Kind regards

    Rodrigo Mufalani
    http://mufalani.blogspot.com

  • backup rman design database with phsical ensures

    Hello

    12 c database, after physical expectation is created, I need backup rman configuration,

    The goal is: a) backup of database b) remove archivelogs that have been backed up, free up space FRA.

    Design as below:

    1:

    in RMAN (primary and standby):
    RMAN >
    Configure controlfile autobackup on;
    set the type of backup device type disk compressed backupset;
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY;


    2: primary school:
    RMAN > CONFIGURE RETENTION POLICY to the 5 DAY RECOVERY WINDOW;

    3: in priamry, turn on track changes to block

    4: primary, implemented since rman level 0 (full backup) on Sunday.

    5: in the primary, the installation program rman level 1 backup from Monday to Saturday.

    6: primary, set up since rman "save archive backup delete them all obsolete" every hour;

    questions here:

    1. as in step 5, for the protection of the o and delete archivelog, the script using:

    Run {}
    allocate channel d1 type disk;
    SQL 'alter system archive log current';
    overlap archivelog all;
    backup AS COMPRESSED BACKUPSET archivelog all delete them all input;
    output channel d1;
    }

    I wonder if ' archivelog all delete all entries "will delete archivelog which was not taken on the eve of the database and broken standby database

    (hanging and out-of-sync with primary)... it is a concern, is that possible?

    2. If the primary database crashed, failover to standby mode, then restore/recovery primary, switch back to the primary, this design is just? If you have any good suggestions, please let me know.

    (to put it simply, I don't want to full/incremental backup to install standby, primary server CPU is good enough)

    Thank you very much!

    A few brief notes worth a visit:

    Based on Oracle 11 g Data Guard for the backup database and restore

    http://www.databasejournal.com/features/Oracle/article.php/3830766/leveraging-Oracle-11g-Data-Guard-for-database-backup-and-recovery.htm

    Standby database using RMAN

    http://Arup.blogspot.com/2007/07/standby-database-using-RMAN.html

    Best regards

    mseberg

  • Only the unused blocks backup RMAN as well?

    DB version: 11.2.0.4

    OS: RHEL 6.6

    If I remember correctly, RMAN backs up only used blocks. I created a tablespace of 20 GB, as shown below. When I backed up, the backup piece is only 4MB in size, as shown below.

    SQL > create tablespace TEST_TS3 datafile '+ DATA_DG' size 20 G

    autoextend on

    MaxSize 32767 m

    Local extended management

    single 4 M size

    Auto segment space management;

    Created tablespace.

    SQL >

    SQL > select tablespace_name, bytes/1024/1024 of dba_Data_Files where nom_tablespace = 'TEST_TS3 ';

    BYTES/1024/1024 NOM_TABLESPACE

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

    TEST_TS3 20480

    Backup tablespace TEST_TS3 that is not used by all segments (empty)

    RMAN > backup tablespace TEST_TS3 format='/u05/RMAN_BKP/TBS_%U_%T.rmbk' tag = TEST_TS3_BKP;

    From 18 February 16 backup

    using the control file of the target instead of recovery catalog database

    allocated channel: ORA_DISK_1

    channel ORA_DISK_1: SID = 4941 instance = HMAGPRD2 = DISK device type

    channel ORA_DISK_1: starting full datafile from backup set

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

    Enter a number of file datafile = name=+DATA_DG/hmagprd2/datafile/test_ts3.413.904152141 00144

    channel ORA_DISK_1: starting piece 1-18 February 16

    channel ORA_DISK_1: finished piece 1-18 February 16

    piece handle=/u05/RMAN_BKP/TBS_03qu8hg2_1_1_20160218.rmbk tag = TEST_TS3_BKP comment = NONE

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

    Backup finished on 18 February 16

    $

    $ ls - lh /u05/RMAN_BKP/TBS_03qu8hg2_1_1_20160218.rmbk

    -rw - r - 1 oracle oinstall 4.1 M 18 Feb 17:29 /u05/RMAN_BKP/TBS_03qu8hg2_1_1_20160218.rmbk

    But in the world of real output, size of the RMAN backups seems to be much higher.

    The following production DB is 27.5 terabytes in size as evidenced by the physical layer (DBA_DATA_FILES. Column of BYTES)

    SQL > select sum(bytes/1024/1024/1024) bytesGB from dba_Data_Files;

    BYTESGB

    ----------

    27885.3252

    But at the level of the logic layer, the used space is only 16.5 TB as evidenced by DBA_EXTENTS. BYTES column

    SQL > select sum(bytes/1024/1024/1024) bytesGB from dba_extents.

    BYTESGB

    ----------

    16621.316

    But the size of RMAN backup came to 20 terabytes , become almost 4TB that space consumed at the level of the logical layer (DBA_EXTENTS. BYTES).

    Why is this?

    RMAN jump blocks that have never been used. If a block has been used in the past, it will be included in the same backup if currently is not used:

    https://docs.Oracle.com/CD/B28359_01/backup.111/b28270/rcmcncpt.htm

    Compression for backup sets

    When you back up the data files of backup sets, RMAN can use unused block compression to skip blocks of data file. RMAN always ignores blocks that have never been used. Under certain conditions, which are listed in the BACKUP AS BACKUPSET entry in reference Oracle database backup and recovery, RMAN also ignores the blocks that are not currently used. Data file backup sets are generally smaller than copies of data file and take less time to write. Compression of the unused block is fundamental to how RMAN writes files of data in backup items and cannot be disabled.

  • backup rman Exadata with zfs

    Our company has recently decided to start backup rman ZFS instead of regular tape backup.

    I would like to know what is the right measures to check if ITS configured right device of ZFS, the implementation of rman backups, etc.

    I'd appreciate someone here can point me to the right document.  I read ZFS Q and A and backup using ZFS best practices. All very unclear and seems none of them provide a digital step step.

    I wonder if Oracle provides an instruction step by step for the DBA.

    9233598-

    Q documents & you examined include the "Oracle ZFS storage pool: FAQ: Exadata RMAN backup with Oracle ZFS Storage Appliance (Doc ID 1354980.1)" Note? This note has a lot of information and is updated regularly and includes information about configuring ZFS and RMAN backups to the device of ZFS.

    Some useful books of whites, an I have used in the past and has been updated again last year: Oracle Exadata with the Sun ZFS Storage Appliance protection: best practices in Configuration and backup and recovery Performance and best practices using Sun ZFS Storage Appliance with Oracle Exadata Database Machine

    These documents will in many details - including providing examples of scripts.

    HTH.

    Thank you

    Kasey

  • RMAN backup error; already saved 1 time, backup finished with errors

    Hi DBAs,

    I get error below after each backup to the production DB (Oracle 10.2.0.5)

    skip the log file archive + DATA_FRA/zeus/archivelog/2014_06_23/thread_1_seq_25321.3279.850962321; already saved 1 time

    skip the log file archive + DATA_FRA/zeus/archivelog/2014_06_23/thread_1_seq_25322.3265.850962439; already saved 1 time

    skip the log file archive + DATA_FRA/zeus/archivelog/2014_06_23/thread_1_seq_25323.3194.850963433; already saved 1 time

    skip the log file archive + DATA_FRA/zeus/archivelog/2014_06_23/thread_1_seq_25324.3206.850963501; already saved 1 time

    ...

    ..

    ..

    .

    Complete recovery manager.

    List of backup completed successfully

    = Thu Jun 26 07:38:33 IST completed 2014 list backups - complete set =.

    = Finished Thu Jun 26 07:38:33 IST 2014 =.

    Backup completed with errors

    A way to avoid this error daily and a way to remove the already saved up to archive newspapers 1 time?

    Kind regards

    Ritu

    This is not an error but an informational message.  The error comes from RMAN or one of your scripts?

    Are there other RMAN - or ORA-errors in your log file?

    Check your backup optimization, which can be turned on in which case it will not backup the archivelog again.

    You can use one of the two commands to remove the archivelogs that have been backed up.

    backup archivelog all not backed up delete input;
    delete archivelog all backed up 1 times to device type sbt;
    
  • case of disaster with backup rman and archivelogs

    Salvation;

    When the disk failure comes and drop everything on disks, if we have a cold backup and logs archiving ONLY after a cold backup up to disk failure, we can restore files (datafiles, controlfile and everything) and apply to these cold backup archive logs and make the database updated up to the failure of disks.

    I had this case in real life, and it works.


    but

    What happens if you don't have backup rman online that was taken before the failure of disk instead of cold backup and archive logs that was created after the backup online up to the failure of the drive.


    We can restore the online of rman backup files, but can we apply archive logs to these restored files to update the database to the disk failure?



    Best regards

    Use the SET clause UNTIL - for example the VALUE up to TIME - before running the command RECOVER the DATABASE.

    See http://docs.oracle.com/cd/E11882_01/backup.112/e10643/rcmsubcl019.htm#i1000331

    and example 4-38 on the same page.

    Hemant K Collette

  • The user managed based backup Rman backup cold cold vs

    Hi all

    I just want to know the advantages and disadvantages for backup managed user cold and cold backup Rman.

    What is the best cold backup?

    Some some can help me?

    Thank you

    Cedric Joshi

    Hello

    Both are good only... If you took the clod backup (managed by the user), you can also do with RMAN catalog.

    I feel clod RMAN backup is good.

    Reason:

    ======

    ++ with RMAN you can avoid used used block, you can only backup used blocks

    ++ RMAN has its own compression algorithm

    ++ We also have the ability to assign multiple channels to parallelize the backup

  • How to enable tracking changes with pfile block

    Hello

    I want to use enable followed the change block (for fast incremental backup RMAN). kindly advice how can I use this setting using pfile.


    Thank you
    Krishna

    Has nothing to do with the pfile. Just issue the sqlplus command:

    alter database enable block change tracking;
    
  • 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

  • Help remove backups rman (delete the repository)

    Hi all.

    I will soon be administering a few databases Oracle (11g Rel2). Currently these DBs area in log mode archive with a backup rman in place policy.


    I don't like this policy and you want to use my own, incremental backups from updadateable, so this is the plan I have in mind.


    (1) disable mode archive.


    (2) a clean shutdown and take a backup to cold.


    (3) since after you disable archiving, backups RMAN ALL will be unusable, I want to remove them (including newspapers archive and backup sets).


    (4) after the correct deletion, set up some persistent RMAN settings, such as retention policy, controlfile autobackup and optimization.


    (5) turn on archiving


    (6) to set up the new policy based backups backup incremental updateable with duplex location for archiving logs.


    Help is requested on the best way to clean all the backups (3).


    I can manually delete the backups and do overlap, but according to the Oracle Documentation "Delete backup" will be delete all backups for data recorded in the RMAN Repository.


    So which is the best way easier and faster? Will delete backup include the archive logs?


    Thanks in advance. Luis!


    myluism wrote:

    Can I still use them?

    I would say it is "the wrong answer to evil. When you disable log mode archive, you can only back up the database when it is stopped and only to restore and recover the database until the last stop.

    Looking at your plan, I wonder what you are trying to accomplish first log mode archive disabling and then enabling archive mode log again. Why do you think that this is necessary and what you're trying to accomplish.

    You need not disable and enable log mode archive in order to eliminate the obsolete achivelogs.

    If you are not satisfied with the retention policy, simply change it. All backups that are outside your retention policy will be considered as obsolete and you can remove them using RMAN delete obsolete, which will remove all files as well as the appropriate data backup from the RMAN Repository.

    For example you can archivelog delete all the entries backup and then delete the backupset or remove them at the OS level, do overlap and then use delete noprompt expired archivelog all.

    The retention policy applies to backup and archivelogs. However, you can have a separate archivelog deletion policy that applies to archivelogs.

  • Do not lock - automate the deletion of backups RMAN old day after a success

    Hi all

    Admin: Do not lock this thread. I moved here the database instance based on the suggestion of another Member, and the question to this forum. If you want to lock a thread, lock one in the forum of the database, not this one.

    I am looking for a way to automate the deletion of backups RMAN old days only after the occurrence of a success. At the present time, I have daily backups of L0 via crontab, and I need to create a script that can tell if a successful backup is done, then delete the old L0 if it has. Any suggestions on how to start? I'm stuck in code to see if a successful backup has been performed.

    Oracle 11.2.0.3

    Exadata (4 nodes)

    Linux 5.10

    * a from database forum

    A backup is completed when the backup command is complete.

    You have two 'blocks execution' in your rman script.

    Put the DELETE OBSOLETE between the end of the last execution block and EXIT:

    OUTPUT CHANNEL fs1b;
    OUTPUT CHANNEL fs2b;
    OUTPUT CHANNEL fs3b;
    CHANNEL fs4b;
    CHANNEL fs5b;
    CHANNEL fs6b;
    CHANNEL fs7b;
    CHANNEL fs8b;

    }

    remove the backup noprompt obsolete;
    "exit";

    You also want to do some other household:

    cross-checking of backup;

    delete expired backup noprompt.

    overlap archivelog all;

    delete noprompt expired archivelog all;

  • Error log Archive backup and backup completed with errors.

    Hello

    My prod DB Backup finished with errors indicating the error below.

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

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

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

    RMAN-03009: failure of the backup command on channel ch01 to 09:24:07 08/05/2014

    ORA-19588: stamp journal archived recid 907826104 161391 is no longer valid

    Any help?

    See doc ID: Doc ID 1189883.1

  • Restoring a backup RMAN to a new instance of the database

    Hi guys,.

    I have a problem with restoring a backup RMAN I have with me a new instance of the database. I have with me are:

    1. backup of the SPFile. (O1_MF_NCNNF_CTLFILE_BU_92DVGYO2_. BKP)

    2. backup of the control file (O1_MF_NNSNF_SPFILE_BU_92DVGW9H_. BKP)

    3. the full backup (O1_MF_NNSNF_FULLPROD_BU_92DVGW9H_. BKP)

    I received these files to a client environment and I need to restore these to a new instance of the database on a local computer. I gave an attempt as follows (in Oracle 10 g):

    1, creates a new instance of the (Test75) database using the Oracle Database Configuration Assistant

    2 SET ORACLE_SID = Test75

    3 connection to this instance with RMAN

    4 tried to restore the SPFILE from the BKP file received.


    I make mistakes and cannot continue. I don't know if I will carry out the correct steps. Please help me telling me how I should achieve this goal.


    Thank you.

    1. backup of the SPFile. (O1_MF_NCNNF_CTLFILE_BU_92DVGYO2_. BKP)

    2 backup of control file (O1_MF_NNSNF_SPFILE_BU_92DVGW9H_. BKP)

    The first backuppiece resembles a ControlFile and the other looks like a SPFILE'

    > I get error and cannot continue

    What is the error?  (I assume that you have tried to restore the O1_MF_NNSNF_SPFILE_BU_92DVGW9H_ SPFILE. BKP

    Note that you must also SET the DBID before restoring the controlfile

    Hemant K Collette

Maybe you are looking for