Rman backup size

Oracle11gr2,solaris10.
how do i check the size of my daily rman lvl0 backup.
i do a backup as compresses level 0.
i find the sizes listed in rman>list backupset summary; but i wanted to get as a consolidated.
My fra gets filled up after backing up the database continuously for 4 days. I remove the oldest backupset folder to release fra. I wanted to get a trend of how much rman is using each day for its backup.
Thanks
San~

SQL> select ctime "Date"
  2       , decode(backup_type, 'L', 'Archive Log', 'D', 'Full', 'Incremental') backup_type
  3       , bsize "Size MB"
  4  from (select trunc(bp.completion_time) ctime
  5          , backup_type
  6          , round(sum(bp.bytes/1024/1024),2) bsize
  7     from v$backup_set bs, v$backup_piece bp
  8     where bs.set_stamp = bp.set_stamp
  9     and bs.set_count  = bp.set_count
10     and bp.status = 'A'
11     group by trunc(bp.completion_time), backup_type)
12  order by 1, 2;
Date      BACKUP_TYPE    Size MB
03-JUL-10 Archive Log       7.31
03-JUL-10 Full             29.81
03-JUL-10 Incremental    2853.85
04-JUL-10 Archive Log       3.59
04-JUL-10 Full              7.45
04-JUL-10 Incremental       3.05refer : How to find backupset sizes for full and incremental backups answered by ebrian      
How to find backupset sizes for full and incremental backups
Total questions     45 (39 unresolved) : mark the question as answered if you get the answer for your questions.
Announcement: Forums Etiquette / Reward Points
Posters, please mind these common-sense rules when participating here:
- When asking a question, provide all the details that someone would need to answer it. Consulting documentation first is highly recommended.
- When answering a question, please be courteous and respectful; there are different levels of experience represented here. A poorly worded question is better ignored than flamed - or better yet, help the poster ask a better question.
- It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts).
- See more tips in the FAQ
Thanks for doing your part to make this community as valuable as possible for everyone!
- OTN Edited by: rajeysh on Jul 7, 2010 2:11 AM

Similar Messages

  • Sql to check RMAN backup size

    Hi All
    Kinldy tell me how i can check the RMAN Backup size from sql command. I am taking Full,Incrimental,Cumulative and Archive log backup.
    Thanks
    Krishna

    try this,
    SQL> select ctime "Date"
      2       , decode(backup_type, 'L', 'Archive Log', 'D', 'Full', 'Incremental') backup_type
      3       , bsize "Size MB"
      4  from (select trunc(bp.completion_time) ctime
      5            , backup_type
      6            , round(sum(bp.bytes/1024/1024),2) bsize
      7     from v$backup_set bs, v$backup_piece bp
      8     where bs.set_stamp = bp.set_stamp
      9     and bs.set_count  = bp.set_count
    10     and bp.status = 'A'
    11     group by trunc(bp.completion_time), backup_type)
    12  order by 1, 2;
    Date      BACKUP_TYPE    Size MB
    03-JUL-10 Archive Log       7.31
    03-JUL-10 Full             29.81
    03-JUL-10 Incremental    2853.85
    04-JUL-10 Archive Log       3.59
    04-JUL-10 Full              7.45
    04-JUL-10 Incremental       3.05

  • Estimate rman backup size

    Hi,
    Can anyone tell me how can i estimate a rman backup size ?
    i need to figure out the worst case so i can prepaire the proper disks
    10x.

    The 'worst case' is the same size as the database size, WHEN image copies are used instead of backupsets. To prepare proper disk size you have to answer another question: How many backups do you plan to store? You have to define a retention policy, number of backups or number of days you want to go back in time.
    Werner

  • Estimate rman backup size & time

    Hi DBAs,
    ENV : 11gR2, Windows 2008 server, 64bit,RAM=12 gb,
    DB size=370 gb., SGA=5 gb, ASMM=enabled.
    We need to move this database to Windows 2012 server which runs on Hyper-V.  Can you guys suggest what are the best methods to move with limited downtime ?
    If we opt for RMAN, is there any way to measure to estimate backup size ? ( at-least, approximate size) and how much time it takes to complete?
    Please share your thoughts !!
    Thanks,
    Hari

    Thank you sb92075 :
    Your statement - Size depends upon how much of the 370GB are indexes
    Would it mean, Rman is not going to take indexes to backup sets? or can you elaborate or refer me a link to study.
    and my total indexs are of size 18GB
    {code?
    select segment_type, sum(bytes)/1024/1024/1024 from dba_segments where segment_type in ('INDEX PARITION','INDEX')
    group by segment_type
    SEGMENT_TY SUM(BYTES)/1024/1024/1024
    INDEX                     18.6002808
    {code?
    Are we able to guess approximate backup size?

  • ESTIMATED RMAN BACKUP SIZE:::PLZ HELP ME

    Hi all,
    I wish you all happy new year :)
    I have implemented a new Backup STrategy with RMAN, such I using Oracle 10G version on Linux Server. I would like To know if exists one method to estimate the size of my full and incremental backup before to lunch? I will really apreciate your help :)
    Thank you all,
    W
    Message was edited by:
    HAGGAR

    Hi,
    Happy new year for you too!!!
    From Metalink Note:105208.1:
    There is no 'magic' formula to calculate the storage space of an RMAN backup
    and there is no query that will give you a space estimate.
    So, the best answer is: "Try it and see how much is used."
    Check These out:
    1-) https://metalink.oracle.com/metalink/plsql/f?p=130:14:4138343222012115291::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,105208.1,1,1,1,helvetica
    2-) https://metalink.oracle.com/metalink/plsql/f?p=130:14:4138343222012115291::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,67221.1,1,0,1,helvetica
    Cheers,
    Marcello M.

  • Rman backup size for Dr db is very much higher than that of primary db

    Hi All,
    My production database on Oracle 10.2.0.4 had a physical size of 897 Gb and logical size of around 800 Gb.
    Old tables were truncated from the database and its logical size got reduced to 230 Gb.
    Backup size is now 55Gb which used to be of 130 Gb before truncation.
    Now this database has a DR configured. Backup of this DR database is daily taken which is used to refresh test environments.
    But the backup size for DR database has not decreased. The restoration time while refreshing test environments is also same as before.
    We had predicted that the backup size for DR database will also decrease and hence reducing the restoration time.
    We take compressed RMAN backup.
    What is the concept behind this?

    When you duplicate a database it will restore all the datafiles from the RMAN backup. You will find the physical space of your source database. Remove the fragmented space using object movement. Then shrink the tablespaces and take fresh RMAN backup and restore.
    Regards
    Asif Kabir

  • Rman Backupset size is exceeding the database size

    Hi
    my rman backup size is exceeding the database backup size and occupying the full mountpoint. and finally due to space issue, backup is failing.
    Below is the RMAN script
    run {
    backup
    incremental level 0
    tag ASCPLVL0
    database plus archivelog ;
    delete noprompt backupset completed before 'sysdate - 4/24' ;
    Please look into this
    Regards
    M. Satyanvesh

    Are you using compression?
    Ans: No
    The size of an RMAN backup isn't always proportional to the size of the database.
    Ans: yeah I know, but it should be somewhere near to database size(lets say 100gb or 150 gb variance)
    How many archivelogs are you backing up with your database?  This is possibly a factor in the size of your db backup.
    Ans: archive log count per day is 18  and size is 34gb
    Have you got a retention policy in place and do you regularly delete obsolete backups/archivelogs?
    Ans: yes
    Are you taking this backup as part of a backup strategy? or is this just a one off for some other purpose which would seem to be the case.
    Ans: This is production systesm so its a part of backup strategy

  • RMAN Backups residing remotely

    Oracle Version: 11.2.0.3 x64
    OS: Win 2008 server x64
    Hi Experts.
    We need to replicate a database on one of our boxes, with very limited space on disk. The database size is roughly 200gb, free space on disk is 250gb, and the RMAN backups are roughly 80gb.
    The RMAN backup pieces have been cataloged with the following path:
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT   'd:\rman\%d\bkup_%d_%U';So, if we attempt a restore/replication on the local server, RMAN would look for backups on the local D drive, under D:\rman\<db_name>\
    In the past we used to copy the RMAN backups on the local server where the replication is required, and perform the replication locally without any issues; however, with a very limited space that won't fit both the replicated instance and the RMAN copies, we're not quite sure how further proceed!?
    Can we instruct the RMAN replication session to look for backups in a remote server?
    We do keep 3 weeks of RMAN backups on disk, hence the 80GB RMAN backups size. As far as I remember a full backup has been performed last Sun. Can we only bring over Sun full backup (and any subsequent incremental backups)? or do we need to copy the whole thing across to the local server?
    Any ideas please?
    Thanks

    I've been trying the duplicate command with the "from active database" clause but we're getting some permissions errors that I'm not sure about:
    C:\Users\oracle>rman target sys/xxx@vssrp auxiliary sys/password@vssrl
    Recovery Manager: Release 11.2.0.3.0 - Production on Sat Sep 1 16:28:25 2012
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: vssrp (DBID=1391811405)
    connected to auxiliary database: vssrl (not mounted)
    RMAN> run {
    2>    allocate channel c1 type disk;
    3>    allocate auxiliary channel DUP type disk;
    4>    duplicate target database to vssrl from active database;
    5> }
    using target database control file instead of recovery catalog
    allocated channel: c1
    channel c1: SID=1252 device type=DISK
    allocated channel: DUP
    channel DUP: SID=673 device type=DISK
    Starting Duplicate Db at 01-SEP-12
    contents of Memory Script:
       sql clone "create spfile from memory";
    executing Memory Script
    sql statement: create spfile from memory
    contents of Memory Script:
       shutdown clone immediate;
       startup clone nomount;
    executing Memory Script
    Oracle instance shut down
    connected to auxiliary database (not started)
    Oracle instance started
    Total System Global Area    3140026368 bytes
    Fixed Size                     2259312 bytes
    Variable Size                788530832 bytes
    Database Buffers            2315255808 bytes
    Redo Buffers                  33980416 bytes
    allocated channel: DUP
    channel DUP: SID=578 device type=DISK
    contents of Memory Script:
       sql clone "alter system set  db_name =
    ''vssrp'' comment=
    ''Modified by RMAN duplicate'' scope=spfile";
       sql clone "alter system set  db_unique_name =
    ''vssrl'' comment=
    ''Modified by RMAN duplicate'' scope=spfile";
       shutdown clone immediate;
       startup clone force nomount
       backup as copy current controlfile auxiliary format  'C:\ORACLE\ORADATA\CONTROLFILE\vssrl\CONTROL01.CTL';
       restore clone controlfile to  'D:\ORACLE\ORADATA\CONTROLFILE\vssrl\CONTROL02.CTL' from
    'C:\ORACLE\ORADATA\CONTROLFILE\vssrl\CONTROL01.CTL';
       restore clone controlfile to  'D:\ORACLE\ORADATA\vssrl\CONTROL03.CTL' from
    'C:\ORACLE\ORADATA\CONTROLFILE\vssrl\CONTROL01.CTL';
       alter clone database mount;
    executing Memory Script
    sql statement: alter system set  db_name =  ''vssrp'' comment= ''Modified by RMAN duplicate'' scope=spfile
    sql statement: alter system set  db_unique_name =  ''vssrl'' comment= ''Modified by RMAN duplicate'' scope=spfile
    Oracle instance shut down
    Oracle instance started
    Total System Global Area    3140026368 bytes
    Fixed Size                     2259312 bytes
    Variable Size                788530832 bytes
    Database Buffers            2315255808 bytes
    Redo Buffers                  33980416 bytes
    allocated channel: DUP
    channel DUP: SID=578 device type=DISK
    Starting backup at 01-SEP-12
    channel c1: starting datafile copy
    copying current control file
    released channel: c1
    released channel: DUP
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 09/01/2012 16:29:14
    RMAN-05501: aborting duplication of target database
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-03009: failure of backup command on c1 channel at 09/01/2012 16:29:14
    ORA-17629: Cannot connect to the remote database server
    ORA-17627: ORA-01031: insufficient privileges
    ORA-17629: Cannot connect to the remote database serverAs you can see from the above, we're logging in to both databases (target and aux) as sys; also the local OS oracle user is a member of administrators and can write files on to disks.
    Any idea please?
    Thanks

  • Why is RMAN backup of 2TB DB still 2TB when expdp dump was only 600mb ?

    RDBMS version: 11.2.0.3/Oracle Linux 6.2
    We took an RMAN backup of below mentioned DB.
    Since DBA_SEGMENTS was showing 2TB , I thought RMAN backup size will be half of that .ie. 1TB . But the RMAN backup size was 1.95 TB!
    expdp of the full DB was only 600mb !
    SQL> select sum(bytes/power(1024,3)) from dba_segments;
    SUM(BYTES/POWER(1024,3))
                  2056.27728
    SQL> select sum(bytes/power(1024,3)) sumbytesGB, sum(maxbytes/power(1024,3)) sumMaxBytes from dba_data_files;
    SUMBYTESGB SUMMAXBYTES
          5451  427.998978
    SQL> col file_name format a75
    SQL> set pages 300
    SQL> select file_name, bytes/power(1024,3) bytesGB, maxbytes/power(1024,3) from dba_data_files;
    FILE_NAME                                                                      BYTESGB MAXBYTES/POWER(1024,3)
    +CMS_DATA/bcmsprd/datafile/cms_s_asset_xa_dat_01.dbf                                20                      0
    +CMS_DATA/bcmsprd/datafile/cms_s_asset_xa_dat_02.dbf                                20                      0
    +CMS_DATA/bcmsprd/datafile/cms_s_asset_xa_dat_03.dbf                                20                      0
    +CMS_DATA/bcmsprd/datafile/cms_s_asset_xa_dat_04.dbf                                20                      0
    +CMS_DATA/bcmsprd/datafile/cms_s_asset_xa_dat_05.dbf                                20                      0
    +CMS_DATA/bcmsprd/datafile/cms_s_asset_xa_dat_06.dbf                                20                      0
    +CMS_DATA/bcmsprd/datafile/cms_s_asset_xa_dat_07.dbf                                20                      0
    +CMS_DATA/bcmsprd/datafile/cms_s_asset_xa_dat_08.dbf                                20                      0
    +CMS_DATA/bcmsprd/datafile/users.271.803502221                                       6             31.9999847
    +CMS_DATA/bcmsprd/datafile/undotbs1.265.803502221                                   20                     20
    +CMS_DATA/bcmsprd/datafile/sysaux.272.803502221                                     10             31.9999847
    +CMS_DATA/bcmsprd/datafile/system.260.803502221                                     10             31.9999847
    +CMS_DATA/bcmsprd/datafile/undotbs2.261.803502407                                   20                     20
    +CMS_DATA/bcmsprd/datafile/undotbs3.267.803502407                                   20                     20
    +CMS_DATA/bcmsprd/datafile/cms_s_asset_xa_dat_09.dbf                                20                      0
    +CMS_DATA/bcmsprd/datafile/cms_s_asset_xa_dat_10.dbf                                20                      0
    <snipped>

    RMAN does a backup of all formatted blocks --- even if rows have been deleted and the blocks are "logically empty".  expdp, obviously, does not backup deleted rows.  Similarly, if you've created a table and then subsequently truncated it, the blocks would remain formatted and be candidates for RMAN Backups.  Truncated tables would be "empty" and would result in 0 rows exported.
    So, you'd have this issue if you've deleted a large number of rows and/or issued truncates.
    Hemant K Chitale

  • How to find total size of RMAN backup files?

    Hi there
    env: Oracle 10gR2, RHEL 64bit
    My client has a production database where rman backups are taken: Level-0 backup every Sunday and Level-1 Monday thru Saturday.
    I have very limited access to this production database because it is being managed by third party and they won't provide me my required info (not sure why). I do not have access to their rman repository. To connect to the database I have to login to an intermediate server and then login to the database server. I have no access to Enterprise Manager. So in short, my access is limited. I want to gather the information on total size of rman backup files - both for a Level-0 and Level-1 backups separately. I understand that this info can be retrieved from rman repository. Are there any data dictionary views/tables where I may get this info?
    Best regards

    Hi,
    Have you searched in  forum check this:https://forums.oracle.com/thread/1097939
    HTH

  • RMAN backup with smallest backup size

    Oralce 11g2 on Redhat 5. The diskspace is our tightest resource, and we want to an incremental backup with level0 on Sunday and level 1 every week days and Saturday. I am to use the comamnds to do the job--Sunday
    backup incremental level 0 tag 'level_0' database plus archivelog;
    --Other days
    backup incremental level 1 database plus archivelog delete all input;I do not think this is the best practice nor produce smallest backup files.
    What are you comments and opinions. Thanks

    Pavan, Thank you for reply. Here are the info requested
    what is size of DB ??
    ~250GB, including UNDO and TEMP. It is a dev database and not very big. But we have total 800GB disk space. After setting some housekeeoing folders, and allow some space for data growth, it leaves 180GB for flash_recovery_area.
    what would be max size of archive logs generated per day ??
    Variable from less than 1 GB to 12 GB
    Are you taking backups to tape or Disk ??
    Disk. In the 180GB flash_recovery_area, Current backup size is 152GB. If a backup fails to delete obsolete files, the next backup will fill the flash_recovery_area.
    Provide the Rman configuration information ??
    RMAN> show all;
    RMAN configuration parameters for database with db_unique_name TDEV2 are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F';
    CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/snapcf_tdev2.f'; # default

  • Estimating the backup size before running the RMAN

    DB Version : 11.2
    OS : Oracle Solaris 10
    I need to take an ad-hoc RMAN cold backup of a 200GB DB to Local Disk. Using RMAN, is there any way I could check how much the backup size would be before I take the cold backup ?

    Read the metalink How to estimate the size of an RMAN database backup [ID 1274720.1].

  • RMAN backup files differences in numbers and sizes

    hi,
    I have cloned one database and after doing i can see the target (cloned database has more number of files and in different sizes).
    i can see the scripts are the same and environments are the same..
    where do i find out why there is difference between source and target ..
    ulimit -a > is same
    RMAN backup scripts > is same
    any clues i can find out >?
    Thanks.

    user13051945 wrote:
    hi,
    Let me make it clear here
    Cloning done well no issues..
    now two databases A and B are seperate now.. functioning in two different serveres
    The observation (not an issue) here is
    Server 1 > the backup files generated by Database A is only 10 backup files (10 * 5 = 50 )
    Server 2 > the backup files generated by Database B is 25 files.... (25 * 2 = 50 )
    so how the differences came in both backup scripts are the same....
    hope you got my concern...10 * 5 and 25 * 2
    *5 and 2* are backup piece and *10 and 25* are backupset, yes?
    From each server, post:
    RMAN>show all;

  • How to check the size of rman backups to tape

    instead of asking tsm person to check, how do I check how big is a rman backup sent to tape?

    query to find the backupset sizes
    SQL> select ctime "Date"
      2       , decode(backup_type, 'L', 'Archive Log', 'D', 'Full', 'Incremental') backup_type
      3       , bsize "Size MB"
      4  from (select trunc(bp.completion_time) ctime
      5          , backup_type
      6          , round(sum(bp.bytes/1024/1024),2) bsize
      7     from v$backup_set bs, v$backup_piece bp
      8     where bs.set_stamp = bp.set_stamp
      9     and bs.set_count  = bp.set_count
    10     and bp.status = 'A'
    11     group by trunc(bp.completion_time), backup_type)
    12  order by 1, 2;
    Date      BACKUP_TYPE    Size MB
    03-JUL-10 Archive Log       7.31
    03-JUL-10 Full             29.81
    03-JUL-10 Incremental    2853.85
    04-JUL-10 Archive Log       3.59
    04-JUL-10 Full              7.45
    04-JUL-10 Incremental       3.05

  • How to find size of each RMAN backup

    friends,
    How to find size of each RMAN backup? Everyday we r taking rman hotbackup and need to find size of each day backup? Is there any dba views ?
    Thanks in advance

    Or start rman target / rcvcat rman/rman@catalogdb
    and use the command:
    RMAN> list backup;
    Output should look like:
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    8152318 Full *38.72G* SBT_TAPE 02:05:35 20-APR-09
    BP Key: 8152322 Status: AVAILABLE Compressed: NO Tag: FULL_BK_DB
    Handle: df_WCSPRD_t684630039_s1757_p1 Media:
    List of Datafiles in backup set 8152318
    File LV Type Ckp SCN Ckp Time Name
    1 Full 4657366129868 19-APR-09 /opt/test/db01/system01.dbf
    2 Full 4657366129868 19-APR-09 /opt/test/db01/undotbs01.dbf
    3 Full 4657366129868 19-APR-09 /opt/test/db01/sysaux01.dbf
    4 Full 4657366129868 19-APR-09 /opt/test/db01/users01.dbf
    5 Full 4657366129868 19-APR-09 /opt/test/db01/testc01.dbf
    6 Full 4657366129868 19-APR-09 /opt/test/db01/test01.dbf
    7 Full 4657366129868 19-APR-09 /opt/test/db01/testc02.dbf
    See bold text for backup piece size

Maybe you are looking for

  • Videos won't play in iPhoto now that Snow Leopard is there

    I am finding one thing after another that won't work with Snow Leopard -- my fonts, my trackpad, and now my iPhoto videos. When I double-click on the videos, they no longer open in QuickTime or do anything, they won't play. Any suggestions? (Uninstal

  • Error while trying to add a calendar account

    Dear all, I've already added a public calender (ics) to my iPhone but now I need your help. I want to add the calender of my fellow (our both calenders are served by Exchange 2003). After filling out all the required fields (Server, description, user

  • Flex view

    Flex view needs an update! Flex view movies are lagging a lot sound is great and the picture doesn't get to jumpy but it still lags I checked my entire computer for a problem and found nothing and I checked my internet connection and even plugged in

  • Is it possible to lock readers?

    It seems Oracle is so good at concurrency and at not blocking readers, that it is impossible to lock readers if you wanted to (unless I am missing something.) I realize there are probably other ways to solve my problem, but it would be nice to have t

  • Failed to convert to PDF

    Im trying to download a PDF to a document but it keeps telling me it's failed to do this??  What's going on?