Help to write a restore/reover script

Hi,
I need to do the following tasks everyday. Can you help me to write a script for that?
I have to catalog a bunch of backuppieces that come from another site like this everyday:
catalog backuppiece '/backup/arch_ORCL_20120302_7999_1.bck','/backup/arch_ORCL_20120302_8000_1.bck','/backup/arch_ORCL_20120302_8001_1.bck','/backup/arch_ORCL_20120302_8002_1.bck','/backup/arch_ORCL_20120303_8007_1.bck','/backup/arch_ORCL_20120303_8008_1.bck','/backup/arch_ORCL_20120303_8009_1.bck','/backup/arch_ORCL_20120303_8010_1.bck','/backup/arch_ORCL_20120303_8011_1.bck','/backup/arch_ORCL_20120303_8012_1.bck','/backup/arch_ORCL_20120303_8013_1.bck','/backup/arch_ORCL_20120303_8014_1.bck','/backup/arch_ORCL_20120303_8015_1.bck';then get the first and last sequences that should be restored with these commands
list backup of archivelog all summary;
list backupset 7552;
list backupset 7564;Then restore the new cataloged archivelogs with:
restore archivelog from logseq=262011 until logseq=262538;Then do the recovery with:
run {
set until sequence 262538;
recover database;
}

Your script looks You have backup of archive log files
1) Registering with other database
2) Checking what that backup contains
3) Restoring archivelog files
4) Recovering database.
So your second instance is in Mount status to perform recovery, Instead of doing this job, Why cant you build a standby database?
Is this Enterprise edition or standard edition?
You have to do lot of modifications in daily script because daily archive sequences and archive rate is vary day to day.
Still if you want the same procedure. check below link
http://www.oracle-base.com/articles/misc/OracleShellScripting.php#unix_and_linux_1
RMAN Backup Shell Script Example [ID 137181.1]
HTH.

Similar Messages

  • Can anyone help me write a script that would click "get info" and then "enter" on each movie in my itunes library? I am asking because my itunes 11 repeatedly loses the artwork to my movies in my itunes library.

    Can anyone help me write a script that would click "get info" and then "enter" on each movie in my itunes library? I am asking because my itunes 11 repeatedly loses the artwork to my movies in my itunes library. I can restore the artwork (and make my apple tv see the movie exists as well) by going into the movie library and clicking on each movie by hand, slecting get info, and then selecting enter. Now doing this 10 times in 20 days was fun and all BUT I would really like to automate the process so everytime itunes screws it up I can fix it easier.
    I saw this example of an itunes script that restores artwork for music
    tell application "iTunes" set theSelection to selection repeat with i from 1 to count of theSelection tell (item i of theSelection) set artworkCount to count of artwork repeat artworkCount times set theArtwork to data of artwork 1 delete artwork 1 set data of artwork artworkCount to theArtwork end repeat end tell end repeat end tell
    but I need to tweak this to fit my needs for simply clicking the "get info" button and "enter" in the movie library rather than all the stuff this guy has listed. Any ideas or help on writing this? Thanks.

    Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.

  • I have an iphone 4 jammed in MDU mode, I conect to itunes and asked to restore, it went through all the steps and nearly completed it gives me an error message saying cannot be restored error -1.  Can anybody help me how to restore my iphone

    I have an iphone 4 started the problem saying no service, then when restarting asked to connect to itunes and became jammed in MDU mode, I connect to itunes and clicked on  restore, it went through all the steps and nearly completed it gives me an error message saying cannot be restored error -1.  Can anybody help me how to restore my iphone.  or what to do next, some reseller asked me to go the shop where I bought to replace it for me as this error cannot be restored by any shop.  It has to be returned to apple and get it replaced.  The warranty already expired and don't know what to do.
    Please help

    Error 1 or -1
    This may indicate a hardware issue with your device. Follow Troubleshooting security software issues, and restore your device on a different known-good computer. If the errors persist on another computer, the device may need service.
    http://support.apple.com/kb/TS3694#error1

  • HT201270 i have just updated my old 3GS and now when i am on restore the window is comming up and asking for a password. i have not set up a password for restore, please help how i can restore my date???

    i have just updated my old 3GS and now when i am on restore the window is comming up and asking for a password. i have not set up a password for restore, please help how i can restore my date???

    capriz wrote:
    i have just updated my old 3GS ...
    To what... iOS 7 is Not supported on the 3 GS

  • Can someone help me I cant restore my ipod touch

    Please someone help me I cant restore my Ipod touch, it keeps giving me this error saying cant restore Ipod maybe corrupted  or not compatible so please help if you can I don't want to restore my Ipod as new or from a very old back up and this is not the first time this has happened, its been going on for some time and this is my newest Ipod touch, 5th one by the way yea I know you think I don't take care of my stuff but no its allll apples fault but two, First time was button got jammed then screen cracked don't know how, second got stolen, third apple gave me one that has no sound and when I came back they made my dad pay for the new one which made no since at all, don't remember what happened with the other two so yea just hope someone can help me with this problem and no It has not been jailbroken can't even if I wanted to no jailbreak for 7.1.1 so yea its an 5gen Ipod touch so please help thanks.

    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes.
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    If you get the corrupt error message then go to iTunes>Preferences>Devices and select the backup and delete it.
    Next
    - Try another cable       
    - Try on another computer                            
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar                                     

  • Need a help to write the query

    Hi,
    I need a small help to write the query.
    I have a table contains couponid,coupon,createdate,expirationdate,assigndate from couponday table
    i want to write the query to select the coupon whose Expiry date in the table is NOT within 30 days.
    Thanks in advance

    Hi,
    user586 wrote:
    i want to write the query to select the coupon whose Expiry date in the table is NOT within 30 days.If you mean expirationdate (datatype: DATE) is not within 30 days (past or future) of run time, then:
    SELECT  coupon          -- or whatever columns you want
    FROM    table_x
    WHERE   expirationdate  NOT BETWEEN  SYSDATE - 30
                                AND      SYSDATE + 30
    ;

  • How to write select statement into SCRIPT editor

    hello,
    i build a sap script for purchase order printing for exporting.
    now after all po order print fine then our client want some more should be print into layout regarding po header.
    At the soul my q is can i write select query into script editor itself.
    thanks and regards
    amit.

    You cannot write your select statement inside your SAPscript, to overcome this SAP has provided us an option of calling sub-routines.. go through the below example
    Go through this example
    Ex. SAPSCRIPT
    /: PERFORM <Subroutine name> IN PROGRAM <subroutine prog name>
    /:USING &<field name>&
    /:CHANGING &<field name1&    "It will be returned back from sub-routine
    /:ENDPERFORM
    Then create subroutine pool program(of your own name) and you have to write the code.
    FORM ><subroutine name> tables int_cond structure itcsy
    outt_cond structure itcsy.
    data : value(20), value1(20). "do your own declarations
    Read int_cond table index 1.
    value = int_cond-value.
    value1 = value1 + value.
    *****Write your select statement
    Read outt_cond table index 1.
    outt_cond-value = value1.
    Modify outt_cond index 1. 
    ENDFORM.
    Just rough idea given above.
    Regards,
    SaiRam

  • Hi, I was wondering if someone could help me, I recently restored my itouch 4th Gen and was then told to upgrade to itunes 10.6 now everytime I try and install itunes I get the following message, help please!

    Hi, I was wondering if someone could help me, I recently restored my itouch 4th Gen and was then told to upgrade to itunes 10.6 now everytime I try and install itunes I get the following message, help please!
    Error writing to file: C:\Program\Files\iTunes.Resources\de.Iproj\SortPrefixes.plist.   Verify that you have access to that directory.

    Error writing to file: C:\Program\Files\iTunes.Resources\de.Iproj\SortPrefixes.plist.   Verify that you have access to that directory.
    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.
    Vista instructions in the following document: Check your hard disk for errors
    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 an install to go through properly afterwards?

  • I am looking for a software to help me write in Ethiopic (Amharic) fonts just as I can using Tavultesoft keyman for Windows. Help?

    I am looking for a software to help me write in Ethiopic (Amharic) fonts the same way I use Tavultesoft Keyman in Windows. Can someone help?

    RMMT wrote:
    Try putting Summer Institute for Linguistics into Google and see if they have an Amharic font for you.
    Or just click on the url I provided earlier, which has a link to the exact SIL page.
    OS X already has an Amharic font, Kefa.  What you really need from SIL is the keyboard.

  • HT1766 I backed up to my PC and attempted restore but I keep getting an error message that "iTunes could not restore the iPhone because not enough free space is available." I have a 32GB iPhone; only 13GB used!!!  HELP!  iCloud backup/restore did not work

    I backed up to my PC and attempted restore but I keep getting an error message that "iTunes could not restore the iPhone because not enough free space is available." I have a 32GB iPhone; only 13GB used!!!  HELP!  iCloud backup/restore did not work either! How can I resolve this problem to restore from back up.

    If you're not a developer then you really should not have upgraded.
    I'm unsure how you can fix this as you have already done a back-up on iOS 7 and apple don't support firmware downgrades.

  • TS2771 Help! I just restored my ipod touch 2nd gen cos I needed a clear out. I went to sync some music back on, and it seemed to work. However when I went into 'music' it said 'no content'. I tried syncing music 3 times and it did the same every time. Hel

    Help! I just restored my ipod touch 2nd gen cos I needed a clear out. I went to sync some music back on, and it seemed to work. However when I went into 'music' it said 'no content'. I tried syncing music 3 times and it did the same every time. Help!

    Try plugging your ipod into your computer. Then start up itunes. Let it load everything. Then click on your ipod and play a song from your ipod's library. Not your itunes library. If it plays the song, then go ahead and stop it, disconnect your ipod, and check the content once again.
    I had the same problem and beleive it or not, this worked. I synced my ipod like 5 times before finding this answer on the web. Let me know if I need to clerify anything.

  • HT201210 ???Please help! When I restore on my ipad I get an error message of 1604 and none of the steps recommended helps.

    Please help!  When I restore on my ipad I get an error message of 1604 and I have tried all the recommended steps!  Does anyone have the same problem?

    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    http://support.apple.com/kb/TS3694
     Cheers, Tom

  • NEED HELP!! i restore backup at the wrong iphone

    NEED HELP!! i restore backup at the wrong iphone
    i have 2 iphone 4s.. i already have backuped the 1st iphone, then the 2nd iphone not yet backuped.
    when i plug the 2nd iphone it restore the backup of 1st iphone.. now the 1st and 2nd iphone has the same files... the original files of 2nd iphone has gone, how to restored the original files of 2nd iphone since i restored the backup of 1st iphone.and i do not have backup for the 2nd iphone. >.< PLEASE HELP!!!!

    With no backup for the 2nd iPhone, you can't.

  • Can anyone help me with a bit of script modifying?

    Hey guys, can anyone help me?
    Here is some script that makes my character obviously move
    and detects walls. I would like to modify the script so that when
    my character hits the right keydown, the sprite changes to cast
    member "right". I have tried and so far all i have done is succeed
    in making the cast member change but this then deactivates the
    walls. Any ideas??
    on exitFrame me
    if keyPressed(123) then
    move(me,-5,0)
    end if
    if keyPressed(124) then
    move(me,5,0)
    end if
    if keyPressed(125) then
    move(me,0,5)
    end if
    if keyPressed(126) then
    move(me,0,-5)
    end if
    end
    on move me, dx, dy
    oldRect = sprite(me.spritenum).rect
    newRect = oldRect + rect(dx,dy,dx,dy)
    hitWall = FALSE
    repeat with i = 2 to 30
    if sendSprite(i,#hitWall,newRect) then
    hitWall = TRUE
    exit repeat
    end if
    end repeat
    if not hitWall then
    sprite(me.spriteNum).loc = sprite(me.spriteNum).loc +
    point(dx,dy)
    end if
    end
    Many thanks.

    Hi Hayz,
    I actually recognise that script.
    Try the following:
    on exitFrame me
    if keyPressed(123) then --left
    move(me,-5,0,1)
    end if
    if keyPressed(124) then -- right
    move(me,5,0, 2)
    end if
    if keyPressed(125) then -- down
    move(me,0,5, 3)
    end if
    if keyPressed(126) then -- up
    move(me,0,-5, 4)
    end if
    end
    on move me, dx, dy, directionMove
    -- get rect and add change to it
    oldRect = sprite(me.spriteNum).rect
    newRect = oldRect + rect(dx,dy,dx,dy)
    case directionMove of
    1: (sprite(me.spritenum)).member = member("character_left")
    2: (sprite(me.spritenum)).member = member("character_right")
    3: (sprite(me.spritenum)).member = member("character_down")
    4: (sprite(me.spritenum)).member = member("character_up")
    end case
    -- loop through possible wall sprites and detect collisions
    hitWall = FALSE
    repeat with i = 2 to 30
    if sendSprite(i,#hitWall,newRect) then
    hitWall = TRUE
    -- insert collision instructions here
    exit repeat
    end if
    end repeat
    -- if no collision, then move sprite
    if not hitWall then
    sprite(me.spriteNum).loc = sprite(me.spriteNum).loc +
    point(dx,dy)
    end if
    end
    And remember, the sprites that you're colliding with need
    their own behavior with:
    on hitWall me, objRect
    if intersect(sprite(me.spriteNum).rect,objRect) <>
    rect(0,0,0,0) then
    return TRUE
    else
    return FALSE
    end if
    end
    regards
    Dean
    Director Lecturer / Consultant / Director Enthusiast
    http://www.fbe.unsw.edu.au/learning/director
    http://www.multimediacreative.com.au
    email: [email protected]

  • Help me write a SQL query; urgent

    Hi, can somebody please help me write a SQL query.
    I have 3 tables each with the same column names (Col1, Col2, Col3). Col1 is PK with Unique Constraint.
    I wanted to add values of Col2 and Col3 (from all 3 tables) and put it in a separate table (i.e aggregated) of all values found in Col1.
    Does anybody help me please ?
    thanks alot.

    Please don't mark your question as urgent. You've been around here long enough that you should know that it will not get your question anwered any faster, and may just irritate people into not answering at all.
    I'm not sure exactly what you want.
    Are you saying you want t1.c2 + t1.c3 + t2.c2 + t2.c3+ t3.c2 + t3.c3 for the rows that have the same c1 in all three tables?
    If so, it would be like this, I think: insert into t4
    select t1.c1
    , t1.c2 + t1.c3 + t2.c2 + t2.c3+ t3.c2 + t3.c3
    from t1, t2, t3
    where t2.c1 = t1.c1
    and t3.c1 = t1.c1If that's not what you want, please clarify.
    And next time maybe you should post your SQL question in a SQL forum.

Maybe you are looking for