Confusion of RMAN backup

Hi all

11.2.0.1

AIX 6.1

I'm reviewing the scripts in RMAN backup in our data base of prod that was written by the previous dba.

The script said:

run

{

overlap archivelog all;

cross-checking of backup;

delete expired backup noprompt.

delete noprompt expired archivelog all;

delete noprompt obsolete;

allocate channels ch1 disc type;

allocate channel ch2 type disk;

allocate channel ch3 type disk;

allocate channel ch4 type disk;

backup in the database format compressed more archivelog backupset ' / rmanbackup/prod/backup/db/db_%U';

backup current controlfile to Eve format ' / rmanbackup/prod/backup/db/ctrl_stby_%U';

current backup controlfile as ' / rmanbackup/prod/backup/db/ctrl_%U';

}

Then I check the contents of/rmanbackup/prod/backup/db

Oracle [/ rmanbackup/backup/prod/db] ls-l

Total 0

-rw - r - 1 oracle backup 8617984 Sep 18 2012 ctrl_0knlh44v_1_1

-rw - 1 oracle dba 11698176 Aug 18 01:24 ctrl_2sok4bqk_1_1

-rw - 1 oracle dba 11698176 Aug 19 01:21 ctrl_3aok7001_1_1

-rw - 1 oracle dba 11698176 Aug 18 01:24 ctrl_stby_2rok4bqi_1_1

-rw - 1 oracle dba 11698176 Aug 19 01:21 ctrl_stby_39ok6vvu_1_1

-rw - 1 oracle dba 8598016 17 Sep 01:24 db_2cok1ne6_1_1

-rw - 1 oracle dba 3942116864 Aug 18 01:17 db_2hok4acs_1_1

-rw - 1 oracle dba 3570494976 Aug 18 01:18 db_2iok4acs_1_1

-rw - 1 oracle dba 130300928 Aug 18 01:16 db_2jok4bap_1_1

-rw - 1 oracle dba 8078848 Aug 18 01:24 db_2qok4bqh_1_1

-rw - 1 oracle dba 3205571072 Aug 19 01:14 db_2tok6uot_1_1

-rw - 1 oracle dba 2845661696 Aug 19 01:14 db_2uok6uot_1_1

-rw - 1 oracle dba 3153846272 Aug 19 01:14 db_2vok6uot_1_1

-rw - 1 oracle dba 2851247104 Aug 19 01:14 db_30ok6uot_1_1

-rw - 1 oracle dba 104608256 Aug 19 01:14 db_31ok6vjb_1_1

-rw - 1 oracle dba 7869440 Aug 19 01:21 db_38ok6vvt_1_1

The above backup are complete?

I also check the flash_recovery_area:


Oracle [/ rmanonline/flash_recovery_area/PROD/backupset/2013_09_19] ls-l

Total 0

-rw - 1 oracle dba 1867776 Aug 19 01:19 o1_mf_ncnnf_TAG20130919T011455_93mr5j77_.bkp

-rw - 1 oracle dba 1314160640 Aug 19 01:19 o1_mf_nnndf_TAG20130919T011455_93mqwkc1_.bkp

-rw - 1 oracle dba 1329709056 Aug 19 01:20 o1_mf_nnndf_TAG20130919T011455_93mqwkfr_.bkp

-rw - 1 oracle dba 1459748864 Aug 19 01:20 o1_mf_nnndf_TAG20130919T011455_93mqwlhc_.bkp

-rw - 1 oracle dba 1779367936 Aug 19 01:20 o1_mf_nnndf_TAG20130919T011455_93mqwlvo_.bkp

-rw - 1 oracle dba 98304 Sep 19 01:19 o1_mf_nnsnf_TAG20130919T011455_93mr5kgk_.bkp

That is why he is another backup here? Do you have duplicate backups? Please validate.

Thank you very much, zxy

Enterprise Manager doesn't have to be DB Console.  It can be Grid Control or control clouds.

The backup task was scheduled via DBMS_SCHEDULER.

It could have been programmed by a timer external non-cron.

Hemant K Collette

Tags: Database

Similar Questions

  • Confusion of RMAN

    Hi all

    I have a confusion here related to the archiving log backup!

    If my logs to archive is too big in size and by making a backup of rman through the following command:

    RMAN > backup archivelog all;

    But it takes more time to take backup of the archive logs. Is there a solution to make this performance block so that the big archive newspapers could also be saved soon.

    Please suggest me

    Kind regards

    Michel

    Hi Michel,.

    You back up files on tape or on disk? How many channels do you have configured? What is the amount of RAM and CPU on your server?

    Check if your operating system supports the e/s synchronous, if yes, then you can configure DBWR_IO_SLAVES

    Take a look on the link which will give you more details on setting of rman.

    http://docs.Oracle.com/CD/B28359_01/backup.111/b28270/rcmtunin.htm#BRADV99981

    Kind regards

    Suntrupth

  • Restore the RMAN backup on another server

    Hello

    ENV: Oracle 10 g 2 64 bit, RHEL 5.8 64 bit on ASM, Database size = ~ 1.3 to

    Backup RMAN of PROD will FRA and then backed up to tape. I have limited access to the PROD because it is maintained by 3rd party.

    My client is planning to move this database on their own datacenter (from the 3rd party data center). For test purposes, I asked DBA of 3rd party to provide us with an export of drawings required data pump. Export takes about 8 hours, and the import takes the same time to the new location. To copy the files exported to new locations takes another few hours (over the network). The total size of the dump file is around 500 GB. Thus, a whole cycle of Export-Import-copy takes about ~ 20 + Hrs.

    I want to try another option to reduce the time required for the updating of the database of PROD and which is "use RMAN backup of PROD ' and restore it on the data center server. RMAN full backup takes ~ 4hrs PROD and the restoration should be at the same time (new server has better and faster HW, storage with a SSD). I found this thread very useful on the Oracle Forms on this topic:

    Restore backup RMAN on another server

    This thread contains very good example for a restoration of database on the file system.

    I have a bit of confusion because my database uses ASM. The default location of the backups in PROD is FRA (on ASM == > db_recovery_file_dest = + FRA ). If I understand correctly, the RMAN backup must be in the same place where he was on the PROD Server - i.e. the diskgroup FRA.

    If I get a copy of the part 3 RMAN backup, how would I copy on FRA?

    OR can / should I just change the init parameter "db_recovery_file_dest" on the new server to point to the file system directory where the backup (say "/ ora_backup") and RMAN will pick up and restore the database?

    Please advise!

    Best regards

    You can restore the backup files to any location, then you must configure the channel using the "CONFIGURE CHANNEL device type disk format 'new location ';

    This thread will help

    Restore from a different location from the original location of RMAN backup

  • RMAN backup V1

    Hi all

    11.2.0.1

    AIX 6.1

    I have been using RMAN backup for most of our databases by using this parameter:

    run

    {

    CONFIGURE REDUNDANCY 1 RETENTION STRATEGY;

    compressed backup backupset database more archivelog;

    backup current controlfile to sleep;

    backup current controlfile;

    overlap archivelog all;

    cross-checking of backup;

    delete expired backup noprompt.

    delete noprompt expired archivelog all;

    delete noprompt obsolete;

    }

    And most of them succeeded, except this one with the error:

    RMAN-06207: WARNING: 54 items could not be removed for DISC due channels

    RMAN-06208: status do not match.  Use the OVERLAP command to set status

    RMAN-06210: list of relevant objects

    RMAN-06211: =.

    RMAN-06212: filename/Type object Handle

    RMAN-06213: --------------- ---------------------------------------------------

    RMAN-06214: copy of the data /proddata/oradata/PROD/datafile/dbs1m3a.dbf file

    RMAN-06214: copy of the data /proddata/oradata/PROD/datafile/dbs1m4b.dbf file

    RMAN-06214: copy of the data /proddata/oradata/PROD/datafile/dbs1m1b.dbf file

    RMAN-06214: copy of the data /proddata/oradata/PROD/datafile/dbs1m3b.dbf file

    I said that I have to use CROSSCHECK, but I already have this in my parameter .rcv above right?

    Help, please...

    Thank you very much

    zxy

    yxes2013 wrote:

    I'm confused with a lot of OVERLAP

    I also check above dbf files, and they are most active. Why it checks rman for deletion? Is this a bug?

    Helpppp...

    file a bug report

  • How to restore Rman backups on a different when the structured directory node

    Dear all,

    Have no doubt the concept of backup RMAN restore on another node, I practice one to restore an RMAN backup, I'm following Oracle Metalink ID: 419137.1

    I'm totally confused when I went through the step 9 in this document


    It is:
    9) rename the Redologfiles, so that they can be created in the new locations of the opening of the database is open in resetlogs
    SQL > alter database file rename ' / * node1/database/prod/redo01.log*' to ' / * node2/database/prod/redo01.log*';
    My doubt is: I restore it in a new empty database, already have redo logs and other files in the folder oradata, above mentioned document said to rename!
    I need to rename, how to rename, according to the above statement SQL node1 is a non-existent node, we only saw his backup tracks only. If I rename as the statement above, this I have to give the old location where the redo log was before, or I can give the name, (yes I know it is a logical representation not a physics).

    Someone explain how to represent this log redo my new database.


    Thank you and best regards,
    HAMEED

    Hi Hall;

    "" Its best to move your problem to the Forum home ' database ' Database - general part forum

    Respect of
    HELIOS

  • 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
    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
    ...
    Docs said:
    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:
    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
    Delete all (except SPFILE) ASM files.
    ASMCMD> cd +DG_ORCL/DB10g
    ASMCMD> ls
    PARAMETERFILE/
    spfiledb10g.ora
    So we will perfom a database restore
    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>
    See that I don't need level 0 backup to restore the level 1.

    Thank you
    Levi Pereira

    Levi,

    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="">

    Same info is here:

    http://www.Pythian.com/news/287/level-1-incremental-backup-in-Oracle-10G/

    Concerning

    Grosbois

  • My RMAN backup failed

    Yesterday my RMAN backup failed and wrote my diary RMAN

    Cat RMAN_REPORT_030411040001_RDFDB.log

    Recovery Manager: Release 10.2.0.4.0 - Production Sun 3 Apr 04:02:12 2011

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

    connected to target database: RDFDB (DBID = 3113112584)
    connected to the recovery catalog database

    RMAN >
    from full resynchronization of the recovery catalog
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of command report to the 03/04/2011 04:02:21
    RMAN-03014: implicit recovery catalog Resync failed
    RMAN-03009: resync command failed full to the default channel to 03/04/2011 04:02:21
    ORA-01578: block ORACLE (corrupted file # 2, block # 19235) data
    ORA-01110: data file 2: ' / home/oracle10g/rmandb/dbf/data/rmandb_undotbs.dbf'


    My name is RDFDB and the error is RMANDB which is on another machine how can that I solve this problem?

    Another backup RMANDB is going well I am a bit confused as says it error ORA-01578: data corrupted ORACLE (file # 2, block # 19235) block
    ORA-01110: data file 2: ' / home/oracle10g/rmandb/dbf/data/rmandb_undotbs.dbf' and this means that there is nothing to do with RDFDB and in what RMANDB undotbs and ifthat is the case how come RMANDB happenend backup without any problem... well kindly help me to solve this problem.

    The block has already marked corrupt. As a result, RMAN ignores when you perform a backup of RMANDB.

    The simplest solution is to recreate the tablespace Undo in RMANDB. (Create a new Undo tablespace, alter system set undo_tablespace and then drop the old undo tablespace, preferably after a reboot).

    In this way, the RESYNCHRONIZATION for RDPDB command will access a new set of undo blocks.

    Hemant K Collette

  • confusion about rman restore

    Hello world
    I have some confusion about rman restore and recover procedures. I read doc available in this regard and google as well. A few more questions unanswered in my mind.
    1. do the restore backup command restore controlfile also alongwith datafiles.
    2 database is running in noarchivelog mode. Suppose one of say users.dbf data files has been removed. control files intact. the same seq # is available since the last log backup. Now to restore the database, I use the following steps.
    1 rman > shutdown immediate
    2 rman > startup mount
    3 rman > restore database
    4 rman > restore database
    5 rman > alter database open;

    I'm wrong. This is the one. In this scenario, the steps above can be used.

    3. even when logseq is not available when the database is saved, I take the following steps.
    1 rman > startup nomount;
    2 rman > restore controlfile autobackup.
    3 rman > change the editing of the database;
    4 rman > restore database;
    5 rman > recover noredo db;
    6 rman > alter database open resetlogs;
    It is a right. can I adopt this procedure in my scenario.

    Please do not give all the links I want some explanation of your minds.

    Geetanjali.

    sonidba wrote:
    Hello world
    I have some confusion about rman restore and recover procedures. I read doc available in this regard and google as well. A few more questions unanswered in my mind.
    1. do the restore backup command restore controlfile also alongwith datafiles.
    2 database is running in noarchivelog mode. Suppose one of say users.dbf data files has been removed. control files intact. the same seq # is available since the last log backup. Now to restore the database, I use the following steps.
    1 rman > shutdown immediate
    2.RMAN > startup mount
    3.RMAN > restore database
    4.RMAN > restore database
    5.RMAN > alter database open;

    I'm wrong. This is the one. In this scenario, the steps above can be used.

    If after the last COLD backup is there not get command of newspaper (this means journal seq number is the same), so you can restore your database since the last backup and can retrieve it. And if thi does not need perform full restoration/recovery. At instead step 3 with DATA RESTORE (or RESTORE TABLESPACE USERS) file and step 4 instead with RECOVER DATAFILE (or RECOVER TABLESPACE USERS) and after that you can open the database by using ALTER DATABASE OPEN. If you have lost datafile users.dbf it means that this (tablespace) datafie has been automatically disconnected.

    3. even when logseq is not available when the database is saved, I take the following steps.
    1 rman > startup nomount;
    2 rman > restore controlfile autobackup.
    3.RMAN > change the editing of the database;
    4 rman > restore database;
    5 rman > recover noredo db;
    6 rman > alter database open resetlogs;
    It is a right. can I adopt this procedure in my scenario.

    Yes you are right in this case. There, you have to restore/recovery complete database, because of your database running in NOARCHIVELOG mode. But after database restore (step4) you can just issue RESTORE database and can open with RESETLOGS options also. Also if you have incremental backups can run NOARCHIVELOG mode even RETRIEVE the NOREDO of DATABASE then you can open the database.

  • RMAN backup and cross-checking script

    Hello

    I just joined a new company this week. As would any s/n, I was going just through the RMAN backup scripts used in the new environment.
    Here we run weekly RMAN backup complete for some of the databases that I am responsible for managing. The script and schedules are as follows.

    Every Sunday from 21:00, we organize a weekly job overlap

    Connect target username/pwd@DBNAME
    Connect catalog username/pwd@DBNAME

    Run {}
    CROSS-CHECKING OF BACKUP;
    DUPLICATION OF COPY;
    OVERLAP BACKUPSET;
    OVERLAP ARCHIVELOG ALL;
    DELETE NOPROMPT OBSOLETE;
    }

    Every Sunday from 9:30, we run the RMAN backup command which is

    Connect target username/pwd@DBNAME
    Connect catalog username/pwd@DBNAME

    run
    {
    CONFIGURE RETENTION POLICY TO RECOVERY OF 7-DAY WINDOW;
    SQL 'alter system archive log current';
    backup as backupset database include current controlfile;
    SQL 'alter system archive log current';
    ARCHIVELOG BACKUP of time ' SYSDATE-8';
    DELETE ARCHIVELOG ALL COMPLETED BEFORE ' SYSDATE-15';
    }


    A database that I will handle has been set up just over a week before I join.
    28 FEV 21:00 - no set of backup/copy/backup of overlap. I hope it will be cuts across all archive logs available in the database. No obsolete backup/copy/backup/archivelogs to remove.
    28 FEV 21:30 - sets the retention policy at 7 days, full backup of database backup and backup all archivelogs (sysdate-8). No newspaper archive to remove the database was created (migrated) less than 15 days back.

    7 March 21:00 - contre-vérifie the backupset (taking the 28 fev 21:30). No backup/copy of overlap.
    Question 1: Is there a backup obsolete here to delete?
    Own thought: Recovery window is 7 days. RMAN needs a backup in order to recover the database in any time-7 days to the present time (7 March 21:00 - 7 days = 28 fev 21:00). No obsolete backup to delete.

    7 March 21:30 - full database backup and fails to save all logs archiving (sysdate-8). No space in the Flash recovery disk group. As the archivelog backup failed and RMAN complete, it has not removed the archivelogs ' sysdate-15'.

    Backup is running again on 14 March. Of course, it will fail because there is no enough space in the Group of recovery disks.

    Future: I'm confused
    March 14, 21:00: contre-vérifie the backupset (supported March February 21:30). No backup/copy of overlap.
    Question 2: How do I know what is here obsolete? From the window of 7 days recovery, 14 March 21:00-7 days is March 7, 21:00. Last backup was taken on March 7, 21:30.
    To get back to 21:00, RMAN makes keep the backup of 28 March?... Does this mean whenever I'll have copies of backup 3?...

    14 March 21:30 - backup database... Log Archive backup will fail because there is no space. (I think to make a compressed backup).

    Question 3: How those wise commands?
    ARCHIVELOG BACKUP of time ' SYSDATE-8';
    DELETE ARCHIVELOG ALL COMPLETED BEFORE ' SYSDATE-15';

    If I take a successful backup of the archivelogs sysdate-8, why I need to keep the archivelogs before that? What could be the reason the previous DBA kept DELETE ARCHIVELOG COMPLETED BEFORE ANY 'SYSDATE-15 '; Rather than give DELETE ARCHIVELOG FINISHED FIRST and FOREMOST ' SYSDATE-8 "?

    Thanks in advance for your help.

    Published by: user8907052 on March 11, 2010 12:10

    If your database to 9i and above, then you don't need to pass - sql 'alter system archive log current;' before you perform the backup as RMAN automatically archives the log during recovery.

  • RMAN backup with a missing archivelog.

    Hello

    I backed up my database yesterday after that you guys helped me to solve some problems I've had on this subject. I have used RMAN with the following command in an execution block:

    * run {*}
    allocate channel t1 type disk;
    backup current controlfile;
    backup database;
    delete any backup archivelog entry;
    output channel c1;
    *}*

    At the end of the operation, RMAN indicates that archivelog is missing, and he couldn't find it. Therefore, recover the operation may be compromised. Now am confused because I don't know if the command executed successfully or not and how to fix the missing archivelog.

    Here are all of the output of the operation with the error message:

    channel Affectu: t1
    channel t1: sid = 131 typedev = DRIVE

    Dumarrage of backup in 16/04/09
    channel t1: backup of all files in Donnues all Dumarrage

    channel t1: insertion of the Donnues in all of backup file
    insertion of the current score in all of backup file
    channel t1: Dumarrage of Ulument 1 in 16/04/09
    channel t1: Ulument 1 Terminu in 16/04/09
    pointeur=+ASMTEST/Meta4/backupset/2009_04_16/ncnnf0_tag20090416t211049_0.334.684
    * Utiquette 364257 = TAG20090416T211049 comment = NONE *.
    channel t1: all backup Terminu, time Ucoulu: 00:00:14
    End of backup in 16/04/09

    Dumarrage of backup in 16/04/09
    channel t1: backup of all files in Donnues all Dumarrage

    channel t1: insertion of the Donnues in all of backup file
    file Donnues en Entrue fno = nom=+ASMTEST/meta4/m4prod.dbf 00008
    Donnues en Entrue fno name 00010 = file is H:\ORADATA\M4REC. DBF
    Donnues en Entrue fno = 00009 name file is E:\DATAFILEMETA4\M4PROD02. DBF
    Donnues en Entrue fno = 00001 nom=+ASMTEST/meta4/system01.dbf file
    file Donnues en Entrue fno = nom=+ASMTEST/meta4/sysaux01.dbf 00003
    Donnues en Entrue fno = name 00006 file is C:\TEST. DBF
    Donnues en Entrue fno nom=+ASMTEST/meta4/meta4.dbf 00007 = file
    Donnues en Entrue fno = 00005 nom=+ASMTEST/meta4/example01.dbf file
    Donnues en Entrue fno = 00002 nom=+ASMTEST/meta4/undotbs01.dbf file
    file Donnues en Entrue fno = nom=+ASMTEST/meta4/users01.dbf 00004
    channel t1: Dumarrage of Ulument 1 in 16/04/09
    channel t1: Ulument 1 Terminu in 16/04/09
    pointeur=+ASMTEST/Meta4/backupset/2009_04_16/nnndf0_tag20090416t211107_0.333.684
    * Utiquette 364271 = TAG20090416T211107 comment = NONE *.
    channel t1: all backup Terminu, time Ucoulu: 00:51:10
    channel t1: backup of all files in Donnues all Dumarrage

    channel t1: insertion of the Donnues in all of backup file
    insertion of the current score in all of backup file
    inclusion of the current SPFILE in all of backup
    channel t1: Dumarrage of Ulument 1 in 16/04/09
    channel t1: Ulument 1 Terminu in 16/04/09
    pointeur=+ASMTEST/Meta4/backupset/2009_04_16/ncsnf0_tag20090416t211107_0.345.684
    * Utiquette 367351 = TAG20090416T211107 comment = NONE *.
    channel t1: all backup Terminu, time Ucoulu: 00:00:26
    End of backup in 16/04/09

    Dumarrage of backup in 16/04/09
    Journal Archivu underway
    channel Liburu: t1
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: Uchec of the command backup O 16/04/2009 22:04:03
    RMAN-06059: journal archiving waited not found; the loss of the log arch
    ivago compromises the Possibilitu of Rucupuration
    ORA-19625: error identification of the H:\ARCHIVEMETA4\ARC00001_0 file
    * 682674928.001*
    ORA-27041: opening the file impossible
    04002 - OSD: cannot open the file
    S/O-error: (OS2) the Spucifiu file is not found.

    Here is my l and please correct me if am wrong:

    The first 3 statements in the block run executed successfully, but
    the last of them is not. Is this true?

    Whatever the understanding, should I have a backup? What can I do to get a consistent backup?

    Thanks in advance.

    Adomi,

    It is sad to see that you are still RMAN in 8i mode where you are on 10g.

    The script is bs, sorry

    Run {}
    allocate channel t1 type disk; -not required
    backup current controlfile; -not necessary, as this is already done backup of database
    backup database;
    delete any backup archivelog entry;
    output channel c1; -not required.
    }

    If you have autobackup controlfile, you might just

    backup database archivelog

    and be done with it.

    Like you didn't made a RMAN backup from the start, should have read your archivelog backup statement

    ARCHIVELOG backup all Skip inaccessible delete entry.

    Once successful Oracle shouldn't the archivelog has more need, and you should make a second backup without the skip inaccessible clause.

    ------
    Sybrand Bakker
    Senior Oracle DBA

  • Import of schemas and tables of RMAN backup

    Hi all

    I have here are 3 requirements:

    (1) is it possible that I can import a single table using RMAN backup, because I have no more than one day of EXPDP dump file and the requirement is to store the data of three days.

    (2) is it possible that I can import a single SCHEMA using RMAN backup, because I have no more than one day of EXPDP dump file and the requirement is to store the data of three days.

    (3) can I import a package from the RMAN backup?

    I have incremental backup of level 1 and level 0.

    My database is 11.2.0.3

    Thank you and best regards,

    Mukesh

    Hi Mukesh,

    All of your needs can be met with output up to 11g using RMAN database, but beyond of 12 c, you can restore a single table RMAN backup (RMAN BACK TABLE new feature to the 12 c (Doc ID 1521524.1) Oracle database). For your condition impdp/expdp is the best Utilities option until oracle provided up to version 11 g.

    I hope this helps.

    Kind regards

  • 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

  • RMAN backup location must change and remove obsolete

    Dear Experts,

    I'm working on the following environment,

    Operating system: Windows server 2012 R2

    Oracle version: 11.2.0.1.0 release

    Type of RMAN backup: Cumulative (preferred by the direction and I can't change it in differential backup)

    My current situation,

    I set up RMAN and H: drive for purposes of backup and G: for Archivelog.

    Recently, my city was covered by the flood waters and the server works not for a week so that we delete obsolete level 0 does not work.

    Currently there is not enough space to run a level 1 and level 0, while I should change the backup location.

    My Question is,

    (1) I need to change this location of drive H: to G: drive backup backup correctly without error not enough space.

    (2) after having taken a level 1 and level 0, depending on my 1 redundancy, RMAN mechanism should delete obsolete backup disk without failure G: and H:.

    Kindly help me how to get to my need. This will help me, thanks in advance

    You can

    1. replace the DB_RECOVERY_FILE_DEST G:

    2 run backups

    3. wait for the DELETE OBSOLETE delete obsolete backups of H:

    and then

    4. change the DB_RECOVERY_FILE_DEST return h as it was more early

    In this way, you don't have to use the FORMAT or CHANNEL of CONFIGURE commands (I was referring to CONFIGURE CHANNEL, not ALLOCATE CHANNEL) to change the destination of the backup

    Hemant K Collette

  • Waiting for redo log file missing when restore main database using RMAN backup that was taken on the database physical standby

    Here's my question after tons of research and test without have the right solutions.

    Target:

    (1) I have a 12.1.0.2 database unique main enterprise 'testdb' as database instance running on the server "node1".

    (2) I created physical standby database "stbydb" on the server "node2".

    (3) DataGuard running on the mode of MaxAvailability (SYNC) with roll forward in real time 12 default c apply.

    (4) primary database has 3 groups of one-man redo. (/oraredo/testdb/redo01.log redo02.log redo03.log)

    (5) I've created 4 standby redo logfiles (/oraredo/testdb/stby01.log stby02.log stby03.log stby04.log)

    (6) I do RMAN backup (database and archivelog) on the site of relief only.

    (7) I want to use this backup for full restore of the database on the primary database.

    He is a DR test to simulate the scenario that has lost every primary & Eve total servers.

    Here is how to save, on the database pending:

    (1) performance 'alter database recover managed standby database Cancel' to ensure that compatible data files

    (2) RMAN > backup database;

    (3) RMAN > backup archivelog all;

    I got elements of backup and copied to primary db Server something like:

    /Home/Oracle/backupset/o1_mf_nnndf_TAG20151002T133329_c0xq099p_.BKP (data files)

    /Home/Oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.BKP (spfile & controlfile)

    /Home/Oracle/backupset/o1_mf_annnn_TAG20151002T133357_c0xq15xf_.BKP (archivelogs)

    So here's how to restore, on the main site:

    I clean all the files (data files, controlfiles oder all gone).

    (1) restore spfile from pfile

    RMAN > startup nomount

    RMAN > restore spfile from pfile ' / home/oracle/pfile.txt' to ' / home/oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.bkp';

    (2) modify pfile to convert to db primary content. pFile shows below

    *.audit_file_dest='/opt/Oracle/DB/admin/testdb/adump '

    * .audit_trail = "db".

    * full = '12.1.0.2.0'

    *.control_files='/oradata/testdb/control01.ctl','/orafra/testdb/control02.ctl'

    * .db_block_size = 8192

    * .db_domain = "

    *.db_file_name_convert='/testdb/','/testdb /'

    * .db_name = "testdb".

    * .db_recovery_file_dest ='/ orafra'

    * .db_recovery_file_dest_size = 10737418240

    * .db_unique_name = "testdb".

    *.diagnostic_dest='/opt/Oracle/DB '

    * .fal_server = "stbydb".

    * .log_archive_config = 'dg_config = (testdb, stbydb)'

    * .log_archive_dest_2 = "service = stbydb SYNC valid_for = (ONLINE_LOGFILE, PRIMARY_ROLE) db_unique_name = stbydb'"

    * .log_archive_dest_state_2 = 'ENABLE '.

    *.log_file_name_convert='/testdb/','/testdb /'

    * .memory_target = 1800 m

    * .open_cursors = 300

    * runoff = 300

    * .remote_login_passwordfile = "EXCLUSIVE."

    * .standby_file_management = "AUTO".

    * .undo_tablespace = "UNDOTBS1.

    (3) restart db with updated file pfile

    SQLPLUS > create spfile from pfile='/home/oracle/pfile.txt'

    SQLPLUS > the judgment

    SQLPLUS > startup nomount

    (4) restore controlfile

    RMAN > restore primary controlfile to ' / home/oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.bkp';

    RMAN > change the editing of the database

    (5) all elements of backup catalog

    RMAN > catalog starts by ' / home/oracle/backupset / '.

    (6) restore and recover the database

    RMAN > restore database;

    RMAN > recover database until the SNA XXXXXX; (this YVERT is the maximum in archivelog backups that extends beyond the scn of the backup of the data file)

    (7) open resetlogs

    RMAN > alter database open resetlogs;

    Everything seems perfect, except one of the file log roll forward pending is not generated

    SQL > select * from v$ standby_log;

    ERROR:

    ORA-00308: cannot open archived log ' / oraredo/testdb/stby01.log'

    ORA-27037: unable to get file status

    Linux-x86_64 error: 2: no such file or directory

    Additional information: 3

    no selected line

    I intended to use the same backup to restore primary basic & helps record traffic and the downtime between them in the world of real output.

    So I have exactly the same steps (except STANDBY restore CONTROLFILE and not recover after database restore) to restore the database pending.

    And I got the same missing log file.

    The problem is:

    (1) complete alert.log filled with this error, not the concern here

    (2) now repeat it in real time apply won't work since the Party shall LGWR shows always "WAITING_FOR_LOG."

    (3) I can't delete and re-create this log file

    Then I tried several and found:

    The missing standby logfile was still 'ACTIVE' at present RMAN backup was made.

    For example, on db standby, under Group #4 (stby01.log) would be lost after the restoration.

    SQL > select GROUP #, SEQUENCE #, USE (s), the STATUS from v$ standby_log;

    GROUP # SEQUENCE # USED STATUS

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

    4 19 ACTIVE 133632

    5 0 0 UNASSIGNED

    6 0 0 not ASSIGNED

    7 0 0 UNASSIGNED

    So until I take the backup, I tried on the primary database:

    SQL > alter system set log_archive_dest_state_2 = delay;

    This was the Group of standby_log side Eve #4 was released:

    SQL > select GROUP #, SEQUENCE #, USE (s), the STATUS from v$ standby_log;

    GROUP # SEQUENCE # USED STATUS

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

    4 0 0 UNASSIGNED

    5 0 0 UNASSIGNED

    6 0 0 not ASSIGNED

    7 0 0 UNASSIGNED

    Then, the backup has been restored correctly without missing standby logfile.

    However, to change this primary database means break DataGuard protection when you perform the backup. It's not accept on the production environment.

    Finally, my real questions come:

    (1) what I do may not do on parameter change?

    (2) I know I can re-create the control file to redo before delete and then recreate after. Is there any simple/fast to avoid the standby logfile lost or recreate the lost one?

    I understand that there are a number of ways to circumvent this. Something to keep a copy of the log file waiting restoration progress and copy up one missing, etc, etc...

    And yes I always have done no real-time applies "to the aid of archived logfile" but is also not accept mode of protection of production.

    I just want proof that the design (which is displayed in a few oracle doc Doc ID 602299.1 is one of those) that backs up data backup works effectively and can be used to restore the two site. And it may be without spending more time to resume backups or put the load on the primary database to create the database before.

    Your idea is very much appreciated.

    Thank you!

    Hello

    1--> when I take via RMAN backup, RMAN does not redo log (ORL or SRL) file, so we cannot expect ORLs or SRL would be restored.

    2nd--> when we opened the ORL database should be deleted and created

    3rd--> Expecting, SRL should not be an issue.we should be able to do away with the fall.

    DR sys@cdb01 SQL > select THREAD #, SEQUENCE #, GROUP #, STATUS from v$ standby_log;

    THREAD # SEQUENCE # GROUP # STATUS

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

    1 233 4 ACTIVE

    1 238 5 ACTIVE

    DR sys@cdb01 SQL > select * from v$ logfile;

    GROUP # STATUS TYPE MEMBER IS_ CON_ID

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

    3 /u03/cdb01/cdb01/redo03.log no. 0 online

    /U03/cdb01/cdb01/redo02.log no. 0 2 online

    1 /u03/cdb01/cdb01/redo01.log no. 0 online

    4 /u03/cdb01/cdb01/stdredo01.log WATCH No. 0

    /U03/cdb01/cdb01/stdredo02.log EVE 5 No. 0

    DR sys@cdb01 SQL > ! ls - ltr /u03/cdb01/cdb01/stdredo01.log

    method: cannot access the /u03/cdb01/cdb01/stdredo01.log: no such file or directory

    DR sys@cdb01 SQL >! ls - ltr /u03/cdb01/cdb01/stdredo02.log

    -rw - r-. 1 oracle oinstall 52429312 17 Oct 15:32 /u03/cdb01/cdb01/stdredo02.log

    DR sys@cdb01 SQL > alter database force claire logfile 4;

    change the database group claire logfile 4

    *

    ERROR on line 1:

    ORA-01156: recovery or current flashback may need access to files

    DR sys@cdb01 SQL > alter database recover managed standby database cancel;

    Database altered.

    DR sys@cdb01 SQL > change the database group claire logfile 4;

    Database altered.

    DR sys@cdb01 SQL > ! ls - ltr /u03/cdb01/cdb01/stdredo01.log

    -rw - r-. 1 oracle oinstall 52429312 17 Oct 15:33 /u03/cdb01/cdb01/stdredo01.log

    DR sys@cdb01 SQL >

    If you do, you can recreate the controlfile without waiting for redo log entry...

    If you still think it's something is not acceptable, you must have SR with support to analyze why he does not abandon SRL when controlfile_type is "underway".

    Thank you

  • RMAN backup gets already

    Hi all;

    RMAN > set the channel 1 device type disc format ' / u01/rmanbkp ";

    new RMAN configuration settings:

    CONFIGURE the CHANNEL 1 DEVICE TYPE DISK FORMAT ' / u01/rmanbkp ";

    new RMAN configuration settings are stored successfully

    output channel: ORA_DISK_1

    RMAN > list backup;

    specification does not match the backups in the repository

    RMAN > backup database tag = "NORMAL_BKP_15_jul_15";

    From 25 July 15 backup

    allocated channel: ORA_DISK_1

    channel ORA_DISK_1: SID = 20 type of device = DISK

    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=/u03/app/oracle/oradata/crms/tbs02.dbf

    Enter a number of file datafile = 00001 name=/u02/app/oracle/oradata/crms/system01.dbf

    Enter a number of file datafile = name=/u01/crmsx4.dbf 00024

    channel ORA_DISK_1: starting piece 1 to July 25, 15

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

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

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

    RMAN-03009: failure of the backup command on the channel ORA_DISK_1 at 25/07/2015 10:30:26

    ORA-19504: cannot create the file ' / u01/rmanbkp.

    ORA-27038: created file already exists

    Additional information: 1

    There is no file physically in/u01/rmanbkp

    DB version: 11.2.0.1 on (Redaht)

    RMAN > set the channel 1 device type disc format ' / u01/rmanbkp ";


    Specify format with extension, something like below

    RMAN > set up the channel 1 device type disk format ' / u01/rmanbkp/backup%U';

    http://docs.Oracle.com/CD/B28359_01/backup.111/b28273/rcmsubcl010.htm

Maybe you are looking for