How you guys do this ? finding the latest thread and applying recovery

hi guys,
i am doing a bash script and i need to do know the latest arch log sequence every archived.
to know the latest arch log
i) either get the max(seq#) from v$archived_log
or
ii) i can go to the arch folder and get the one with the latest date.
however,
how do i get that value out and apply it in rman ?
Inside my rman script, i have got this..
recover database until sequence xxxx;
how do i fill in the value 'xxxx' ? with the latest archived log in the database ?
please advise
regards,
Noob

V$LOG_HISTORY to view the redo logs that you have archived.
Perform an incomplete recovery until log sequence number 6 on thread 1:
run {
set until logseq 6 thread 1;
allocate channel ch1 type 'sbt_tape';
restore database;
recover database;
alter database open resetlogs;
reset database;
back up the database for new incarnation
run {
allocate channel ch1 type 'sbt_tape';
backup database;
}

Similar Messages

  • To find the latest date and time

    HI all,
    I have a Ztable which contains execution date and exe time.
    1) I need to find the latest date and time How  can we do this?
    2) In my program,I need to insert some values to date,time and status field in Ztable. How can I insert it directly into the table?
    for eg ZTAB-DATE = 010122006
            ZTAB-TIME = 12.20.20
          just INSERT ZTAB is enough or NOT????????????
    POINTS WILL BE REWARDED
    THANKS IN ADVANCE

    1) You can do a number of things, one you can get all of the relevant records and sort the internal table by date and time in decending order, then simply read the first record of the internal table.
    2) It depends on the key of the table. Say for example, you have a table like so.
    MANDT
    KEYFIELD
    DATE
    TIME
    If the key alreays exists, you can use the modify statement to update the record, if it dosn't exists, you need to use the INSERT statement to insert the records.
    data: xtab type ztable.
    xtab-keyfield = 'ABC'.
    xtab-date = '20070207'.  " or sy-datum
    xtab-time = '221600'.    " or sy-uzeit.
    insert ztable from xtab.
    Make sure to use internal fomat for DATE and TIME.
    Regards,
    Rich Heilman

  • You badgered me into installing the latest Itunes and now I cannot find my music nor my podcasts. Where the **** are they?

    I was badgered into installing the latest Itunes and now I cannot find my music nor my podcasts. Where the **** did they go and how can I get them back? You folks at Apple sure make it hard to like you or want to use your products.

    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't normally lose a thing or need to do any further housekeeping.  Note that in iTunes 11 an "empty" library may show your past purchases with links to stream or download them.
    In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    Alternatively, depending on exactly when and why the library went missing, there may be a more recent .tmp file in the main iTunes folder that can be renamed as iTunes Library.itl to restore the library to a recent state.
    See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    When you get it all working make a backup!
    Should you be in the unfortunate position where you are no longer able to access your original library, or a backup of it, then see Recover your iTunes library from your iPod or iOS device.
    Would you mind telling me which anti-virus package you use? It may be that it is disturbing iTunes when it tries to write out the fresh database, as it does after almost any activity with your library. I'm noticing more of this type of problem than usual and trying to see if there is any pattern. It may help to prevent a repeat of the problem if you look at the advanced options for your AV package and see if you can find a way to exclude the main iTunes library folder (and subfolders if possible) from any real-time scanning process.
    tt2

  • I have no sound on macbook air. This is the latest version and just recently sound will not come on. Help?

    I have no sound on macbook air. This is the latest version (purchased July 2013) and just recently sound will not work at all, even with headphones. Help?

    did you put your Air to sleep with headphones attached, or closed the monitor with phones attached?
    Do not sleep your Air (close the monitor with headphones attached) with headphones attached, this is known to affect some Air under Mavericks.
      * this occurrence is being looked into.
    Much testing on my own and others as well show that, in some instances, this occurs in Mavericks.
    If you choose you may contact Apple for an appt and diagnostics.
       However as said, refrain from having phones attached when you close the monitor to prevent this until it is resolved
    Test this and re-verify
    peace  

  • The old version of firefox had print preview option - how can i do this in the latest firefox update?

    My old version of firefox had a little red firefox tab (top, left) with a pulldown menu offering print option,
    then a secondary menu offering print preview option. How can I access the print preview function in
    the latest version of firefox?

    When you use the new "3-bar" menu button, where you see the Print icon, that actually opens Print Preview. You can use Customize to move that to the main toolbar if you like.
    I created a map showing where the old menu items moved in the new menu. maybe it will be useful? http://www.jeffersonscher.com/res/menu/comp.php

  • HT1848 How can I do this with the latest version of itunes? It's not the same layout. Please help.

    I'm trying to transfer an app I purchased on my iphone to my computer (MacBook), it has the latest version of itunes, which has a different layout. I can't seem to figure this out. Please help? Thank you.

    Then change back to the old layout:
    iTunes 11: Show Sidebar and Status Bar

  • How can we find the latest CPU patch applied to a 9.2.0.8 code tree?

    Hi,
    I am having a DB running in 9.2.0.8 version, how can i find the CPU patch applied to the code tree.
    Thanks,
    Sathis

    doc question. Please do not ask them.
    Opatch lsinventory
    Sybrand Bakker
    Senior Oracle DBA

  • How do I get to know the latest available and compatible versions?

    We are currently running SAP ERP 6.0 EHP 5, SAP EHP 1 for SAP NetWeaver 7.0, Solution Manager 7.0 EHP 1 and SAP EHP 1 for SAP NetWeaver 7.0 respectively for ECC, BI, Solman and Portal. I want to know the latest compatible versions available in SMP in detail for an upgrade. Where do I find this? Please help.

    Hi Sai,
    for your query
    I want to know the latest compatible versions available in SMP in detail for an upgrade. Where do I find this? Please help.
    Which version do you plan to upgrade ?
    You may use SAP tool Upgrade Dependency Analyzer www://service.sap.com/uda
    to check the dependencies in your upgrade.
    Refer PAM for supported OS/DB platform for your target system. www.service.sap.com/PAM
    Refer Master guide , upgrade guide and release notes for latest supported version for your target release.
    Hope this helps
    Regards,
    Deepak Kori

  • Does anyone know how you can play video with the screen locked and not just recorded video. Like downloaded video?

    So I want to be able to play video mp4 for my kids and lock the screen so that they don't disable or stop the video. Is there anyway you can lock the screen and play video? I've seen an app that tries to do this, but it only plays video recorded from the device. Also, it's not very good. I've also looked at IOS 5, but it only seems to support audio, not video, unless I am not doing something correctly? What happened to the simple old manual 'hold' switches that most devices have, like the PSP etc? It seems like all of the touch devices have neglected a simple touch disable button? Anyway, please provide any enlightenment here. 

    actually nevermind, it's working now. I closed iTunes, then waited a little, then double clicked one of my iTunes video files from my documents, which opened up iTunes again and the video started playing. I tried restarting iTunes before and that didn't work, so maybe for those who have similar problems, just try clicking on the video file in your documents/desktop of your computer, rather than directly from iTunes.

  • Remove text "This is the instruction text that applies to the entire page.

    Hi,
    How to remove text "This is the instruction text that applies to the entire page." under header, this text is defaulted and display under header (above search panel)
    Please help..

    Click on Personalize Page
    In personalization structure Choose complete view and identify the item you would like to hide and click on personalize for that item
    set the rendered property to false
    regards
    Ravi

  • I recently lost my iPod and ive been using find my iPhone to send messages to it, my email instantly tells me that it had been displayed or it suonded off however it doesn't find it's current location. you guys think this app actually works??

    i recently lost my 3rd Gen iPod and ive been using find my iPhone to send messages to it, my email then instantly tells me that it had been displayed or it suonded off however it doesn't find the iPod's current location. you guys think this app actually works? i feel like my alerts are just bouncing back at me. please help. Thanks!

    ... AFAIC Location Services is a joke.
    With both devices sitting side by side on my kitchen table, Location Services has NEVER shown the devices to be any where close to each other, and at times Location Services has been as much as a 1/4 of a mile off between the two devices.
    Your iPod Touch has no GPS receiver so determining its location relies upon wireless routers whose location is known. Its "location" is actually that of a wireless router. Your iPhone 4 can use GPS, cellular triangulation, and Wi-Fi. One would think GPS would be most accurate but urban areas have a greater density of cells and GPS signals are easily obstructed so cellular triangulation is often more accurate.
    Therefore the two devices' locations can be expected to be different. Differences of a quarter mile are easily explained if you understand how location services works: http://support.apple.com/kb/HT1975
    Skyhook Wireless (I think Apple uses its own database now): http://www.skyhookwireless.com/howitworks/
    Location Services is not a "joke"; its intended use is for basic navigation and for such applications as determining where the nearest restaurant is. It cannot tell you that your iPod is under the couch cushions and that your iPhone is in the car.

  • How to Find the Latest Version of Cluster Binary Files available at Microsoft website

    How we can find the latest version of Cluster binary files available for download at Microsoft Website and which Cluster Binaries should be update to make the Cluster services stable healthy.

    @AnatolySV : I believe you need to put some efforts to understand what he is asking.
    You may find the latest version of Cluster Binaries by entering the required keywords for Microsoft Failover Clustering. Some of the main Cluster binaries(Keywords) are:-
    Clusres.dll (For Cluster Resources like Disk, Application or Service, Cluster IP)
    Clussvc.exe (Cluster Service)
    TCPIP.sys (If the Storage is presented to the cluster Nodes via ISCSI Network).
    MPIO.sys / ISCSIprt.sys (If we are using Multipathing for the disks to be presented).
    RHS.exe (Resource Host Subsystem)
    So, the Answer to your question is: You need to enter the binary name "Clusres.dll" and mention the Operating System you want to install your binaries to "Windows Server 2008 R2 Sp1" on Bing (Preferred for Microsoft Hotfixes). In Result you will get the
    list of hotfixes for clusres.dll
    You need to try this multiple times in order to get the latest version as Microsoft does not have a single Link.
    Hope this answers your query. Feel free to leave a message incase you need more help.
    Maybe) 
    But hey, you`ve got +1 from me for clarification) 
    Anyway, I still think that the initial question could be more clear and exact. 

  • I downloaded the latest version and I get this error when I open it. Problem signature:   Problem Event Name:     InPageError   Error Status Code:     c0000185   Faulting Media Type:     00000003   OS Version:     6.1.7601.2.1.0.768.3. Any clue why or how

    I downloaded the latest version and I get this error when I open it. Problem signature:   Problem Event Name:
    InPageError   Error Status Code:
    c0000185   Faulting Media Type:
    00000003   OS Version:
    6.1.7601.2.1.0.768.3. Any clue why or how to fix?

    InPageError
    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Vista instructions in the following document: Check your hard disk for errors
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get itunes to launch properly afterwards?

  • How to find the latest/greatest full install patch of 11Gr2?

    Hi Folks,
    I just cannot seem to find anything readily in MOS at Oracle...
    I understand that these days, the patches they put out are no longer just fixes to pieces of the database, but for some reason, they are now full blown installs.
    So, rather than download from OTN and install and then have to patch...I'd rather go to MOS and download the patch and install that as my fresh database install.
    My trouble is, I can't find the darned thing looking through the patch area, without knowing the patch number..etc.
    What do ya'll do when wanting to find the latest version for a fresh install?
    A further question..how are ya'll treating this new patch paradigm where they seem to expect you to do fresh installs just to patch up a level? Do you all have the resources to do a new install and migrate over...or do you migrate in place which the documentation seems to warn your off from doing?
    Thanks in advance,
    cayenne

    cayenne wrote:
    Hi Folks,
    I just cannot seem to find anything readily in MOS at Oracle...
    I understand that these days, the patches they put out are no longer just fixes to pieces of the database, but for some reason, they are now full blown installs.
    So, rather than download from OTN and install and then have to patch...I'd rather go to MOS and download the patch and install that as my fresh database install.
    My trouble is, I can't find the darned thing looking through the patch area, without knowing the patch number..etc.
    I feel your pain and really can't offer any advice on that. Searching for patches has been a continual source of frustration for me.
    What do ya'll do when wanting to find the latest version for a fresh install?
    A further question..how are ya'll treating this new patch paradigm where they seem to expect you to do fresh installs just to patch up a level? Do you all have the resources to do a new install and migrate over...or do you migrate in place which the documentation seems to warn your off from doing?Once you download the patch/full install and unzip it, look for the 'readme' files. The installer should detect or ask if you are doing a patch and handle the 'upgrade' conversion for you. At least it does when upgrading Grid Infrastructure. I'll find out about databases next week. ;-)
    >
    Thanks in advance,
    cayenne

  • How do I find the latest Critical Sun Solaris Patches on Oracle site

    Hello
    How do I find the latest critical Solaris Patches available to the users. I was searching the list on Oracle's site it's hard to determine which patch is critcal or not. When I type uname -a this is what returns Generic_142909-17.
    Any help you could provide would be appreciated.

    Sorry, I wrote "Monthly" when I meant to write "Quarterly". Apologies for the confusion. My bad.
    From - http://www.oracle.com/technetwork/topics/security/alerts-086861.html
    They are released on the Tuesday closest to the 15th day of January, April, July and October. Starting 2011, the scheduled dates for the release of Critical Patch Updates will be on the Tuesday closest to the 17th day of January, April, July and October. The next four dates are:
    * 19 April 2011
    * 19 July 2011
    * 18 October 2011
    * 17 January 2012
    The CPU for the Solaris Operating System is a rebranded snapshot of the Recommended OS Cluster. The rebranding involves only superficial changes to the patch cluster, with the actual patch content remaining unchanged. The patches contained in this patch cluster are considered the most important and highly recommended patches for Solaris 10. They provide the least amount of change required to address known security, data corruption and availability issues.
    If there's a particular CVE Alert which you're vulnerable to or interested in, then the fix will be released within the patch that corresponds to the area of code the vulnerability affects. You can then apply that patch and it's requirements separate to the clusters. Next time you apply the cluster it will either install the latest rev of the patch or skip it if you have the latest installed already.
    The Recommended Patch Cluster bundle is a much larger collection of patches and contains all the latest patches (at the time of release) which include Solaris updates, Security, and Sun Alert fixes. Note that we merged "Recommended Patch Cluster/Kernel Jumbo Patchset" and the "Sun Alert Patch Clusters" back in June 2010. See http://blogs.sun.com/patch/entry/merging_the_solaris_recommended_and for more information regarding what happened and why.
    Of course there will be a large overlap between the "Recommended OS Cluster" and the "Critical Patch Updates" patchsets will be rolled in to the "Recommended OS Cluster" whenever it's cut and released.
    There's a lot of information in the README files for each cluster so you may want to read those to understand the subtle differences.
    Regards,
    Steve

Maybe you are looking for

  • While trying to open Firefox, the dialogue box says another version is open and I'm unable to open any version

    I am running Mac OSX 10.6.6. After running Firefox with no problem, it now won't open. When I attempt to open Firefox a "Close Firefox" dialogue box says " A copy of Firefox is already open. Only one copy of Firefox can be open at a time". I searched

  • Error installing flash player

    I download the installation file, have tried saving it and just opening it directly after downloading from adobe.com and filehippo.  I have verified that I am downloading for the correct version of windows and that I want to use it for Internet Explo

  • Web Gallery didn't work on CS4 and still Doesn't Work on CS5??? WTF

    Can somebody please help us with this big issue. Web Gallery didn't work on CS4 and we gave up, got Capture one, but now we upgrade it to CS5 and still DOESN'T WORK??? How this people never fixed that issue? can you please get real???? Thanks Pablo

  • How to migrate OLE-Containers from 6i to 9i

    Hello, We have an application developed in Client-Server that uses ole-containers to store documents(.doc,.xls,.gif, and others) in a long raw field. Our problem is that in forms 9i the ole-container component has been removed. How can we replace thi

  • IMac intel : streaming QT doesn't work

    Hi! I'm not able with my imac intel to see QT live streaming events (like Keynotes of Jobs). Before, with my iMac G5, the streaming QT worked well...now I've not changed any parameter of modem but the streaming doesn't work more.