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

Similar Messages

  • Can we create a cursor that can hold records of any table

    DECLARE
         CURSOR cr_tablenames IS
              SELECT tname
              FROM tab;
         v_tablename tab.tname%TYPE;
    BEGIN
         OPEN cr_tablenames;
         LOOP
              FETCH cr_tablenames INTO v_tablename;
              EXIT WHEN cr_tablenames%NOTFOUND;
              DBMS_OUTPUT.PUT_LINE('Table: '||v_tablename);
              -- HERE, I WANT TO PERFORM SELECT * OPERATION ON
              -- EACH TABLE WHOSE NAME COMES INTO v_tablename
              -- AND DISPLAY THE RECORDS
         END LOOP;
    END;
    I want to perform SELECT * operation on each table whose name comes into the variable and display the records. How to achieve it? I am clueless.
    Can this be achieved by something like... using cursors which can be defined dynamically and which can hold records of any table?
    Or, do I need to have some different approach to this problem?
    Edited by: kartins on Nov 5, 2009 11:41 PM

    something like
    SQL> create or replace
      2  function getContent (p_tn in varchar2)
      3     return sys_refcursor
      4  is
      5     retval sys_refcursor;
      6  begin
      7     open retval for
      8       'select * from '||p_tn;
      9     return retval;
    10  end;
    11  /
    Function created.
    SQL>
    SQL> var rc refcursor
    SQL>
    SQL> begin
      2     :rc := getContent ('emp');
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SQL>
    SQL> print rc
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7369 SMITH      CLERK           7902 17-DEC-80        900                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1700        300         30
          7521 WARD       SALESMAN        7698 22-FEB-81       1350        500         30
          7566 JONES      MANAGER         7839 02-APR-81       3075                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1350       1400         30
          7698 BLAKE      MANAGER         7839 01-MAY-81       2950                    30
          7782 CLARK      MANAGER         7934 09-JUN-81       2551                    10
          7788 SCOTT      ANALYST         7566 19-APR-87       3100                    20
          7839 KING       PRESIDENT            17-NOV-81       5100                    10
          7844 TURNER     SALESMAN        7698 08-SEP-81       1600          0         30
          7876 ADAMS      CLERK           7788 23-MAY-87       1200                    20
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7900 JAMES      CLERK           7698 03-DEC-81       1050                    30
          7902 FORD       ANALYST         7566 03-DEC-81       3100                    20
          7934 MILLER     CLERK           7782 23-JAN-82       1400                    10
    14 rows selected.
    SQL>
    SQL> begin
      2     :rc := getContent ('dual');
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SQL>
    SQL> print rc
    D
    X

  • Restoring Snow Leopard after Mountain Lion update, last complete backup in March?

    I recently upgraded to Mountain Lion from Snow Leopard, but many of our kids' apps no longer work, so I'd like to go back. Using the Snow Leopard install disk, I know I can restore from one of my Time Machine backups. Unfortunately the last complete backup was in March, and that's most recent version the software says I can select. I would like to restore my machine to its state the day before I upgraded to Mountain Lion.
    If I restore to its March state - the last complete backup - can I then restore it to its state in July? How do I do it?
    Thanks for your help!
    Don

    DragonDonaldo,
    Going back to your original post, are the applications that no longer work in Mountain Lion Power PC applications?  If so, have you checked with the developers of those applications to see if newer versions are available?  Updating those applications would save you the grief of having to backtrack on your OS.
    Option #2 would be to create a second partition on your drive (or use an external drive) and install Snow Leopard and the incompatible applications on that partition (or the drive).  Again, this may also be an easier solution than trying to backtrack.

  • Restore from Time Machine:  "last complete backup" is not last backup

    I'm trying to restore a backup to a new hard drive.
    I did a last "Back Up Now" (around 5 PM) before beginning with the restore but when I go to start the restore it asks me to choose the last "complete" backup, and that was at 9 AM in the morning.
    Am I right in assuming if I choose this "last complete backup" from 9 AM it won't restore all the files that have been edited between 9 AM and 5 PM?
    If so, how do I get it create a complete backup, without doing a completely new (and time-consuming) complete backup?

    I've seen this too. I'm not sure how to force a full backup. you could wait a couple of TM cycles and see if the backup you want becomes available on the list of full backups. You can also try forcing deep traversal (this will make backup time much longer but it's nowhere near as long as a complete new backup). To do that reboot in safe mode (hold shift at the chime till you see the login window). reboot normally and start a backup. It should do a deep traversal and maybe that will count as a complete backup.

  • Is there any table/view of errors?

    Dear Experts,
    Is there any table/view in Oracle database where all the database errors can be viewed? Errors like ORA-00942, .....
    I am on Oracle 10gR2.
    Thanks for taking your precious time in answering my question.
    Regards

    If you are on Unix or Linux go to your $ORACLE_HOME/rdbms/mesg and view the file oraus.msg
    This file lists all of the error messages together with the Cause and Action, if they exist - kinda like the Error Messages document.
    Oracle makes reading this file easy with the oerr shell script.
    For example:
    oerr ora 54
    00054, 00000, "resource busy and acquire with NOWAIT specified"
    // *Cause:  Resource interested is busy.
    // *Action: Retry if necessary.I don't know why this file is not in the Windows distribution....

  • Time of last change of record in a table

    Hi
    Suppose, record of KNA1 table is updated. So, we can find
    date of this change. But, how to find at what time this change was carried out?

    hi,
    try with the following fields
    UPDAT,
    UPTIM.
    if i am understood you correctly..

  • How to SELECT ALL records of a TABLE VIEW in the BSP page

    Hi All,
    In the BSP portal, I am displaying some data(multple records) in the form of a table using the BSP TAG <htmlb:tableView>. I wrote the logic in the 'VIEW' of the BSP application which will be triggered by the controller. I have used the attribute selectionMode = "MULTISELECT" to have a Check Box to select a row.
    My requirement is to have a button/checkbox on the first column of the header of the table view. By clicking on this, it should select/desect all the records of the table. Could someone please help me how to do this? What attribute I should use in the tableview to get the button in the header row of the table and how to select all the records of the table.?
    Please provide your valuable inputs.
    Thanks & Regards,
    Paddu.

    Select all / Deselect all functionality when onRowSelection is there

  • RMAN  - Last Successful backup

    Dear Experts,
    RDBMS - 11.1.0.7
    I would like to know if anyone of you have experienced this issue.
    Below is my backup report (queried from recovery catalog) and see DB1 database, I see Last successful Incremental backup date showing 01/01/0001 while the actual date was from a week back. However, Archivelog backup shows correct dates. Any thoughts?
    NAME           DBID DBBKP            ARCBKP                                    
    DB1   2145674345 01/01/0001 00:00 09/10/2012 07:54                          
    DB2   1634931935 01/01/0001 00:00 08/10/2012 19:09                          
    DB3    901592423 01/01/0001 00:00 09/10/2012 07:54                          
             

    select start_time,end_time,status from v$rman_status
    order by 1
    or
    select
    SESSION_KEY, INPUT_TYPE, STATUS,
    to_char(START_TIME,'mm/dd/yy hh24:mi') start_time,
    to_char(END_TIME,'mm/dd/yy hh24:mi') end_time,
    round((end_time-start_time)*1440,2) "Minutes"
    from V$RMAN_BACKUP_JOB_DETAILS
    order by session_key desc;
    Asif @ How to find RMAN backups are successful

  • Unable to insert a record in any table

    Hi,
    I was working on a procedure in which i had to insert 1,00,000 records each in 3 tables. But the procedure stopped after inserting 56000 records.
    After that I again ran the query but now it is not inserting a single record.
    I just created a dummy table
    create table vinod1(no number);
    and tried to insert a value in it using
    insert into vinod1 values(100);
    But to my surpries the query has been executing since last 10 and has not inserted a row.
    I tried it on SQLPLUS also and i am using oracle 10g
    Can you please help me and explain why i am not able to insert even though I am able to create table.
    Thanks
    -Vinod

    965358 wrote:
    The problem is In the new created table I am not able to insert records. The session keeps on executing forever.
    Also I am using Plsql developer and in that if I see in tools-> session -> active session
    for my session under event the message is 'statement suspended wait error to be cleared'
    Edited by: 965358 on Dec 24, 2012 6:30 AMyou have a mystery & we have no clues.
    How can we reproduce what you report?
    How do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • How to get the last time a record was modified or created ?

    Is there a way (hidden system fields for example, system view, other ?) to get the last time a record of a table was modified or the date it was created.
    Thanks for any help.
    Stiphane CAMPION

    blarman74 wrote:
    I know I could do this with a trigger, but I was wondering if there is a data dictionary view I can query to find the date/time a table was last updated. What I have is a table that is constantly getting hammered with new data being uploaded from a third party. We need to keep close tabs to verify that this datafeed is constantly running and bringing in new data. Because the data that comes in comes from multiple timezones and there are hundreds of lines, our attempts at monitoring by just looking at the data leave something to be desired.
    Any ideas?refer this links
    How to find Last modified/updated time of a particular table
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1590655700346557237
    Thanks

  • Time Machine does not complete backup to Time Capsule

    Within the past few days my iMac will not complete a backup to my Time Capsule.   The two other computers connected to the Time Capsule appear to be backing up but they size of the backup is smaller.   The Time Machine starts but then stops after 10 or so minutes.   Also, the size of the to backup is ver large, and I have not added that much to my files since the last complete backup.
    Here is what I tried:
    1. Deleting the com/apple/Timecapsule.plist file and restarting the Time Capsule.
    2. turning off WIFI and connecting to an ethernet cable
    3. Verifying the disk (when connected to with the ethernet cable)
    Nothing worked although Deleting the com/apple/Timecapsule.plist file and restarting the Time Capsule it got about 50% through before crapping out.
    Appreciate any ideas.
    Thanks

    What OS is the computer running? Expect issues with Yosemite.. it is just not that reliable.
    How much space does it require and how much is available on the TC?
    What speed is the backup doing? If it is super slow it can trip out.
    You did the right things, using ethernet and verifying the old backup.. But if you upgraded to Yosemite (upgraded??) then I strongly recommend you start a completely new backup.
    Did you load the widget so you can actually check the log info.. to find out why TM stopped??
    A1 here. http://pondini.org/TM/Troubleshooting.html
    It is hard to fix issues when you don't even know what the issue is.

  • Error message from Time Machine: "Unable to complete backup.   An error occurred while linking files on the backup volume."  Using Time Machine Buddy, I got the following log entries: "Event store UUIDs don't match for volume: data"    ror occured while l

    More from the Time Machine Buddy:  "Node requires deep traversal:/Volumes/Data"  and "reason: kFSEDBEventFlagMustScanSibDirs"
    I am using a Mac G5 with Leopard.  My LaCie data drive failed and I replaced it with a WD MyPassport drive, at which time the failed backups began.  The recent file updates do appear in Time Machine, but it appears to back up everything since the last completed backup.

    Hi Norm,
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    (Repair both Drives)
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)

  • Not showing tables, views, ... in vs2010

    Hi,
    I installed ODP.net + ODT (11i) for use with vs2010 & oracle 10.02.0010 (to be upgraded to oracle 11).
    The product installed just fine, I can connect to the database using ODP and ODBC.
    However, when connecting with ODP in vs2010 I can't see any tables, views or stored procedures (can't see anything really). When using ODBC, everything works: I see all the tables, views etc that are in the database, and I can query them.
    I also tried to execute a query using the ODP.net, and it gave me: ORA-00942: table or view does not exist.
    I did a search on the forums, but none of the solutions provided, changed anything for me.
    Does anyone have any ideas?
    Edited by: user13493229 on 18-mei-2011 11:05

    Hi,
    First of all, make sure you see "ODP.NET" in the connection dialog on Server Explorer.
    Next, check the "Filters" tab of the connection dialog. By default we block public synonyms and schema objects that you do not own.
    If you still can't see objects, then most likely your DBA has not given you enough privileges to use these tools.
    Try looking at the advice I gave in the following thread explaining how to turn on ODP.NET tracing. First look to see the SQL involved in the ORA-942.
    Then look at the other SQL we issue and see why you are not able to get any rows from it.
    vs2010 ORA-00942 table or view does not exist

  • Have a problem with table views

    Hello there.
    I try to explain the problem.
    We have a viewset and some table views in it.
    Screeenshot:
    We scroll down to necessary table view.
    Screenshot:
    If we change a page on any table view or reveal list on this.
    It may take little time, but after, the page scroll up automatically.
    No idea, why it happens.
    Best regards,
    Vladislav Neberikutya.

    Oh, sorry, can't edit the first message.
    I have partner overview:
    And when I push to next page. The page scroll up to the top.

  • Completeness of Prerequisites for Recovering Tables for PDBs from RMAN Backups

    Could you verify the completeness of following prerequisities on pag. 441 of the "Backup and Recovery User's Guide 12c Release 1 (12.1) E17630-14"
    Prerequisites for Recovering Tables and Table Partitions from RMAN Backups
    ■ The target database must be in read-write mode.
    ■ The target database must be in ARCHIVELOG mode.
    ■ You must have RMAN backups of the tables or table partitions as they existed at the point in time to which you want recover these objects.
    ■ To recover single table partitions, the COMPATIBLE initialization parameter for target database must be set to 11.1.0 or higher.
    According to my test Database administrator workshop: How to recover a table in a pluggable database from a backup
    those prerequisities are valid for CDBs or non-CBDs, but if you want to recover tables or table partitions in PDBs a different prerequisite is needed.
    Indeed if you have a backup of only the pluggable database including the missing table (the third prerequisite above), but you don't have any backup of the container database the command...
    recover table ... of pluggable database ... until scn ... auxiliary destination ...
    will fail with the following errors:
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 02/12/2014 12:22:18
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 3 found to restore
    RMAN-06023: no backup or copy of datafile 4 found to restore
    RMAN-06023: no backup or copy of datafile 1 found to restore
    So to recover table in PDBs you must have also the RMAN backups of the CDB or in the opposite way it's not sufficient to have only the backups of the pluggable database, because during the creation of the auxiliary database the SYS, SYSAUX and the UNDO tablespace are required.
    Regards,
    MarcoV

    Hi,
    Before dropping a DB we had taken an RMAN backup.I hope you were in mount mode.
    Will RMAN automatically recognize the FORMAT of the backup piece and restore ?No it won't.
    First you have to restore a controlfile in nomount mode with:
    restore controlfile from '/u04/backup/rmanbkp /02mo9fnc_1_1';
    and do alter database mount.
    Than you have to run "catalog start with '/u04/backup/rmanbkp'; " so the instance now knows where to find the pieces.
    Now you can run a restore database command.
    Than open the database with resetlogs.
    Regards,
    Tycho

Maybe you are looking for

  • Can't access youtube on Mac, no error message - just blank page

    I can't access youtube in firefox. There is no error message. I'm using leaopard on a mac.When I type in youtube.com, nothing happens, the page is completely blank. youtube works in safari. other websites work fine. Works in safari, just not firefox.

  • Query Builder recognizing primary/foreign key

    Is there a way to have Query Builder recogninze the primary/foreign keys of the tables when they are selected? Right now it looks like you have to manually join the tables together by selected the column(s) to join. Thanks

  • Problem accessing Infosets using Query with SQL

    Hi, I have Lumira desktop version 1.18.0. Using the Query with SQL connection, I successfully connected to SAP R/3 6. I was able to view the User Groups under CATALOG_VIEW, but it seems I cannot go beyong this point and select an Infoset. When I clic

  • 1099 Lisitng Report

    Hi I am trying 1099 listing for 2009(T.Code S_ALR_87012143), but no report is getting generated.where i have to check? Thanks in advance! Hari

  • Telstra Signing Error

    HI grug76, Can you please try logging out, clearing your cache and history and then trying to access the stream again?