Very selective backup

Hi,
I manage a centralised 10gR2 (standard edition) datawarehouse containing the data of about 168 hospitals. I am not using any specific Oracle datawarehouse product. Everything is PL/SQL coded using object features. Data is refreshed every night. The DW contains about 30 tables. Of course each hospital has a specific ID identifying its data inside each table. All the data is stored in one tablespace (TBS_DATA) and indexes in another (TBS_INDEX). The need for selective backups has suddenly arisen following some new development request. The need is as follows : I have to be able to call a backup for a specific hospital at any time. (which means only backuping specific records in each table) and restoring that backup quickly if necessary. Can this be done without having to insert the specific lines into new tables??? and deleting-inserting back into the original table when restoring is necessary???
Any suggestion would be greatly appreciated.
Thanks.
JC

If you could upgrade to an enterprise edition database with partitioning, you could partition the tables by hospital ID, put everything related to a given hospital into a single tablespace, and do backups and restores on individual tablespaces. Probably a bit pricy Oracle license-wise, though.
Making reasonable assumptions about how far back a hospital might need to restore and that there are easily-identified points in time that represent points you'd like to restore to, I would look into Oracle's Workspace Manager functionality. Without seeing more about the system design you have (how data is loaded and accessed, for example), it's hard to suggest a good strategy, but I'd wager that you could create a strategy for creating, maintaining, and deleting workspaces that would allow you to do this sort of thing relatively seamlessly.
Another option might be to add a LOAD_DATE column to every table, have a table that stores the current LOAD_DATE for every CLIENT_ID, and replace your existing tables with views that join the actual table to the table of client LOAD_DATE's. Rolling back would just require changing the LOAD_DATE for the client.
Justin

Similar Messages

  • Feature Request: Selective Backup and Restore

    I know this is a board that apple doesn't answer questions to and blah blah blah but let's not kid ourselves that they don't monitor everything that goes on here; now thats out of the way.
    Something that would be really useful would be selective backup/restore. Cuz i'm sure there are times when you what to restore only a specfic app and nothing else, or your messages.
    Also if you're cleaning up your device and you accidently delete the wrong app; you will lose all that data with that app but inorder to restore that app and data you have to restore to a pervious backup and go through the process of re-deleting those apps.
    Or if you want to restore your apps/data but have your settings start from scratch.
    I don't know, I think this type of backup/restore feature could be very useful to alot of people...does any1 else agree?

    You face 2 problems: The first is that polls are forbidden by the terms of use of the forum. The second is this:
    Unsolicited Idea Submission Policy
    Apple, as with many other companies, do not want outsiders to suggest ideas, because if the company implements the idea they can later be sued for copyright violation or, in the worst case, patent infringement.

  • HT3275 When I press "select backup location" in the Time Machine section of System Preferences, my external hard drive doesn't appear as an option.  How do I change this?

    When I press "select backup location" in the Time Machine section of System Preferences, my external hard drive doesn't appear as an option.  How do I change this?  My external hard drive is a FreeAgent GoFlex Drive.

    Hi, what Format is the external Drive?
    They usually come PC Formatted for Fat32/MSdos, or NTFS... is there anything on it now?
    How to format your disks...
    http://www.kenstone.net/fcp_homepage/partitioning_tiger.html
    (To Install OSX on an IntelMac the Drive it needs the GUID Partitioning scheme mentioned at the bottom.)
    Thanks to Pondini, Formatting,  Partitioning, Verifying,  and  Repairing  Disks...
    http://Pondini.org/OSX/DU.html

  • HT4946 I was attempting to restore old that was once on an Ipod to my Iphone. I selected backup for previous and all of my current information ( pictures, texts, contacts, etc) have been deleted or lost. How can I get my old information back?

    I was attempting to restore music to my new IPhone. The music was once on an Ipod that I had. I selected backup restore thinking I would get the music. I lost all my contacts, music, pictures, text messages, and everything. What can I do to get back the items lost. Please help???

    Restore an iPhone backup.

  • Hi there. just bought a TC, installation was succesfull, but time machine won't work. can't select Backup disk. get transferred to TC install again. Called Apple, 25 min. later no succes, have to call on monday again!!!! Can anyone help me?  Thanks a lot.

    Hi there. just bought a TC, installation was succesfull, but time machine won't work. can't select Backup disk. get transferred to TC install again. Called Apple, 25 min. later no succes, have to call on monday again!!!! Can anyone help me?  Thanks a lot.

    See #Q1 in Using Time Machine with a Time Capsule. 
    If you have a problem, please tell us exactly what, and on which step there.

  • How to selectively backup only some folders of bookmarks?

    When I go to the "show all bookmarks" window, I would like to export one or two folders into one .json bookmarks backup file. But the current options support for exporting only the entire bookmarks.
    Is there any solution to selectively backup only certain folders from the bookmarks?

    Here is the solution I figured out to this problem myself. Hope it helps somebody who is having the same problem.
    There was a plugin called fastdial which used to allow exporting/importing of individual folders within the bookmarks.
    The newer version, Fastdial (v4.1.1), does not have this feature. Fastdial v2.15 was the last known version that has this feature, but works only with FireFox v3.0-3.1b3 ( https://addons.mozilla.org/en-US/firefox/addon/fast-dial-5721/versions/ ).
    The plugin "Fastdial for all versions(FX6 v3.6)" by DerpyHooves has the option but doesn't export/import bookmark folders.
    What you can do is:
    1. download portable form of older version of firefox (v3.0) which works well with fastdial v2.15,
    2. install the plugin - fastdial v2.15
    3. export your bookmarks entirely from your regular browser,
    4. import this into the portable firefox and
    5. use the plugin to export selective folders!!
    NOTE: As of this writing, this is the ONLY solution which will help you to export/import folders in bookmarks selectively. All the other solutions ask you to edit the html file or suggest even complicated procedures.

  • Time Machine making very long backups

    Since I upgraded to os x lion time machine is making very long backups every other day but there are no old backups to find in time machine.
    What do do?

    Hi AnaMusic,
    Thanks for your link to the Pondini link - they are indeed excellentguidance and documentation. 
    However, my problem does not exactly fit the situation in Section D7, in that Time Machine is not doing a full backup everytime. 
    Instead after resetting Time Machine it immediately does a full backup then resumes hourly incremental backups, at least for a while, maybe a day or so, before doing another full back.  Yet there has not been anything I have done, in terms of working on very large numbers of files, that would appear to warrant or precipitate the need for a full backup.
    I am currently monitoring all incremental backups since the last full back to see if I can get a better understanding of the pattern of backups.
    Regards,  Graham

  • I connected my iphone 4 to the itunes and then i just select Backup. now i lost all songs and photos in my iphone. how can i do?

    i connected my iphone 4 to the itunes and then i just select Backup. now i lost all songs and photos in my iphone. how can i do?

    See: How to Restore from a backup here >  iOS: How to back up

  • Selective backup/restore

    I know when an iPhone is backed up, all the things are backup including contacts, settings, messages. Is there is a way to do a selective backup or a selective restore?

    Allan, I saw your replies on a similar question thread to the questions that I had and wanted to ask you something in regards to switching to an iphone 5 ( w/ a new number) and using my old iphone 4 as an ipod......
    I just bought an iPhone 5 (I did no SIM switch from old phone) & changed my phone number.
    Before I got the idea to use my old iPhone (with deactivated #) as an iPod for running/lake trips so I dont ruin my new phone, I deleted the old iPhone device, serial # & cell number from my AppleID.
    Can I still plug in the old deactived/deleted device into my itunes and add new music ?
    Will there be any adverse effects? OR do I have to do a SIM card roulette??
    Thank you for your time Apple Community!

  • Trying to backup from icloud. Enter username and password - OK. Select backup date - OK. I'm then presented with an old username that of course doesn't match my password. Now what?

    Have a disabled iPad2 that's been wiped. Using current IOS system.  Trying to backup from icloud. Enter username and password - OK. Select backup date - OK. I'm then presented with an old username that of course doesn't match my password. Now what?

    Hi Bluehouse44,
    If you are having difficulty restoring your iPad from an iCloud backup you may want to use the steps in this article to try to get back on track -
    If you can't update or restore your iOS device
    http://support.apple.com/kb/HT1808
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • Photo iCloud: selective backup & referenced library

    Hi All,
    Is there any information if an update of Photo iCloud will have these missing features
    1. selective backup (just cloud copy my favorited/tagged 100GB of 500GB library)
    2. referenced library support (don't force me to move 500GB referenced photos into one library blob)
    Thx!

    Macs cannot back up to icloud.  Only iOS devices.  You need to use Time Machine or something similar and preferably to an external hard drive.  iCloud cannot be used like Dropbox to store miscellaneous files.  Look into Dropbox for that.  (The former MobileMe had a service called iDisk that acted as a remote attached drive, icloud does not offer such a service.)

  • Time Machine Endless/Very Slow Backup

    Hi All,
    I've recently encountered a situation in which Time Machine never seems to think it's finished backing up. In the screenshot below you'll see that it's backing up the exact same amount of data from my HD and an external drive called "Movies" (first time 234.6mb & then started again and updated 41.5mb). The thing is, absolutely nothing was changed in the "Movies" drive, it hasn't been touched or synced with anything since the last backup. I'm thinking that's some kind of clue, but not sure what kind of clue it is. I have done many of the things listed here (including "full reset of time machine" and :
    https://discussions.apple.com/thread/2057525?threadID=2057525
    As well as run Clean My Mac, Repaired Permissions, verified & repaired "Movies" (it was OK), and run Yasu.
    Last backup ran for :31min and nothing much had changed. This just started happening recently as outside of major activity TM used to back up in just a few minutes. The good news is the backup was completed successfully, but would love to know what anybody thinks might be the culprit. Oh also backing up to external HD with 1.3TB avail (MB Pro with 750gb HD).

    Following the advice of the great Pondini and others, I found a series of steps that worked to correct this situation on ALL my machines!
    Here is a link to Pondini's excellent troubleshooting site, which is where I found most of these steps. You might consider just going there and ignoring my steps below, because he is definitely the expert in this field.
    http://Pondini.org/TM/Troubleshooting.html
    The below is kind of a "nuclear option." Not sure which step does what, but know that after doing all of them my incremental backups are now running at :10 - :20 SECONDS where they were taking 40 minutes to an hour before (be forewarned, it takes a while to do all this).
    Turn TM off!
    Use Disk Utility "repair disk" function on ALL disks (TM, Mac HD, any others that get backed up). Open Disk Utility, select disk, then select "repair disk."
    Instead of #2, you might consider using Disk Warrior to rebuild your directories. It costs about $100, but it's an extremely valuable tool and can save your sauce in many ways. Honestly I would advise buying DW and doing that instead of the Disk Utility option, which, while free, does not seem to be as robust a solution.
    An alternative to repairing the TM drive is to just start over with a clean, correctly formatted drive (see below). You should still repair/rebuild your MacHD and any other drives that get backed up, though.
    Trash this file: com.apple.TimeMachine.plist (found in MacHD > Library > Preferences).
    Repair Permissions on MacHD
    In System Preferences > Spotlight > Privacy add MacHD (your main/boot drive) to Privacy pane, close system preferences, then reopen and remove it (add and remove using -/+ at the bottom of the window). This will force Spotlight to re-index MacHD (wait until it's finished to do anything else).
    Make sure your TM HD is formatted properly: should be using the GUID partition table (even if it's not partitioned) and be formatted Mac OS Extended (Journaled). These settings will appear at the bottom of the Disk Utility window when you select the HD itself (not by its volume name). If you are not formatted this way, it's recommended that you reformat. Unfortunately, this means your existing backups will be no more (unless you have another drive you can use and preserve the old one until you're safely backed up again).
    Reset PRAM. Restart your mac and hold down these keys simultaneously: option command p r. Hold them down until you hear the second "restart" chime.
    Enter TM preferences and re-select TM disk (when you trash plist TM will "forget" the drive, but all the info is still on the drive) but don't let TM run yet.
    In TM options make sure any disks you prefer to exclude/include are either entered or not (TM HD should always & automatically be excluded)
    In System Preferences > Spotlight > Privacy make sure TM disk is excluded from Spotlight (using +/- as above).
    Finally, enter Time Machine and go through your backups to see if there are any backups that shouldn't be there: should be one backup every hour for the past day, one backup every day for the past month and weekly backups before that. If you find more than one backup on a day 3 weeks ago, for example, delete all but the most recent one for that date (on the window of the backup you want to delete you should see the "gear" icon with a dropdown arrow - click on it and select "delete backup."). You have to delete them one at a time so depending on how many you find & how big your backups are this step can take a very long time but it's critical to making sure TM doesn't get hung up on the "finishing" phase. If TM looks back in time and finds more backups than it wants it's supposed to just delete them but it doesn't always work that way and that's one of the issues that can make the finishing stage of the backup take forever.
    Restart your Mac.
    Restart TM & hope for the best.

  • Very Slow Backup

    I have a 500 GB USB hard drive that I can move files to very quickly. When I select it as my Time Machine Hard Drive the the backup runs very slow. According to the tracking bar it's only backing up about 100 MB every 2 min + I stopped spotlight from indexing the drive but it didn't make a noticeable difference. The drive is currently formated Extended but I've tried Extended (Journaled) also. The backup seems to be working and I have not seen a large performance hit. It just seems to be very slow.
    Does anyone have an idea what I could have wrong?
    Thanks

    You probably are not in any danger. The first TM backup has huge amounts of things to do beside just copying your boot volumes data. It builds a data base and collects a bunch of other info to keep track of things.
    How much data does Time Machine pref panel show it has to backup ?
    Let's say it's 150 GB. Then a USB2 device will get on average around 12 MB/sec. That's some 43 GB per hour. Thus for 150 GB the backup will take 3.5 hrs.
    Be patient and let TM backup finish.
    Are you see a rotating set of arrows in the Finder side bar to right of your TM backup USB device ? Also, there could be a small backup status window floating about somewhere that shows the backup progress as well.

  • Recovering lost data from a very old backup (disaster recovery)

    Hi all,
    I am trying to restore and recover data from an old DAT-72 cassette. All I know is the date when the backup was taken, that is back in November 2006. I do not know the DBID or anything else except for the date.
    To recover this, I bought an internal SCSI HP c7438a DAT-72 tape drive on eBay and installed it on a machine running Windows 2003 Server SP2. I made a fresh Oracle 11g Enterprise Edition installation. HP tape drivers have been installed and Windows sees the tape drive without problem. To act as a Media Manager, I have installed Oracle Secure Backup. Oracle Secure Backup sees the HP tape drive without problems as well.
    I have to admit my information about Oracle is not very in-depth. I read quite a lot of documents, but the more I read the more confused I become. The closest thing I can find to my situation is the following guide about disaster recovery:
    http://download.oracle.com/docs/cd/B10500_01/server.920/a96566/rcmrecov.htm#1007948
    I tried the suggestions in this document without success (details below).
    My questions are:
    1. Is it possible to retrieve data without knowing the DBID?
    2. If not, is it possible to figure out the DBID from the tape? I tried to use dd in cygwin, also booted with Knoppix/Debian and Ubuntu CDs to dump the contents of the tape with dd but all of them failed to see the tape device. If there is any way to dump the raw contents of the tape on Windows, I would also welcome input.
    3. Is there any way at all to recover this data from the tape given all the unknowns?
    Thanks very much in advance,
    C:\Program Files>rman target orcl
    Recovery Manager: Release 11.2.0.1.0 - Production on Sat Mar 19 15:01:28 2011
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    target database Password:
    connected to target database: ORCL (not mounted)
    RMAN> SET DBID 676549873;
    executing command: SET DBID
    RMAN> STARTUP FORCE NOMOUNT; # rman starts instance with dummy parameter file
    Oracle instance started
    Total System Global Area 778387456 bytes
    Fixed Size 1374808 bytes
    Variable Size 268436904 bytes
    Database Buffers 503316480 bytes
    Redo Buffers 5259264 bytes
    RMAN> RUN
    2> {
    3> ALLOCATE CHANNEL t1 DEVICE TYPE sbt;
    4> RESTORE SPFILE TO 'C:\SPFILE.TMP' FROM AUTOBACKUP MAXDAYS 7 UNTIL TIME 'SYS
    DATE-1575';
    5> }
    using target database control file instead of recovery catalog
    allocated channel: t1
    channel t1: SID=63 device type=SBT_TAPE
    channel t1: Oracle Secure Backup
    Starting restore at 19-MAR-11
    channel t1: looking for AUTOBACKUP on day: 20061125
    channel t1: looking for AUTOBACKUP on day: 20061124
    channel t1: looking for AUTOBACKUP on day: 20061123
    channel t1: looking for AUTOBACKUP on day: 20061122
    channel t1: looking for AUTOBACKUP on day: 20061121
    channel t1: looking for AUTOBACKUP on day: 20061120
    channel t1: looking for AUTOBACKUP on day: 20061119
    channel t1: no AUTOBACKUP in 7 days found
    released channel: t1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 03/19/2011 15:03:26
    RMAN-06172: no AUTOBACKUP found or specified handle is not a valid copy or piece
    RMAN>
    RMAN> RUN
    2> {
    3> ALLOCATE CHANNEL t1 DEVICE TYPE sbt
    4> PARMS 'SBT_LIBRARY=C:\WINDOWS\SYSTEM32\ORASBT.DLL';
    5> RESTORE SPFILE TO 'C:\SPFILE.TMP' FROM AUTOBACKUP MAXDAYS 7 UNTIL TIME 'SYS
    DATE-1575';
    6> }
    allocated channel: t1
    channel t1: SID=63 device type=SBT_TAPE
    channel t1: Oracle Secure Backup
    Starting restore at 19-MAR-11
    channel t1: looking for AUTOBACKUP on day: 20061125
    channel t1: looking for AUTOBACKUP on day: 20061124
    channel t1: looking for AUTOBACKUP on day: 20061123
    channel t1: looking for AUTOBACKUP on day: 20061122
    channel t1: looking for AUTOBACKUP on day: 20061121
    channel t1: looking for AUTOBACKUP on day: 20061120
    channel t1: looking for AUTOBACKUP on day: 20061119
    channel t1: no AUTOBACKUP in 7 days found
    released channel: t1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 03/19/2011 15:04:56
    RMAN-06172: no AUTOBACKUP found or specified handle is not a valid copy or piece
    RMAN>
    -----------------------------------

    Hi 845725,
    If the backups were created with OSB might be you can query the tape with obtool.
    http://www.stanford.edu/dept/itss/docs/oracle/10gR2/backup.102/b14236/obref_oba.htmTo list pieces you could use <lspiece> within obtool.
    http://www.stanford.edu/dept/itss/docs/oracle/10gR2/backup.102/b14236/obref_oba.htm#BHBBIFFEIf this works you should be able to identify the controlfile autobackup if it has the standard naming < c-dbid-date-xx > and you than know the DBID or you are able to restore a controlfile from a backup piece in the output list.
    Might be you have to install 9i or 10g rdbms software as 11g was released a year later in 2007.
    Anyway goodluck.
    Regards,
    Tycho

  • Very slow Backup (Many little file in many subdirectories)

    - I have a Netware 6.5 SP8 server with the post SP8 NSS patch installed (NSS version 3.27.01 April 7, 2009)
    - iSCSI Initiator Version 1.06.05 October 30, 2008 connecting a 410 GB NSS Volume (Lefthand Networks iSCSI SAN)
    - the volume contains user data, and contains, from the Root, a USERDATA directory, which then contains 32,749 individual user directories.
    - The majority (90%) of the user directories are empty
    - each user directory has it's own trustee assignment, and space restrictions
    - compression is enabled
    - 376,269 Files using 45,556,460,661 bytes in 221,439 directories so the average would be around 121K per file and as you can see it's very Directory intensive
    TSATEST, indicates approximately 850 MB/min result, but when I attempt to back up the data using my backup software (NetVault, which uses NDMP), the performance is hideous. A Full Backup runs around 135k/sec or 8 MB/min (try getting that done in any size backup window) . I have also tried other backup solutions, with the same basic result.
    I assume the issue is with indexing, but I'm not sure what to check at this point. I've been trying every suggestion I could find. I've gotten the throughput up to about 1.5M/s, but obviously need better. Just wanted to know if anyone here had any suggestions that might help me to make this function more efficiently, or any TID's that have proven helpful.
    Thank You!

    Matt Karwowski wrote:
    > - I have a Netware 6.5 SP8 server with the post SP8 NSS patch installed
    > (NSS version 3.27.01 April 7, 2009)
    > - iSCSI Initiator Version 1.06.05 October 30, 2008 connecting a 410 GB
    > NSS Volume (Lefthand Networks iSCSI SAN)
    > - the volume contains user data, and contains, from the Root, a USERDATA
    > directory, which then contains 32,749 individual user directories.
    > - The majority (90%) of the user directories are empty
    > - each user directory has it's own trustee assignment, and space
    > restrictions
    > - compression is enabled
    > - 376,269 Files using 45,556,460,661 bytes in 221,439 directories so the
    > average would be around 121K per file and as you can see it's very
    > Directory intensive
    >
    > TSATEST, indicates approximately 850 MB/min result, but when I attempt
    > to back up the data using my backup software (NetVault, which
    > uses NDMP), the performance is hideous. A Full Backup runs around
    > 135k/sec or 8 MB/min (try getting that done in any size backup
    > window) . I have also tried other backup solutions, with the same basic
    > result.
    >
    > I assume the issue is with indexing, but I'm not sure what to check at
    > this point. I've been trying every suggestion I could find. I've
    > gotten the throughput up to about 1.5M/s, but obviously need
    > better. Just wanted to know if anyone here had any suggestions that
    > might help me to make this function more efficiently, or any TID's that
    > have proven helpful.
    >
    > Thank You!
    Known issue....
    http://www.novell.com/support/viewCo...1011&sliceId=1
    I have seen this in Java development shops with millions of 1kb files
    and folders. The nature of Java.
    - Use tar or zip on the local server,not across the wire to compress
    those types of data folders.
    - Exclude those folders from backup
    - Then backup only the zip or tar files.
    or maybe look into rsync as I think is copies by hardware blocks not
    files?????
    - maybe need toreview your environment if it is a development shop like
    Java.Maybe switch to GPFS or Reiser for many small files if you can, EXT
    could handle it for your small amount of data though.

Maybe you are looking for

  • Help needed on Mapping logic

    Hi guys, I have logic like, pernr>logic>pernr. Pernr is the first field. Whenever the logic fails, it should not process rest of the below fields. it should directly go to next record. Any ideas....... santosh.

  • How space for a PDF into a BLOB?

    What is the ratio between the size of a PDF and the size of a BLOB? I mean, if I've got a PDF of 1Mb, how much will it occupy in a BLOB on average? Probably always 1Mbyte or much more or much less? Thanks!

  • How to add my magazine to newsstand?

    Hello, I am working with this Fashion magazine, and I would like to know how can I add this magazine to Newsstand? We had co-operation with some company who published our last magazine, but we would like to publish the next one by our selves. We'd li

  • Importing . exe file in plugin

    Hi everybody, I have a short question concerning the plug-in.     i am new in premier pro cs4 sdk,i want  to develop plugin in premier pro cs4 sdk but in that pluging i want to improt application exe. the application exe in flex3 so what will be the

  • LSMW Steps to create purchase order

    Hi all , Tell me steps using LSMW to create purchase order . Any suggestiosns welcome, Regards,