Block Media Recovery and RMAN backup incremental level 1
HelloI read somewhere that block Media Recovery will not work if a database is backed up with 1 incremental rman. Is this true and if so is there a work around?
I can't find it in the documentation of oralce.
Concerning
Me
Hello
Yes you are right, for the recovery block media, you must have full rman backup. Incremental backups are not used by block
media recovery. Only full backups and archived logs are used.
See this doc on part III
http://download-UK.Oracle.com/docs/CD/B19306_01/backup.102/b14191/TOC.htm
concerning
Jafar
Published by: jerome on October 22, 2008 19:51
Tags: Database
Similar Questions
-
RMAN backup incremental level 1 without level 0-10 gr 2
Hello
I'm a bit confused after a few tries.
The issue: It is mandatory to perform incremental level 0 backup before level 1 using Oracle 10 g 2?
On Oracle 11.2 is mandatory, but I don't know about Oracle 10.2.0.5.
11.2 test. If there is no level 0 rman take care on this subject and automatically perform level 0 before level1
Docs said:RMAN> backup incremental level 1 database; Starting backup at 29-APR-11 using channel ORA_DISK_1 no parent backup or copy of datafile 1 found ... channel ORA_DISK_1: starting incremental level 0 datafile backup set channel ORA_DISK_1: specifying datafile(s) in backup set ...
Incremental backups capture only blocks that change between backups in each data file.
In a typical incremental backup strategy, an incremental backup of level 0 is used as a starting point. A level 0 backup captures all the blocks in the data file.
So, on Oracle 10.2.0.5 happens not like 11.2:
Parade level 1 without level 0 backup:
Delete all (except SPFILE) ASM files.RMAN> list backup; RMAN> backup incremental level 1 database; Starting backup at 29-APR-11 using channel ORA_DISK_1 channel ORA_DISK_1: starting incremental level 1 datafile backupset channel ORA_DISK_1: specifying datafile(s) in backupset input datafile fno=00001 name=+DG_ORCL/db10g/datafile/system.260.749756975 ... channel ORA_DISK_1: starting piece 1 at 29-APR-11 channel ORA_DISK_1: finished piece 1 at 29-APR-11 piece handle=+DG_FRA/db10g/backupset/2011_04_29/nnndn1_tag20110429t190340_0.260.749761421 tag=TAG20110429T190340 comment=NONE channel ORA_DISK_1: backup set complete, elapsed time: 00:00:25 channel ORA_DISK_1: starting incremental level 1 datafile backupset channel ORA_DISK_1: specifying datafile(s) in backupset including current control file in backupset including current SPFILE in backupset channel ORA_DISK_1: starting piece 1 at 29-APR-11 channel ORA_DISK_1: finished piece 1 at 29-APR-11 piece handle=+DG_FRA/db10g/backupset/2011_04_29/ncsnn1_tag20110429t190340_0.262.749761449 tag=TAG20110429T190340 comment=NONE channel ORA_DISK_1: backup set complete, elapsed time: 00:00:05 Finished backup at 29-APR-11 RMAN> backup archivelog all delete input; Starting backup at 29-APR-11 current log archived using channel ORA_DISK_1 ... Finished backup at 29-APR-11 RMAN> shutdown abort; Oracle instance shut down
So we will perfom a database restoreASMCMD> cd +DG_ORCL/DB10g ASMCMD> ls PARAMETERFILE/ spfiledb10g.ora
See that I don't need level 0 backup to restore the level 1.oracle@butao:/home/oracle> rman target / Recovery Manager: Release 10.2.0.5.0 - Production on Fri Apr 29 19:06:52 2011 Copyright (c) 1982, 2007, Oracle. All rights reserved. connected to target database (not started) RMAN> startup nomount Oracle instance started Total System Global Area 293601280 bytes Fixed Size 2095872 bytes Variable Size 92275968 bytes Database Buffers 192937984 bytes Redo Buffers 6291456 bytes RMAN> restore controlfile from '+DG_FRA/db10g/backupset/2011_04_29/ncsnn1_tag20110429t190340_0.262.749761449'; Starting restore at 29-APR-11 using channel ORA_DISK_1 channel ORA_DISK_1: restoring control file channel ORA_DISK_1: restore complete, elapsed time: 00:00:05 output filename=+DG_ORCL/db10g/controlfile/current.263.749761699 output filename=+DG_FRA/db10g/controlfile/current.263.749761699 Finished restore at 29-APR-11 RMAN> startup mount database is already started database mounted released channel: ORA_DISK_1 RMAN> restore database; Starting restore at 29-APR-11 Starting implicit crosscheck backup at 29-APR-11 allocated channel: ORA_DISK_1 channel ORA_DISK_1: sid=156 devtype=DISK Crosschecked 1 objects Finished implicit crosscheck backup at 29-APR-11 Starting implicit crosscheck copy at 29-APR-11 using channel ORA_DISK_1 Finished implicit crosscheck copy at 29-APR-11 searching for all files in the recovery area cataloging files... cataloging done List of Cataloged Files ======================= File Name: +dg_fra/DB10G/BACKUPSET/2011_04_29/ncsnn1_TAG20110429T190340_0.262.749761449 File Name: +dg_fra/DB10G/BACKUPSET/2011_04_29/annnf0_TAG20110429T190442_0.264.749761485 using channel ORA_DISK_1 channel ORA_DISK_1: starting datafile backupset restore channel ORA_DISK_1: specifying datafile(s) to restore from backup set restoring datafile 00001 to +DG_ORCL/db10g/datafile/system.260.749756975 restoring datafile 00002 to +DG_ORCL/db10g/datafile/undotbs1.261.749757085 restoring datafile 00003 to +DG_ORCL/db10g/datafile/sysaux.262.749757095 restoring datafile 00004 to +DG_ORCL/db10g/datafile/users.264.749757107 channel ORA_DISK_1: reading from backup piece +DG_FRA/db10g/backupset/2011_04_29/nnndn1_tag20110429t190340_0.260.749761421 channel ORA_DISK_1: restored backup piece 1 piece handle=+DG_FRA/db10g/backupset/2011_04_29/nnndn1_tag20110429t190340_0.260.749761421 tag=TAG20110429T190340 channel ORA_DISK_1: restore complete, elapsed time: 00:00:26 Finished restore at 29-APR-11 RMAN> recover database; Starting recover at 29-APR-11 using channel ORA_DISK_1 starting media recovery archive log thread 1 sequence 27 is already on disk as file +DG_FRA/db10g/onlinelog/group_3.259.749756971 archive log thread 1 sequence 28 is already on disk as file +DG_FRA/db10g/onlinelog/group_1.257.749756963 archive log filename=+DG_FRA/db10g/onlinelog/group_3.259.749756971 thread=1 sequence=27 archive log filename=+DG_FRA/db10g/onlinelog/group_1.257.749756963 thread=1 sequence=28 media recovery complete, elapsed time: 00:00:02 Finished recover at 29-APR-11 RMAN> alter database open resetlogs; database opened RMAN>
Thank you
Levi PereiraLevi,
Please visit: http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/bkup004.htm
If no level 0 backup is available, then the behavior depends on the setting of compatibility mode. If compatibility is > = 10.0.0, copies all blocks changed since the file was created RMAN and stores the results as a level 1 backup. In other words, the CPN at the time the incremental backup is taken is the creation of SCN file. If compatibility<10.0.0, rman="" generates="" a="" level="" 0="" backup="" of="" the="" file="" contents="" at="" the="" time="" of="" the="" backup,="" to="" be="" consistent="" with="" the="" behavior="" in="" previous="">10.0.0,>
Same info is here:
http://www.Pythian.com/news/287/level-1-incremental-backup-in-Oracle-10G/
Concerning
Grosbois
-
headers block (block media recovery with rman)
Hi Im following this tutorial (sound on media with rman block recovery) - im using 11 GR 2 on oel 5.5
http://kamranagayev.WordPress.com/2010/03/18/RMAN-video-tutorial-series-performing-block-media-recovery-with-RMAN/
I created 2 spaces and storage within an array, for example I have a table space called "users02", composed of a data file called "users02.dbf", which currently holds a table called "tbl_test01".
If I query the table to select * from him, he returns the data inside, but when I use the following statement to determine the block header (for the purpose of the tutorial) no row is returned...
can someone help me on hwo I can find the header of the table,... is block - it possible that segment name is different in the name of the table?select header_block from dba_segments where segmemt_name='tbl_test01';
Any help would be appreciated806595 wrote:
Hi Im following this tutorial (sound on media with rman block recovery) - im using 11 GR 2 on oel 5.5I created 2 spaces and storage within an array, for example I have a table space called "users02", composed of a data file called "users02.dbf", which currently holds a table called "tbl_test01".
If I query the table to select * from him, he returns the data inside, but when I use the following statement to determine the block header (for the purpose of the tutorial) no row is returned...
select header_block from dba_segments where segmemt_name='tbl_test01';
can someone help me on hwo I can find the header of the table,... is block - it possible that segment name is different in the name of the table?
Any help would be appreciated
PLS, try:
select header_block from dba_segments where segment_name='TBL_TEST01';
-
Backup incremental level 2,3,4 RMAN.
Hello guys,.
Can someone let me know what is the meaning / usage of incremental backup of level 2,3,4.
Kind regards.
Wikipedia can have an easy to understand the reason for several additional levels:
A backup of level 1 decision Monday would only include changes made since Sunday. A backup of level 2 decision Tuesday would only include changes made since Monday. A backup of level 3 Wednesday would only include changes made since Tuesday. If a level 2 backup taken Thursday, it would include all changes made since Monday because Monday was the most recent level n - 1 backup.
https://en.Wikipedia.org/wiki/Incremental_backup
What is RMAN?
The Oracle documentation refers only to additional 0 year 1. What I understand, RMAN never supported incremental backups multilevel at 3 levels (0-4). Apparently, people often had trouble understanding the logic for levels 3 and 4. RMAN provides the clause 'cascading', which also existed in 9i and is usually an easier to understand the backup strategy. RMAN also provides or has provided an option to perform incremental backups cumulative at level 1 or higher. For simplicity, the la documentation documentation since 10 g mentions only level 0 only a 1 an other levels is deprecated.
BACKUP INCREMENTIELLE from LEVEL 1 (differential by default, changes made since the last level 0 or 1)
BACKUP INCREMENTIELLE LEVEL 1 CUMULATIVE (changes since the last last level 0)
Below some info from http://docs.oracle.com/cd/E11882_01/backup.112/e10643/obs_comm.htm#RCMRF910
RMAN version 10.0.1: levels other than
0
and1
are deprecated.If you make an additional workforce 1 backup, incremental or cumulative, and there is no previous level 0, RMAN automatically performs an incremental backup of level 0. BTW, a full backup is identical to a level 0 incremental backup but excluded a strategy of backup incremental level.
-
Why the format does not work on my backup incremental level 1 the difference?
I use following script to make a backup of difference incremental level 1.
------------------------------
Run {}
allocate channels ch1 disc type;
Set order id "Monday_INC_1_df";
backup as compressed backupset database incremental level 1
format ' / opt/oracle/rman/bk/incr1_df_%d_%U'
tag "Monday_INC_1_df".
database more entered archivelog delete;
output channel ch1.
}
-------------------------------According to this scenario, all the rman output files are placed in "/ opt/oracle/rman/bk / '... And his label is 'Monday_INC_1_df'.
But at the bottom of the newspaper, I find the archived log rman output files located in "/ opt/oracle/flash_recovery_area/TEST/backupset/2014_12_02 / '. And his label is "TAG20141202T210529".
Also, at the bottom of the newspaper, the output data files rman files was partly on the right path "/ opt/oracle/rman/bk / '. And it seems that the data files has been supported for 2 times. The second time datafile rman output files was badly located in the path "/ opt/oracle/flash_recovery_area/TEST/backupset/2014_12_02 / '. And his label is "TAG20141202T215627".
================================================ Detail Log ===================================================================================
channel ch1: compressed boot archived log backup set
channel ch1: specifying the newspapers archived in the backup set
archived journal entry thread = 1 sequence = 36706 RECID = 2773 STAMP = 865282473
archived journal entry thread = 1 sequence = 36707 RECID = 2774 STAMP = 865282476
archived journal entry thread = 1 sequence = 36708 RECID = 2775 STAMP = 865282478
archived journal entry thread = 1 sequence = 36709 RECID = 2776 STAMP = 865282482
archived journal thread = 1 sequence = 36710 entry RECID = STAMP 2777 = 865282486
archived journal entry thread = 1 sequence = 36711 RECID = 2778 STAMP = 865285528
channel ch1: starting piece 1 at 2014-12-02 21:56:20
channel ch1: finished piece 1 at 2014-12-02 21:56:27
piece handle=/opt/oracle/flash_recovery_area/TEST/backupset/2014_12_02/o1_mf_annnn_TAG20141202T210529_b7vk8408_.bkp tag = TAG20141202T210529 comment = NONE
channel ch1: complete set of backups, time: 00:00:07
channel ch1: archived deletion or newspapers
name=/opt/oracle/flash_recovery_area/TEST/archivelog/2014_12_02/o1_mf_1_36706_b7vc98xc_.arc RECID archived log file = 2773 STAMP = 865282473
name=/opt/oracle/flash_recovery_area/TEST/archivelog/2014_12_02/o1_mf_1_36707_b7vc9cz7_.arc RECID archived log file = 2774 STAMP = 865282476
name=/opt/oracle/flash_recovery_area/TEST/archivelog/2014_12_02/o1_mf_1_36708_b7vc9gn1_.arc RECID archived log file = 2775 STAMP = 865282478
name=/opt/oracle/flash_recovery_area/TEST/archivelog/2014_12_02/o1_mf_1_36709_b7vc9l3f_.arc RECID archived log file = 2776 STAMP = 865282482
RECID = STAMP 2777 = 865282486 name=/opt/oracle/flash_recovery_area/TEST/archivelog/2014_12_02/o1_mf_1_36710_b7vc9plj_.arc archived log file
name=/opt/oracle/flash_recovery_area/TEST/archivelog/2014_12_02/o1_mf_1_36711_b7vg8qz5_.arc RECID archived log file = 2778 STAMP = 865285528
A backup over the 2014-12-02 21:56:27
From backup 2014-12-02 21:56:27
channel ch1: from compressed data file backup set incremental level 1
channel ch1: specification-datafile in the backup set (s)
Enter a number of file datafile = name=/opt/oracle/oradata/test/undotbs01.dbf 00003
Enter a number of file datafile = 00005 name=/opt/oracle/oradata/test/hp01.dbf
Enter a number of file datafile = name=/opt/oracle/oradata/test/cmtspace01.dbf 00035
Enter a number of file datafile = name=/opt/oracle/oradata/test/sysaux01.dbf 00002
Enter a number of file datafile = 00001 name=/opt/oracle/oradata/test/system01.dbf
Enter a number of file datafile = name=/opt/oracle/oradata/test/users01.dbf 00004
channel ch1: starting piece 1 at 2014-12-02 21:56:28
channel ch1: finished piece 1 at 2014-12-02 23:48:06
piece handle tag = / opt/oracle/rman/bk/incr1_df_TEST_1gpp6gcc_1_1 MONDAY_INC_1_DF = comment = NONE
channel ch1: complete set of backups, time: 01:51:38
channel ch1: from compressed data file backup set incremental level 1
channel ch1: specification-datafile in the backup set (s)
Enter a number of file datafile = name=/opt/oracle/oradata/test/undotbs01.dbf 00003
Enter a number of file datafile = 00005 name=/opt/oracle/oradata/test/hp01.dbf
Enter a number of file datafile = name=/opt/oracle/oradata/test/cmtspace01.dbf 00035
Enter a number of file datafile = name=/opt/oracle/oradata/test/sysaux01.dbf 00002
Enter a number of file datafile = 00001 name=/opt/oracle/oradata/test/system01.dbf
Enter a number of file datafile = name=/opt/oracle/oradata/test/users01.dbf 00004
channel ch1: starting piece 1 at 2014-12-02 23:48:07
channel ch1: finished piece 1 at 2014-12-03 01:17:22
piece handle=/opt/oracle/flash_recovery_area/TEST/backupset/2014_12_02/o1_mf_nnnd1_TAG20141202T215627_b7vqsq8y_.bkp tag = TAG20141202T215627 comment = NONE
channel ch1: complete set of backups, time: 01:29:15
A backup over the 2014-12-03 01:17:22From backup 2014-12-03 01:17:23
Current archived log
channel ch1: compressed boot archived log backup set
channel ch1: specifying the newspapers archived in the backup set
archived journal entry thread = 1 sequence = 36712 RECID = 2779 STAMP = 865288890
archived journal entry thread = 1 sequence = 36713 RECID = 2780 STAMP = 865288965
archived journal entry thread = 1 sequence = 36714 RECID = 2781 STAMP = 865288971
channel ch1: starting piece 1 at 2014-12-03 01:17:24
channel ch1: finished piece 1 at 2014-12-03 01:17:49
piece handle=/opt/oracle/flash_recovery_area/TEST/backupset/2014_12_03/o1_mf_annnn_TAG20141203T011723_b7vx145d_.bkp tag = TAG20141203T011723 comment = NONE
channel ch1: complete set of backups, time: 00:00:25
channel ch1: archived deletion or newspapers
name=/opt/oracle/flash_recovery_area/TEST/archivelog/2014_12_02/o1_mf_1_36712_b7vkkts7_.arc RECID archived log file = 2779 STAMP = 865288890
name=/opt/oracle/flash_recovery_area/TEST/archivelog/2014_12_02/o1_mf_1_36713_b7vkn5v0_.arc RECID archived log file = 2780 STAMP = 865288965
name=/opt/oracle/flash_recovery_area/TEST/archivelog/2014_12_02/o1_mf_1_36714_b7vkncv2_.arc RECID archived log file = 2781 STAMP = 865288971=============================================================================================================
When I here is the backup incremental level 0, everything seems good.----------------------------------
Run {}
allocate channels ch1 disc type;
Set order id "Sunday_INC_0";
backup incremental level 0 compressed backupset
format ' / opt/oracle/rman/bk/incr0_%d_%U'
tag "Sunday_INC_0".
database more entered archivelog delete;
output channel ch1.
}
--------------------------------But why my backup of difference in level 1 increntmental would not have good correct rman output path?
You have specified the keyword 'database' twice in the backup command. If execution is in the specified format, the second with the default format (to the FRA)
Hemant K Collette
-
Implications of losing the directory ArchivedLogs and RMAN backup.
DB version: 10 gr 2
We have a database of test that is important, since this is a pre-production DB used by the application for the final test team.
Currently this DB is not in Archivelog mode. Every night a cron job runs to create the dump of datapump expdp of patterns in this PB.
We want to test the RMAN backups online in this PB. So, let's put this db in ARCHIVELOG mode for a week.
The RMAN backup items will be stored in c++ / u03/data1/orabkp + and archived logs will be stored in c++ / u04 / directory ach_logs +.
We want to know the impact of/u04/ach_logs, the directory of archived newspapers getting accidentally deleted. I know that the accidental removal of the RMAN backup directory should not affect the normal operation of the database. But we want to know if the accidental deletion of archive redo logs directory will affect the DB.
Published by: user10633418 on 25 Sep, 2009 02:53NO, it will not affect the database. If you delete the files of the database archive logs will work normally. But you restore your database to the point in time. For recovery, you need your full backup of all data files + archivelogs online redo log files.
For a policy of backup of a production database where you won't lose any transaction that you must book your archive saves files of rman backup.
Concerning
Asif Kabir -
VMware CBT (tracking changes block): ctk files and multiple backup systems?
Hello
We have 2 datarecovery running backups of the SAME virtual machines, but on the other day.
Later, we will have a dedicated backup solution, so we will use only 1 VDR + external backup system.
The external backup system use CBT too.
Now my question is: how CBT done when several backup systems require "that is the last blocks changed since the last backup?
I mean if I run Sunday, on the same VDR2, VMs and VDR1 Saturday to VDR2 always have only the changed blocks from Saturday to Sunday and the blocks changed the week lack? !!!
Could someone provide me a technique explaining the depth of the CBT mechanism?
Thank you
Yes, once a block is modified the corresponding location in the mapping file is labeled with the new changeID.
André
-
Corruption problem of block in alert and rman/dbv No. display errors
Hello, I am new in Oracle world. I have a problem with Oracle 10.2.0.4 (RHEL 5.6) x 64. Select the redo-log archives
In the alert.log, three days ago show (server a kernel panic & rebooted):
Sat Sep 24 18:18:17 2012
A hexadecimal dump (file 17, block 669888) in trace file xxxxxxxxxx.trc
Corrupt block relative s/n: 0x044a38c0 (17, block 669888 file)
Bad checks the value found in the read buffer
Bad block data:
type: 6 format: 2 rdba: 0x044a38c0
last change the SNA: 0x0000.14eb5309 seq: 0 x 1 flg: 0x04
spare1: 0 x 0 spare2: 0 x 0 spare3: 0x0
consistency in tail value: 0 x 53090601
check the value in the block header: 0x6ea3
checksum calculated block: 0x2
Reread the rdba: 0x044a38c0 (17, block 669888 file) found the same corrupted data
Sat Sep 24 18:18:19 2012
Found corrupt block
TSN = 23, TSNAME IS TABLE_TSD1
RFN = 17, BLK IS 669888, RDBA = 71973056
OBJN = 86908 OBJD = 86908, OBJECT = SYS_C0040110, SUBOBJECT =
SEGMENT OWNER = SCHEMA1, SEGMENT TYPE = Index Segment
Yesterday, we detected this error because SQL do not run.
The error repeat 47times and there are 6 different files-block combination (4 index of schemas, tables sys and ¡2 1!)
First of all, I launched expdp and exp of a problematic figure. Exports were fine, no error when you export, but in the alert.log don't show a block corruption. He exp and experienced display error and stop?
Then, I used dbv and check all dbfs. Display only the 2 error of blocks in two data files (index).
Then, I have used RMAN:
(A) database check: no error.
(B) validate the database: error in two blocks (logical error) and different from the 6 in the alert.log. The two blocks are clues.
I re - create the two index. When I re - create, the block error disappear (not immediate, assume that disappear when the block was rewriting). Now, dbv and rman show no errors.
I read a note on the types of errors, the other on procedures if db is in archivelog/noarchivelog. Also if the object is a table or index. But I find nothing corrupt self-repair blocks in Oracle or why now the 6 block error are resolved. I don't know if the two tables with two block corrupt lines lost or not.
Appreciate any help.
ConcerningTry this:
ANALYZE TABLE table_name VALIDATE STRUCTURE;
and
ANALYZE THE INDEX... VALIDATE THE STRUCTURE;Second option:
http://docs.Oracle.com/CD/B19306_01/server.102/b14231/repair.htmPublished by: Fran on 27-sep-2012 05:55
-
Hi, all.
I get the following error messages when executing a level 0 backup. Please help!
====================================================================================================
RMAN-03009: failure of the backup command on the channel of d1 at 2008-11-17 01:08:34
ORA-19502: write error on file ' / NEW_backups/backups/admin/CCPROD/bkups/CCPROD.5313.1.670986008.DB ', blockno 82945 (blocksize = 8192)
ORA-27072: IO file error
Linux-x86_64 error: 5: input/output error
RMAN-03009: failure of the backup command on the channel of d2 at 2008-11-17 01:08:34
ORA-19502: write error on file ' / NEW_backups/backups/admin/CCPROD/bkups/CCPROD.5314.1.670986008.DB ', blockno 84609 (blocksize = 8192)
ORA-27072: IO file error
Linux-x86_64 error: 5: input/output error
Additional information: 4
Additional information: 84609
Additional information:-1
D2 disabled channel, job failed on it will run on another channel
output channel: d1
output channel: d2
output channel: d3
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03009: failure of the backup command on the channel of d3 to 2008-11-17 01:08:34
ORA-19502: write error on file ' / NEW_backups/backups/admin/CCPROD/bkups/CCPROD.5315.1.670986008.DB ', blockno 98433 (blocksize = 8192)
ORA-27072: IO file error
Linux-x86_64 error: 5: input/output error
Additional information: 4
Additional information: 98433
Additional information:-1Since this is a clerical error, I look at the permissions on the target directory and available disk space on the target file system.
-
We have a 2 camera database Oracle Enterprise Linux version 11204 node.
Please can you advice as to why my RMAN backup, ongoing assessment of the default value, so as ive defined the location of backup as below?
RMAN > show channel;
RMAN settings for database with db_unique_name GEOHUBPR are:
CONFIGURE CHANNEL DEVICE TYPE DISK CONNECT 1 ' *';
CONFIGURE THE CHANNEL 2 DEVICE TYPE DISK CONNECT ' *';
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT ' / mnt/san/odanfs/rman_backup/%D_%U.bak';
run
{
SAVE as COMPRESSED BACKUPSET TAG 'geohubpr_L0_db' SIZE EXTRA 0 DATABASE;
BACKUP to COMPRESSED BACKUPSET TAG 'geohubpr_L0_arc' ARCHIVELOG ALL NOT SAVED;
}
Kind regards
There is a syntax error, you must add the word "database":
RMAN > backup incremental level 1 CUMULATIVE as Tablet backupset TAG 'geohubpr_L1_db' format ' / mnt/san/odanfs/rman_backup/%D_%U.bak' DATABASE;
Also include the archives in your backup
Concerning
-
Block the recovery logs and flashback media (11g)
Are flashback logs required to block media recovery? Or are they just a nice-to-have?
According to the documentation online,
http://download.Oracle.com/docs/CD/E11882_01/backup.112/e10642/rcmblock.htm#BRADV89785
•Flashback database must be enabled on the target for RMAN search database logs the flashback of good copies of the corrupt blocks. If flashback logging is enabled and contains no corrupted corrupt blocks older versions, RMAN can use these blocks, possibly to speed recovery.
But, for me, is not clearly say that block media recovery cannot be performed without flashback logs.The documentation is certainly confusion, but flashback logs are not required to block media recovery. With 11g, flashback database is enabled, then Oracle can actually use the flashback logs to potentially speed recovery.
-
How to restore the Rman incremental level 0 backup if the SID is different?
Hi Experts,
I had a little problem with restore rman backup of level 0. I have backup rman for oracle 11.2.0.1.0 - 64 bit and restore the server to Test 11.2.0.1.0 - 64 bit.
Problem:
Sid = prd production server
Sid = prderp test server
Operating system is Oracle linux 5 on both servers.
How to restore Rman if the SID is different?Hello
Refer to this http://shivanandarao.wordpress.com/2012/04/19/duplicating-primary-database-to-a-new-host-without-connecting-to-the-primary-database-in-oracle-10g11g/
You need to restore it under the same name as you have in the production and later change the dbname using the NEST.
If you don't want to go with this method, then I suggest you to go with the method of double RMAN.
http://www.Oracle-base.com/articles/11g/duplicate-database-using-RMAN-11gr2.php
http://docs.Oracle.com/CD/B28359_01/backup.111/b28270/rcmdupdb.htmrman target sys/
@prod auxiliary sys/ @tst RMAN>duplicate target database to 'prderp' nofilenamecheck; Please close this Re: how to restore the Rman backup if the SID is different? wire by marking as replied.
-
RMAN backup and restore into Production KEEPS RAC and DATA
Hi gurus of the Oracle
We need the expert advice for tune and cross check the RMAN Script for Production environment below below
Please suggest any corrections or comments on below mention scripts which will be executed on RAC and Production DATA GUARD environment
LINUX RHEL 5.5 64-bit
ORACLE GRID Infrastructure R2 Version 11.2.0.3.0 (we use ASM Cluster File system)
ORACLE11g R2 Version 11.2.0.3.0
We planned for basically rman backup drive using control file target instead of recovery catalog database
We will have Data Guard Setup between 2 remote sites of database and two remote sites have running the local 2-node RAC database
=========================RMAN_Full_Backup.sh=========================================================================
#! / bin/bash
. /Home/orarac/.bash_profile
logloc = 'date' + rman_backup_lvl0_orcldb_ %m %y hour %M %S %d ".log
# Start rman backup
Target of $ORACLE_HOME/bin/rman = / log = / backup/RMAN_Log / $logloc < < EOF
run
{
allocate channels ch1 type disk maxpiecesize = 1024 M;
allocate channel ch2 type disk maxpiecesize = 1024M;
database backup incremental level 0 FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_DATAFILE_LVL0_%D_%M_%Y'
include current controlfile
tag 'datafile_full ';
}
run
{
allocate channels ch1 type disk maxpiecesize = 1024 M;
allocate channel ch2 type disk maxpiecesize = 1024M;
overlap archivelog all;
SQL 'alter system archive log current';
backup ARCHIVELOG all delete them all input FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_ARCHIVELOG_%D_%M_%Y'
tag 'archivelog_full ';
}
cross-checking of backup;
delete noprompt obsolete;
Save the list of database;
EXIT;
EXPRESSIONS OF FOLKLORE
==================================================================================================
=========================================RMAN_Inc_Backup.sh ===========================================
#! / bin/bash
. /Home/orarac/.bash_profile
logloc = 'date' + rman_backup_lvl1_orcldb_ %m %y hour %M %S %d ".log
# Start rman backup
# use only the following line if this script is run via the root CRON
Target of $ORACLE_HOME/bin/rman = / log = / backup/RMAN_Log / $logloc < < EOF
Run {}
allocate channels ch1 type disk maxpiecesize = 1024 M;
allocate channel ch2 type disk maxpiecesize = 1024M;
database backup incremental level 1 FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_DATAFILE_LVL1_%D_%M_%Y'
include current controlfile
tag 'datafile_Incr ';
}
Run {}
allocate channels ch1 type disk maxpiecesize = 1024 M;
allocate channel ch2 type disk maxpiecesize = 1024M;
overlap archivelog all;
SQL 'alter system archive log current';
backup ARCHIVELOG all delete them all input FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_ARCHIVELOG_%D_%M_%Y'
tag 'archivelog_full ';
}
cross-checking of backup;
delete noprompt obsolete;
backup from the list;
EXIT;
EXPRESSIONS OF FOLKLORE
-bash - $3.2
====================================================================================================
===================================RMAN_DB_Restore.sh====================================================
-bash-3, $ 2 cat /home/orarac/RMAN_Scripts/RMAN_DB_Restore.sh
#! / bin/bash
. /Home/orarac/.bash_profile
logloc = 'date' + rman_restore_orcldb_ %m %y hour %M %S %d ".log
# use only the following line if this script is run via the root CRON
Target of $ORACLE_HOME/bin/rman = / log = / backup/RMAN_Log / $logloc < < EOF
Run {}
BOOTABLE MEDIA FORCE;
RESTORE THE DATABASE;
RECOVER THE DATABASE;
ALTER DATABASE OPEN;
}
EXIT;
EXPRESSIONS OF FOLKLORE
====================================================================================================
Concerning
HitgonThank you mseberg
This command is the full backup or a backup of level 0?
full backup as compressed backupset
data include current controlfile more archivelog deletion entry;We use command below for the full backup of database.
database backup incremental level 0 FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_DATAFILE_LVL0_%D_%M_%Y'
include current controlfile
tag 'datafile_full ';We use the command below to the increment backup
database backup incremental level 1 FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_DATAFILE_LVL1_%D_%M_%Y'
include current controlfile
tag 'datafile_Incr ';What is the different when we use
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;or
full backup as backupset compressed database include controlfile current more archivelog delete all input;
Concerning
Hitgon -
tape backup fail with RMAN-03002 RMAN-20201 and RMAN-06010
Hello
My level 0 backup failed over the weekend and I don't understand why. I know I have four data corruption with files, so I put the MAXCORRUPT to 5 for these specific files so the continuous backup to work. This script has completed successfully in the past, and the structure of the database has not changed since the last backup of level 0 has been taken using this script. Here's what I see in my log file that displays the RMAN script, I used to run the backup and the following error messages:
Recovery Manager: Release 10.2.0.1.0 - Production on Sat Apr 18 00:05:24 2009
RMAN > Connect target *.
2 > run {}
3 > allocate channel oem_sbt_backup1 type 'SBT_TAPE' format 'SDE_L0_ % %%U s_ t_ ";
4 > allocate channel oem_sbt_backup2 type 'SBT_TAPE' format 'SDE_L0_ % %%U s_ t_ ";
5 > the file VALUE of DATA MAXCORRUPT for 112,28,61,43 to 5;
6 > database backup incremental level 0 filesperset 1;
7 > archivelog backup all the format "%%U t_ SDE_ARCLOG_" remove entry;
8 > delete noprompt obsolete recovery window 14 days device type 'SBT_TAPE ';
9 > output channel oem_sbt_backup1;
10 > output channel oem_sbt_backup2;
11 > assign the channel oem_disk_backup1 type disc format ' / u01/app/oracle/controlfilebackups/cf_SDE_%t_%s_%U';
12 > backup current controlfile;
13 > output channel oem_disk_backup1;
{14 >}
15 >
connected to target database: MYDATABASENAME (DBID = <>#)
using the control file of the target instead of recovery catalog database
allocated channel: oem_sbt_backup1
channel oem_sbt_backup1: sid = 108 devtype = SBT_TAPE
channel oem_sbt_backup1: NMO v5.0.0.0
command sent on channel: oem_sbt_backup1
allocated channel: oem_sbt_backup2
channel oem_sbt_backup2: sid = 159 devtype = SBT_TAPE
channel oem_sbt_backup2: NMO v5.0.0.0
command sent on channel: oem_sbt_backup2
executing command: SET MAX CORRUPT
output channel: oem_sbt_backup1
output channel: oem_sbt_backup2
RMAN-00571: ======================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ======================================================
RMAN-03002: failure of the command set to 18/04/2009 00:05:36
RMAN-20201: datafile not found in the recovery catalog
RMAN-06010: error while looking upward of datafile: 112DataFile 112 exist?
See the notes 197932.1 on MOS.
-
Design question about backups and RMAN
I am pretty green with RMAN and need happen to a backup process that fits within my environment who are:
(1) disc can hold the PLUS 1 full backup and the value of the day of archive logs
(2) tape can hold up to 30 days of archive logs and backup complete for the whole duration so
(3) our tape backup solution don't play nice with RMAN so the method we use is THAT RMAN writes to disk and our copies of backup tape from a location on the tape drive.
What I want to do is trick recovery catalog thinking 30 days ago or more games of backup to disk, while having only a day on the drive actually. Is this a smart move, or can I keep the catalog of recovery in harmony with what is on the disk (so keep backups on disk only in the catalog) and if I need to come back in 2 days or more in the past, re-Catalog backup sets restored a strip (if that is even possible)?
Thank you
JohnCJohnRun wrote:
I am pretty green with RMAN and need happen to a backup process that fits within my environment who are:(1) disc can hold the PLUS 1 full backup and the value of the day of archive logs
(2) tape can hold up to 30 days of archive logs and backup complete for the whole duration so
(3) our tape backup solution don't play nice with RMAN so the method we use is THAT RMAN writes to disk and our copies of backup tape from a location on the tape drive.I also have a similar setup at my end taking the RMAN backups on drives and back up tapes. But in my case, I supported the RETENTION POLICY to REDUNDANCY 2. So full backup which is more than 2 copies is removed.
What I want to do is trick recovery catalog thinking 30 days ago or more games of backup to disk, while having only a day on the drive actually. Is this a smart move, or can I keep the catalog of recovery in harmony with what is on the disk (so keep backups on disk only in the catalog) and if I need to come back in 2 days or more in the past, re-Catalog backup sets restored a strip (if that is even possible)?
In your case, as you said, you have 2 options:
1. simply delete the backups on disks (as they were already saved to tapes) and a full backup. Here, you will not run an OVERLAP as well as no. invalidate the old backups in the catalogue, or recovery2. maintain RESTRAINT POLICY to REDUNDANCY 1, whereby your recovery catalog has accurate status on the backup information. In this case, you must keep the AUTOMATIC backup with your full backups in the bands. If you lose you will have troubles recoveing the backup of this day.
In my opinion the 2nd option is preferable, although you have to recataloguer to use it. I tested how recovery with this situation on my blog at: http://oracleendeavor.blogspot.com/2010/02/disaster-recovery-using-rman-backups.html
HTH
Kind regards
Z.K.
http://oracleendeavor.blogspot.com/
Maybe you are looking for
-
How to stop firefox to go to a URL more flat on when you type a URL and press ENTER.
When you open a new tab and start typing a url to visit, if your mouse is positioned on the proposed results when you press on enter, instead of firefox, go to the url you typed, it goes to the url that the mouse was hovering above. Is there a way to
-
"Your bootable USB key could not be created there is not enough space available on the disk.
I am trying to install a partition of Windows 7 with an ISO on a flash drive with Boot Camp Assistant. Everytime I try it however, I get the error "your bootable USB key could not be created there is not enough space available on the disk. The flash
-
Need help please. Graph of my computer is "stretched".
Hello everyone, I don't know exactly what I did but I am having the problem of my computer graphics "stretched" on (example: If a circle is now an oval) and do not know how to correct the situation. Would be eternally grateful to anyone who could hel
-
Yahoo Messenger cannot display option to REACH ROOM
My yahoo Messenger has not been able to view the full option... I was not able to join the chat room. Please help me
-
Since the last update, my list entry LUTS has 8 choices instead of the 30 more. I've always used 3 SLG and now he is gone? I use Windows 10 FYI