Rman - "report unrecoverable" concept

Hi
I am readin g a book on rman (rman recipes 11g from APress).
I m not able to understand what is the purpose of "report unrecoverable" command. Book says:
>
Ref: Section 8.3 - page# 229:
You want to identify which datafiles have been affected by unrecoverable operations, since RMAN needs to back up those files as soon as possible after you perform an unrecoverable operation.
Use the report unrecoverable command to find out which datafiles in the database have been marked unrecoverable because they’re part of an unrecoverable operation. Here’s an example showing how to use the report unrecoverable command:
RMAN> report unrecoverable;
Report of files that need backup due to unrecoverable operations
File Type of Backup Required Name
1 full /u01/app/oracle/data/prod1/example01.dbf
RMAN>Could someone please give example of unrecoverable operation(s)? And how could rman/oracle know before hand if such an unrecoverable operation is going to be performed on certain datafile(s)?
Thanks

user12033597 wrote:
Hi
I am readin g a book on rman (rman recipes 11g from APress).
I m not able to understand what is the purpose of "report unrecoverable" command. Book says:
Ref: Section 8.3 - page# 229:
You want to identify which datafiles have been affected by unrecoverable operations, since RMAN needs to back up those files as soon as possible after you perform an unrecoverable operation.
Use the report unrecoverable command to find out which datafiles in the database have been marked unrecoverable because they’re part of an unrecoverable operation. Here’s an example showing how to use the report unrecoverable command:
RMAN> report unrecoverable;
Report of files that need backup due to unrecoverable operations
File Type of Backup Required Name
1 full /u01/app/oracle/data/prod1/example01.dbf
RMAN> Could someone please give example of unrecoverable operation(s)? And how could rman/oracle know before hand if such an unrecoverable operation is going to be performed on certain datafile(s)?
Thanks A datafile or tablespace are set to unrecoverable if any operation that had been performed (since the last backup taken on these datafiles) on datafile or tablespace that are unrecoverable.
A little explanation:
When ever a operation occurs on database i.e. any dml occurs on tables, these operation generates REDO information in redolog files. So when someone explicitly disable the logging information to redologfile(by hint no_logging), then datafile is marked as unrecoverable.
Oracle says it unrecoverable because oracle cannot perform recovery by reading from redologfile or archivefiles if datafile crashes and need a recovery. Thats why rman warns you about such operation which could have taken place and point you to datafile which had these operation performed. The operations which are unrecoverable are:
1) direct load/SQL load
2) direct-path inserts result from insert or merge statement
3) ALTER TABLE commands
4) CREATE and ALTER INDEX commands
5) INSERT /*+APPEND*/
6) partition manipulation
7) database object that has explicitly set with nologging option
8) Oracle eBusiness Suite concurrent job execution identified in Oracle metalink note: 216211.1
8) Oracle eBusiness Suite patches activities that involve database object manipulation
9) SQL*loader with nologging
So once you take the full backup of datafiles (which are affected by these operation) will clearout the Unrecoverable warning. Because now oracle has the backup of these files.
What preventions you can take for not making datafile to Unrecoverable?
Use force_logging
Also see
http://www.pythian.com/news/7401/oracle-what-is-an-unrecoverable-data-file/
Hope this help you in understanding

Similar Messages

  • Unrecoverable_change# and rman report unrecoverable

    I am running a test db oracle 11gR2 on windows server 2008.
    I am running oracle suggested backup strategy for my backup operation.
    So every night i run incremental backup and apply the previous incremental to image copies.
    I am confused on why when i run a query like
    select file#,name,unrecoverable_change#,unrecoverable_time from v$datafile
    i have atleast one or two datafiles whose unrecoverable_change# and unrecoverable_time value is not 0.
    Whether the operation was in nologging or not, since i have a incremental backup, why is the above value not 0??
    However when i run in rman,
    report unrecoverable;
    rman does not report anything. So whats the difference b/w rman unrecoverable and the one from v$datafile??
    can someone help me understand the correct concept of unrecoverable_change#??
    Thanks.

    Yes , this is right. At least with Oracle XE as show in following test case:
    SQL> select name, unrecoverable_change#, unrecoverable_time from v$datafile where file#=1;
    NAME
    UNRECOVERABLE_CHANGE# UNRECOVER
    C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF
                        0
    SQL> select name, unrecoverable_change# UC, unrecoverable_time UT from v$datafile where file#=1;
    NAME
            UC UT
    C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF
             0
    SQL> desc t;
    ERROR:
    ORA-04043: object t does not exist
    SQL> create table t(x int) nologging;
    Table created.
    SQL> insert /*+ APPEND */ into t select object_id from dba_objects;
    12616 rows created.
    SQL> commit;
    Commit complete.
    SQL> select name, unrecoverable_change# UC, unrecoverable_time UT from v$datafile where file#=1;
    NAME
            UC UT
    C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF
       2004176 16-SEP-10
    SQL> exit
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    C:\>rman target /
    Recovery Manager: Release 10.2.0.1.0 - Production on Thu Sep 16 20:59:51 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    connected to target database: XE (DBID=2607125346)
    RMAN> report unrecoverable;
    using target database control file instead of recovery catalog
    Report of files that need backup due to unrecoverable operations
    File Type of Backup Required Name
    1    full or incremental     C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF
    RMAN> backup incremental level 1 datafile 1;
    Starting backup at 16-SEP-10
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=25 devtype=DISK
    channel ORA_DISK_1: starting incremental level 1 datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF
    channel ORA_DISK_1: starting piece 1 at 16-SEP-10
    channel ORA_DISK_1: finished piece 1 at 16-SEP-10
    piece handle=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2010_09_16\
    O1_MF_NNND1_TAG20100916T210031_694TBHLT_.BKP tag=TAG20100916T210031 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15
    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 16-SEP-10
    channel ORA_DISK_1: finished piece 1 at 16-SEP-10
    piece handle=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2010_09_16\
    O1_MF_NCSN1_TAG20100916T210031_694TC04T_.BKP tag=TAG20100916T210031 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
    Finished backup at 16-SEP-10
    RMAN> report unrecoverable;
    Report of files that need backup due to unrecoverable operations
    File Type of Backup Required Name
    RMAN>And you still have:
    C:\>sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Sep 16 21:08:27 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> select name, unrecoverable_change# UC, unrecoverable_time UT from v$datafile where file#=1;
    NAME
            UC UT
    C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF
       2004176 16-SEP-10Edited by: P. Forstmann on 16 sept. 2010 21:07

  • RMAN report need backup

    We have an incremental level-1 backup Mon-Sat and cold full backup on Sundays with retention policy of 7 days. While troubleshooting some backup issues (space issue, expired backups) I ran the following commands and trying to understand the output.
    RMAN> report need backup database;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to recovery window of 7 days
    Report of files whose recovery needs more than 7 days of archived logs
    File Days Name
    100 146 /orahprdidx/hprd/psindex05.dbf
    RMAN> report unrecoverable;
    Report of files that need backup due to unrecoverable operations
    File Type of Backup Required Name
    RMAN> report need backup days = 7 database;
    Report of files whose recovery needs more than 7 days of archived logs
    File Days Name
    100 146 /orahprdidx/hprd/psindex05.dbf
    RMAN> report obsolete recovery window of 7 days;
    no obsolete backups found
    RMAN>
    I looks like I need 146 days worth of archive log files to recover the psindex05.dbf. If so, what I could do to bring that into the 7 days policy?
    The database is fine, I am not trying to recover the database.
    This was setup by someone and now I am taking over with minimum RMAN experience.
    I appreciate any help in this subject.

    The datafile was offline. I guess it was created my mistake and hanging in there. Once I do the cleanup it should go away.

  • Report unrecoverable

    After taking full database backup I issued
    RMAN> report unrecoverable;
    Report of files that need backup due to unrecoverable operations
    File Type of Backup Required Name
    5 full or incremental /u06/oradata/WRHS/data01.dbf
    7 full or incremental /u06/oradata/WRHS/data02.dbf
    8 full or incremental /u06/oradata/WRHS/data03.dbf
    17 full or incremental /u06/oradata/WRHS/data04.dbf
    19 full or incremental /u06/oradata/WRHS/data06.dbf
    21 full or incremental /u06/oradata/WRHS/data07.dbf
    23 full or incremental /u03/oradata//WRHSdata08.dbf
    25 full or incremental /u03/oradata//WRHSdata09.dbf
    26 full or incremental /u03/oradata//WRHSdata10.dbf
    28 full or incremental /u05/oradata/WRHS/data05.dbf
    30 full or incremental /u07/oradata/WRHS/data12.dbf
    31 full or incremental /u07/oradata/WRHS/data11.dbf
    32 full or incremental /u07/oradata/WRHS/data13.dbf
    33 full or incremental /u07/oradata/WRHS/data14
    34 full or incremental /u05/oradata/WRHS/data15.dbf
    36 full or incremental /u05/oradata/WRHS/data16.dbf
    What should I do??

    Make sure that nologging operations, especially direct inserts, are not running in the database and take the full backup again.

  • What is report unrecoverable;

    RMAN> report unrecoverable;
    Report of files that need backup due to unrecoverable operations
    File Type of Backup Required Name
    22 full or incremental /u02/proddata/a_txn_data01.dbf
    23 full or incremental /u02/proddata/a_txn_data02.dbf
    24 full or incremental /u02/proddata/a_txn_data03.dbf
    39 full or incremental /u02/proddata/a_txn_data04.dbf
    every time shows this value after taking rman full backup
    why and what is solution

    Hello,
    what should be database in logging or NOLOGGING mode.Don't be confuse between LOGGING/NOLOGGING and ARCHIVELOG/NOARCHIVELOG.
    A Database can be in ARCHIVELOG mode and have Tables / Tablespaces in NOLOGGING mode so as to enable non-logged operations.
    Non-logged operation can increase performance in some case (heavy load,...) but should be used with caution. If you have to recover a Database in which there was a non-logged DML, some Blocks could be marked as corrupted.
    So NOLOGGING mode must be limited to Tables that you can recreate and reload easily. For instance, Temporary Tables that don't store permanent datas.
    Else, you should avoid using NOLOGGING mode in Production Database.
    Please, find enclosed a very interesting link about this topic:
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:5280714813869
    Hope this help.
    Best regards,
    Jean-Valentin

  • RMAN REPORT OPTIONS

    i do not really understand the 'redundancy' option of rman report command.
    like the one below:
    RMAN> REPORT NEED BACKUP REDUNDANCY 2;
    please, i don't understand what the word 'redundancy' means here.
    I need help please.
    thank you

    Think of redundancy as number of full backups.
    Redundancy 1 is 1 backup ago.
    Redundancy 2 is 2 backups ago.

  • RMAN Report

    Hi,
    I am using ORACLE 10.2 G. I have done the following on my pc :
    ALTER TABLESPACE USERS BEGIN BACKUP;
    CREATE TABLE NOTBACKEDUP(ID INTEGER, STR VARCHAR(16)) TABLESPACE USERS;
    INSERT INTO NOTBACKEDUP VALUES(1, 'ROW 1');
    INSERT INTO NOTBACKEDUP VALUES(2,'ROW 2);
    COMMIT;
    ALTER TABLESPACE USERS END BACKUP;
    How do I view RMAN Report ? I need to print that report.
    Thanks .

    Hi,
    I have never used RMAN before, I need to print a copy of RMAN report to show that work that I provided in my question. How do I start RMAN ? and How Do I print that report ? I am still in dilema with respect to above statement.
    Take time and try to refer to the below oracle documentation
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/bkup008.htm
    Note:- Don't be in hurry

  • RMAN reports

    Hi - need some tips on generating useful RMAN reports. (Not using Recovery Catalog).
    SQL> select input_type,
      2  round(output_bytes/1024/1024,2) "MB",
      3  status,
      4  start_time,
      5  end_time,
      6  time_taken_display "Total Time"
      7  from v$rman_backup_job_details;
    INPUT_TYPE              MB STATUS          START_TIME END_TIME   Total Time
    DB INCR             191,63 COMPLETED       15.04.2011 15.04.2011 00:01:05
    1 row selected.As you can see this was a incremental backup. But I would like to know what level and what type of incremental backup that was used. I have tried to search through all the v$rman views but cannot find anything that would give me that information.
    Is it not possible to get that kind of information from the database views?
    Thanks in advance.

    Hemant K Chitale wrote:
    But I would like to know what level and what type of incremental backup that was used.Unfortunately no. If you run a BACKUP .. INCREMENTAL -- whether it is LEVEL 0 or LEVEL 1 -- it is reported as "DB INCR". So, you can't distinguish between L0 and L1 backups !
    You have to cross-check the times with your own backup schedules (e.g. you know when L0 backups are scheduled and when L1 backups are scheduled) OR backup run logs (using the LOG option or capturing the screen output).
    Hemant K ChitaleHerman,
    I tested tychos's solution (querying v$backup_set_details), and it looks Ok to me?

  • RMAN report to a table

    Hello,
    is there a way to create a RMAN report for all the backups that are being done in different databases and that report should be directly writing to a sample table.
    the report should contain the colums like -
    DBNAME BKPTYPE DATE STATUS STARTTIME ENDTIME .. and so on..
    i've tried using some v$views like V$RMAN_BACKUP_JOB_DETAILS,V$RMAN_BACKUP_JOB_DETAILS,V$BACKUP_SET_DETAILS. etc... but i need a some sql or pl/sql that should give me the complete report.
    thanks,
    vinay

    Hi Vinay,
    are you using recovery catalog then you can generate the backup report for all databases using the following query.
    select
    session_key, db_name,
    min(r.start_time) start_rman,
    min(c.checkpoint_time) start_controlfile,
    min(d.checkpoint_time) start_datafile,
    min(a.first_time) start_archivelog,
    max(a.next_time) end_archivelog,
    min(b.start_time) start_set,
    max(b.completion_time)
    end_set, min(p.start_time)
    start_piece, max(p.completion_time) end_piece
    from
    rman.rc_backup_controlfile_details c
    join
    rman.rc_backup_datafile_details d
    on c.session_key = d.session_key
    join
    rman.rc_backup_archivelog_details a
    on c.session_key = a.session_key
    join
    rman.rc_backup_set_details b
    on c.session_key = b.session_key
    join
    rman.rc_backup_piece_details p
    on c.session_key = p.session_key
    join
    rman.rc_rman_backup_job_details r
    on c.session_key = r.session_key
    where
    db_key =
    (select db_key
    from rman.rc_database
    where name = 'alice1')
    and
    c.checkpoint_time >sysdate-14
    and
    d.checkpoint_time >sysdate-14
    and
    r.start_time >sysdate-14
    and
    a.first_time >sysdate-14
    and
    b.start_time >sysdate-14
    and
    p.start_time >sysdate-14
    and
    a.next_time >sysdate-14
    and
    b.completion_time >sysdate-14
    and
    p.completion_time >sysdate-14
    group by
    session_key,
    db_name;
    Regards,
    Jey

  • Reporting database concept

    Hi Experts,
    I am looking for best concept for reporting database. Requirement is to send to data warehouse system aggregated data from my database. The idea is to have something like DWH area and prepare data before export. This (let’s say) DWH area can be a separate instance or can be in the main database.
    I am taking into consideration data guard mechanism but I do not want to have whole database – I need only a piece of data from several tables.
    The next idea I have in mind is to simply get data from main database and insert it into the DWH area – but this operation can be very resource (and time) consuming.
    Is there any out of the box Oracle mechanism to develop such as architecture?
    Maybe you have any other suggestion how I can prepare this mechanism to prevent database kill?
    Thank you in advance for your help,
    Michal.

    DWH design is not something that can be answered on a forum. There is just too much detail to explain. Get a good book on the subject.
    It all depends on the data structures, size, transaction volume, and reports you want to run.
    If you want to move a subset of aggregate data to a reporting database (or reporting schema), then you should read up on database links, "merge into" statements, mviews, and streams. Also read up on the OWB product, fact and dimension table design, and bitmap indexes.

  • OEM and rman reporting

    Good Morning.
    I've just installed Grid Control 11g, and have it successfully monitoring several of our databases.
    One of the pages shows the database RMan backups. Is it possible to get these eMailed out ?
    The databases are backed up using RMan, but there is no catalog involved. Is it possible to get the RMan stats out (Such as size, speed, time taken, successful or not from the control file), in which case I should be able to write my own report out, and have these eMailed out..
    Thanks in advance
    KEv

    user8705047 wrote:
    Good Morning.
    I've just installed Grid Control 11g, and have it successfully monitoring several of our databases.
    One of the pages shows the database RMan backups. Is it possible to get these eMailed out ?
    Yes you can get that .
    Create a job of type RMAN and then configure email notification for that.
    Regards
    Rajesh

  • Forms-launched Reports - General Concept Question

    With client/server forms and reports in 6i I launched reports by selecting them directly off a menu (mmx). This brought up the report's (attached) parameter and then the user ran the report.
    I'm re-engineering the application in 10gR2 and the documentation I've looked at describes how you need to create a reports object under the report node within an Oracle form. I'm missing a piece of the general concept here. I've got 120 reports that currently each appear as menu items and when selected that launches the report (as described above). Should I be replacing each of those menu item calls to a report with a call to a form that is now the 'jump off' point for each report? i.e.- Do I have to create a form for each of my reports?

    Hi,
    I have done the similar migaration of reports...
    2 Ways for this....One - You can create forms and then call the reports........I hope you can do the changes...
    Two - You can add report object to the form in which the menu is attached and add few parameters ( i added five parameters bu these may be different in your case ) to the reports so that you can display the reports parameter form in the browser itsef before running the reports from menus......you can use RP2RRO library for this.

  • RMAN reporting using SQL*PLUS

    I am trying to create a report that will take some of the rman schema views/tables and put it in a specified format for a report. I need to get the database name, start day and time, end day and time, how long the backup took in seonds, the backup status and the number of bytes of the backup. I also need it to span 2 days, i.e 6pm yeterday to 8am today. So far here is what I have:
    select a.name,
    to_char(MIN(b.start_time), 'MM-DD-YYYY') as "Start_Day",
    to_char(MIN(b.start_time), 'HH24:MI:SS') as "Start_Time",
    to_char(MAX(b.completion_time), 'MM-DD-YYYY HH24:MI:SS') as "End Day",
    SUM(b.elapsed_seconds) as "Seconds",
    b.status
    from rman.rc_database a, rman.rc_backup_set b
    WHERE a.DB_KEY = B.DB_KEY
    AND a.DBID = B.DB_ID
    AND trunc(b.Start_time) = trunc(sysdate)
    GROUP BY a.name, b.status
    order by 2,3,1
    It only works for the current day and I can't seem to find the byte size for the backup piece. Any suggestions on how this should work I would relly appreciate it.

    This is not a right forum to post your problem. This is SQL PL/SQL forum.
    Please post it in Database General Forum.
    Regards.
    Satyaki De.

  • RMAN reporting of Netapp Snapshots

    Hi,
    The database snapshots taken using Netapp are diverted to RMAN catalog repository. Is there a way, where we can run the reports on which backup is failed/successful using RMAN.
    Thanks

    user13674606 wrote:
    Hi,
    The database snapshots taken using Netapp are diverted to RMAN catalog repository. Is there a way, where we can run the reports on which backup is failed/successful using RMAN.
    Thanksfor Backup sets and proxy copies the command is: LIST BACKUP :     (You can list all backup sets, copies, and proxy copies of a database, tablespace, datafile, archived redo log, control file, or server parameter file.)
    for Image copies the command is: LIST COPY : (You can list datafile copies and archived redo log files. By default, LIST COPY displays copies of all database files and archived redo logs. Both usable and unusable image copies are included in the output, even those that cannot be restored or are expired or unavailable.)
    for Archived redo log files: the command is LIST ARCHIVELOG (You can list archived redo log files.)
    Query the V$RMAN_BACKUP_JOB_DETAILS view for information about the backup type, status, and start and end time. The status column of this view STATUS, This column has One of the following values:
    * RUNNING WITH WARNINGS
    * RUNNING WITH ERRORS
    * COMPLETED
    * COMPLETED WITH WARNINGS
    * COMPLETED WITH ERRORS
    * FAILED
    http://download.oracle.com/docs/cd/B28359_01/backup.111/b28270/rcmreprt.htm#CHDIDAEC
    http://download.oracle.com/docs/cd/E18283_01/server.112/e17110/dynviews_2142.htm#REFRN30391

  • Rman :: report backup tag= ??

    hello all,
    few weeks back i took a full backup of my database using rman and specified a tag like ' %weekly.......%' . Now i dont remember the name of the tag.
    how would i find the TAG ?. I checked the TAG column in v$backup_piece, but to no use.
    TIA,
    JJ

    but list backup summary did not get me the tag !!How no??
    The 'list backup summary' show the TAG yes...
    LIST BACKUP SUMMARY;
    List of Backups
    ===============
    Key TY LV S Device Type Completion Time #Pieces #Copies Tag
    35 B A A SBT_TAPE FEB 08 2002 05:37:37 1 1 TAG20020208T053733
    42 B F A SBT_TAPE FEB 08 2002 05:38:21 1 1 TAG20020208T053744

Maybe you are looking for

  • Printer 'offline' when actually not on wireless connection laptop

    I have an Officejet Pro L7590, connected via a wired connection to my Linksys router. My laptop runs Windows 7 32-bit Home Premium and is wireless connected to my router. When I double-click the printer in 'Devices and Printers'. It shows 'printer of

  • F3507g GPS not working after sleep/resume Windows 7

    Under Windows 7 on ThinkPads with the F3507g Mobile Broadband Connection, there have been two long-standing problems: (a) after sleep/resume, the F3507g (Wireless WAN) disappears from the Fn+F5 menu; (b) after sleep/resume, ThinkVantage GPS does not

  • All Process Types not visible in RSPC ( process chain)

    Hi, When I go to create a new process chain in RSPC & look for process types to choose from I am not able to see all the process types. when I go to table RSPROCESSTYPES or setting-->maintain process types , it shows all the enteries. Am I suppose to

  • Where is the plugin for isync 3.0 to my nokia n95 8gb?

    It can't be true that I can't sync my new phone with my mac? I can only find plugin for isync 2.4 on nokias site.

  • Changing JNDI-name

    I'm doing an exercise from SAMS Teach yourself J2EE in 21 days, and I'm stuck allready on day 4. The exercise uses an example from the book. In short: An EJB that returns some information registers in the JNDI as "ejb/Agency" A client application loo