Back in time with rman ?

Hi,
I have a rman set of backups from an Oracle database. The database is ok, only the user wants to have that older stand of the data, so I must go back in time.
The rman script to generate the backups is as follows:
rman target sys/manager@EON1 catalog rman/rman@rman << EOF >> $LOG 2>&1
run {
configure retention policy to redundancy 2;
# debug on;
allocate channel d1 type disk;
backup incremental level 0
skip inaccessible filesperset 10 noexclude
format '/u0/oracle/backup/INCR_%s_%p'
database include current controlfile;
release channel d1;
sql 'alter system archive log current';
allocate channel d1 type disk;
backup skip inaccessible filesperset 50
format '/u0/oracle/backup/ARCH_%s_%p'
archivelog all delete all input;
release channel d1;
report obsolete;
delete noprompt obsolete;
allocate channel for maintenance type disk;
crosscheck backup;
release channel;
allocate channel for delete type disk;
delete noprompt expired backup;
release channel;
EOF
My database world is Sybase, a little bit Oracle skills too but no rman.
Can anybody describe me the steps to restore that backup set?
Thanks a lot.
Daniel S

1. shutdown and backup your database (!!!).
2. start in umount mode
3. rman target sys/manager@EON1 catalog rman/rman@rman
4. at the RMAN prompt perform a point in time restore/recover, e.q.:
restore database until time "to_date('19.01.2009 13:00:00','DD.MM.YYYY HH24:MI:SS')";
recover database until time "to_date('19.01.2009 13:00:00','DD.MM.YYYY HH24:MI:SS')";

Similar Messages

  • I have a mid 2010 Macbook Pro running Snow Leopard and foolishly upgraded to Yosemite.  Is it possible to go back in time with Time Machine and reinstall Snow Leopard.  Then upgrade to Lion or Mavericks?  Any other ideas on how I can exit Yosemite?

    I have a mid 2010 Macbook Pro running Snow Leopard and foolishly upgraded to Yosemite. Now have numerous problems.  Is it possible to go back in time with Time Machine and reinstall Snow Leopard?  Then upgrade to Lion or Mavericks?  Any other ideas on how I can exit Yosemite?

    Once you get yourself back to Snow Leopard, if you still want to upgrade somewhat, I would suggest the following:
    1. Get an external hard drive that you can use for experiments with new OS versions. You could partition it into 2 or 3 partitions. You could then clone your existing Snow Leopard system to one partition using Carbon Copy Cloner (well worth $40) or SuperDuper ($25).
    2. Buy OS X Mountain Lion for $20, through the Apple online store (I don't think it's available through the App Store). Apple has decided to make it very difficult for anyone to get Mavericks unless they have already downloaded it.
    You will receive two e-mails from Apple, one containing a PDF with a redemption code, and one with the password you will need to unlock the PDF. Using the code, you will download Mountain Lion from the App Store, where it will appear among your Purchased items.
    After ML finishes downloading, its installer app will launch itself. When you see this launch screen, QUIT the install app immediately! Go to your applications folder, find the Install OS X Mountain Lion app, and copy it to a safe location outside of your Applications folder. Keeping one or more copies will allow you to reinstall without unnecessary aggravation if you later need or want to do that. At this point, you can re-launch the Installer in the Applications folder and let it run. You can install it on a clean partition on your external HD, or you can allow it to upgrade the Snow Leopard clone you created on your external drive, or you can do both. This should allow you to test how everything works for as long as you like.
    3. If you left yourself a free partition on your test drive, try a clean install of Yosemite and set everything up from scratch (do not migrate anything). This will allow you to see whether your problems with it were related to something in your Snow Leopard system.

  • Can I go back in time with Contacts saved on iCloud?

    I noticed that roughly 300 contact on my iPhone were duplicated. When I started deleting the duplicates, both would disaper. I back up my contact and most other things to iCloud (not iTunes). Is there a way to go "back in time" to receive them? Thank you.

    You can restore the latest backup on icloud back to your device.  But that requires wiping the phone and starting fresh; connect to itunes and perform a restore.

  • Counting values back in time with a split in the Time dimension

    Hi there,
    I would like to calculate how many sales months we had during the past half year. For every month in the past 6 months where there is sales &gt; 0 this should be counted. On the account Sales Months I would like to see the result.
    Lets say I had sales in 01 + 02 +03 + 05 but not on 04 and 06, the value on 07-&gt;Sales Months should be 4.
    The seperated Years dimension makes it hard to calculate this for the first 6 months because the formula has to look back a year and the Months dimension is tagged as Time so I cannot use @PRIOR.
    Maybe you guys have some great idea!
    Regards,
    Thijs
    {color:#0000ff}Essbase version 7.1.6
    3 dimensions
    Years
    - 1999
    - 2000
    - 2001
    Months
    - 01
    - 02
    - 03
    - 04
    - 05
    - 06
    - 07
    - 08
    - 09
    - 10
    - 11
    - 12
    Accounts
    - Sales
    - Sales months{color}

    1. shutdown and backup your database (!!!).
    2. start in umount mode
    3. rman target sys/manager@EON1 catalog rman/rman@rman
    4. at the RMAN prompt perform a point in time restore/recover, e.q.:
    restore database until time "to_date('19.01.2009 13:00:00','DD.MM.YYYY HH24:MI:SS')";
    recover database until time "to_date('19.01.2009 13:00:00','DD.MM.YYYY HH24:MI:SS')";

  • Backing several databases with rman does require one catalog/

    Thanks in advance. I've never liked RMAN, but now I need to get smart on how to best use it.
    Please advise on the following:
    1. I have several databases that need to be backed up using rman
    2. I've create a new database that will be used to backup all of the databases
    3. Will I need to create one catalog for all of the databases that will be backed up or do I create one catalog for each database that will need to be backed up? Thanks for any other advise
    Additionally I'll be backing up two RAC databases.

    attitude? ethics? they wont do.
    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

  • Set until time WITH RMAN

    Hi
    I have tested the codes too but it doesn't seem to be able to recover the database (including the tablespace which I have dropped). Why?
    # RMAN backup
    run
    allocate channel ch1 type disk;
    sql 'alter system archive log current';
    backup format '/backup/orcl/%d_t%t_s%s_p%p'
    filesperset=4
    database;
    release channel ch1;
    RMAN > list backup;
    File LV Type Ckp SCN Ckp Time Name
    1 Full 4072944 06-JUL-05 /oracle/oradata/system01.dbf
    8 Full 4072944 06-JUL-05 /oracle/oradata/tools01.dbf
    12 Full 4072944 06-JUL-05 /oracle/oradata/test01.dbf
    # Drop tablespace
    drop tablespace test including contents;
    # RMAN Recovery
    shutdown immediate;
    startup mount;
    # time is set to after rman backup and before tablespace dropped
    RMAN>
    run {
    set until time "to_date('06-07-2005 16:50:00','dd-mm-yyyy hh24:mi:ss')";
    restore database;
    recover database;
    RMAN > list backup;
    File LV Type Ckp SCN Ckp Time Name
    1 Full 4072944 06-JUL-05 /oracle/oradata/system01.dbf
    8 Full 4072944 06-JUL-05 /oracle/oradata/tools01.dbf
    12 Full 4072944 06-JUL-05
    Why is the RMAN list empty for the deleted tablespace? That's the reason why there is nothing to reover from?

    check at sql prompt
    select substr(name,1,50),status
      2    from v$datafileYours test01.dbf file should have status recover and filename should be missing.
    Khurram

  • Error at connect time with RMAN

    When i connect to RMAN, gatting this error
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00554: initialization of internal recovery manager package failed
    RMAN-04005: error from target database:
    ORA-01031: insufficient privileges
    provide some solution to resolve.

    You need to connect with SYSDBA privilege: http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmquick.htm#BRADV89348

  • How do I delete time machine backups if I can't zoom back in time?

    Hi,
    I'v been backing up my 250GB HD using time machine very successfully over the years. I store additional home movies that aren't on my HD on my time capsule machine in a seperate folder from the backups that are made daily. My 250GB HD is now full and it has been duplicated and placed on a much larger 1TB HD drive back inside my iMac. Because it is a new HD, time machine is wanting to do a new 250GB backup of it (which is ok), BUT there is not enough space on my time machine drive to do a 250GB backup. I need to delete the prior time machine backups to make space. However, because the HD is new, I'm unable to zoom back in time with time machine and delete backups from the time capsule. When I open time capsule in finder I see a .sparsebundle folder which I assume must contain all my old HD time machine backups. To free up time capsule space, can I simply delete the .spersebundle folder? I'm nervous to do that and don't want to mess anything up, so I'm asking for advise. Any advise would be much appreciated. Thx.

    brettnbee wrote:
    Hi,
    I'v been backing up my 250GB HD using time machine very successfully over the years. I store additional home movies that aren't on my HD on my time capsule machine in a seperate folder from the backups that are made daily.
    That's a problem, as you now see.  When you get this sorted out, see #Q3 in Using Time Machine with a Time Capsule for an explanation and some workarounds.
    because the HD is new, I'm unable to zoom back in time with time machine and delete backups from the time capsule.
    You can see and delete individual backups from an old drive, per #E3 in Time Machine - Troubleshooting.  Deleting a lot of them will take a very long time, of course.
    When I open time capsule in finder I see a .sparsebundle folder which I assume must contain all my old HD time machine backups. To free up time capsule space, can I simply delete the .spersebundle folder?
    Yup, that's an option, too but will also take quite a while.  See #Q5 in Using Time Machine with a Time Capsule for details.
    Whatever you do, by all means, connect via Ethernet cable if at all possible.  It will still be slow, but be 2-3 times faster than a good wireless connection.

  • Long back-and-forth with Lenovo... any suggestions?

    Below is a excruciatingly detailed record of my long struggle with Lenovo's customer support regarding my T61, for which I purchased a warranty that is good until June 26, 2010. This is the result of painstaking documentation all along the way; I have the actual case reference numbers and serial numbers, etc., if it would help anyone from Lenovo who happens across this.
    On Monday, April 27, 2009, my T61 (7662-CTO) began
    experiencing persistent crashes. The machine would give me a BSOD
    (Blue Screen of Death) on occasion while in Windows. Despite repeated
    installations of my graphic card's drivers (for the Nvidia Quadro NVS
    140m), the problem continued to worsen. Eventually, the machine
    refused to even boot up, throwing out a 'memory parity error' BSOD
    soon after the Windows boot-up screen. Even my attempts at
    reinstalling Windows (Vista Home Premium x86) did nothing to correct
    the issues. It was increasingly apparent that I was facing a hardware
    problem.
    Since my machine remains under warranty, I called Lenovo's tech
    support. After a bit of redundant troubleshooting (he asked me to
    reinstall drivers that I had already installed multiple times), the
    support agent agreed to send out a box and have the machine shipped
    out to EasyServ in Tennessee. Reluctantly, I agreed and sent the box
    off. This was Lenovo case reference number 1.
    The service was amazingly quick, as I had the machine back in just
    over 36 hours. That I appreciated. I was less grateful for the state
    of the machine upon its return. True, the BSOD/graphics card issues
    had apparently been addressed; the form letter returned with the
    laptop claimed that EasyServ 'Quality Technician' A. Rios had replaced
    the 'PLANAR CARD ASM EXTERNAL VIDEO' --part number 41W1489. Glad to
    have my machine back for work, I once again reinstalled Windows Vista.
    Yet I soon realized that the machine had another serious problem.
    Putting my T61 into sleep was a risky proposition; within several
    minutes, all indicator lights would blink off, and the machine would
    offer no signs of life. Pushing the power button did nothing.
    Replacing the battery did nothing. Whether plugged in or not, the
    machine refused to respond. Repeated power button pushes would
    occasionally rouse the machine to 'life,' but as soon as it dropped
    into sleep mode again, it would eventually drop dead.
    Increasingly unhappy, I called Lenovo support again. They apologized
    for the continued faulty hardware and sent out another overnight box
    for the return freight to Tennessee. I dutifully shipped the T61 out
    again--this was case reference number 2. Once again, the machine
    zipped through EasyServ very quickly. It came back 2 days later, with
    a "Repair Action Report" form that indicated that M. Anderson had
    service the machine. Checked off were boxes for "system board/planar"
    (though what exact part was replaced was not indicated this time),
    "updated BIOS/embedded controller," and "performed PC Doctor
    diagnostics to ensure hardware functionality."
    Assured that my problems were (finally!) fixed, I set to reinstalling
    Windows. I did all the little software installations and tweaks that I
    need to get work done on my new machine. But once everything was set
    up, another problem popped up its ugly head. When I did anything that
    required some processor power (say, watching video online or running a
    virus scan), the machine would mysteriously and spontaneously freeze
    up and drop itself into sleep mode. When roused from its stupor, the
    machine would immediately give up and return to sleep. Aggravated, I
    tried yet another fresh install of Windows and was astonished to find
    out that Vista refused to install properly, citing an 'incompatible
    hardware' error.
    Needless to say, I called Lenovo support once again (case reference
    number 3). The first technician I spoke to demanded
    that I remove the hard drive I had placed into the machine with the
    one originally shipped with the T61. I protested that this was the
    Seagate Momentus 7200.2 (200 GB), and it was unlikely that it was the
    source of the problem (since the original hard drive had been the
    Seagate Momentus 7200.1 (60 GB). But apparently having no choice, I
    gave in. We ended our call, I opened up the machine, and swapped hard
    drives. I also went ahead and pulled out the extra RAM I had put into
    the box--anticipating the next technicians' likely protests. When
    Windows gave me the same errors as before, I called Lenovo back. I
    explained the whole situation, going back to the video card
    replacement that started the whole series of issues. When I explained
    how I had attempted to reinstall Windows, the technician repeatedly
    asked me if I had changed the boot order on the machine. "No," I
    answered. "You don't actually need to. The BIOS throws up a 'Press any
    key to boot from the CD/DVD drive' prompt." There was a short pause.
    "Did you change the BIOS boot order?" I rolled my eyes and eventually
    capitulated to the technician's request. After thus proving that I
    actually did know how to boot from my DVD drive, the technician asked
    about my installation disc. "You don't have the Rescue and Recovery
    discs?" he asked, obviously confused. "No," I answered. "The only disc
    I received with my laptop was a clean Vista install/upgrade disc."
    There was a long pause, after which the technician insisted that I use
    the Lenovo-issued R&R discs.
    After receiving said discs through UPS (4 days later), I tried things
    again. The Lenovo R&R program was able to successfully re-image my
    hard drive with Vista Home Premium. But the odd spontaneous sleep
    problem remains. Determined to receive the 'incompatible hardware'
    error I had received before, I tried reinstalling with the vanilla
    Vista disc; this time, the installation proceeded without a hitch, and
    this is the OS that's installed now on the machine. Yet the sleep mode
    problem remains. After monitoring system temperature during
    high-intensity computing (i.e. running virus scan, Windows Defender
    scan, and HD online video all at the same time), it seems likely that
    there is some sort of overheating issue. The machine (specifically, the "ACPI Thermal Zone," according to the temperature-monitors program I used) occasionally leaps to 97 degrees Celsius and higher, and this seems to correspond
    to the shut-downs.
    Eager to avoid another EasyServ roundabout, a new technician and I agreed that taking the T61 to a licensed Lenovo warranty service provider would probably be the best option. He offered the Duke Computer Repair shop as my first option. "Great!" I thought, "I'm a Duke student; this should be relatively painless." What the Lenovo rep. DIDN'T tell me was that Duke charged $90 to work on any machine that wasn't bought through their Computer Store. I discovered this when I drove to the Duke repair shop and talked to the people there (who were, admittedly, apologetic and very willing to offer advice). Not excited about shelling out cash to have my warranty honored, I opted to take the laptop to the next nearest authorized Lenovo warranty service provider. This was a 25-minute drive for me, but I had few other options that didn't involve a $90 service charge. Choice received the machine in on Tuesday, May 19th.
    The Lenovo-approved warranty service technician here was remarkably helpful and engaged. He WAS able to reproduce the problem; the laptop aborted into sleep when the CPU was pushed, just as it did for me. Roger also ran a full diagnostic, but his diagnostic did not return any hardware failures that he could replace. He 'discharged the capacitors,' holding the power button down for a full 30 seconds (a process similar to what brought the laptop out of its dead state under case reference number 30TQLB5 above. This seemed to resolve things, he explained, and he encouraged me to take the machine home and see how things went. Unfortunately, the issue persists; pushing the CPU to 100% drops my T61 into sleep mode, often repeatedly
    I called Lenovo again. The technician demanded that I install the Power Manager and power management driver from Lenovo before we proceed any further. I resisted, convinced long ago that the machine was suffering a hardware issue, NOT a driver issue) and asked to speak to the technician's supervisor. He said, "Fine," and abruptly dropped me to being on hold. Fully fifteen minutes later (I timed this), another technician picked up, entirely unaware that I had spoken to anyone else or that I was "waiting" for a supervisor. I do not know if I was actually in queue to speak to that first technician's supervisor, or whether that technician had grown tired and decided to relegate me to hold music limbo. The second technician decided to open a new case (my fourth case reference number). He, too, demanded that I install the relevant drivers. Relucantly, I hung up and installed the driver and Power Manager utility.
    The problem persisted. In fact, after the installation, the machine went into sleep twice during the startup process--before I even reached the Vista desktop. I called Lenovo back. Running through his protocols, the technician asked whether I had updated the BIOS (the second EasyServ service had done this, and I had double-checked this when I got the machine back). He asked again whether I had actually installed the Power Manager and power management driver. I had. The technician then gave me the equivalent of a shrug. "We could send it back to the depot," he offered, referring again to EasyServ. When I explained (again) that the Lenovo-approved warranty service provider had run all the relevant diagnostics, found no replaceable part, and acknowledged that a problem remained. When I asked the technician on the line about a possible system replacement, he was quick to claim that his department--the system support specialists--could not do this. He shrugged me off and suggested that I call the sales department about any sort of replacement or refund. "And will they have access to my case reference information?" I asked, incredulous that he was referring me to sales--two full years after the machine's actual purchase. "I don't know," he answered. "All I know is that I can't do anything else."
    It has now been three and a half weeks since my machine first began having major issues. This laptop has been to EasyServ twice and come back each time with new hardware-related issues. It has been taken to a Lenovo-approved warranty service provider, who acknowledged and reproduced the problem but was unable to repair it. I have called Lenovo's customer support number at least a dozen times and spent HOURS giving case reference numbers, explaining and REexplaining my issues, and waiting on hold. I have gotten little actual work done in these past weeks. I have reinstalled or reimaged Windows at LEAST 10 times. My school fieldwork requires me to have a working machine. I also enrolled in lynda.com's online tutorials for the month of May (through Duke University), but these extended, unresolved problems have cost me dearly. If there is anything that anyone on these forums can do, please help. Help me get my warranty honored. Please, help restore my faith in the Thinkpad legacy.
    Thanks for your time.
    Matt Hauger
    IBM/Lenovo customer
    Durham, North Carolina
    Solved!
    Go to Solution.

    TPFanControl reads the temperatures reported by your ThinkPad's "embedded controller"--which controls the fan speed. You can use it just for monitoring temperatures, you don't have to control the fan with it (read the documentation for the config file).
    RMClock, among other things, plots cpu frequency, voltage and temperature vs. time. This can be useful to observe when your cpu is throttling itself to avoid overheating. You can also use RMClock to undervolt your cpu to lower temperatures. But you shouldn't have to do that to prevent the problems you're having.
    mprime in torture test mode will stress your cpu and memory. You can run this while monitoring your system temperatures. At the very least, running the mprime torture test should quickly tell you whether your unwanted sleep is indeed correlated with cpu activity.
    Results of Your Ideal Business-Class Laptop survey, concluded 2009-07-29.
    Did someone help you?
    Say thanks! with a kudo.
    Even better: Pay it forward, help someone else.

  • Whole computer back in time?

    I moved around a bunch of files and screwed up iMovie file paths and even after restoring what files I thought I needed to it is still messed up... Now in iMovie it shows the clips thumbnails and transitions like it did before but they don't play and there is a yellow triangle with an exclamation it it?
    How do I just take the whole thing back a few hours to when it was working fine?

    You don't need to restore the entire computer, just delete the folders that you moved around and go back into time with time machine and restore the entire folder that you moved around. That should be quick and easy (depending on how large the project was)

  • Backing Up Oracle with Commvault

    Does anyone have any experience using Commvault as there backup tool with Oracle. I am having some problems comming up with the "Best" way to do things like ... well ... a backup.

    Any backup that does not use RMAN is like trying to swim with one arm.
    Back up Oracle with RMAN. Use other products for everything else.

  • When I bring up my Mozillafirefox, all I get is a window with a blank white screen. (I 'reinstalled' Firefox 3.66 about a month and a half ago, (and lost all my bookmarks as a result therein), and hope I can get my firefox back this time without having t

    When I bring up my Mozillafirefox, all I get is a window with a blank white screen, (and the firefox logo). (After using Firefox very happily for over a year, I had to 'reinstall' Firefox 3.66 about a month and a half ago, (and lost all my bookmarks as a result therein), and hope I can get my firefox back this time without having to reinstall. Mozilla Firefox is still listed as one of my active programs). HELP! Is there a way to get my firefox back without reinstalling? Many thanks!
    == This happened ==
    Every time Firefox opened
    == June 30, 2010 ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727)

    same problem. wtf. just happened one day when i went to use it. nothing out of the ordinary installed either....

  • TS1474 I have had to restore my pc to a place back in time when it worked correctly, this meant thad iTunes was deleted. I have downloaded the latest version if iTunes but my Ipad wont sync. I get a message saying this Ipad is sycned with another iTunes l

    I have had to restore my pc to a place back in time when it worked correctly. This meant that iTunes was deleted. I have now downloaded the latest version of iTunes but I cant sync my iPad with it. I get the message that this iPad is synced with another iTunes Library and cant sync to this one.  Thankfully all my music library is on iPad. I would be grateful for some help on this issue

    Its solved I just restored it to that point

  • Can I back up computer with time machine on lion then reinstall snow leopard and restore from backup safely

    Can I back up computer with time machine on lion then reinstall snow leopard and restore from backup safely?

    If your machine came with Snow Leopard or earlier and you have your install disks, yes, you can reinstall SL. However, you will need to erase the entire hard drive so you will lose all your files. Also note that there are some apps (such as Mail) which can't be downgraded "automatically" such as with a restore from Time Machine. Here is some info on TM:
    http://pondini.org/TM/14.html

  • IPhone 5c was powered off; when turned back on screen only shows in black and white.  Have tried several times with no success. Any suggestions?

    I purchased the iPhone 5c about 4 months ago.  I turned it off briefly last night and when I turned it back on, the screen wallpaper and app icons are now in black and white.  I have tried turning it off and on again several times with no success; screen still shows only black and white.  All other functions of phone/text work correctly. Any suggestions on what to try?

    Hello Teri,
    You may have greyscale turned on. Try going to Settings > General > Accessibility and toggle that off and it should go back to color. Check out the page below for more information. 
    Invert Colors and Grayscale
    http://help.apple.com/iphone/8/#/iph3e2e1fb0
    Regards,
    -Norm G. 

Maybe you are looking for