Configure controlfile autobackup

Hello

Anyone bed this backup of their control files using the following configure command?

RMAN > configure controlfile autobackup peripheral type disc format '< path > '.

I read that this will ensure that whenever a change is made to the database, the control file is saved.

Like her, is there a structural change between backups, and we recover, the control file is then used (recorded in the backupset since the last backup) will not have this information in it.

This sounds like a major witch hunt is there a failure and the need to recover. RMAN users implement this? I'm surrpised that he gets only half a page of reference in the book RMAN 11 g backup and recovery (Oracle Press).

Thank you

DA

11.2.0.3

RHEL 5.5

Hi Dan,.

What you said culminated just my interest I never really tried before... so here goes.

What I meant by the two parameters is the following (auto backup format and autobackup on):

CONFIGURE CONTROLFILE AUTOBACKUP ON;

CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO "%F" # by default

CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO "%F" # by default

My autobackup controlfile is currently on and has my default device defined tape type:

CONFIGURE THE TYPE OF DEFAULT DEVICE TO 'SBT_TAPE ';

CONFIGURE CONTROLFILE AUTOBACKUP ON;

CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO "%F" # by default

CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO "%F" # by default

I created a tablespace, and after about 10 minutes the controlfile autobackup has been taken.  Tablespace was created at 14:15:53, and automatic backup was taken to 14.23.

Note that even if the default device type was tape the controlfile was actually saved on the disk in $ORACLE_HOME/dbs

CON START_TIME COMPLETION_TIME TIME_TAKEN_DISPLAY OUTPUT_BYTES_DISPLAY PARTS

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

YES 1 APRIL 30, 2014 14:23 APRIL 30, 2014 14:23 00:00:00 7.23 M

.

Then I changed my settings as follows:

CONFIGURE the DEFAULT DEVICE TYPE TO DISK;

CONFIGURE CONTROLFILE AUTOBACKUP ON;

CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO "%F" # by default

CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO "%F" # by default

I created a tablespace, and after about 5 minutes the controlfile autobackup has taken in $ORACLE_HOME/dbs.  Tablespace was created at 14:27:57 and the AutoSave was taken at 14.33.

CON START_TIME COMPLETION_TIME TIME_TAKEN_DISPLAY OUTPUT_BYTES_DISPLAY PARTS

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

YES 1 APRIL 30, 2014 14:33 APRIL 30, 2014 14:33 00:00:00 7.23 M

Then, I explicitly set my location on disk:

CONFIGURE the DEFAULT DEVICE TYPE TO DISK;

CONFIGURE CONTROLFILE AUTOBACKUP ON;

CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO "%F" # by default

CONFIGURE CONTROLFILE AUTOBACKUP FORMAT for DEVICE TYPE DISK to 'u01/app/oracle/product/11.2.0/dbs/cf_%F';

I created a tablespace, and after 7 minutes the controlfile autobackup has been taken.  Tablespace was created at 14:35:59 and the AutoSave was taken to 14.43.

The backup controlfile was still taken on the disc.

CON START_TIME COMPLETION_TIME TIME_TAKEN_DISPLAY OUTPUT_BYTES_DISPLAY PARTS

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

YES 1 APRIL 30, 2014 14:43 APRIL 30, 2014 14:43 00:00:00 7.23 M

So, in summary, if the database is in archivelog and controlfile autobackup is set on, then the controlfile is saved on disk, no matter if the default device type is tape or disk.  (I have not tried this if the database is not in archivelog mode, but I guess the Oracle documentation is correct).

Tags: Database

Similar Questions

  • controlfile autobackup and DBID

    Hi all

    If we are to restore RMAN controlfile autobackup controlfile, we must define the DBID. Otherwise, we can specify the full of the controlfile autobackup path if we do not have a DBID. My question is how exactly RMAN determines the proper backup of just the ID file? Is this something like this:

    RMAN goes to the default backup location - $ORACLE_HOME/dbs

    Examines all backups for DBID that we put

    Then restore the backup file appropriate?

    Kind regards

    Vinod

    The file name by default in $ORACLE_HOME/dbs includes the DBID.

    If you use db_recovery_file_dest (i.e. an MRE), record going under the DB_UNIQUE_NAME folder

    Hemant K Collette

  • Clarification on controlfile autobackup

    Friends, I read in one of the famous books of RMAN that "when we add new data files to storage, server process initiates controlfile autobackup'.If controlfile autobackup is set on"ON"in parameter of RMAN. I tested in my dummy environment but did not find any truth in it, I checked for alert log and did not find any backup controlfile after adding data files. No indication in this regard will be appreciated.

    > Data files how much I add

    A few.  An accurate count is not documented.  Oracle monitors the number of changes in the course of an interval.  I know, it does not create a new autobackup controlfile for each data file added in a 5 minute window, but only at the end of this window.  But I don't know if that 5 minutes is a documented fact or a result of some heuristics.  The actual duration of your environment may vary.

    Hemant K Collette

  • controlfile autobackup does not work on 11g R2

    Hi all

    in database 11g R2 on windows and linux os (linux machine is a virtual machine), RMAN controlfile autobackup does not work. I'm this setting on IT and adding a tablespace for the database, but there is no new files backup controlfile.

    Oracle documentation, I know that if you set THE controlfile autobackup on RMAN, each structural change in the database control file is saved to automaticlly. Also in the 11g R1 version I did and saw new backup controlfile is created. (to see the new backup, I use the backup RMAN list command).

    I check in the machine 2 windows machines and different virtual linux but for 11 g r2 there is no new backup. I couldn't find anything about it in the Oracle documentation.

    will there be a new change that I don't know? I will appriciate to get answers.

    Published by: Mustafa KALAYCI on 10.Oca.2011 16:50

    I see in the GR 11, 2 backup and recovery Reference Guide, page 98, there is a paragraph as follows:

    "Beginning with Oracle 11 g Release 2, RMAN creates a backup file auto single covering the whole of the structural changes that took place within minutes of each other rather than create a new backup of the controlfile on each structural change to the database."

    I checked all my databases again, and there is now a backup of contolfile for each of them. It seems that there is now a delay of a few minutes for the backup of the controlfile. Can you watch it again to see if you can see them on your databases?

  • controlfile autobackup in 11.2.0.1

    Hello

    I wonder what that means below?

    http://download.Oracle.com/docs/CD/E11882_01/backup.112/e10643/rcmsynta010.htm#RCMRF113

    Starting with Oracle 11 g Release 2, RMAN creates a backup file auto single covering the whole of the structural changes that took place within minutes of each other rather than create a new backup of the controlfile on each structural change to the database.

    Thank you
    Markus

    Dear Markus Waldorf,

    For example, when you add a data file to a tablespace in the alert.log file, it says "start autobackup controlfile. According to the the Recovery Manager retention policy, these controlfiles are stored in the directory appropriate for this period. So when he wants to create a controlfile autobackup option, it creates a new rather than to modify the last being.

    So when there's a controlfile autobackup has been created by the recovery, after a few minutes of this, Manager when he needs to create a new, it will not create the controlfile (automatic backup).

    That's what I realized with this sentence.

    Kind regards.

    Ogan

  • to find checkpoint_change # to controlfile - autobackup vs Ckp_SCN #.

    Hi all

    (1) made a point of control to ensure that all checkpoint_change # SNA are synchronized.


    select null, null, checkpoint_change#,null from v$database
    union all
    select file#, name, checkpoint_change# , last_Change# from v$datafile;

              4095405
    1     +DATA/orcl/datafile/system.268.884148927     4095405
    2     +DATA/orcl/datafile/sysaux.269.884149053     4095405
    3     +DATA/orcl/datafile/undotbs1.270.884149167     4095405
    4     +DATA/orcl/datafile/usernew1.dbf     4095405
    5     +DATA/main/datafile/test.343.887323655     4095405

    (2) run a fulbackup (autobackup controlfile on) and run the same query as above


    select null, null, checkpoint_change#,null from v$database
    union all
    select file#, name, checkpoint_change# , last_Change# from v$datafile;

              4095405
    1     +DATA/orcl/datafile/system.268.884148927     4095581
    2     +DATA/orcl/datafile/sysaux.269.884149053     4095581
    3     +DATA/orcl/datafile/undotbs1.270.884149167     4095581
    4     +DATA/orcl/datafile/usernew1.dbf     4095581
    5     +DATA/main/datafile/test.343.887323655     4095581

    T1) why the checkpoint_change # in the database of v$ remains the same as before and yet datafiles checkpoint_change # has changed?

    -- proceed to list backup and see the controfile's autobackup scn
    list backup;
    ...
    Control File Included: Ckp SCN: 4095640

    Q2) why is the SNA cash at the same autobackup later then the checkpoint_change # in the database of v$?

    Q3) how to find the last checkpoint_change # in the current controlfile then?

    Q4) what is the use of the checkpoint_change # v$ database used since then? (because it does not reflect the last checkpoint #-v$ datafile.checkpoint_change # is more accurate)?

    Kind regards

    Noob

    Hello

    v$ database.checkpoint_change # Q1) is loaded from the record section of the controlfile right?
    v$ datafile.checkpoint_change # Q2) is also responsible for controlfile right?

    No, v$ datafile would be real datafile (AFAIK - as the nucleus is different for this) bonano$ x database $ kcc % structure (so she keeps track of more than all databases - my point of view more controlfile).

    (T3) - the v$ database.checkpoint_change # is responsible of the controlfile and then it is used to match against what?

    In your example above SNA for v$ database is 100, CPN for v$ datafile 6 is 98 and the v$ datafile_header is 97.  So, how the v$ database.checkpoint_change # a role here?  I mean just by comparing v$ datafile YVERT and v$ datafile_header SNA, we will know that there is a difference and a recovery is necessary.

    Why do we still need to look at v$ database.checkpoint_change #?

    v$ database is at the highest level of level/parent, and v$ datafile (x$ kcvdf) is a subset of the audit is made/done. v$ datafile_header (her picking up x$ kcvfh) both are different structures (If you dig the 'C' code header files so you can get to know), so it would play a break point (or) updates made to different internal control points are made by CKPT processes.  Now, you don't ask me on internal control points when and that process, so that you get support and view the code (it is people development oracle).

    or spend some time x$ active_ckpt how it gets changed and everything what you can observe from the validations and cheating LGWR (I can't go beyond that).

    Q4) in my scenario above, the v$ database.checkpoint_change # is significantly different from the v$ datafile and v$ datafile_header, but in reality no recovery is necessary.

    v$ database 4177813

    v$ datafile 4189456

    v$ datafile_header 4189456

    How does v$ database.checkpoint_change # here help to determine if a recovery is needed or not so?

    I did not sit that is it his ' necessary recovery or non-compulsory. When you try to open it will provide information - based consistenct check with the data files (v$ datafile and v$ datafile_header) else believe me your cannot open it (as much my testing goes).

    Now, don't say you took the backup and clone of another server, when it is permissible for you open resetlogs, so what is this case/situation, since the db you has opened, since you find no different to SNA (v$ datafile and v$ datafile_header) so he could continue with the new incarnation (new activation id #).  About the incarnation and activation id visit google or one of my blog where I have provided information on that.

    v$ Database.checkpoint_change #-does not say any substance above recovery, its comparison with (v$ datafile and v$ datafile_header) would help on the recovery.

    If you come back and say only above will be enough to decide that if recovery is necessary or not, so I can't decide on this, this is the /algorithm code, if you ask for reasons simply understand that we have below records

    CHECKPOINT PROGRESS RECORD

    EXTENDED ENTRY database... which contains the information

    Automatic backup control date)

    RECORDS IN DATA FILE

    MULTI INSTANCE REDO APPLY RECORD... It's needs to check that all committed or rollback - in terms of CARS (so all the code depends on two or three columns of two control points and can't decide on recovery - according to my knowledge /understanding)

    ARCHIVES NEWSPAPER RECORDS... If SNA isn't matches he can check what archives with SNA which are recovery - on this basis he asks what Archives need to apply.

    Hope this helps and ask you to spend some time, you will understand things.

    -Pavan Kumar N

  • Can I retrieve my db (if I don't activate controlfile autobackup ONE)?

    Hi all;

    Unfortunately, I deleted all the CRD of local database files.  I have backup rman.

    But I did NOT control file autobackup.

    $ rm *.

    $ ls-> NO HRMS CRD of for DATABASE FILES

    SYS > close the demolition;

    ORACLE instance stops.

    SYS > startup nomount;

    ORACLE instance started.

    Total System Global Area 373293056 bytes

    Bytes of size 1273780 fixed

    113246284 variable size bytes

    255852544 of database buffers bytes

    Redo buffers 2920448 bytes

    rman target $ /.

    Recovery Manager: release 10.2.0.5.0 - Production on Mon Nov 10 12:51:11 2014

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

    connected to target database: hrms (unassembled)

    RMAN > restore controlfile autobackp;

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

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

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

    RMAN-00558: error occurred during parsing of order entry

    RMAN-01009: syntax error: found 'identifier': expected an a: "autobackup, single-quoted-string, double-quoted-string tag,"

    RMAN-01008: the identifier of the AfDB was: autobackp

    RMAN-01007: column 26 line 1 file: entry standard

    $ cd/u01/app/oracle/flash_recovery_area/HRMS/backupset/2014_11_10

    [oracle@oel5 2014_11_10] $ ls-l

    Total 1598704

    -rw - r - 1 oracle oinstall 790493184 Nov 10 01:25 o1_mf_annnn_TAG20141110T012445_b5zkn7cn_.bkp

    -rw - r - 1 oracle oinstall 20992 Nov 10 01:27 o1_mf_annnn_TAG20141110T012705_b5zkrlyq_.bkp

    -rw - r - 1 oracle oinstall 7143424 Nov 10 01:27 o1_mf_ncsnf_TAG20141110T012555_b5zkrhqp_.bkp

    -rw - r - 1 oracle oinstall 837795840 Nov 10 01:26 o1_mf_nnndf_TAG20141110T012555_b5zkpfp7_.bkp


    Can I recover my database?

    File "o1_mf_ncsnf_TAG20141110T012555_b5zkrhqp_.bkp" is probably a backup controlfile.

    Use RESTORE CONTROLFILE FROM "path_to_file".

    (Note: you must SET DBID before RESTORE you CONTROLFILE because Oracle uses the DBID to test if the controlfile is the same database.)  You can obtain the DBID of newspapers of the previous series of rman or your documentation)

    Hemant K Collette

  • Controlfile autobackup without RMAN recovery


    Hello

    I'm trying to restore a customer database of RMAN backups for the same instance name and DBID but a different server with a different directory structure.

    It is a full RMAN backup, but the log shows that the controlfile is supported only through current, not with autobackup backup controlfile.

    I have built directories bdump standard and created a directory of data, file a copy of the init.ora in order to take into account locations suitable for the dump file, the archive logs and the controlfiles and also added in the settings db_file_name_convert and log_file_name_convert to map the original directory structure noted in the backup rman to the new locations.

    I understand that you cannot restore the backup controlfile, but was under the impression that you can set the format and restore the controlfile but am not having luck with this-

    [oracle@el64dev03 dbs] $ echo $ORACLE_SID
    EUMSIPSP
    rman target $ [oracle@el64dev03 dbs].

    Recovery Manager: Release 10.2.0.4.0 - Production Wed Aug 28 16:05:37 2013

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

    connected to the database target (not started)

    RMAN > startup nomount;

    Oracle instance started

    Total System Global Area 524288000 bytes

    Bytes of size 2085256 fixed
    285216376 variable size bytes
    230686720 of database buffers bytes
    Redo buffers 6299648 bytes

    RMAN > set dbid 1887849233;   (this is the ID of database)

    executing command: SET DBID

    RMAN > restore controlfile to ' / oradata2/10.2.0/CUST-EUMSIPSP/BAK_98723_d3ohkisi. CTL'; (this is the backup piece pointed in the RMAN backup)

    From restoration to 28 Aug 13
    using the control file of the target instead of recovery catalog database
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid = 430 devtype = DISK

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the restore command at 28/08/2013 16:06:24
    RMAN-06172: no autobackup couldn't find or handle specified is not a valid copy or a piece

    RMAN > run {}
    2 > affect the disc type channel d1 format ' / oradata2/10.2.0/CUST-EUMSIPSP/BAK_%s_%u.CTL';
    3 > restore controlfile to ' / oradata2/10.2.0/EUMSIPSP/' to ' / oradata2/10.2.0/CUST-EUMSIPSP/';
    {4 >}

    output channel: ORA_DISK_1
    allocated channel: d1
    channel d1: sid = 430 devtype = DISK

    From restoration to 28 Aug 13

    output channel: d1
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the restore command at 28/08/2013 16:09:01
    RMAN-06172: no autobackup couldn't find or handle specified is not a valid copy or a piece

    RMAN > exit

    RMAN BACKUP log-

    ...

    connected to target database: EUMSIPSP (DBID = 1887849233)
    using the control file of the target instead of recovery catalog database

    RMAN > run {}
    2 > allocate channel d1 type disk;
    3 > setlimit channel d1 readrate 2000;
    4 > sql 'alter database backup controlfile to trace. "
    5 > backup
    6 > filesperset 1
    7 > format ' / oracle/RMAN/eumsipsp/backups/full/BAK_%s_%u.CTL'
    8 > (current controlfilE);
    {9 >}
    10 >
    allocated channel: d1
    channel d1: sid = 425 devtype = DISK


    SQL statement: alter database backup controlfile to trace

    From backup 18 August 13
    channel d1: from full datafile backupset
    channel d1: specifying datafile (s) in backupset
    including the current control in backupset file
    channel d1: from room 1 to 18 August 13
    channel d1: finished piece 1 at 18 August 13
    piece handle = / oracle/RMAN/eumsipsp/backups/full/BAK_98723_d3ohkisi. Tag CTL = comment TAG20130818T191425 = NONE
    channel d1: complete set of backups, time: 00:00:01
    Backup finished on 18 August 13
    output channel: d1

    ...

    Copied the information from backup files-

    [CUST-EUMSIPSP oracle@el64dev03] $ pwd

    /oradata2/10.2.0/Cust-EUMSIPSP

    [CUST-EUMSIPSP oracle@el64dev03] $ ls - lt * Journal

    -rw - r - r - 1 oracle oinstall 22139 23 August at 14:25 rman_full_eumsipsp_20130818190000.log

    [CUST-EUMSIPSP oracle@el64dev03] $ ls - lt * CTL

    -rw - r - r - 1 oracle oinstall 11927552 28 August at 11:08 BAK_98723_d3ohkisi. CTL

    Is it possible to recover the controlfile at all (as in a disaster situation) so that the database can then be recovered.

    More welcome advice

    Concerning

    Lesley

    I do not know what operating system, customers use

    I need to prove the process works and what I'm looking for is correct, before I can go back to them and ask what they sent.

    Yes, but operating systems may be incompatible. For example, if yours is Linux, and one of the clients is AIX, it would not work, and you get the error that you actually get.

  • RMAN controlfile autobackup

    How ramn will be notified of changes in the structure of the database... which backgound process will even update...

    Hello

    As said above, whenever a structural change happens in the DB... it will be updated in controlfile.similarlly whenever you connect the rman, it get full details of the control file DB. so, if you have configured the automatic backup of the file control then controlfile will be upward automatically saved whenever you issue the backup command.
    by default, rman does not have any backup... Yo has set up or have to plan the rman backup...

    Kind regards
    Deepak

  • Error when I configure snapshot controlfile RMAN

    Dear Experts,

    I have Oracle 11 g R2 DB primary and Standby in two Machines

    I have Window Server 2008

    I am new to RMAN tools

    I do set up RMAN primary side

    I made the OS address for a disk primary side

    Now I'm RMAN configuration as below:

    Configure default device the disk type;

    set up the device type disk parallelism 4 type of backup backupset.

    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK to 'Z:\RmanControlFileBackup\cf%F ';

    Configure controlfile autobackup on;

    Configure controlfile autobackup peripheral type disc format to "+ FRA;

    Configure controlfile autobackup format for device type sbt to "backup_ % d_controlfile_ %f."

    Configure redundancy 4 retention strategy;

    Configure the None archivelog deletion policy;

    Configure snapshot controlfile name to 'Z:\RMANCONTROLFILEBACKUP\SNAPSHOT_EPPROD1_CF. CTL';

    Next, I get the following error... I don't know how I can delete that I did my research online, I found this link

    http://pavelermakov.WordPress.com/2011/11/08/ora-01580-error-creating-control-backup-file/

    RUN SYS. DBMS_BACKUP_RESTORE. CFILESETSNAPSHOTNAME('/U01/app/Oracle/product/11.2/DB/DBS/snapcf_db1. F') ;

    I could not implemented on my setup because I do not have snapcf_db1.f file... Please any help will be appreciated.

    anyone with any solution.

    I need to erase the last transactional... .configure the controlfile Snap to 'Z:\RMANCONTROLFILEBACKUP\SNAPSHOT_EPPROD1_CF. CTL' name; who make that mistake.

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

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

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

    RMAN-03002: failure of the command configure at 19/12/2013 08:44:57

    RMAN-03014: implicit recovery catalog Resync failed

    RMAN-03009: resync command failed complete default channel at 19/12/2013 08:44:57

    ORA-01580: Z:\RMANCONTROLFILEBACKUP\SNAPSHOT_EPPROD1_CF. CTL control backup file creation error

    ORA-27040: create file error, cannot create the file

    04002 - OSD: could not open the file

    S/O-error: (OS 3) the system cannot find the path specified.

    Hello

    > RMAN-03002: failure of the command configure at 19/12/2013 08:44:57

    > Implicit 03014 RMAN recovery catalog Resync failed:

    > RMAN-03009: resync command failed complete default channel at 19/12/2013 08:44:57

    "DO NOT CONNECT TO THE CATALOG.

    Thank you

  • Cannot find autobackup controlfiles even if we had Sunday full backup

    I got this when trying to restore controlfile:
    RMAN > 2 > 3 > 4 > 5 > 6 > 7 > 8 > 9 > 10 >
    allocated channel: t1
    channel t1: SID = 1034 device type = SBT_TAPE
    channel t1: NMO v5.0.0.0

    command sent on the channel: t1

    executing command: SET CONTROLFILE AUTOBACKUP FORMAT

    From restoration to 25 October 12

    channel t1: looking for AUTOBACKUP day: 20121025
    channel t1: looking for AUTOBACKUP day: 20121024
    channel t1: looking for AUTOBACKUP day: 20121023
    channel t1: looking for AUTOBACKUP day: 20121022
    channel t1: looking for AUTOBACKUP day: 20121021
    channel t1: looking for AUTOBACKUP day: 20121020
    channel t1: looking for AUTOBACKUP day: 20121019
    channel t1: found no AUTOBACKUP in 7 days
    output channel: t1
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the restore command at 25/10/2012 18:58:23
    RMAN-06172: no AUTOBACKUP couldn't find or handle specified is not a valid copy or a piece


    How to list to see if we have autobackup controlfile? in the full backup on Sunday, there is a full backup.

    Here's the Sunday full backup script:
    connection target;
    configure backup optimization

    Run {}
    Configure controlfile autobackup on;
    Configure controlfile autobackup format for device type 'sbt_tape' to ' / NMO_v_ %f ';

    DATABASE INCREMENTAL level 0 BACKUP more archivelog delete all entries "prod" TAG

    output channel ch00;
    output channel ch01.
    output channel ch02;
    output channel ch03;

    Hello again;

    Looks like you found them! Great! So they mean only the part %F. always good to learn something new.

    / NMO_v_c-258815187-20121025-00

    Not having automatic not backup job is a nightmare. I know that I have bet on it.

    Thanks for letting me know before the end of my day.

    Have a good night.

    mseberg

  • Change TAG controlfile

    Hello guys,.

    How can I change the tag name in the AutoSave?

    quick glance:

    RMAN > list backup;

    Backup list

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

    S LV TY Device Type delay #Pieces compressed #Copies Tag key

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

    3202 B 0 A 3 JANUARY 16 4 DISC 1 YES BKP_FULL

    3203 B 0 A DISC 3 JANUARY 16 1 1 YES BKP_FULL

    3204 DISC 3 JANUARY 16 1 1 YES BKP_ARC

    3205 a DISC 3 January 16 1 1 no TAG20160103T121745

    3206 a DISC 3 January 16 1 1 YES TAG20160103T122034

    3207 a DISC 3 January 16 1 1 no TAG20160103T122036

    3208 DISC 3 JANUARY 16 1 1 YES BKP_ARC

    3209 a DISC 3 January 16 1 1 no TAG20160103T124507

    3210 DISC 3 JANUARY 16 1 1 YES BKP_ARC

    3211 a DISC 3 January 16 1 1 no TAG20160103T134508

    RMAN > show all.

    CONFIGURE CONTROLFILE AUTOBACKUP ON;

    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT for DEVICE TYPE DISK TO ' / u05/control_BD_%F.ctf';

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

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

    3247 full 13.42 M DISK 00:00:01 January 4, 16

    BP key: 3280 situation: AVAILABLE Tablet: No. Tag: TAG20160104T074506

    Part name: /u05/control_BD_c-25577065-20160104-07.ctf

    SPFILE included: Modification Date: 3 January 16

    SPFILE db_unique_name: BD

    Control file included: cash SNA: 95833764 cash time: 4 January 16

    Hello

    1 direct the response is not possible (as you want to edit it - existing tag name) you must ensure that you can then give him only by using backup taken tag keyword followed by the name of tag

    2. Secondly, provided the demo below, if you try and look at the syntax of the catalog and uncatalog change - you can not able to do because the option is not out with parts backupsets/backup and (its only available with datafilecopy) controlfilecopy

    Demo

    RMAN > list backup;

    List of backup sets

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

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

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

    17 full 9.92 M DISK 00:00:01 5 January 16

    BP key: 159 status: AVAILABLE Tablet: No. Tag: TAG20160105T144704

    Part name: /u04/test_backup/0hqqk7f8_1_1.set

    Control file included: cash SNA: 2899792 cash time: 5 January 16

    RMAN > 159 change backuppiece uncatalog;

    backup not catalogued piece

    handle=/u04/test_backup/0hqqk7f8_1_1.set backup RECID piece = 159 STAMP = 900341225

    1 the objects not catalogued

    RMAN > catalogue backuppiece ' / u04/test_backup/0hqqk7f8_1_1.set';

    backup item catalogued

    handle=/u04/test_backup/0hqqk7f8_1_1.set element of backup RECID = 161 STAMP = 900342448

    Again, we will have the same tagname

    RMAN > backup as copy current controlfile;     -lets see controlfile copy

    From backup 5 January 16

    using channel ORA_DISK_1

    channel ORA_DISK_1: from data file copy

    copy the current control file

    tag name=/u04/test_backup/cf_D-DEMO1_id-3897516396_0iqqk8m2.set output file = RECID = 1 STAMP = 900342467 TAG20160105T150746

    channel ORA_DISK_1: datafile copy complete, duration: 00:00:01

    Backup finished on 5 January 16

    RMAN > list a copy of the controlfile;

    List of Copies of control files

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

    S time delay key cash YVERT cash

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

    1. A 5 JANUARY 16 2901078 5 JANUARY 16

    Name: /u04/test_backup/cf_D-DEMO1_id-3897516396_0iqqk8m2.set

    Tag: TAG20160105T150746

    RMAN > change controlfilecopy 1 uncatalog;

    copy of control files not catalogued

    control file RECID = 1 STAMP = 900342467 name=/u04/test_backup/cf_D-DEMO1_id-3897516396_0iqqk8m2.set copy

    1 the objects not catalogued

    Catalogue controlfilecopy ' / u04/test_backup/cf_D-DEMO1_id-3897516396_0iqqk8m2.set' we can provide any tag... more here


    If you are debugging, you can see his inspect right and we have no setting for proc send the tagname attribute


    ENTRY krmzlog [15:18:59.576]
    control file RECID = TONE 2 = 90034313 name=/u04/test_backup/cf_D-DEMO1_id-3897516396_0iqqk8m2.set copy 9

    Elapsed time LEFT krmzlog [15:18:59.576] [00:00:00:00.000]

    krmxrpc - channel kpurpc2 err = 0 db = default target proc =SYS. DBMS_BACKUP_RESTORE. SETRMANSTATUSROWID off: 0

    krmxr - default channel returned by peicnt

    krmxr - default channel finished step

    Krmqgns ENTRIES

    failure to complete channel step 1 (krmqgns)

       krmqgns: job search for failure to channel (krmqgns)
    krmqgns: commands to be executed: (krmqgns)
    krmqgns: no work not found for default channel (krmqgns)
    (krmqgns)

    Krmqgns WHOLE with status 1

    Krmqgns ENTRIES

    krmqgns: job search for failure to channel (krmqgns)
    krmqgns: commands to be executed: (krmqgns)
    krmqgns: no work not found for default channel (krmqgns)
    (krmqgns)

    Krmqgns WHOLE with status 1

    krmxr - everything is done

    krmxr - out with 0

    Krmiexe COMPLETED with status 0 [15:18:59.577] out of time [00:00:00:00.010]

    But for datafilecopy you can do

    COPYDATAFILECOPY

    Name of default input/output argument type?

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

    NUMBER OF COPY_RECID IN

    NUMBER OF COPY_STAMP IN

    VARCHAR2 FULL_NAME OUT

    NUMBER OF OUT RECID

    NUMBER OF STAMP OUT

    FNAME VARCHAR2 IN DEFAULT

    MAX_CORRUPT DIRECTORY BY DEFAULT

    TAG VARCHAR2 IN by DEFAULT - you have tagname with which

    DEFAULT TO BOOLEAN NOCHECKSUM

    ISBACKUP IN BOOLEAN DEFAULT

    It may be useful

    -Pavan Kumar N

  • AUTOMATICA Controlfile backup?

    Hello

    I'm using Oracle 11.2.0.3 on Oracle Linux 5.

    My config RMAN States

    CONFIGURE CONTROLFILE AUTOBACKUP ON;

    Now according to the documentation,

    (a) at any time, if I take a backup of files dbf SYYTEM it will automatically backup controlfile, spfile, and

    (b) at any time let's say I create a new TS or add a new data file to an existing TS, it will take a controlfile backup due to structural changes to the database;

    My doubt is related to point (b) above, even if I created a new TS, I saw that it does not automatically trigger a backup controlfile. Can I assume that Oracle will eventually do so after a while or my understanding is incorrect? Getting you guys able to see the play of backup controlfile generated as soon as new TS is created?

    Learner

    In 10g, it would create an automatic backup whenever a structural change was made. So, if you have added the files of 10 data within 30 minutes, it would create 10 record.

    11 g, they have changed the 'intelligence' to wait and see if you do several structural changes in a short time before deciding to do an automatic backup.

    (or was it 9i and 10g, I don't remember now)  It's the change of 11g over 10g

    Hemant K Collette

  • strange error with configure snapshot controlfie

    If I put the path snapshot controlfile to the db name hardcoded in the path, it works:

    CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' / var/backup/IDB00246/snapcf_%d.f';

    From control file and SPFILE Autobackup 10 December 14
    room handle=/var/backup/IDB00246/controlc-2380395869-20141210-05.ctl comment = NONE
    Control finished and Autobackup SPFILE file to 10 December 14

    RMAN >

    Complete recovery manager.

    But if I put the path using %d, he doesn't seem to like it:

    CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' / var/backup/%d/snapcf_%d.f';

    From control file and SPFILE Autobackup 10 December 14
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03009: failure of command of file control and SPFILE Autobackup on channel ORA_DISK_1 at 15:07:40 10/12/2014
    ORA-01580: error creating control file backup /var/backup/%d/snapcf_%d.f
    ORA-27040: create file error, cannot create the file
    Linux-x86_64 error: 2: no such file or directory
    Additional information: 1

    RMAN >

    Complete recovery manager.

    I can use %d for these two orders with no problems:

    FORMAT 1 CONFIGURE CHANNEL DEVICE TYPE DISK MAXOPENFILES ' / var/backup/%d/dumps%d_%T_s%s_p%p.bus';

    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT for DEVICE TYPE DISK TO ' / var/backup/%d/control%F.ctl';

    Then why can't it be used for snapshot controlfile?

    On the snapshot Controlfile: when RMAN must resynchronize the catalog of recovery with a consistent read version of the control file, it creates a TEMPORARY snapshot control file. RMAN needs a snapshot control file when the resynchronization with recovery catalog or before you perform a backup of the current control file.

    Why you should use variables in a temporary file internal?

    RMAN does not have a snapshot unique to each backup file, RMAN automatically overwrites the file if it exists. You can use the same file and location all the time, for example ' / u01/app/oracle/product/11.2.0/dbhome_1/dbs/snapcf_dborcl.f'

    If I put the path snapshot controlfile to the db name hardcoded in the path, it works:

    CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' / var/backup/IDB00246/snapcf_%d.f';

    You have this file "snapcf_%d.f" not "snapcf_IDB00246.f" in "/ var/backup/IDB00246 / ', because 'CONFIGURE SNAPSHOT CONTROLFILE NAME' does not support variables.

    You must create a file snapshot controlfile name unique for each database.

  • RMAN backup runs twice (sequential) even if it is not configured in this way

    Hello

    I started experimenting with RMAN as another way for backup (currently we use backup with storage). I'm running a few tests every day to check the overhead and time there and also check the storage space needed for our system.

    At first, everything seems fine, I tested a few default options and then started to configure the RMAN suite better our needs.

    The problem:

    During my recent tests found that RMAN's backup of my database twice, but I could not find out where I configure it to run this way.

    I even put a basic Vanilla with the same features, but it produces a single backup set.

    I enclose my test RMAN environment configuration, and I hope that someone will be able to indicate where I configured RMAN to do 2 sets of backup.

    RMAN > show all.

    Db_unique_name MSCA RMAN database configuration settings are:

    CONFIGURE REDUNDANCY 1 RETENTION STRATEGY; # by default

    CONFIGURE BACKUP OPTIMIZATION # by default

    SET UP DEFAULT DISK DEVICE TYPE; # by default

    CONFIGURE CONTROLFILE AUTOBACKUP ON;

    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO "%F" # by default

    SET UP THE DEVICE TYPE DISK BACKUP FOR PARALLELISM BACKUPSET TABLET 1 TYPE;

    CONFIGURE BACKUP OF DATA TO DISK FILE TYPE DEVICE TO 1; # by default

    CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE DISK TO 1; # by default

    CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT ' / oracle/MSCA/db/rman_bkup/MSCA/df_%d_%T_%U.rmn' MAXPIECESIZE 10 G;

    CONFIGURE MAXSETSIZE TO UNLIMITED; # by default

    CONFIGURE ENCRYPTION OF DATABASE # by default

    CONFIGURE THE ENCRYPTION ALGORITHM "AES128"; # by default

    CONFIGURE COMPRESSION ALGORITHM 'BASIC' AND 'DEFAULT' LIBERATION OPTIMIZE FOR TRUE LOAD; # by default

    CONFIGURE THE NONE ARCHIVELOG DELETION POLICY; # by default

    CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' / oracle/MSCA/db/rman_bkup/msca_dbs/snapcf_MSCA.f';

    Here is the result of the end of the backup set 1. You can see it took 2 hours, then immediately, he began another work of backup (highlighted in RED)

    channel ORA_DISK_1: finished piece 5 to 02 - OCT-14

    piece handle=/oracle/MSCA/db/rman_bkup/MSCA/df_MSCA_20140902_09phg6h0_5_1.rmn tag = TAG20140902T115927 comment = NONE

    channel ORA_DISK_1: full game backup, duration: 02:05:08

    channel ORA_DISK_1: from complete compressed datafile backup set

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

    Thank you

    Saar

    You present, evidence that it is '2 backups of a database'.  I see two backupsets, each with a different set of data files in your ad.  If the backup is spanning two backupsets - you probably more than 64 files of data.

    Hemant K Collette

Maybe you are looking for

  • Using a matrix with variables in it.

    Hi all, I'm new on my HP 50 g so it can be easier that I am make it look like. I'm writing an equation for my strength of class material. The equation is the following: K = ((E*A)/L) * [C ^ C * S 2 - C ^ 2 - C * S][C * S S ^ 2 - C * S S ^ 2] [- C ^ 2

  • Envy 14 Sleekbook QHD TS: broken glass

    Want to touch 14 "Sleekbook QHD display. I cracked the glass at the level of the hole of the microphone when you lift the device with a grip around the top edge of the screen. The TS-function disappeared, but there is no other damage. I can live with

  • During playback of an album (Photos), the pictures are blurry

    When I want to see my new photos with Photos, in the form of an album, the photos are blurry for a while. It takes time for the image get sharp. Some don't even. I have a lot of pictures and the last are about 5 tot 6 MB each. In many large?

  • Email from blackBerry Smartphones do not reconcile

    Hello people I have the same g-mail account set up on my laptop and BB (imap, POP3 was until yesterday when I changed it) and normally when I delete an email it would automatically remove it from the other device. I have another g-mail account that i

  • BlackBerry smartphones is possible to get contacts will appear on schedule in the BB?

    New in BB / seeks to know whether there is a way to get contacts that sync to Blackberry (from Outlook) will appear on the calendar entry in Blackberry.  I can't seem to find how - begins to wonder if she just cannot be done.