Estimating the backup size for full database backup?

How to estimate the backup file size for the following backup command?
Oracle 10g R2 on HPUX
BACKUP INCREMENTAL LEVEL 0 DATABASE;
Thank you,
Smith

Depends on the number of used blocks, block size etc. You could probably get a rough formula for backup size based on the contents of dba_tab_statistics (subtract empty_blocks), dba_ind_statistics etc.

Similar Messages

  • 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

  • Different full backup size of identical databases

    Hello,
    I am on Oracle 10GR2.
    I have 1 database instance with size approximately 50GB. Today I created second instance with RMAN duplication process from the first instance. So now I have two similar DB instances with same size 50GB.
    What is strange to me is size of FULL LEVEL0 backups of these databases.
    Backup size of original database has approximately 22 GB, backup size of second (duplicated) instance has 7GB.
    Can you explain me why? Or what should I do with original database to have same small backup size.
    Executed RMAN command for backup is: BACKUP INCREMENTAL LEVEL 0 DATABASE PLUS ARCHIVELOG;
    Thank you

    select sum(bytes)/1024/1024/1024 GB from dba_segments;
    This select gives me 6,79 GB in both instances.
    I did not used UNTIL TIME for duplication.
    RMAN settings is same for both instances and I don't use any compression
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    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 ARCHIVELOG DELETION POLICY TO NONE; # default

  • Full Database Backup in DB13 for MS SQL Server databases

    Hello,
    We have some SAP systems using the MS SQL Server database. I want to know if it is possible to setup the Full Database Backup option in transaction DB13 to store the files in a hard disk space.
    I already did this type of configuration in SAP systems in Oracle databases and for this I used the init<SID>.sap where we can put all the configuration, for instance the disk path where we want to save the backup files! But for MS SQL Server databases, in DB13, I don´t know how to do that, when I add the "Full Database Backup" option in DB13, this show me some options but only for tape, but I don´t want to store the backup files in tapes, I want to store/save the files on the server disk itself or else to an external disk but I don´t see where I can set this way of storage!
    This is what you see in DB13 (when using a MS SQL Server database) in "Full Database Backup" and as you see I only have options for TAPE not for a disk or other type of storage! How can I do that? (if that is possible):
    Can you help me please?
    Kind regards,
    samid raif

    Hello Raja
    Sorry for the delay of my answer! Many thanks for that tip, it helps a lot and it solve the last error/problem that I reported here, in fact, the problem was we had named the device with two words containing a space. So we removed that space from the backup device (in SQL management studio) with one word only and the job runs successfully without any errors!
    It works in Development and Quality systems but in our Production system (AM1) the Full backup option in DB13 stopped with the following error, in fact the error is on verification of backup, it means that the Full backup finished with success, but when it does the backup verification, the job in DB13 stops with an error, the following one:
    ***************************** SQL Job information   ******************************
    Jobname:    SAP CCMS Full DB Backup of AM1 [20140417103726-4-103726]
    Type:       TSQL
    DB-Name:    AM1
    For Run:    20140417  10:37:26
    **************************** Job history information  *****************************
    Stepname:   CCMS-step 1
    Command:    declare @exeStmt nvarchar(2000) exec am1.sap_backup_databases @dbList=
                "AM1",@r3Db="AM1",@bDev="fullprd",@expDays= 27,@jobName= "SAP CCMS Ful
                l DB Backup of AM1 [20140417103726-4-103726]",@bkupChecksum="Y",@bkupT
                ype="F",@nativeBkup="N",@exeDate = "20140417103726",@bkupSim = "N",@fo
                rmat = 0,@init = 0,@bkupDb = "AM1",@unload = 0,@exeStmt = @exeStmt OUT
                PUT
    Status:     (success)
    Message:    3014
    Severity:                                                                                                                                                                                                                                                    0
    Duration:   4  hours(s)  41 min(s) 22 sec(s)
    Last msg:   Executed as user: am1. Processed 7434328 pages for database 'AM1', fil
                e 'A01DATA1' on file 1. [SQLSTATE 01000] (Message 4035)  Processed 315
                1504 pages for database 'AM1', file 'A01DATA2' on file 1. [SQLSTATE 01
                000] (Message 4035)  Processed 4574152 pages for database 'AM1', file
                'A01DATA3' on file 1. [SQLSTATE 01000] (Message 4035)  Processed 44363
                92 pages for database 'AM1', file 'A01DATA4' on file 1. [SQLSTATE 0100
                0] (Message 4035)  Processed 25598 pages for database 'AM1', file 'A01
                LOG1' on file 1. [SQLSTATE 01000] (Message 4035)  BACKUP DATABASE succ
                essfully processed 19621974 pages in 16881.638 seconds (9.521 MB/sec).
                 [SQLSTATE 01000] (Message 3014).  The step succeeded.
                        <------------- End of Job Step History --------------->
    Stepname:   CCMS-step 2
    Command:    declare @exeStmt nvarchar(2000) exec am1.sap_verify_backups @nativeBku
                p = "N",@bkupSim = "N",@bDev = "fullprd",@bkupChecksum = "Y",@exeDate
                = "20140417103726",@unload = 1,@dbCnt =1,@exeStmt = @exeStmt OUTPUT
    Status:     (failure)
    Message:    3201
    Severity:                                                                                                                                                                                                                                                   16
    Duration:   0  hours(s)  8  min(s) 30 sec(s)
    Last msg:   Executed as user: am1. Cannot open backup device 'fullprd(\\10.0.0.45\
                backupsap\prd\prdfullqua.bak)'. Operating system error 1265(error not
                found). [SQLSTATE 42000] (Error 3201).  The step failed.
                        <------------- End of Job Step History --------------->
    **************************** Job history information  *****************************
    Can you help me please with this one!? Can you tell me why in verification it stops with that error?
    Kind regards,
    samid raif

  • Full database backup and restore

    I have a doubt on the syntax for a full database backup and restore. For a single schema, the syntax for backup & restore is :-
    exp JISPREPCORBILLINGPRD501/JISPREPCORBILLINGPRD501 owner=JISPREPCORBILLINGPRD501 STATISTICS=none
    log=JISPREPCORBILLINGPRD501_exp.log grants=y constraints=Y rows=y compress=N
    file=JISPREPCORBILLINGPRD501
    imp <userid/password> file=<export dump file location> fromuser=<export user name> touser=<import user name>
    grants=y constraints=Y rows=y log=<import log file location>
    I hope, my question is clear.
    Please, help in solving the doubt.
    regards

    hi,
    thanks, for your answer. I took a export of one schema of the database. But, when I tried to import the schema to the destination database, it showed
    imported with errors with the existence of functions showing. The commands used by me for export and import are as follows:-
    exp JISPREPCORBILLINGPRD501/JISPREPCORBILLINGPRD501 owner=JISPREPCORBILLINGPRD501 STATISTICS=none log=JISPREPCORBILLINGPRD501_exp.log grants=y constraints=Y rows=y compress=N file=JISPREPCORBILLINGPRD501
    imp JISPREPCORBILLINGPRD501/JISPREPCORBILLINGPRD501 file=JISPREPCORBILLINGPRD501 fromuser=JISPREPCORBILLINGPRD501 touser=JISPREPCORBILLINGPRD501 grants=y constraints=Y rows=y log=JISPREPCORBILLINGPRD501_imp.log
    Do, we need to drop the existing schema before importing or somethinig else. Please, help.
    regards

  • Full Database Backup

    Hi people,
    I´ve the next doubt about the backups of MS SQL Server.
    If I make a full database backup, the transaction log (SIDLOG1) are backed? Or I´ve to do the backup of transactional log separated?
    In the note Note 44449 - Backup strategies with the SQL server, says this:
    "If you run a complete database backup, the contents of the transaction log are saved (database dump), but the log is not shortened. The transaction log is only shortened when you save the log (transaction dump)."

    A FULL SQL backup includes all of the changes that are contained in the LOG file, so that the backup is recoverable to any point in time from the beginning to the end of the time it takes to backup the database.  However, it does NOT truncate the log file because you may still need a log backup in order to be recoverable to a point in time AFTER the FULL backup mentioned earlier, or if you have to utilize a different FULL backup in the event the other backup is corrupted, lost, etc.
    For example:
    Full backup A taken 11/8/2010, begin 8:00 AM, completed 9:00 AM.
    Transaction Log backup 1 taken 11/8/2010, 11:00 AM
    Transaction Log backup 2 taken 11/8/2010, 3:00 PM
    Transaction Log backup 3 taken 11/8/2010, 7:00 PM
    Full backup B taken 11/9/2010, begin 8:00 AM, completed 9:00 AM.
    Transaction Log backup 4 taken 11/9/2010, 11:00 AM
    Transaction Log backup 5 taken 11/9/2010, 3:00 PM
    Transaction Log backup 6 taken 11/9/2010, 7:00 PM
    If you need to recover to point in time 11/9/2010 at 8:30 AM, all you need is Full backup B.
    If you need to recover to point in time 11/9/2010 at 5:00 PM, you need Full backup B, and Transaction Logs 4, 5, and 6.
    If you need to recover to point in time 11/9/2010 at 5:00 PM, and Full backup B is corrupted, you need Full backup A, and Transaction Logs 1, 2, 3, 4, 5, and 6.
    If Full backup B had truncated the log, then you would not be recoverable to any point in time after 7:00 PM on 11/8/2010.

  • DB13 Full Database Backup - Error

    Hello Everybody,
    Got this error with DB13 Full Database Backup.
    2006-05-28 07:20:13.92 spid91    BackupMedium::ReportIoError: read failure on backup device '
    ERB-HQ-BK2\SAPBK\DVE.BAK'.
    Operating system error 59(An unexpected network error occurred.).
    2006-05-28 07:20:13.93 spid91    Internal I/O request 0x0000000089028080: Op: Read, pBuffer: 0x00000000069D0000, Size: 65536, Position: 111032779264, UMS: Internal: 0x89029FE8, InternalHigh: 0x89028140, Offset: 0xDA11C200, OffsetHigh: 0x19, m_buf: 0x00000
    000069D0000, m_len: 65536, m_actualBytes: 0, m_errcode: 59, BackupFile:
    ERB-HQ-BK2\SAPBK\DVE.BAK
    Best Regards.
    Darwin

    Darwin,
    Seems like the system is not recognizing your backup device. Have you verified that it installed/configured properly.

  • Urgent -- need to restore table from full database backup

    Hello,
    Can somebody tell me the process for restoring just a table from a full database backup?
    I did a full online database backup yesterday, and one of my tables got ruined today. I need to restore it as soon as possible, but I don't know how. When I tried flashback tables, it said that feature wasn't enabled. Should I restore the datafile or the tablespace?
    Thanks much,
    Nora

    If you only want to recover the table and not the other objects in the tablespace, and assuming the table was damaged by a user statement (and not, say, block corruption), you would need to recover your backup to a different system, export the table that was damaged, and import the table into your real production database. If you can recover the entire tablespace to an earlier point in time, or if you can lose some committed changes to other database objects, you may have other options.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Parrallelization of RMAN Full Database Backup Confusion

    Hi,
    I am running Oracle 10gR2 on Solaris 5.10 on sparc machine having 16 CPUs.
    I am using following RMAN script to take full database backup:
    #!/bin/bash
    ORACLE_HOME=/u01/app/oracle/product/10g
    PATH=$ORACLE_HOME/bin:$PATH
    ORACLE_SID=mtcedwp
    export ORACLE_HOME ORACLE_SID PATH
    rman target / <<EOF
    run
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
    CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 8;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    ALLOCATE CHANNEL d1 DEVICE TYPE DISK;
    ALLOCATE CHANNEL d2 DEVICE TYPE DISK;
    ALLOCATE CHANNEL d3 DEVICE TYPE DISK;
    ALLOCATE CHANNEL d4 DEVICE TYPE DISK;
    ALLOCATE CHANNEL d5 DEVICE TYPE DISK;
    ALLOCATE CHANNEL d6 DEVICE TYPE DISK;
    ALLOCATE CHANNEL d7 DEVICE TYPE DISK;
    ALLOCATE CHANNEL d8 DEVICE TYPE DISK;
    BACKUP TAG ATHEER_FULL_DB DATABASE FORMAT '/u01/BACKUPS/WEEKLY_DB_BACKUP/backup_%U';
    CROSSCHECK BACKUPSET;
    CROSSCHECK BACKUP;
    DELETE NOPROMPT OBSOLETE;
    RELEASE CHANNEL d1;
    RELEASE CHANNEL d2;
    RELEASE CHANNEL d3;
    RELEASE CHANNEL d4;
    RELEASE CHANNEL d5;
    RELEASE CHANNEL d6;
    RELEASE CHANNEL d7;
    RELEASE CHANNEL d8;
    EOFWill the above script take the 8-way parrallel backup? or do I need to configure location for every channel separately?
    regards

    This channel can be allocated manually or can be pre-configured by using
    automatic channel allocation.
    The number of allocated channels determines the maximum degree of
    parallelism that is used during backup restore or recovery. For example if
    you allocate 8 channels for a backup operation 8 background processes for the
    operation can run concurrently.
    Parallelism of backup sets allocates multiple channels and assigns
    files to specific channels. You can configure parallel backups by setting a
    PARALLELISM option of the CONFIGURE command to a value greater than 1 or by
    manually allocating multiple channels.
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmconc1.htm#i1012864

  • Command - Take a full database backup

    Hi,
    I have to simulate a database failure. However prior to doing so, I have to take a "Take a full database backup". How do I execute this command? It is my understanding that this is different from selecting "Backup database"
    Thanks in advance for the help!
    Edited by: 976505 on Dec 18, 2012 12:17 PM

    Pl do not post duplicate threads - Oracle 11g XE - Backup

  • RMAN Backup script for RAC Database..please suggest

    Hi All,
    I am currently working on backup policy for RAC Database for my client.The client requirement is to backup while database is shutdown(mount state).I have made below script and could any one please suggest what further things should I need to add with below rman script.
    echo "Shutdown Database";date
    srvctl stop database -d PROD
    srvctl status database -d PROD
    echo "Database shutdown on";date
    echo "Mount Database ";date
    srvctl start instance -d PROD -i "PROD1" -o mount
    srvctl status database -d PROD
    echo "Start Full Database Backup on";date
    $ORACLE_HOME/bin/rman target / nocatalog <<EOF
    configure controlfile autobackup on;
    configure controlfile autobackup format for device type disk to '/BACKUP/PRODBKP/%F';
    run{
    allocate channel c1 device type disk connect 'sys/******@node1-vip:1521/PROD';
    allocate channel c2 device type disk connect 'sys/*****@node2-vip:1521/PROD';
    backup format '/BACKUP/PRODBKP/PROD_df_%t_%s_%p.bak'(database);
    backup format '/BACKUP/PRODBKP/archive_%t_%s_%p.bak' archivelog all;
    copy current controlfile to '/BACKUP/PRODBKP/PROD.ctl';
    delete noprompt obsolete;
    release channel c1;
    release channel c2;
    exit
    EOF
    echo "RMAN Backup Finished on";date
    echo "Shutdown Database";date
    srvctl stop database -d PROD
    echo "Start Database";date
    srvctl start database -d PROD
    srvctl status database -d PROD
    Please share your experiences.
    Regards

    Hi,
    Some tweaks for your script.
    echo "Shutdown Database";date
    srvctl stop database -d PROD
    srvctl status database -d PROD
    echo "Database shutdown on";date
    echo "Mount Database ";date
    srvctl start instance -d PROD -i "PROD1" -o mount1. If you database does not shutdown properly , does your script stops the execution of next step?
    2. configure controlfile autobackup on;
    configure controlfile autobackup format for device type disk to '/BACKUP/PRODBKP/%F';(Why you need to configure this every time) ?
    It's persistent at db level one time setting (until some other script changes the settings by other dba - else remove that - set the configuration at db level once for all)
    - Pavan Kumar N
    3.

  • Best pratices for RMAN backup management for many databases

    Dear all,
    We have many 10g databases (>40) hosted on multiple Windows servers which are backup up using RMAN.
    A year ago, all backup's were implemented through Windows Scheduled Tasks using some batch files.
    We have been busy (re)implementing / migrating such backup in Grid Control.
    I personally prefer to maintain the backup management in Grid Control, but a colleague wants now to go back to the batch files.
    What i am looking for here, are advices in the management of RMAN backup for multiple databases: do you guys use Grid Control or any third-party backup management tool or even got your home-made solution?
    One of the discussion topic is the work involved in case that the central backup location changes.
    Well... any real-life advices on best practices / strategies for RMAN backup management for many databases will be appreciated!
    Thanks,
    Thierry

    Hi Thierry,
    Thierry H. wrote:
    Thanks for your reaction.
    So, i understand that Grid Control is for you not used to manage the backups, and as a consequence, you also have no 'direct' overview of the job schedules.
    One of my concern is also to avoid that too many backups are started at the same time to avoid network / storage overload. Such overview is availble in Grid Control's Jobs screen.
    And, based on your strategy, do you recreate a 'one-time' Oracle scheduled job for every backup, or do your scripts create an Oracle job with multiple schedule?
    You're very welcome!
    Well, Grid Control is not an option for us, since each customer is in a separate infrastructure, and with their own licensing. I have no real way (in difference to your situation) to have a centralized point of control, but that on the other hand mean that I don't have to consider network/storage congestion, like you have to.
    The script is run from a "permanent" job within the dba-scheduler, created like this:
    dbms_scheduler.create_job(
            job_name        => 'BACKUP',
            job_type        => 'EXECUTABLE',
            job_action      => '/home/oracle/scripts/rman_backup.sh',
            start_date      => trunc(sysdate)+1+7/48,
            repeat_interval => 'trunc(sysdate)+1+7/48',
            enabled         => true,
            auto_drop       => false,
            comments        => 'execute backup script at 03:30');and then the "master-script", determines which level to use, based on weekday from the OS. The actual job schedule (start date, run interval etc) is set together with the customer IT/IS dept, to avoid congestion on the backup resources.
    I have no overview of the backup status, run times etc, but have made monitoring scripts that will alert me if/when a backup either fails, or runs for too long. This, in addition with scheduled disaster/recovery tests makes me sleep rather well at night.. ;-)
    I realize that there (might be) better ways of doing backup scheduling in your environment, since my requirements are so completely different than yours, but I guess that we all face the same challenges in unifying the environments as much as possible, to minimize the amount of actual work we have to do. :-)
    Good luck!
    //Johan

  • Query: Tablespace backup Vs Full database backup

    Which is an better option- Tablespace Backup or Full database backup.What are the adv and disadv of each?
    Rgds,

    RMAN> backup tablespace users;
    Starting backup at 27-AUG-11
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    input datafile file number=00004 name=/u02/oradata/TEST/datafile/o1_mf_users_6o06qs2q_.dbf
    channel ORA_DISK_1: starting piece 1 at 27-AUG-11
    channel ORA_DISK_1: finished piece 1 at 27-AUG-11
    piece handle=/u02/fra/TEST/backupset/2011_08_27/o1_mf_nnndf_TAG20110827T163233_75l0015r_.bkp tag=TAG20110827T163233 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
    Finished backup at 27-AUG-11

  • "The storge location for time machine backups can't be found"

    I posted this on the TIme capsule forum and got no reply. PLEASE somebody, I need help with this.
    Time machine on my new MBP (Leopard 10.5.2) is now failing on my new Time Capsule and I am unable to connect to my backups. Whenever I open Time Machine I get the error message: "The storge location for time machine backups can't be found"
    I've tried rebooting, going into "Set up time machine" and changing the disk to none and then back to both the Time capsule Volume and the Time capsule backup volume (should there be 2?).
    I AM able to open the Time Machine Drive through Finder.
    Has there been a recent update which renders Time Machine useless?

    I don't have an answer, but I get this error when I try to mount the sparcebundle to my hd to try to get Time Machine to mount as stated in this article http://support.apple.com/kb/TS1329.
    I've had this problem before I upgraded to 10.5.3

  • The storage location for Time Machine backups can't be found

    I recently purchased a Time Capsule and have successfully backed-up both a PC (via ethernet) and my MacBookPro via wireless. However, after a few hours of inactivity on my MacBook Pro, the Time Capsule icon on my desktop is gone. When I launch Time Machine, I get the following message:
    "The storage location for Time Machine backups can't be found". I have browsed the forums and noticed some answers to similar queries to check the "Remember password" option when establishing the connection. I do not have this option when I reconnect. What am I missing?

    Glasses,
    It does work! I have successfully use DW on my TC both wirelessly and via ethernet. Ethernet is of course much quicker. And I have run into more DW errors trying wirelessly, so I avoid that method whenever possible. As for other NAS device - I wouldn't know.
    Glenn
    BTW RetroBot - That post was over 6 months ago!

Maybe you are looking for

  • Which laguages does FreeTTS Supported.

    Hi all ! I want use FreeTTS for my application. I can use the code bellow to read the Hello World in English. How can i read another language for example German or French,... My code here : Can anybody help me ? package com.myprj.demo; //Decompiled b

  • Dynamic endpoints in SOA and OSB 11g

    Hi, In AIA we have aiaconfiguration properties.xml from where end points of wsdls will be accessible. This enables ease in migrations so that if endpoint changes it is only need to be changed in aiaconfiguration properties.xml. Can the same be acheiv

  • Empty target message in 1 to n transformation

    I am using a ccBPM to handle a 1:n message scenario.  I believe I have done everything right: <li>I have created a message mapping where target message has an occurrence of u201C0..undboundedu201D.  When I test the message mapping it works 100% and p

  • New Requistion Request

    Is it possible we can make a copy of the New Requisition Request from the Recruiting part of MSS Business Package - or they will be a licensing issue?

  • What is a customer statement and when do we use it?

    Hi, What is a customer statement and when do we use it? An example in terms of business scenario would surely help me.