Rman views

hi...
is there any views to find out RMAN related error like (disk or tape crash ,network failure,i could not read a data)my db version 9.2.0.6 without RC

Bhagya,
The errors that you mentionedare generic recovery related errors which are well explained in Backup and Recovery guide in oracle docs. Please read about these scenerios from there.
HTH
AMAN....

Similar Messages

  • RMAN Views and Level 1 or 0 stats

    I'm using RMan to back up an 11gr2 DB.
    I know that V_$RMAN_BACKUP_JOB_DETAILS records the stats for each backup taken.
    Howver, both Level 1 and Level 0 RMan backups both show up as Incremental backups.
    Technically, they both are, but is there a view or something which I can query which shows if a level 0 backup has been taken or a level 1 backup has been taken ?

    Hi ,
    Technically, they both are, but is there a view or something which I can query which shows if a level 0 backup has been taken or a level 1 backup has been taken ?I believe that Oracle does not report incremental backup level 0 or 1. In any view of the catalog could find this information.
    INPUT_TYPE contains a value indicating the type of input for this backup. For possible values, see the RC_RMAN_BACKUP_TYPE view.
    SQL> select * from RC_RMAN_BACKUP_TYPE;
        WEIGHT INPUT_TYPE
             1 BACKUPSET
             2 SPFILE
             3 CONTROLFILE
             4 ARCHIVELOG
             5 DATAFILE INCR
             6 DATAFILE FULL
             7 DB INCR
             8 RECVR AREA
             9 DB FULLRegards,
    Levi Pereira

  • Rman consolidated backup status report

    Hi,
    I am trying to write a script which collects the backup status report from all specified servers and all databases in each server. So if i run from one server, it should log on to all servers and get database reports.
    I think, i need select from rman view's.....
    sample output
    "DB INCR 0" dbname_server Compl: 2010-12-04 12:56 Length: 0 hr Age: .77 days
    "ARCHIVELOG" dbname_server Compl: 2010-12-05 03:04 Length: 0 hr Age: .18 days
    Any help is apprecieated
    Edited by: 812261 on Dec 8, 2010 12:44 PM

    992762 wrote:
    hi 812261,
    I'm also in need of a similar report, can u pls share the script that you have(perl). this would be highly helpful for me.Did you notice that you were responding to a two year old thread?
    Did you read Dan's comments regarding a catlog?
    >
    u can email that to <snip>
    thanks,I've snipped out your email address in my reply. I suggest you do the same in your own post. That is unless you actually enjoy the offers to help move money out of Nigeria, and to purchase certain, umh, "enhancement" products. Putting your email address on a public forum does nothing but expose it to every spambot crawler on the planet.
    Edited by: EdStevens on Mar 22, 2013 3:20 PM

  • 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?

  • Backing up database with read-only tablespaces

    I am trying to develop a script that will dynamically build RMAN scripts for backing up
    a database with read-only tablespaces. The application running on this database creates
    new tablespaces in read-write mode on weekly basis, populates them, and then puts them in read-only mode. So I need to backup all read-write tablespaces plus take backup of all read-only tablespaces once. The problem is that the application also includes a process that puts a tablespace back into read-write mode, updates it, and puts it back into read-write mode. So I need to be able to access "a history" of the tablespace - when was it put into read-only mode - to compare it with a history of backups. While history of backups is available in RMAN views, I couldn't find any way to extract tablspaces
    history.
    There should be RMAN command to the effect
    "backup all read-write tablespaces and read-only tablespaces if they have not been backed up at least once since becoming read-only".
    Regards,
    Sev
    null

    just rsync the files to a compressed Zpool. do this using shadow migration, and you only loose access to the data for a few seconds.
    1) make new dataset with compression
    2) enable shadow migration between the new and old
    3) change the database to use the new location
    4) watch as data is automatically copied and compressed :-)
    the the down side, you need extra space to pull the off.

  • RC_RMAN_BACKUP_JOB_DETAILS

    Hi,
    Assume i am using oracle 10.2.0.4 database and have recovery catalog. My database is registered in Recovery catalog.
    1) Can i assume that every backup operation on my database would be registered in recovery catalog's RC_RMAN_BACKUP_JOB_DETAILS view?
    2) Is there any Rman view where i can find whether the DB FULL backup is taken from COLD backup or HOT backup?
    Thanks You

    Hi,
    1) Can i assume that every backup operation on my database would be registered in recovery catalog's RC_RMAN_BACKUP_JOB_DETAILS view?As long as you connect to both the target and the catalog when running the backup.
    2) Is there any Rman view where i can find whether the DB FULL backup is taken from COLD backup or HOT backup?You could run a query against rc_backup_datafile to check if the checkpoint changes
    select CHECKPOINT_CHANGE#, completion_time
    from rman.rc_backup_datafile
    where db_name = '&db_name'
    order by 3;
    But it is not 100% garantee it is cold if it does not change.
    Regards,
    Tycho
    Edited by: tychos on 26-nov-2009 16:54

  • RMAN Last Completed Backup recorded in any table/view?

    Hi Friends,
    we are running RMAN backup of Full Database every day on 11g R2 Database.
    I would like to know where can i query the last completed backup date/time (in any table/view...) so that i will put a script to query that table/view to verify that the backup is completed .
    Regards,
    DB

    Hello;
    if you are using a catalog you can try this :
    select
            db_name,
            start_time,
            end_time,
            status,
            time_taken_display,
            output_bytes_display,
            output_device_type,
            session_key,
            session_recid,
            session_stamp
    from rc_rman_backup_job_details where end_time > sysdate -1If you not using a catalog V$RMAN_BACKUP_JOB_DETAILS should provide similar information.
    Best Regards
    mseberg

  • How to view RMAN errors using v$views?

    Hi,
    From v$rman_status, i got the following output. But how to know what kind of errors throu v$views.
    SID RECID STAMP PARENT_RECID PARENT_STAMP SESSION_RECID
    SESSION_STAMP ROW_LEVEL ROW_TYPE COMMAND_ID
    OPERATION STATUS MBYTES_PROCESSED
    START_TIM END_TIME INPUT_BYTES OUTPUT_BYTES OPT OBJECT_TYPE OUTPUT_DEVICE_TYP
    0 6540 734738844 6540
    734738844 0 SESSION 2010-11-10 22:07:21
    RMAN COMPLETED WITH ERRORS_ 0
    10/NOV/10 10/NOV/10 0 0 NO
    -thanks
    Sakthi.

    Hi Sakthivel
    From v$rman_status, i got the following output. But how to know what kind of errors throu v$views. You need to query v$rman_output for the info.
    first determine the session_stamp (or use the one from v$rman_status):
    select distinct session_stamp
    from v$rman_output order by session_stamp desc;Than use
    select output from v$rman_output
    where session_stamp like '&session_stamp%'
    /to get the output of the rman session.
    Rgds,
    Tycho

  • Repository views for RMAN Catalog check

    Hi All,
    Is there any view which tells if the database is using catalog for backup, we have scheduled the rman using OEM, now i need to create a UDM which sends an alert if not using catalog, i would like to do this using the sql command with OEM Views.
    any view which can be my help ???
    I have gone through http://docs.oracle.com/cd/B1930601/em.102/b16246/views.htm#BACDGFJC_ ,
    but couldnt find any appropriate view,
    Have checked this : "MGMT$HA_BACKUP", will this view give the required information ???
    please suggest.
    Thanks and Regards,
    Harish

    Hi EricvdS,
    Thanks a lot, i have used the following command to get my result :
    select dbid,name,t.ct qct from rc_database q,(select DB_ID,max(COMPLETION_TIME) ct from rc_backup_set where db_id in (select dbid from rc_database where name like 'IN%') group by DB_ID having to_date(max(COMPLETION_TIME),'dd-mon-yy')!=trim(sysdate) ) t where q.dbid = t. db_id and q.dbid not in ('586755576','580830361','894607119','881224701') order by 3;but after seeing your comment i again went through all the available tables and found the following to get my result :
    select DB_NAME from rc_backup_set_summary where to_date(NEWEST_BACKUP_TIME,'dd-mon-yy')!=to_date(sysdate,'dd-mon-yy') and db_name like 'IN%';Both of them work properly.
    thanks a lot.
    Thanks and Regards,
    LittleFoot
    Edited by: Little Foot on May 9, 2013 12:27 AM

  • Which views have RMAN backup jobs information?

    Hi there,
    I use EM to schedule the db backup using RMAN.
    I can view the jobs in the EM.
    But I can not find out which views have RMAN backup jobs information in sqlplus.
    like dba_scheduler_jobs.
    Your advice will be appreciated.
    Thanks,
    SZ

    Hi,
    V$RMAN_STATUS - Shows the success/failure status of all recently completed RMAN jobs.
    V$RMAN_OUTPUT
    Displays messages reported by an RMAN job in progress
    If you want to monitor then go the following :-
    Monitoring RMAN Job Progress :- view V$SESSION_LONGOPS.
    first Step :-
    Before starting the job, create a script file (called, for this example, longops) containing the following SQL statement:
    SELECT SID, SERIAL#, CONTEXT, SOFAR, TOTALWORK,
    ROUND(SOFAR/TOTALWORK*100,2) "%_COMPLETE"
    FROM V$SESSION_LONGOPS
    WHERE OPNAME LIKE 'RMAN%'
    AND OPNAME NOT LIKE '%aggregate%'
    AND TOTALWORK != 0
    AND SOFAR <> TOTALWORK
    After connecting to the target database and, if desired, the recovery catalog database, start an RMAN job. For example, enter:
    RESTORE DATABASE;
    While the job is running, start SQL*Plus connected to the target database, and execute the longops script to check the progress of the RMAN job. If you repeat the query while the restore progresses, then you see output such as the following:
    SQL> @longops
    SID SERIAL# CONTEXT SOFAR TOTALWORK %_COMPLETE
    8 19 1 10377 36617 28.34
    SQL> @longops
    SID SERIAL# CONTEXT SOFAR TOTALWORK % COMPLETE
    8 19 1 21513 36617 58.75
    Cheers
    Pavan Kumar N

  • V$RMAN_BACKUP_JOB_DETAILS view showing rman status running

    Hi,
    There is no rman session running in the database but still V$RMAN_BACKUP_JOB_DETAILS shows status as running
    select SID,username, opname,to_char(START_TIME,'dd mm yyyy hh:mm:ss'),TOTALWORK, sofar, (sofar/totalwork) * 100 done,TIME_REMAINING/3600/24,
    to_char(sysdate + TIME_REMAINING/3600/24,'dd mm yyyy hh:mm:ss') end_at
    from v$session_longops
    where totalwork > sofar
    AND opname NOT LIKE '%aggregate%'
    AND opname like 'RMAN%'SQL>   2    3    4    5    6
      7  ;
    no rows selected
    SQL> select sid, CLIENT_INFO ch, seq#, event, state from v$session where program like '%rman%';
    no rows selected
    SQL> select SESSION_KEY,SESSION_RECID,START_TIME,END_TIME,STATUS from V$RMAN_BACKUP_JOB_DETAILS where START_TIME > sysdate-3;
    SESSION_KEY SESSION_RECID START_TIM END_TIME  STATUS
           2853          2853 20-NOV-12 20-NOV-12 COMPLETED
           2862          2862 22-NOV-12           RUNNING
           2864          2864 22-NOV-12 22-NOV-12 COMPLETEDplease can anyone shed some light on it
    Thanks

    Fixed.
    In my solution I grabbed the command id from the details view and then matched that with the sid in the status view
    SQL> select session_key, command_id, status, time_taken_display from v$rman_backup_job_details where command_id='2012-11-27T22:30:37';
    SESSION_KEY COMMAND_ID                        STATUS
    TIME_TAKEN_DISPLAY
            602 2012-11-27T22:30:37               RUNNING WITH ERRORS
    16:32:53
    SQL> select sid from v$rman_status where COMMAND_ID='2012-11-27T22:30:37';
           SID
             4
             4
    SQL>then I made sure I was sys, before grabbing the session info and killing the session
    SQL> select user from user_users;
    USER
    SYS
    SQL>
    SQL> select sid,serial#,inst_id from gv$session  where sid=4 and serial#=3;
           SID    SERIAL#    INST_ID
             4          3          2
    SQL> alter system kill session '4,3,@2' immediate;
    System altered.
    SQL> let me know if this worked for you.
    hope this helps, C

  • RMAN info in controlfile and V$ views

    Hi all,
    I was just wondering about how the information in the RMAN information held in the controlfile actually relates to that in the V$BACKUP_SET and V$BACKUP_PIECE views?
    I'm slightly confused because, as part of experimenting with selecting certain backups for deletion (based on a hellish retention policy laid down in my place of work) we were trying to pick out backups based on the views and delete them from RMAN using the tag.
    However, the output of LIST BACKUP.. does not seem to correspond to what's in the above views.  In other words there are backups with tags in the views that are not actually known to RMAN itself (so when executing LIST BACKUP TAG '...' and entering a tag that is present in the views, RMAN returns no data).
    Apologies if this is a bit rambling - although it somewhat sums up my scrambled thought process in this regard.  Any advice/info would be greatly appreciated.
    Cheers,
    IanM

    Hi,
    Really I  didn't understand your question.
    But I  can  share with you :
    RMAN> list backup summary;
    using target database control file instead of recovery catalog
    List of Backups
    ===============
    Key     TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
    479     B  A  A DISK        16-JUL-13       1       1       NO         TAG20130716T220012
    480     B  F  A DISK        16-JUL-13       1       1       NO         TAG20130716T220042
    481     B  A  A DISK        16-JUL-13       1       1       NO         TAG20130716T220214
    482     B  F  A DISK        16-JUL-13       1       1       NO         TAG20130716T220216
    and we can found this backupset informations from v$backup_set  and v$backup_piece views, too
    SQL> select bs.recid, bp.Handle, bp.tag, bp.bytes
      2  from v$backup_set bs, V$backup_Piece bp
      3   where Bs.Recid = bp.recid;
    RECID, HANDLE, TAG, BYTES
    479
    D:\ORACLE\FRA\PORTDB\PORTDB\BACKUPSET\2013_07_16\O1_MF_ANNNN_TAG20130716T220012_8YBZ0YVQ_.BKP
    TAG20130716T220012
    837262336
    480
    D:\ORACLE\FRA\PORTDB\PORTDB\BACKUPSET\2013_07_16\O1_MF_NNNDF_TAG20130716T220042_8YBZ1VPV_.BKP
    TAG20130716T220042
    2975236096
    481
    D:\ORACLE\FRA\PORTDB\PORTDB\BACKUPSET\2013_07_16\O1_MF_ANNNN_TAG20130716T220214_8YBZ4PQ6_.BKP
    TAG20130716T220214
    2450944
    482
    D:\ORACLE\FRA\PORTDB\PORTDB\AUTOBACKUP\2013_07_16\O1_MF_S_820965736_8YBZ4RXF_.BKP
    TAG20130716T220216
    10469376
    Regards
    Mahir M. Quluzade

  • RMAN copies of archived logs view

    When I backup the archivelogs with this statement:
    backup as copy archivelog all;
    Why are these copies not shown in the RC_BACKUP_ARCHIVELOG_DETAILS view?
    The Description says:
    BTYPE      CHAR(9)      The backup type container, which can be BACKUPSET, IMAGECOPY or PROXYCOPY.
    In which view or table are this files represented?
    Thanks!
    Edited by: 916796 on 24.02.2012 04:15
    Edited by: 916796 on 24.02.2012 06:29

    OK
    I think V$BACKUP_REDOLOG is the one.
    http://docs.oracle.com/cd/E11882_01/server.112/e25513/dynviews_1060.htm#REFRN30024
      SELECT * FROM V$BACKUP_REDOLOG ;
    set linesize 200
    SELECT THREAD#, SEQUENCE#, FIRST_TIME, NEXT_CHANGE#, NEXT_TIME, BLOCKS FROM V$BACKUP_REDOLOG;
    -- archive logs backed up
    select
      THREAD#,
       MAX(SEQUENCE#)
    FROM 
      V$BACKUP_REDOLOG
    GROUP BY
      THREAD#;Best Regards
    mseberg
    Edited by: mseberg on Feb 24, 2012 7:37 AM
    Later
    I did a test on one of my test databases
    SQL> SELECT DBID  FROM V$DATABASE;
          DBID
    1612176986And then
    SELECT
      DB_KEY
    FROM
      RMANCAT.RC_DATABASE
    WHERE
      DBID = 1612176986;  Once I have this I can query the "RC" tables
    SELECT
    FROM
      RMANCAT.RC_ARCHIVED_LOG
    WHERE DB_KEY = 2511344 ;   -- 72It returns 72 rows so I did a log switch and ran the query again, the count remained 72.
    Next I tried this :
    SELECT
    FROM
      RMANCAT.RC_BACKUP_ARCHIVELOG_DETAILS
        WHERE DB_KEY = 2511344;  I expected another 72, but got 66. I did another log switch and it remained 66.
    So I think you are right about the RC_ tables. And they seem to only hold backup info.
    RC_ARCHIVED_LOG shows the most promise. The query should probably include a AND IS_STANDBY = 'NO'
    Having a difficult time finding exactly what you want.
    Edited by: mseberg on Feb 24, 2012 2:46 PM

  • Query RMAN catalog to view my controlfile backup in backup piece

    version: 11.1.0.7
    We need to restore an year old database and its backup is availble in TAPE, RMAN directly takes backup to TAPE.
    we have dropped the database, Now there is a requirement to restore the database.
    we Know DBID, I can restore the db once i can restore the contolfile.
    However we did not have controlfile auto backup. whenever there is FULL/incremental backup cotnrolfile is included in that backup. now we have the rman catalog for that database. so How I can query rman catalog to find which backup piece containing the latest controlfile? once we know the backuppiece info, we can restore controlfile from that piece
    any help on this?

    user8860934 wrote:
    version: 11.1.0.7
    We need to restore an year old database and its backup is availble in TAPE, RMAN directly takes backup to TAPE.
    we have dropped the database, Now there is a requirement to restore the database.
    we Know DBID, I can restore the db once i can restore the contolfile.
    However we did not have controlfile auto backup. whenever there is FULL/incremental backup cotnrolfile is included in that backup. now we have the rman catalog for that database. so How I can query rman catalog to find which backup piece containing the latest controlfile? once we know the backuppiece info, we can restore controlfile from that piece
    any help on this?Connect with recovery catalog through rman and
    set dbid <yourdbid>
    list backup of controlfile;In this case you will see all backups of controlfile.And according time this backup you can restore database using
    rman>restore controlfile from 'backupset_location';

  • Can not recover table from rman backup

    For testing I want to recover deleted table from rman backup.
    I have make vm of oracle 11g.  the following step i have applied but could not recover the table.
    rman> backup database ;
    On sqlplus create login as scott/tiger
    create table scott.emp1(col1 varchar2(10));
    insert into emp1(col1) value('Yasir ') ;
    commit ;
    select * from emp1 ;
    it shows me one row successfully.
    Now i have login the  sys as sysdba
    sqlplus> alter system switch logfile ;
    after this i have drop the table .
    Now to recover the table i have restored database on same vm.
    rman>restore database ;
    rman> recover database ;
    rman> alter database open ;
    on sqlplus i have issued
    sqlplus> select * from scott.emp1 ;
    table or view does not exist.
    any help how to recover the deleted table from rman backup

    Hi,
    Check this test case
    SQL> create table TEST2 as select * from emp;
    Table created.
    SQL> select count(*) from TEST2;
      COUNT(*)
            15
    SQL> select TO_CHAR(SYSDATE,'DD-MON-YYYY HH24:MI:SS') from dual;
    TO_CHAR(SYSDATE,'DD-
    10-SEP-2013 10:57:05
    SQL> alter system switch logfile;
    System altered.
    SQL> drop table TEST2 purge;
    Table dropped.
    SQL> shu immediate
    [oracle@vnode MYSHELL]$ rman target /
    Recovery Manager: Release 11.2.0.2.0 - Production on Tue Sep 10 10:58:39 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: DDTEST (DBID=1667776968, not open)
    RMAN> run{
    set until time "to_date('2013 Sep 10 10:57','yyyy mon dd hh24:mi')";
    restore database;
    recover database;
    alter database open resetlogs;
    }2> 3> 4> 5> 6>
    media recovery complete, elapsed time: 00:00:02
    Finished recover at 10-SEP-13
    database opened
    RMAN> exit
    SQL> set lin 200 pages 100
    SQL> select count(*) from test2;
      COUNT(*)
            15
    HTH

Maybe you are looking for