Rman backup with a missing archivelog.

hello,
I backed my database up yesterday after you guys helped me fix few problems I had on it. I used RMAN with the following command in a run block:
*run {*
allocate channel t1 type disk;
backup current controlfile ;
backup database;
backup archivelog all delete input;
release channel c1;
At the end of the operation, RMAN indicates that and archivelog is missing and it couldn't find it. As a result, recover operation can be compromised. Now am confused because I do not know whether the command executed successfully or not and how to fix the missing archivelog.
Below is the entire output of the operation along with error message:
canal affectÚ : t1
canal t1 : sid=131 typedev=DISK
DÚmarrage de backup dans 16/04/09
canal t1 : dÚmarrage de l'ensemble de sauvegarde de tous les fichiers de donnÚes
canal t1 : insertion du fichier de donnÚes dans l'ensemble de sauvegarde
insertion du fichier de contr¶le en cours dans l'ensemble de sauvegarde
canal t1 : dÚmarrage de l'ÚlÚment 1 dans 16/04/09
canal t1 : ÚlÚment 1 terminÚ dans 16/04/09
pointeur=+ASMTEST/meta4/backupset/2009_04_16/ncnnf0_tag20090416t211049_0.334.684
*364257 Útiquette=TAG20090416T211049 commentaire=NONE*
canal t1 : ensemble de sauvegarde terminÚ, temps ÚcoulÚ : 00:00:14
Fin de backup dans 16/04/09
DÚmarrage de backup dans 16/04/09
canal t1 : dÚmarrage de l'ensemble de sauvegarde de tous les fichiers de donnÚes
canal t1 : insertion du fichier de donnÚes dans l'ensemble de sauvegarde
fichier de donnÚes en entrÚe fno=00008 nom=+ASMTEST/meta4/m4prod.dbf
fichier de donnÚes en entrÚe fno=00010 nom=H:\ORADATA\M4REC.DBF
fichier de donnÚes en entrÚe fno=00009 nom=E:\DATAFILEMETA4\M4PROD02.DBF
fichier de donnÚes en entrÚe fno=00001 nom=+ASMTEST/meta4/system01.dbf
fichier de donnÚes en entrÚe fno=00003 nom=+ASMTEST/meta4/sysaux01.dbf
fichier de donnÚes en entrÚe fno=00006 nom=C:\TEST.DBF
fichier de donnÚes en entrÚe fno=00007 nom=+ASMTEST/meta4/meta4.dbf
fichier de donnÚes en entrÚe fno=00005 nom=+ASMTEST/meta4/example01.dbf
fichier de donnÚes en entrÚe fno=00002 nom=+ASMTEST/meta4/undotbs01.dbf
fichier de donnÚes en entrÚe fno=00004 nom=+ASMTEST/meta4/users01.dbf
canal t1 : dÚmarrage de l'ÚlÚment 1 dans 16/04/09
canal t1 : ÚlÚment 1 terminÚ dans 16/04/09
pointeur=+ASMTEST/meta4/backupset/2009_04_16/nnndf0_tag20090416t211107_0.333.684
*364271 Útiquette=TAG20090416T211107 commentaire=NONE*
canal t1 : ensemble de sauvegarde terminÚ, temps ÚcoulÚ : 00:51:10
canal t1 : dÚmarrage de l'ensemble de sauvegarde de tous les fichiers de donnÚes
canal t1 : insertion du fichier de donnÚes dans l'ensemble de sauvegarde
insertion du fichier de contr¶le en cours dans l'ensemble de sauvegarde
inclusion du SPFILE en cours dans l'ensemble de sauvegarde
canal t1 : dÚmarrage de l'ÚlÚment 1 dans 16/04/09
canal t1 : ÚlÚment 1 terminÚ dans 16/04/09
pointeur=+ASMTEST/meta4/backupset/2009_04_16/ncsnf0_tag20090416t211107_0.345.684
*367351 Útiquette=TAG20090416T211107 commentaire=NONE*
canal t1 : ensemble de sauvegarde terminÚ, temps ÚcoulÚ : 00:00:26
Fin de backup dans 16/04/09
DÚmarrage de backup dans 16/04/09
journal en cours archivÚ
canal libÚrÚ : t1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: Úchec de la commande backup Ó 04/16/2009 22:04:03
RMAN-06059: journal d'archivage attendu introuvable ; la perte du journal d'arch
ivage compromet la possibilitÚ de rÚcupÚration
ORA-19625: erreur lors de l'identification du fichier H:\ARCHIVEMETA4\ARC00001_0
*682674928.001*
ORA-27041: ouverture du fichier impossible
OSD-04002: ouverture impossible du fichier
O/S-Error: (OS 2) Le fichier spÚcifiÚ est introuvable.
Here's my nderstanding and please correct me if am wrong:
The first 3 instructions of the run block executed successfully, but
the last one didn't. Is that so?
Whatever the understanding, do I have a backup? WHat can I do to have a consistent backup?
Thanks in advance.

Adomi,
It is sad to see you are still running RMAN in 8i fashion where you are on 10g.
The script is bs, sorry
run {
allocate channel t1 type disk; -- not required
backup current controlfile ; -- not required, as this is already done by backup database
backup database;
backup archivelog all delete input;
release channel c1; -- not required.
If you have controlfile autobackup on, you could just
backup database plus archivelog
and be done with it.
As you didn't make a RMAN backup from the start, your backup archivelog statement should have read
backup archivelog all skip inaccessible delete input;
Once that succeeds Oracle shouldn't need the archivelog anymore, and you should make a second backup without the skip inaccessible clause.
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • Rman backup with  standby database

    Hi All,
    I am looking for some suggestions for rman backup with standby  database with datagaurd but no active DG. I wanted to do a rman tablespace backup. but I am stuck at  sql 'alter system archive log current' in rman  with standby as target. which gives following errors  with or without noswitch clause
    RMAN> sql 'alter system archive log current noswitch';
    sql statement: alter system archive log current noswitch
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of sql command on default channel at 10/05/2013 18:15:12
    RMAN-11003: failure during parse/execution of SQL statement: alter system archive log current noswitch
    ORA-01109: database not open
    Recovery Manager: Release 11.2.0.1.0
    Oracle databaes  Release 11.2.0.1.0 64 bit
    OS:RHEL 6 x86-64 bit
    Secondly, do I need to cancel manged recovery while taking rman backups on standby.
    I scanned thru MOS but could find solutions for rman with active DG.
    Thanks in advance

    726d07e6-b870-431f-8c22-a499c3ec4e0c wrote:
    Hi All,
    I am looking for some suggestions for rman backup with standby  database with datagaurd but no active DG. I wanted to do a rman tablespace backup. but I am stuck at  sql 'alter system archive log current' in rman  with standby as target. which gives following errors  with or without noswitch clause
    RMAN> sql 'alter system archive log current noswitch';
    sql statement: alter system archive log current noswitch
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of sql command on default channel at 10/05/2013 18:15:12
    RMAN-11003: failure during parse/execution of SQL statement: alter system archive log current noswitch
    ORA-01109: database not open
    Recovery Manager: Release 11.2.0.1.0
    Oracle databaes  Release 11.2.0.1.0 64 bit
    OS:RHEL 6 x86-64 bit
    Secondly, do I need to cancel manged recovery while taking rman backups on standby.
    I scanned thru MOS but could find solutions for rman with active DG.
    Thanks in advance
    "I scanned thru MOS but could find solutions for rman with active DG."
    Howto make a consistent RMAN backup in an Standby database in Active DataGuard mode (Doc ID 1419923.1)

  • RMAN backup with archivelogs.

    Dear all,
    Can i delete all archivels after the RMAN backup. Why do we backup archivelogs with RMAN backup. I think it is useless.
    Please can somebody explane this.
    Regards
    upul indika

    Why do we backup archivelogs with RMAN backup. I
    think it is useless. You think backing up archivelogs is useless ? Did you ever recover a database ? Did you ever simulate a disaster recovery ? If yes, how did you do it ? If not, then you should have a look at the documentation
    Anyway, you can (or even you should) delete archivelogs after the RMAN backup.

  • Rman backup with archivelog from tape

    Hi,
    We are doing a level 0 backup on sunday and then level1 backup on all the weekdays.
    The archive logs generated are 1GB each and are more in number.
    IF we include archivelog in level1 backup , its taking around 12hrs to complete.
    So we are thinking of not including the archivelog in level 1 backup,but then we can daily move the archive logs to another location .
    So archivelogs will not be in the rman backup.
    So in case of restore, how can we apply the archive logs required? rman will not identify the archive logs...how can we manually apply the required archive logs
    Please help

    Information about ArchiveLogs is available in the controlfile as I outlined in my response post in the thread How to find out which archived logs needed to recover a hot backup?
    However, if your CONTROLFILE_RECORD_KEEP_TIME is 7 days and you are attempting a restore of a backup 14 days or 28 days or 35 days old ... you may be out of luck.
    You'd need to maintain a listing of ArchiveLogs in some manner (e.g. a log file outside the database that you periodically update with information about ArchiveLogs).
    It is much better to also backup the ArchiveLogs using RMAN. Don't forget to ensure that controlfile backups or autobackups are also taken and retained.
    Hemant K Chitale

  • Setting up rman backups - am I missing something?

    I have inherited an oracle 10g database on Windows and I need to set up RMAN backups. I am going through the steps and I think I am still missing something.
    I am trying to put the database in archivelog mode and it gives me this error:
    ORA-01126: database must be mounted in this instance and not open in any instance
    So I try to mount the database (alter database mount;) and it says:
    ORA-01100: database already mounted
    So I figure someone else has it open so I shut it down (shutdown immediate), which works fine, but when I try to restart it (startup mount;) it tells me:
    ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't exist
    So I try to log into a new session and it tells me:
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    The only way I can find to restart it is to restart the service OracleServiceDATABASENAME. When it is restarted, it lets me log in, but then I get the same errors as above when I try to mount the database or put it in archivelog mode.
    Please let me know what I am missing.
    Thanks!

    Over Windows, database service has a vital role in the management of the database. Without it being started, you can't do anything with oracle db. Fro your error,
    >
    ORA-24324:
    service handle not initialized
    Cause:     An attempt was made to use an improper service context handle.
    Action:     Verify that the service context handle has all the parameters initialized prior to this call.>
    It may be possible that you have used an inappropriate service name to start teh database. The other error comes up when the datbase is either just started or is unaware about teh name being requested by teh client to get connected, due to wrong name being chosen or an unknown name being chosen.
    All this basically means that you may have either done typos or tried to start some service which was never there. The best way is to set Oracle sid using
    set oracle_sid=<your sid>And then do what ever you want to.
    HTH
    Aman....

  • RMAN Backups with retention policy to redundancy 1 doesn't work fine.

    Hi experts,
    I have a Oracle database with the following system backups:
    Monday:       ArchiveLog Backup
    Tuesday:      Full Backup
    Wednesday:  ArchiveLog Backup
    Thursday:     ArchiveLog Backup
    Friday :         Full Backup
    Saturday:      ArchiveLog Backup
    Sunday:       ArchiveLog Backup
    ArchiveLog Backup = backup tag  'ARCHIVELOG_BACKUP' device type disk archivelog all not backed up delete all input;
    Full Backup = backup tag 'FULL_BACKUP'  device type disk database skip readonly  plus archivelog tag 'FULL_BACKUP_ARCHIVELOGS';
                         crosscheck backup;
                         crosscheck copy;
                         delete noprompt obsolete;    
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 8;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    What this system has done until last two weeks? For example:
    Tuesday :     Full Backup
    Wednesday:  ArchiveLog Backup
    Thursday:     ArchiveLog Backup
    Friday :         Full Backup - > After that, Full backup from Tuesday and ArchiveLog backups from Wed, and Thurs, are deleted. (Thanks to Retention policy) .
    What this system do now?
    Tuesday :     Full Backup
    Wednesday:  ArchiveLog Backup
    Thursday:     ArchiveLog Backup
    Friday :         Full Backup - > After that, Full backup from Tuesday are deleted but not ArchiveLog backups from Wed, and Thurs.
    When I execute a crosscheck on RMAN return that all are AVAILABLE.
    My question is: What is right? The system backups before or after?
    Thanks for your help!

    You are confused about the purpose of crosscheck.
    There are two concepts for which you must grasp the distinction.
    - Expired
    - Obsolete
    Expired
    When an archive log is written, or rman makes a backup, a record of that archivelog or backupset is written to the repository in the control file.
    Crosscheck simply checks the existence of the archivelogs or backupsets that are recorded in the repository.  If something went missing (say, if you used an OS command to delete archivelogs), the record of the missing file is marked as 'expired'.  If you follow the crosscheck command with a 'delete expired' command, the repository records that have been marked 'expired' are deleted from the repository, so rman has no more memory of those files.  Note that 'expired' has nothing to do with retention policy.  Also note that if you do not actually issue the 'delete expired' command, the expired records will remain in the repository. 
    Obsolete
    The retention policy deals with when a backupset is obsolete, meaning it is no longer needed to protect the retention period.  Backupset are not marked as obsolete.  They are evaluated for obsolescence at the time of a command that needs it -- "report obsolete" or "delete obsolete", or when FRA maintenance requires an implied 'delete obsolete'.

  • RMAN backup with smallest backup size

    Oralce 11g2 on Redhat 5. The diskspace is our tightest resource, and we want to an incremental backup with level0 on Sunday and level 1 every week days and Saturday. I am to use the comamnds to do the job--Sunday
    backup incremental level 0 tag 'level_0' database plus archivelog;
    --Other days
    backup incremental level 1 database plus archivelog delete all input;I do not think this is the best practice nor produce smallest backup files.
    What are you comments and opinions. Thanks

    Pavan, Thank you for reply. Here are the info requested
    what is size of DB ??
    ~250GB, including UNDO and TEMP. It is a dev database and not very big. But we have total 800GB disk space. After setting some housekeeoing folders, and allow some space for data growth, it leaves 180GB for flash_recovery_area.
    what would be max size of archive logs generated per day ??
    Variable from less than 1 GB to 12 GB
    Are you taking backups to tape or Disk ??
    Disk. In the 180GB flash_recovery_area, Current backup size is 152GB. If a backup fails to delete obsolete files, the next backup will fill the flash_recovery_area.
    Provide the Rman configuration information ??
    RMAN> show all;
    RMAN configuration parameters for database with db_unique_name TDEV2 are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%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 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_1/dbs/snapcf_tdev2.f'; # default

  • Regarding RMAN backup and recovery using archivelogs during cloning process

    Hi there,
    We are running 9i database (RAC) in archivelog mode.We are in the process of cloning DEVELOPMENT database using our PRODUCTION database.
    For this we planned to take RMAN backup by keeping the production database in MOUNT stage.
    In this regard, will it be possible to make use of archivelogs generated during and after this backup (in mount stage), after some days during recovery time, if it asks for recovery after cloning process.
    Thanks,
    Balu.

    Hi Alok,
    why there is a need for standby here? you mean to say standby db?
    what i exactly need is , whether i will be making use of archivelogs which are all archived during that backup period (in mount stage) after some days, if i face any problem with the PRODUCTION Database..

  • Create a database from 32bit rman backup with NEW name on a 64bit system

    Hello,
    i'm more programmer than database admin but i need to set up a 10gR2 apex development server based on our productive instance in a short time.
    For that i want to use a rman backup of the productive machine (SLES 10 32bit, DB10GR2+ASM, APEX 3.1).
    Because of the less time i got, i want to use an existing machine (SLES 11 64bit, DB10GR2+ASM) as destination.
    On this machine i want to create a new instance from the backup i took. I Already read note 881395.1 but i'm quite unsure about 2 things
    a) It's VERY IMPORTANT that the development instance has another name than the productive instance.
    When i follow 881395.1 and set the enviromental variable ORACLE_SID to another new name. Will this be all? Or will there be problems using another SID because of references in the controlfile or sth. like that?
    b) It's VERY IMPORTANT that the datafiles aren't stored in the same path and with the same names as the productive instance. It is another server but there is already a copy of the database (our dba tried to set up a standby solution on this machine) and i don't want to bother this!
    How can i rename the datafiles before restoring the backup from scatch?
    I found this: set newname for datafile 1 to '<filesystem based filename>';
    Will this help? Do i need to rename every single file? Or is it possible to set a path in which all datafiles will be restored?
    c) What about the 32bit to 64 bit thing? Will this work? Or do i need to convert the database? How? RMAN Convert?
    Or could RMAN convert anyhow used to realize the whole thing?
    Thank you very much for your support!
    Regards
    Daniel

    Hello,
    i'm more programmer than database admin but i need to set up a 10gR2 apex development server based on our productive instance in a short time.
    For that i want to use a rman backup of the productive machine (SLES 10 32bit, DB10GR2+ASM, APEX 3.1).
    Because of the less time i got, i want to use an existing machine (SLES 11 64bit, DB10GR2+ASM) as destination.
    On this machine i want to create a new instance from the backup i took. I Already read note 881395.1 but i'm quite unsure about 2 things
    a) It's VERY IMPORTANT that the development instance has another name than the productive instance.
    When i follow 881395.1 and set the enviromental variable ORACLE_SID to another new name. Will this be all? Or will there be problems using another SID because of references in the controlfile or sth. like that?
    b) It's VERY IMPORTANT that the datafiles aren't stored in the same path and with the same names as the productive instance. It is another server but there is already a copy of the database (our dba tried to set up a standby solution on this machine) and i don't want to bother this!
    How can i rename the datafiles before restoring the backup from scatch?
    I found this: set newname for datafile 1 to '<filesystem based filename>';
    Will this help? Do i need to rename every single file? Or is it possible to set a path in which all datafiles will be restored?
    c) What about the 32bit to 64 bit thing? Will this work? Or do i need to convert the database? How? RMAN Convert?
    Or could RMAN convert anyhow used to realize the whole thing?
    Thank you very much for your support!
    Regards
    Daniel

  • Manually register rman backup with oracle database 10g

    Dear All.
    I want to restore full backup of database.
    I have not configure flash_recovery_area.
    how i can manually register full rman backup of database with oracle database 10g.?
    Please help me.
    Thanks & Regards
    Ravi Kumar

    This is the 10gR2 documentation on the CATALOG command :
    http://docs.oracle.com/cd/B19306_01/backup.102/b14194/rcmsynta011.htm#sthref230
    You must be specific when stating the version you are running.  Commands may be limited or unavailable in older versions versus more recent versions of Oracle.
    Hemant K Chitale

  • Rman backup with nocatalog

    hi,
    if i take backup by rman nocatalog ,where it cud be problematic if take backup in nocatalog & wt should i do to resolve them.
    thxs

    Hi,
    As you said that you are rman is with nocatalog, then its going to use the Control file for storing the informaiton about the backups.
    Could not able to understand "where it cud be problematic if take backup in nocatalog "
    Got, Control file is going to store the information for a period time "CONTROL_FILE_RECORD_KEEP_TIME " specifies the minimum age in days of a record before it can be reused. Manily it will fall under the "Circular reuse records".
    Problem will as the if you are want to go for more than one DB, it would be problematic and cases where Control file got corrupted. Try to go Recovery Catalog.
    - Pavan Kumar N
    Edited by: Pavan Kumar on Feb 9, 2009 3:53 PM
    For your reference :
    http://download.oracle.com/docs/cd/B28359_01/backup.111/b28270/rcmmaint.htm
    Edited by: Pavan Kumar on Feb 9, 2009 3:57 PM

  • RMAN backup with no expiry

    Hi,
    We are using oracle 11gR2 on AIX 6.1,
    We have to take the RMAN backup which should be never expired and we dont have any catalog,
    for "KEEP FOREVER" option we require catalog,
    any other way not to expire RMAN backup?
    Thanks

    Assuming this is a once off requirement, it is just a case of taking a cold backup of the database including the controlfile and any archivelogs and then storing these offline.
    A copy of the pfile as well as a text copy of the controlfile (backup controlfile to trace) should also be taken.
    As long as you have all of this , it should be possible to restore/recover your database to the start point.

  • Rman backup with different retention

    Hi,
    I have to write script on RMAN backup retentions and policies.
    My requirement is as below:
    Daily backup Name and retentions : db_daily_bkp_sun,db_daily_bkp_mon...with 7 days retension
    Weekly backup Name and retentions : db_wkly_bkp_01,db_wkly_bkp_02...with 4 backup retension
    Monthly backup Name and retentions : db_mnth_bkp_jan,db_mnth_bkp_feb...with 12 backups
    Yearly backup Name and retentions : db_yearly_bkp_2010,db_yearly_bkp_2011,db_yearly_bkp_2012
    All backups will be full online. We have to store backups in local disk.
    We have created backup locations on disk as below.
    Daily : /orabackup/daily
    Weekly : /orabackup/weekly
    Monthly: /orabackup/monthly
    Yearly : /orabackup/yearly
    So is it possible to take such backups in RMAN without using any third party software ? If possible then please provide me such script.
    With Regards,
    Khokhar Murtuja S
    Database Administrator

    Hi,
    RMAN will make you have only one retention.
    You can have more kind of retention using the option "keep until" in your backup command.
    It'll certainly do what you need.
    Greets,
    Loïc

  • DBID for RMAN backup with format '%u'

    Hi all:
    (I've post this at c.d.o.s. too, but no answers...)
    This is Oracle 10.2.0.3 on Enterprise Linux 5.
    I've been given two backups from an Oracle Database: one 'cold' and
    one 'hot'. They both come from a lost server.
    The fact is that they have been made with the format '%u' (eight
    alphanumerics) and I must recover the database on a new server. I
    cannot get the DBID from the backup files name because of this format
    '%u'.
    The backups have been made with CONTROLFILE AUTOBACKUP ON (or so I'm told).
    How can I get the DBID to recover the DB on a new server?
    Thanks in advance.
    Cheers.
    Carlos.

    "I don't know where you read this, it's wrong. "Oracle® Database Backup and Recovery Advanced User's Guide
    10g Release 2 (10.2)
    2 RMAN Backups Concepts
    Control File and Server Parameter File Autobackups
    How RMAN Performs Control File Autobackups
    "The RMAN behavior when the BACKUP command includes datafile 1 depends on the CONFIGURE CONTROLFILE AUTOBACKUP setting. If control file autobackups are ON and the backup includes datafile 1, RMAN writes the control file and SPFILE to a separate autobackup backup set. If control file autobackups are OFF and the backup includes datafile 1, then RMAN includes the current control file and SPFILE in the same backup set as the datafiles."
    Cheers.
    Carlos.

  • Rman backup with corrupted block

    Hello,
    Firstly - I have problem on non-production database 11.2.0.1.0, so I am not deeply worried about data. But I need to understand what happened with database backups and how to prevent such things in future.
    So - I have EM scheduled weekly full backup and daily incremental backups. Later there was problem with hardware and some corrupted blocks in database were found. The weekly backup ran without error and obsolete backups were deleted. Now it is not possible to "recover corruption list" because no backup without corruption exists (RMAN-06023: no backup or copy of datafile 6 found to restore). I am not worried about the lost data, but I need to find out how come the backup contains corrupted block.
    I have checked the data file using dbv utility
    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 datafile 6 - user03.dbf has errors. Also backups now contain errors.
    1) So how is it possible that the EM scheduled backup ran without problems and the backup now contains corrupted blocks. How to prevent this in future ? I know there is setting MAXCORRUPT. How can I check its current value ? How can I configure it using EM scheduled backups ?
    2) Secondly, meanwhile I studied the RMAN commands. So I have suspended EM backup jobs, and executed follwing command. And backup ran without error again. How is this possible, if data file users06.dbf has corrupted block ?
    Thanks !
    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

    I have updated database to 11.2.0.3
    However, the problem still persists. rman backup went ok on broken file
    oracle@orcl-cluster:~> sqlplus
    SQL*Plus: Release 11.2.0.3.0 Production on Tue Nov 20 09:24:11 2012
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    Enter user-name: system
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select * from V$DATABASE_BLOCK_CORRUPTION;
         FILE#     BLOCK#     BLOCKS CORRUPTION_CHANGE# CORRUPTIO
             6    2359942          1                  0 FRACTURED
            25    1855622          1                  0 FRACTURED
    oracle@orcl-cluster:~> rman target /
    Recovery Manager: Release 11.2.0.3.0 - Production on Tue Nov 20 08:04:57 2012
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: ORCL (DBID=1253245572)
    RMAN> backup as compressed backupset datafile 6;
    Starting backup at 20-NOV-12
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=1596 device type=DISK
    allocated channel: ORA_DISK_2
    channel ORA_DISK_2: SID=1568 device type=DISK
    allocated channel: ORA_DISK_3
    channel ORA_DISK_3: SID=2357 device type=DISK
    allocated channel: ORA_DISK_4
    channel ORA_DISK_4: SID=2341 device type=DISK
    allocated channel: ORA_DISK_5
    channel ORA_DISK_5: SID=86 device type=DISK
    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 20-NOV-12
    channel ORA_DISK_1: finished piece 1 at 20-NOV-12
    piece handle=/opt/oraBackup/rman/2rnqovpp_1_1 tag=TAG20121120T080513 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 01:10:35
    Finished backup at 20-NOV-12
    Starting Control File and SPFILE Autobackup at 20-NOV-12
    piece handle=/opt/oraBackup/rman/c-1253245572-20121120-00 comment=NONE
    Finished Control File and SPFILE Autobackup at 20-NOV-12
    RMAN> backup validate datafile 6;
    Starting backup at 20-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: backup set complete, elapsed time: 00:03:05
    List of Datafiles
    =================
    File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
    6    OK     1              2975         3840000         6489027926
      File Name: /opt/oracle/oradata/orcl/users03.dbf
      Block Type Blocks Failing Blocks Processed
      Data       0              453912
      Index      0              2959091
      Other      0              424022
    Finished backup at 20-NOV-12Edited by: kamilp on Nov 20, 2012 12:23 AM

Maybe you are looking for

  • The computer has rebooted from a bugcheck. The bugcheck was: 0x0000003b...

    Hi All I formatted and installed Win8.1 (64-bit) recently on my PC but have constantly had BSOD with faults like: Log Name:      System Source:        Microsoft-Windows-WER-SystemErrorReporting Date:          27/11/2014 09:40:21 Event ID:      1001 T

  • Adapter Framework Development

    Hi Guys, I am developing a Adapter based in Sample RA Adapter Code. In my solution appears the follow error: com.sap.aii.af.service.trace - not found com.sap.aii.af.service.cpa - not found I did download of jars from example (http://wiki.sdn.sap.com/

  • Create dependencies 4 SWC in SLD which are directly imported in to IR

    Hi, We have imported the SWCV 6.02 from SAP Marketplace to use the predelivered content. When we wanted to create a dependency in SLD for my own SWC, I was not able to find associated SWCV in SLD for 6.02. Any one has any idea on how we can update th

  • Problem in Virsa 4.0 in Mitigate Users

    Hi ... We have patched Virsa 4.0( 400_620) on our production server.  After patching, we are facing problem with Mitigate Users. After logging in CC4.0, under the Mitigation Tab, Mitigation Control ->Mitigate Users -> New Entries. Here when we add or

  • External Copact Flash

    Hi All, I just have one question related to external compact flash, what is used for (is it considered an external RAM or external OS storage)? What are the cases which I usually require the use of external flash in? Thanks, Haitham