Why backup is so big ?

Hello!
     I've migrated some simple application from MySQL to Oracle XE. Application works fine, but backups created with backup.sh script are huge!
MySQL database backup was less than 2MB, but Oracle XE backup of the same database is about 1GB: 500 times more.
Is there any way to make smaller backups ? I need something simple like output from pg_dump or mysqldump.
best regards
Jarek

MySQL database backup was less than 2MB, but Oracle XE backup of the same database is about 1GB
I don't know if the two backups are comparable, but with backup.sh script you won't ever have a so small backup : it makes a full RMAN backup, and to reduce the backup size you have two choices :
1. Modify the script so that it does a compressed backup
2. Create your own script.
Said that I obviously prefer #2, if you want to modify the script, you can change all lines with "backup as backupset device type disk database;" to "backup as compressed backupset device type disk database;"
FYI, the difference, for my XE database, is as follows :
Normal :
-rw-r----- 1 oracle dba 790650880  6 lug 15:25 XE_07oe2pan_1_1.bck
-rw-r----- 1 oracle dba   9830400  6 lug 15:25 XE_08oe2pb6_1_1.bck
Compressed :
-rw-r----- 1 oracle dba 176455680  6 lug 15:32 XE_comp_09oe2pnl_1_1.bck
-rw-r----- 1 oracle dba   1097728  6 lug 15:32 XE_comp_0aoe2poo_1_1.bck

Similar Messages

  • Mountain Lion: Time Machine Backups Get Very Big!

    This weekend I upgraded from Lion to Mountain Lion, and most things work fine. I use an USB hardrive for backups, it's the same volume I used under Lion. Mountain Lion was able to continue using it, so I did not lose the history of my documents. So far, so good.
    But: From time to time backups get really big. One example: This morning the backup that finished at 10:30 was about 50 MB at size, which is ok. The next backup started at 11:15 (and is still in progress), and while backing up, the estimated size grows and grows. Currently it's about 26,55 GB estimated, with 24 GB already backed up. But I did not produce more than 26GB of new or changed files, I just visited some websites, read news in Reeder and read some emails with Mail.app.
    I saw this behaviour several times since monday, which lead time machine to clean old backups (previously I had backups from March, now the oldest backup is from May). What causes time machine to think that there is so much data not backed up, and why doesn't time machine know the size of the backup before copying the files, as it did in Lion?
    Any suggestions?
    Marcus

    I have something similar.  On three of the last 4 days, I have one TM backup which is about 56GB.  And this is when I have not (knowingly) done anything to create 56GB data.
    But, I have found something very odd.  I have a large backup today.   I then look at the previous hour's backup - it is missing /Applications, /System, /Library, etc.  (it does have /Users and /opt).   Given that, it is not surprising that the following backup is very big when it needs to redo /Applications, etc. (about 56GB).
    So the strange behaviour is not the big backup, but the small one that preceded it!!
    The .Backup.log and .exclusions.plist (in the TM backup location) look normal (or should I say no different to any others).  In partciular the .exclusuions.plist doesn't have extras.
    The entries in system.log look normal to me, as well.
    And today, the small backup was at 4:22 am when I was fast asleep.
    Is your behaviour like this Marcus?

  • Why is itunes too big for my screen? i'm on the highest resolution. i'm on windows 7 on a sony vaio ! please help !!

    why is itunes too big for my screen? i'm on the highest resolution. i'm on windows 7 on a sony vaio ! please help !!

    Resize it.

  • Can anyone explain why I have a big chunk of memory (4.4GB) taking up space on my iPhone4?

    can anyone explain why I have a big chunk of memory (4.4GB) taking up space on my iPhone4?

    Because there is a big chunk of files in that section that take up space.  Kind of a "duh" question.
    Now if there is something specific you'd like to ask in an intelligent way, maybe reword the question or try a search.
    We simply cannot help if you cannot clearly communicate the issue.

  • Why Backup When *Starting*  LR?

    LR prompts me to do a backup when I open the program. I have looked for a way to change this to prompt me to backup when I am leaving the program - which seems to make more sense - but I can't find a way.
    (1) What if anything am I missing in the settings?
    (2) Why backup before you've done the work as opposed to after?
    Thanks,
    --Bob

    1) You can't back up after, presently (would be a nice addition).
    2) So you have a backup before you mess up something.

  • Why is the backup twice as big?

    I scanned the Freeagent drive with Grand Perspective and it was 417 GB, almost twice as big as the iMac scan (Macintosh HD): 221 GB. As far as I can recall, I've only ever used that drive for Time Machine backups. The biggest item is the iPhoto library: 131 GB becomes a 195 GB backup. I've got way too many photos, I'm trying to get rid of the also-rans. It bugs me that Time Machine is evidently backing up these photos that I don't want. There's a colorful phrase in Japanese for someone you're trying to get rid of but they keep tagging along: kingyo no fun (goldfish crap). That's how I feel about those photos.
    Is there some way, with some other software or something, that I can just get an exact copy of what's on my iMac? I appreciate the safety-net function, but I'd like to be able to tell Time Machine, thanks, but you can get rid of that stuff now, just keep the 221 GB, and spread a new safety net.

    Yeah, TM keeps copies of any changed files.
    I don't use TM at all, I use these...
    Get carbon copy cloner to make an exact copy of your old HD to the external one...
    http://www.bombich.com/software/ccc.html
    Or SuperDuper...
    http://www.shirt-pocket.com/SuperDuper/
    Or the most expensive one & my favorite, Tri-Backup...
    http://www.tri-edre.com/english/tribackup.html

  • Hourly differential backups are too big

    Hello,
    Please let me first apologize if this isn't the correct forum.
    I'm having a problem that, for the life of me, I can't seem to resolve.  To begin with, I'm using MSSQL Server 2012.
    I created a new MSSQL maintenance plan to perform a full nightly (12:00 am) backup for one of our databases. This new plan replaced an old plan that did nothing but perform a full backup. With this new plan I do the following:
    Check DB Integrity, Backup DB (full), Shrink DB, Rebuild Index, Clean Up History, Maintenance Cleanup Tasks.
    The size of our DB is only 12GB
    Now, the new plan took effect last Friday and it functioned properly as it made a full backup of the DB. The problem I'm having is that the differential backups I'm also doing every hour are now 10 times as big as they were before the new plan went into effect.
    Just to compare, before midnight Friday (when the new full backup plan took effect), my hourly differential backups were only in the range of 750MBs. My first differential backup after that came to 4+ GBS.  So, as you can see, the increase is somewhat
    alarming. Being that we have individual maintenance plans for both full and differential backups and being that I did not touch/modify our differential plan, can anyone please tell me why the size of these hourly differential backup plans are so big now? How
    is it that creating a new full backup plan affect the size of the differential files?  Could this have anything to do with me doing db shrinks and/or Index rebuilds?
    I'm at a loss here so I will really appreciate any feedback on this. Thank you very much!
    Rob
    P.S. Just in case, here's a screenshot of the differences:

    Hi Rob,
    Rebuilding all indexes daily is not necessary. I would actually recommend you to use the free solution by Ola Hallegran which only rebuilds indexes if an index is fragmented. I would not use or recommend to use maintenance plans for rebuild indexes/update
    stats as it lack many options and also Ola's solution is free and is used by 1000's of dba's across the globe.
    Yeah...but not supported by Microsoft.  Use it at your own risk.
    It is better to use Maintenance Plan Wizard, a proper Microsoft product:
    Use the Maintenance Plan Wizard
    Generally, indexes should be rebuilt periodically like every weekend or every month end.
    STATISTICS should be updated nightly.
    Missing indexes should be eliminated.
    Optimization: http://www.sqlusa.com/articles/query-optimization/
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • Not enough space on my new SSD drive to import my data from time machine backup, how can I import my latest backup minus some big files?

    I just got a new 256GB SSD drive for my mac, I want to import my data from time machine backup, but its larger than 256GB since it used to be on my old optical drive. How can I import my latest backup keeping out some big files on the external drive?

    Hello Salemr,
    When you restore from a Time Machine back up, you can tell it to not transfer folders like Desktop, Documents. Downloads, Movies, Music, Pictures and Public. Take a look at the article below for the steps to restore from your back up.  
    Move your data to a new Mac
    http://support.apple.com/en-us/ht5872
    Regards,
    -Norm G. 

  • **Tech explanation why BACKUPS take long, how to make it very short, etc*

    I noticed my backups to increase quite a bit over the last few days. I also noticed so many posts on why are backups taking so long, what can I do (only solution given is to click x or modify so that backups are not done, etc). Well to answer all those that want the "real" answer, I decided to do a few minutes of research and share what I've learned. I have seen nothing at all on google or anywhere else about the recommendations I'm suggesting, but from my experience I think it will answer 99% of all the backup threads on this site.
    All your backups are being stored in:
    XP: C:\Documents and Settings\(Your Name)\Application Data\Apple Computer\MobileSync\Backup\
    Vista: C:\Users\*Your User*\Appdata\Local\Apple Computer\
    Mac: ~/Library/Application Support/MobileSync/Backup
    The main directories are GUIDs that are based on the version of the iphone, so you may see more than one folder. Make sure to view the date last modified of the folder to make sure you go into the latest one. Order the files inside this directory by date modified. Here you can see how many files are being updated ON EVERY BACKUP. The older ones are not being backed up anymore because you probably uninstalled that app on the iphone (apple doesn't delete old unnecessary backup files that won't be ever used - bad programming #1). They are encoding all these files and inside the files in base 64, so you can decrypt them to view the contents, but you don't really need to and I don't have to show how for the solution to this. Open a file in wordpad. Within the first few lines you'll get an idea of what the backup is.
    So here is the solution....sort these files by date modified. My biggest single file was 29,582KB!! looked inside and it's the WeDict app. There are other files from WeDict, but obviously for me if I want fast backups I need to get rid of this app. A few other top files I found are awesome apps on the iphone that have awesome trailers, intro movies for games, etc. Well guess what, they backup every single game intro, trailer, etc. So for instance, the game tap tap tap has a few m4a songs....well every one of those m4a songs are encrypted and backed up EVERY TIME (apple backups up files that don't need to be backed up which would probably reduce backup times by at least 98% - for instance, intro movies don't need to be backed up, nor app songs, nor game instructions, etc because that information should be on itunes backed up separately when you install an app, not when you do backups and it should be smart enough to update that folder when a new version is out....and only do backups on files that can change like high scores in apps, notes, etc - bad programming #2).
    So anyway, you can see which apps are taking the most amount of time. Obviously if you remove every app on your iphone, it will backup fast, but some of these apps are shockingly huge. Problem here is that you can have 1 file or 100 files associated with 1 app. You could have only 2 apps installed on your iphone and your backups could be slower than a person having 30 apps just because some apps take a ridiculous amount of more backup data and time and what makes this even worse is every part of the data is encrypted, which I will talk about below (which doesn't need to be). Only time that file is not going to get updated is if it's deleted from your iphone.
    You don't HAVE to use base 64 encryption. Come on now, especially on apps? They could lighten the encryption and it would be much faster backups because it has to decode and encode every file now. You are overencrypting these files so huge programs take forever backups. (Bad apple programming #3 don't over encrypt when speed is a necessity on something that doesn't need extreme high security).
    As a developer with a computer engineering degree, to also make it even faster than what users were experiencing with backup times prior 2.0. They are obviously not tagging each portion that needs to be backed up individually. Lots of software companies do this to speed stuff up. For instance if you have Kaspersky antivirus with the defaults, the first scan will always take long, but every scan afterwords will be fast because instead of rescanning that file for a virus, it just checks to see if the checksum has changed and if so rescan that file, so most of the time the scan will happen fast unless there has been a period of time that you haven't done one that updates the checksums. They could do something very similar with this. So basically even if you changed a few things on your phone, the backup should be only a few seconds because only those few changes would be signaled to be rebacked up. (bad apple programming for backups #4). This process can make backups be from 98% faster to 99.98% faster....meaning having a backup only take 4 seconds even with 100 apps installed. Actually coding this one thing would make it extremely fast, but would take the most programming time. You can even make an algorithem where for the whole backup process it would just have to read one file that it would check checksums and then tell it to modify 1 or 2 other files and that's it as opposed to backing up (for me almost 5,000 files) some being several MB in size.
    So all the above should give apple suggestions on how the can speedup backups by 99.98% faster than how they are doing it now and then anwers all those questions why it takes longer, what needs to change, how can I shorten my backups (this way you can find out what apps are taking the most time), etc.
    The problem here is apps will continue to grow, become larger, more trailers, movies, songs embedded inside apps, etc. This problem is only going to grow. The additional problem is that they can say they have tweaked the backup programming to make it faster, just like they did in 2.0.1, but backups seem slower because there are newer better more awesome apps out!! Well that's why it doesn't look like it's faster but it's slower! They will keep doing this as opposed to solving the root of the problem by recoding the whole backup foundation as I'm suggesting from above. Backups will forever take longer and longer and longer and longer. That is what you have to look forward to. My guess is that they are not going to fix the foundation of how backups are done anytime soon having a good idea how they are doing this one. They would have to do a massive overhaul of the whole backup code, which basically they would have to admit that all the time coding this way was a waste and they see no profit from it and we deal with it just by pressing x sometimes. We can complain all we want, but for awhile if you don't want long backups, this is the real solution. What's funny is writing this email took much more time than figuring out what apple is doing, but I think this will help many apple iphone users. Let me know what you guys think.

    Supposedly apple made backups slightly faster on 2.0.1, but like I said in my original posting above...it will get worse and worse because of the apps.
    Just to verify and you could do this yourself. Right before you plug in to sync and it auto starts the backup process do this...go to the folder where all the files are as mentioned above, sort it by date modified. Add a refresh button on the toolbar. Then start the sync/backup, keep refreshing and you see the files getting updated. There are even temporary files apple's backup process creates that you don't see that keeps adding to a file, so even if you see one file updated, you might see it updated a few times until the whole backup for that file completes.
    Here are my stats:
    For me this time it took 27 minutes (earlier it took 2 minutes, but like i said with updates to apps, more apps, depending on types of apps, your computer speed, etc it will increase.
    For me: In 27 minutes, it updated 1707 files with a total size of 82.8MB. There are a ton of computers that are much faster than mine that I'm sure would cut the minutes down. I have 6 pages of apps, but like I mention above, that doesn't matter because you could have one app that has 400 files with a large size. I would be interested in others posting their results, maybe in this format:
    27min 1707files 82.8MB Pentium4HT Antivirus and other large programs running in background.
    If you are interested you can even download program that will decrypt these files so you can view them in more detail...for mac, for instance, there is something like this: http://mac.softpedia.com/get/iPhone-Applications/Tools-Utilities/iPhone-Backup-D ecoder.shtml It allows you to backup and modify. It may help you decide what is taking your backups so long and you can decide if it's worth having that app installed versus not having a good backup. You can also pick out you sms backup file, contacts backup file, etc for those really interested in having backups of those specific files.
    Hope this helps clear up things for everyone.

  • Iphone 4s update stopped, then the backup was too big!

    I was installing the latest update on my fiances iphone 4s. Then it stopped and I got some text saying the update wouldn't go. The phone was then locked with and I was prompted to connect it to itunes. Also hade a message about the simcard not being correct, that disappeared though. Then I had to do a backup and reset the phone. "Ok", fine I'll use the backup I just made - but no! Now the back up was too big! Bit above 14 Gb which I after som googling understand is more than "the basic" package? Anyway, I didn't have any recent backups so now I got the evil eye from my fiance as I write… is this solveable? What happened? Did the update get mixed into the backup thus making it a bigger file? The phone was almost full when I started the update…  I do have a backup from september which is abot 12 Gb. Can I use this somehow?

    Well, the update was aborted. Can't remember the exact error message and I can't produce it again obviously. But what happened next was that I was prompted to connect it to itunes and restore it, there was this symbol on the screen with a wire going to itunes.
    Now it's just telling me there isn't enough space to backup from the one I want. I know what folder it is in, the application, mobile sync, backup. That folder is more than 14 Gb.
    I cannot be more specific I'm afraid… But I mean, the info is there, in that folder bigger than 14 Gb. I can access the pictures, look at every one of them… Frustrating…
    Haha! That's a good link!
    cheers!

  • Why Backup database then backup archivelog from time...

    Dear Experts,
    I found in one of our rman scripts the 2 following statements:
    backup database;
    backup archivelog from time 'SYSDATE -8';
    It seems to me that a "backup database plus archivelog;" is more simple/accurate instead of these 2 lines as the retention windows is defined (5 days) for this DB so rman will manage the retention of datafiles and archived log, isn't it ?
    Why this separate statement for the archivelog ? I find it redondant but is it...
    Any advice is as usual greatly appreciated.
    Best Regards,
    Guillaume

    You are right. The use of backup database plus archivelog; is much better and you are sure that you backup all archived log you need.
    Probably that is an old script, previous version or the responsable of this script didn't know RMAN so good and the option you posted.
    Bye, Aron

  • Why backup fail

    I use Oracle9i,and I create two database,such as "TestDB" and "RealDB",I use RMAN to backup datafile of TestDB,I use following command to backup:
    C:\>rman catalog rman/rmantarget system/system@TestDB
    Recovery Manager: Release 9.2.0.1.0 - Production
    Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
    connected to target database: DATAWARE (DBID=95313549)
    connected to recovery catalog database
    RMAN> connect target system/system@dataware;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-06167: already connected
    RMAN> backup datafile 5 format 'd:\file9';
    Start backup in 2005-12-05
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 12/05/2005 14:25:08
    RMAN-06004: ORACLE error from recovery catalog database: RMAN-20001: target database not found in recovery catalog
    I have connected to database 'TestDB',why oracle say 'target database not found in recovery catalog'? I am puzzled with it very much. How to backup my datafile?
    Thanks in advance!

    Sorry,I make a mistake by spelling just now,following is correct post,I am reading the part Backup of the book "oracle9i Database Fundamentals II",Please help me solve follow question:
    I use Oracle9i,and I create two database,such as "TestDB" and "RealDB",I use RMAN to backup datafile of TestDB,I use following command to backup:
    C:\>rman catalog rman/rman target system/system@TestDB
    Recovery Manager: Release 9.2.0.1.0 - Production
    Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
    connected to target database: TestDB (DBID=95313549)
    connected to recovery catalog database
    RMAN> connect target system/system@TestDB;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-06167: already connected
    RMAN> backup datafile 5 format 'd:\file9';
    Start backup in 2005-12-05
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 12/05/2005 14:25:08
    RMAN-06004: ORACLE error from recovery catalog database: RMAN-20001: target database not found in recovery catalog
    I have connected to database 'TestDB',why oracle say 'target database not found in recovery catalog'? I am puzzled with it very much. How to backup my datafile?
    Thanks in advance!

  • Why backup files are all 6..5 GB size?

    hi
    I'm taking backup using rman and backup of my database divides into 6.5GB pieces? Why it's so?

    RMAN> show all;
    using target database control file instead of recovery catalog
    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 OFF; # default
    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 <-- This is required parameter.
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/data/oracle/product/10.2.0/db_1/dbs/snapcf_1SDOCDEV.f'; # default
    Regards.

  • Why backup

    This is a suggestion for apple. I have a lot of stuff on my Macbook Pro. And a lot of music. When I delete all my movies I am left with 18.9 GB. I would pay extra to have the music I bought from iTunes which is most of my 4000+ songs archived on apple server. Why should I have to backup my music on my computer or an external hard drive when apple, I assume, as a state of the art backup system themselves. It would also be a good way for client to use iTunes and for the music industry since you could only access music you paid for.
    So for me it's a win, win, win & win solution.
    Patrick W.

    *Why should I have to backup my music on my computer or an external hard drive when apple, I assume, as a state of the art backup system themselves.*
    They are your files. If Apple were to allow re-downloads they would have to pay the recording companies again to re-downloading them. Its how the licensing works. Do you expect Microsoft to backup your documents? After all you can buy office online. Backing up data is an individual responsibility especially when it is your data.
    Apples serves have backups, but that is very different since their data exist in multiplicity on their server farms.
    *It would also be a good way for client to use iTunes and for the music industry since you could only access music you paid for.*
    Why should Apple be responsible for your stuff? The whole point of iTunes is that you own the content you buy. For that to happen the files must exist on your hard drive in its entirety. If the music were to live on Apples side, you would be "renting" your music. Something that nobody wants.
    Point of the story. Storage is real cheap. You can get over a quarter of a terabyte of storage for about $100. Its an important investment for your important information.

  • Why backup gets corrupted?

    I did a backup from my iphone and now i can't get it to the new one, it says its Corrupted, why it's that? i need to get all my pictures and sms

    One thing to check is to be sure your new device has the vary latest version of IOS.  If the old device had the latest version when the backup was made and the new one is even just one point version behind (new devices may sit on shelves a while and not get updated), then you can get a compatibility error.

Maybe you are looking for