Restore arch for logminer

Hi!
I need to mine the log's from a period of time.
So I queried V$ARCHIVED_LOG...
select distinct sequence# from v$archived_log where FIRST_TIME BETWEEN TO_DATE('03/11/2010 15:30:32', 'MM/DD/YYYY HH24:MI:SS') AND TO_DATE('03/11/2010 17:35:08', 'MM/DD/YYYY HH24:MI:SS') order by 1
With the output I crated a RMAN restore script
run {
set archivelog destination to '/tmp';
restore archivelog sequence 150860 ;
restore archivelog sequence 150861 ;
restore archivelog sequence 176699 ;
restore archivelog sequence 176700 ;
restore archivelog sequence 176701 ;
It is an RAC cluster, I think thats the reason for the gap in the sequence#.
I could restore the 150* logs but not the 176*!
executing command: SET ARCHIVELOG DESTINATION
Starting restore at 16-03-2010
allocated channel: ORA_SBT_TAPE_1
channel ORA_SBT_TAPE_1: sid=2014 instance=RACF2 devtype=SBT_TAPE
channel ORA_SBT_TAPE_1: Data Protection for Oracle: version 5.3.3.0
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=2022 instance=RACF2 devtype=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 03/16/2010 16:18:27
RMAN-06004: ORACLE error from recovery catalog database: RMAN-20242: specification does not match any archive log in the recovery catalog
Then I quried v$archived_log again and saw that e.g 150864 has dest_id 1 and 10 and 177765 has only dest_id 10.
Dest_id 10 = db_recovery_file_dest = FRA on ASM.
Why are these files only archived to FRA and not via RMAN to tape?
Any Idea how to get this files.
thanks
Daniel
Edited by: user641444 on Mar 16, 2010 9:14 AM

Hi,
For RAC you will have as much threads as instances.
Can you change the query to:
select distinct sequence#, thread# from v$archived_log where FIRST_TIME BETWEEN TO_DATE('03/11/2010 15:30:32', 'MM/DD/YYYY HH24:MI:SS') AND TO_DATE('03/11/2010 17:35:08', 'MM/DD/YYYY HH24:MI:SS') order by 1
You can than restore with
restore archivelog sequence between 150860 and xxx thread 1;
restore archivelog sequence between 176699 and yyy thread 2; (I guess this sequence comes from the second thread)
etc.
Rgds,
Tycho

Similar Messages

  • Backpac: A package state snapshot and restore tool for Arch Linux

    backpac:
    A package state snapshot and restore tool for Arch Linux with config file save/restore support.
    https://aur.archlinux.org/packages.php?ID=52957
    https://github.com/altercation/backpac (see readme on the github repository for more information)
    Summary & Features
    It's a common method of setting up a single system: take some notes about what packages you've installed, what files you've modified.
    Backpac creates those notes for you and helps back up important configuration files. Specifically, backpac does the following:
    maintains a list of installed groups (based on 80% of group packages being installed)
    maintains a list of packages (including official and aur packages, listed separately)
    maintains a list of files (manually created)
    backs up key config files as detailed in the files list you create
    The package, group and files lists along with the snapshot config files allows system state to be easily committed to version control such as git.
    Backpac can also use these lists to install packages and files. Essentially, then, backpac takes a snapshot of your system and can recreate that state from the files and lists it archives.
    Use Cases
    Ongoing system state backup to github
    Quick install of new system from existing backpac config
    Conform current system to given state in backpac config
    Backpac is a very, very lightweight way of saving and restoring system state.
    It's not intended for rolling out and maintaining multiple similar systems, it's designed to assist individual users in the maintainance of their own Arch Linux box.
    Status
    Alpha, release for testing among those interested. Passing all tests right now but will continue to rework and refine. Bug reports needed.
    Why?
    There are a lot of 'big-iron' solutions to maintaining, backing up and restoring system state. Setting these up for a single system or a handful of personal systems has always seemed like overkill.
    There are also some existing pacman list making utilities around, but most of them seem to list either all packages or don't separate the official and aur packages the way I wanted. Some detect group install state, some don't. I wanted all these features in backpac.
    Finally, whatever tool I use, I'd like it to be simple (c.f. the Arch Way). Lists that are produced should be human readable, human maintainable and not different from what I'm using in non-automated form. Backpac fulfills these requirements.
    Regarding files, I wanted to be able to backup arbitrary system files to a git repository. Tools like etckeeper are interesting but non /etc files in that case aren't backed up (without some link trickery) and there isn't any automatic integration with pacman, so there is no current advantage to using a tool like that. I also like making an explicit list of files to snapshot.
    Sample Output
    This is the command line report. Additionally, backpac saves this information to the backpac groups, packages and files lists and the files snapshot directory.
    $ backpac -Qf
    backpac
    (-b) Backups ON; Files will be saved in place with backup suffix.
    -f Force mode ON; No prompts presented (CAUTION).
    (-F) Full Force mode OFF; Prompt displayed before script runs.
    (-g) Suppress group check OFF; Groups will be checked for currency.
    (-h) Display option and usage summary.
    (-p) Default backpac: /home/es/.config/backpac/tau.
    -Q Simple Query ON; Report shown; no changes made to system.
    (-R) Auto-Remove OFF; Remove/Uninstall action default to NO.
    (-S) System update OFF; No system files will be updated.
    (-U) backpac config update OFF; backpac files will not be updated.
    Sourcing from backpac config directory: /home/es/.config/backpac/tau
    Initializing.................Done
    GROUPS
    ============================================================================
    /home/es/.config/backpac/tau/groups
    GROUPS UP TO DATE: group listed in backpac and >80% local install:
    base base-devel xfce4 xorg xorg-apps xorg-drivers xorg-fonts
    GROUP PACKAGES; MISSING?: group member packages not installed:
    (base: nano)
    (xfce4: thunar xfdesktop)
    PACKAGES
    ============================================================================
    /home/es/.config/backpac/tau/packages
    PACKAGES UP TO DATE: packages listed in backpac also installed on system:
    acpi acpid acpitool aif alsa-utils augeas cowsay cpufrequtils curl dialog
    firefox gamin git ifplugd iw mesa mesa-demos mutt netcfg openssh rfkill
    rsync rxvt-unicode sudo terminus-font vim wpa_actiond wpa_supplicant_gui
    xmobar xorg-server-utils xorg-twm xorg-utils xorg-xclock xorg-xinit xterm
    yacpi yajl youtube-dl zsh
    AUR UP TO DATE: aur packages listed in backpac also installed on system:
    flashplugin-beta freetype2-git-infinality git-annex haskell-json
    package-query-git packer wpa_auto xmonad-contrib-darcs xmonad-darcs
    AUR NOT IN backpac: installed aur packages not listed in backpac config:
    yaourt-git
    FILES
    ============================================================================
    /home/es/.config/backpac/tau/files
    MATCHES ON SYSTEM/CONFIG:
    /boot/grub/menu.lst
    /etc/acpi/handler.sh
    /etc/rc.conf
    /etc/rc.local

    firecat53 wrote:I think your plan for handling an AUR_HELPER is good. If AUR_HELPER is defined by the user, then either you might need a list of major AUR helpers and their command line switches so you can pick the correct switch for what needs to be done (most use some variation of -S for installing, but not all), or have the user define the correct switch(es) somehow for their chosen AUR helper.
    That's a good idea. I'll add that to my AUR refactoring todo.
    I also found directory tracking to be a weakness in other dotfile managers that I tried. I think you would definitely have to recursively list out the contents of a tracked directory and deal with each file individually. Wildcard support would be nice...I just haven't personally found a use case for it yet.
    I've been thinking that I could just add the directory and scan through it for any non-default attribute files. If those are found then they get automatically added to the files list. That's pretty close to what etckeeper does.
    Edit: I just compiled the dev version and removed my comments for already fixed things...sorry!
    The master branch should have those fixes as well, but I didn't update the version number in the package build. I'll have to do that.
    1. Still apparently didn't handle the escaped space for this item: (the file does exist on my system)
    Ok, good to know. This wildcard directory business will require some new code and refactoring so I'll also rework my filenames handling.
    2. Suggestion: you should make that awesome README into a man page!
    I was working on one (the pkgbuild has a commented out line for the man page) but I had to leave it for later. Definitely want a man page. Once this stabilizes and I'm sure there aren't any big structural changes, I'll convert it to man format.
    3. Suggestion: add the word 'dotfile' into your description somewhere on this page, the github page, and in the package description so people looking for dotfile managers will find it. You could also consider modularizing the script into a dotfile manager and the package manager, so people on other distros could take advantage of your dotfile management scheme.
    I actually have a different script for dotfile management that doesn't touch packages, but there is definitely overlap with this one. That script isn't released yet, though, and if people find this useful for dotfile management that's great. I'll add that in.
    4. Suggestion: since -Q is a read-only operation, why not just make it run with -f automatically to avoid the prompt?
    Originally, running backpac without any command line options produced the Query output. I was concerned that since it is a utility that can potentially overwrite system files, it is important to give users a clear statement prior to execution about what will be done. Since the Query output is essentially the same as the Update and System reports in format and content, I wanted to be explicit about the Query being a passive no-change operation. The current command line options aren't set in stone though. If you feel strongly about it being different, let me know.
    Long answer to a short question
    5. Another suggestion: any thought to providing some sort of 'scrub' function to remove private information from the stored files if desired? This would be cool for publishing public dotfiles to github. Perhaps a credentials file (I did this with python for my own configs). Probably detecting email addresses and passwords without a scrub file would be rather difficult because dotfiles come in so many flavors.
    Yes, absolutely. In fact, if you look at the lib/local file (pretty sure it's in both master and dev branches in this state) you'll see some references to a sanitize function. The idea there is that the user will list out bash associative arrays like this:
    SANITIZE_WPA_=(
    [FILE]='/etc/wpa_supplicant.conf'
    [CMD]='sed s/expungepattern/sanitizedoutput/g'
    Question: am I missing an obvious option to remove a file from the files.d directory if I delete it from the files list? Or do I have to delete it manually? It might be helpful to add a section to the README on how to update and delete dotfiles from being tracked, and also a more detailed description of what the -b option does (and what is actually created when it's not used).
    You are only missing the function I didn't finish. There should be either dummy code or a TODO in the backpac main script referencing garbage collection, which isn't difficult but I just haven't finished it. The idea being another loop of "hey I found these old files in your files.d, mind if I delete them?" It's on my list and I'll try to get it in asap.
    And finally, just out of curiosity, why did you choose to actually copy the files instead of symlink like so many other dotfile managers do?
    git not following symlinks, hardlinks also out for permissions issues (git wouldn't be able to read the files, change them, etc.)
    I definitely would prefer to not make an entire copy of the file, but I haven't come up with a better option. Shout with ideas, though. Also, if there is a way around the link issues I noted above, let me know. I don't see one but that doesn't mean it's not there.
    edit: I think a Seattle area Arch meetup would be cool! Perhaps coffee someplace? Bellevue? U-district? Anyone else? BYOPOL (bring your own pimped out laptop)
    A general meetup sounds good. I was also thinking it would be fun to do a mini archcon with some demos.

  • [svn:osmf:] 13754: Restore ability for HTTP streaming index handler to send /receive arbitrary context associated with an index, per Matthew's feedback .

    Revision: 13754
    Revision: 13754
    Author:   [email protected]
    Date:     2010-01-25 10:56:31 -0800 (Mon, 25 Jan 2010)
    Log Message:
    Restore ability for HTTP streaming index handler to send/receive arbitrary context associated with an index, per Matthew's feedback.
    Modified Paths:
        osmf/trunk/framework/OSMF/.flexLibProperties
        osmf/trunk/framework/OSMF/org/osmf/events/HTTPStreamingIndexHandlerEvent.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/HTTPNetStream.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/HTTPStreamingIndexHandlerBase.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/f4f/HTTPStreamingF4FIndexHandler.as
    Removed Paths:
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/URLLoaderWithContext.as

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • I have a company Ipad that belonged to a deceased employee. no access to his icloud or appleID. how can I restore it for use with a new apple ID

    I have a company Ipad that belonged to a deceased employee. no access to his icloud or appleID. how can I restore it for use with a new apple ID?
    The apple ID was his personal account and can no longer gain access. Im sure I can get purchase recipts from the accounting department if needed. I tried to put the Ipad in restore mode and used itunes to "recover" the ipad but it still wont let me in because he registered the device with the "lost iphone" feature or whatever that is.

    Activation Lock in iOS 7  >  http://support.apple.com/kb/HT5818
    The Apple ID and Password that was Originally used to Activate the iDevice is required
    If you do not have that information you will not be able to use the Device.

  • How can I tell if I have the right restore disks for Intel Mac Mini

    I have an "early 2006" (confirmed by S/N YM609***) Intel Mac Mini 1.66mhz Core Duo. I bought it used and the hard drive had been wiped. Both the HD and the DVD drive seem to work fine; hard drive passes SMART tests. I was able to boot using "Drive Genius" and can access the pre-install items like Disk Utility (and know that I need to use GUID formatting to create a bootable disk). Not knowing I could order restore disks from Apple I bought a set on eBay, p/n AHT VERSION 3A102 DISC VERSION 1.1 2Z691-5828-A, copyright 2006 on disks and included documentation (OS 10.4.6), but the install always fails 10-15 minutes along. I got the same results when trying to install via internal optical drive to a FW or USB external HD (told it to use GUID for the external HD), or external FW optical drive both to internal HD and to external USB hard drive. A friend tried to install full retail versions of 10.5 and even 10.6 for diagnostic purposes, using the built in HD and DVD drives, but those installs did not complete either; they did not try external drives. Is that the wrong restore version for this model, or even if the right "generation", does a set of restore disks only work with the specific Mac mini they were issued for like for example XP restore disks would? I've been told I can provide my s/n to Apple and for about $30 they will send me the "right" restore disks... anyone know anything about this? Could there be a hardware/firmware explanation for why the install fails like that? PS ran the extended version of the Apple Hardware Test with that restore disk set and it reported "no problems."
    <Edited by Host>

    Thanks. Actually I got the Mini from a computer recycling company I work with so I knew it might have problems and that I was taking an "as-is" risk. If the original disks were turned in with it, they'd been lost (that outfit took in huge piles of stuff every day; it was often luck of the draw for me to find something before it would be buried, damaged, etc., and not everyone who worked there had any idea of the possible value of things they received) for me to find things. The disks I got on eBay apparently were separated from the mini they'd been packaged for. An Apple Store rep said I could order restore direct from Apple just by providing my serial number; just wish I'd known that before I went to eBay. Since posting this I've seen another seller specifically claiming that the same-part-numbered-as-mine disc set they are selling will work with my specific type of Mac mini. I have an appointment tomorrow morning at the Genius Bar at an Apple store near me in case they have more suggestions. Will share what I know as things develop.

  • Where can I find a restore disc for a PowerBook G4?

    Where can I find a restore disc for a PowerBook G4?

    The detailed problem is that I had used the computer for a long time without turning off.  I wanted to give it to someone else so I needed to clean the data off. Before deleting anything I switched off then on and the HD seemed to have developed a fault as the start up routine began then when the Hd started the computer crashed and restarted at the begining with the startup routine and I have not been able to go further than this.  I changed the HD for an old one that I had replaced previously which had the same software system, Leopard.  This worked perfectly but on switching off then on behaved as the other had. 
    I figured that if I could start with the restore disc I could clean the HD or at least investigate it.  Hence the need for a restore disc.
    Would this work or is there something in the logic board that is upsetting the HD and what ever I do will not cure the problem.
    Any thoughts??

  • My iTouch will not restore becuase for some reason it won't reconize it. I merely tried to update it with the newest software and every thing went to sh--. Now it is just stuck on the screen showing the apple sign. Can anyone help me.

    My iTouch will not restore becuase for some reason it won't reconize it. I merely tried to update it with the newest software and every thing went to sh--. Now it is just stuck on the screen showing the apple sign. Can anyone help me.

    There's a whole lot to read in your post, and frankly I have not read it all.
    Having said that, this troubleshooting guide should help:
    http://support.apple.com/kb/TS1538
    In particular, pay attention to the mobile device support sections near the bottom, assuming you have already done the items above it.

  • I've just found the keyboard shortcut in Garageband for 'copy region' had changed from cmdC to ctrlC. I went to Preferences and clicked Restore Defaults for shortcuts. Now its altC . How can I get it back to the original commands.

    I've just found the keyboard shortcut in Garageband for 'copy region' had changed from cmdC to ctrlC. I went to Preferences and clicked Restore Defaults for shortcuts. Now its altC . How can I get it back to the original commands.

    When I use find file http://www.macupdate.com/app/mac/30073/find-file (which does tend to find files that "Finder" can't), it's not coming up with any other itunes library files that have been modified in the past week, which I know it would have been - unfortunately, I don't have a very recent backup of the hard drive.  It would be a few months old so it wouldn't have the complete library on it....any ideas?  I'm wondering if restarting the computer might help but have been afraid to do so in case it would make it harder to recover anything...I was looking at this thread https://discussions.apple.com/thread/4211589?start=0&tstart=0 in the hopes that it might have a helpful suggestion but it's definitely a different scenario.

  • How to get restore disk for Equium L40-U10?

    I have lost the restore disc for my toshiba equium L40-U10, and didnt create one upon first boot of my o.s.
    I am wondering were i can obtain a restore disc i can use to revert my laptop to factory settings from?
    thanx.x

    > I am wondering were i can obtain a restore disc i can use to revert my laptop to factory settings from?
    and Im wondering if you have searched in this forum for similar questions before posting this here??? Did you???

  • HT201412 My itouch 4th gen 32 GB is stuck on restore logo for 3 hrs already.

    and since my home button no longer functions i have to use the accesibilty option, but anyways on the problem i restored it without using itunes and now its been on the restoring logo for 3 hrs going on 4 and its irritating me, what is the best option is to drain the battery and restore it again? advice needed

    Try:
    iOS: Not responding or does not turn on
    - Of not successful and you can't fully turn the iPod off let the battery fully drain. After charging for at least an hour try again
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    When the link says place the iPod in recovery mode, use this program instead.
    RecBoot: Easy Way to Put iPhone into Recovery Mode

  • HT1561 were to find  Restore CD,for imac G5 10.3.7

    were to find  Restore CD,for imac G5 10.3.7

    It's going to be difficult to find.
    Suggest you join LEM-Swap for buying & selling Mac stuff. http://groups.google.com/group/lemswap
    After you join, post a WTB (want to buy).
    Why do you need OS 10.3 since it's obsolete? Your G5 will run Tiger 10.4 or Leopard 10.5.
     Cheers, Tom

  • How can I get a restore cd for my mac g5

    I am looking for a restore CD for my mac g5

    Click here, phone Apple, and order them. If you don’t need the computer’s bundled software, you can instead use a retail DVD which is newer than the Mac but older than 10.6.
    (125705)

  • No Arch for a while =[

    Well now our new student house has no Internet and I ended up with a blanked hard-disk after trying to install a new student based distro to try out in the hopes I can convert fellow Biology lab mates to Linux, and the computer crashed during partitioning and moving data on my hard drive and ended up rendering it useless. Now I'm back on Ubuntu as it was the latest disk I got with a linux mag, and on a mobile broadband dongle. Normally I install Arch with an ethernet cable plugged in because I need the broadcom driver that's on the AUR and Nvidea drivers and such. I had a look at Archiso, which I may very well be using in the future when I have some spare time to generate a back up iso with my drivers and such on it. But it struck me that the instructions for this were for doing on an Arch system. So I'm wondering if there's any way I could do this  sort of thing in Ubuntu? Otherwise it's no Arch for the month until the house FINALLY gets the line active again (damn BT!) and the Internet installed.
    Cheers,
    Ben.
    Last edited by Ben9250 (2010-10-23 01:45:01)

    You should able to add your wireless driver stuff in the iso using archiso: http://wiki.archlinux.org/index.php/Arc … kages.list
    Alternatively, you can include the core repo in your live cd and and use it to install the base system. Once you have the base system installed you could download the wireless drivers and install them manually with pacman -U /path/to/pkg.tar.xz

  • Where can i get a restore disc for macmini 10.5, cant find one anywhere

    where can i get a restore disc for macmini 10.5.8, looked everywhere cant find one, not in apple store, ebay, amazon, help! want to put system back to factory settings to try and sell. thanks

    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support visit online support site.
    Otherwise you will need to search other vendors to purchase it. AppleCare will sell you replacements for the original discs that came with the computer.

  • HT6055 Request to Apple: restore support for older codecs

    I used Quicktime extensively for my research before upgrading to Mavericks, and now that these older codecs have been removed, none of my experimental videos taken over the past 5 years will play in Quicktime. This is extremely disappointing.
    I'd like to gather as much user support as possible to request that Apple restore support for these older codecs.
    PLEASE RESPOND ON THIS THREAD BY ADDING YOUR REQUEST FOR APPLE TO RESTORE SUPPORT FOR OLDER CODECS.
    FYI, my video files were .avi format, recorded by a Nikon D300s and a Zeiss EVO 55 scanning electron microscope.

    Some things can be converted without transforming the data.  I have data in Excel spreadsheets that is identical to the data in the Lotus Symphony spreadsheets in which I entered the data in 1986.  Converting video does involve data transformation which is undesirable unless it comes to a point where it is unavoidable. Speaking as a research scientist, one is obligated to try to preserve original data to a reasonable extent.  In this case the video is not "dead".  It can still be played.  It's just Apple's behavior that anything older than about 4 years is old-fashioned and to be forgotten that's mandating stepping outside Apple software to do so.  Yes, it would be a good idea to convert so when future upgrades mean no old codecs will play at least the data are available to some degree.  I still would not get rid of the old files since they are the original data, and if the person spends 30 seconds installing VLC player they can still view the original data for another 10 years at least (if they keep the computer that long -- my computer is 12 years old and I can still run applications on it dating from the early 1990s).
    By the way, you can still buy VHS players.  I agree they will not be around forever, and if it's a family video you want to play 20 years from now then you may as well convert it now, but then that's not research evidence.
    Optical media are dead at Apple, but still extensively used outside Apple.  I agree in 20 years it will be hard to find a DVD player but visit right now any store selling movies or music, or a public library, and optical media are still around.  Apple can force the issue where their hardware is involved, especially as regards to installing Apple software, and of course by pushing online media sales (if you buy from the iTunes Store, which I don't).

Maybe you are looking for

  • CTRL + ALT + BACKSPACE or F1, F2, etc lock

    I've read many posts from this forum about this subject, tried every suggestion, but the things remains the same: After X has started, the combination of keys ctrl + alt +F1 or any other vc combination gives me a black screen, idem for ctrl + alt + b

  • What was apple thinking???

    Well here's my story, I'll try to keep it as short as possible.      I have a 4s on pre-order with estimated delivery date 24-31 oct. I'm in Ontario. Today I decided to go to my local futureshop and maybe try to play with a live demo of the phone, bu

  • How do I upgrade previously puchased songs?

    I used to be able to upgrade old music to iTunes plus until I got the new version of iTunes. Now I can't find any links for it in the store. I went to "help" and it said to go to the music store and follow the online instructions, but there are no in

  • How can I put an mp4 video on IPad?

    How can I put an mp4 video on IPad?

  • Flash Pro CS6  Update menu greyed out + AAM fail,supressed by the Admin - Win7-64

    Hi, I want to update Flash Pro Cs6 (PC Win7 64bit) to Update2. However, the menu Help>Updates is greyed out. The Update2 AMM patch installer says "updates could not be applied. Contact your system Admin. Updates have been suppressed by the Admin" bef