How to  make rman to execute remaining cmds in file when one cmd failed

Hi All,
I have couple of commands to execute in a file, meanwhile if one command fails with error then rman terminates and did not executing remaining commands in file. How can I make rman to execute remaining commands even when one command failed with errors.
Thanks and Regards,
Sandeep.

Write a shell script for Linux or batch for Windows. For example;
ORACLE_HOME=/oracle/ora11g
ORACLE_SID=TEST
TMPDIR=/tmp
TMPLOG=${TMPDIR}/RMANtmplog.$$
$ORACLE_HOME/bin/rman log=$TMPLOG << EOF1
connect target /
run
crosscheck backup of database ;
exit
     EOF1
RESULT=$?
if [ $RESULT -ne "0" ]; then
echo "FAILED RMAN crosschek command"
else
$ORACLE_HOME/bin/rman log=$TMPLOG << EOF2
connect target /
run
delete noprompt expired backup of database ;
exit
     EOF2
fi
Talip Hakan Ozturk
http://taliphakanozturken.wordpress.com/

Similar Messages

  • How to Make my Macbook Pro's internal HDD external, when I get a SSD?

    Hey, I know there are other posts on what enclosure you can use and if it's a possibility, but I haven't seen any that tell me how I get OS X on the SSD without a disc? Can I download the installer on a flash drive somehow? Also, I am wondering if this really is a good idea, using my Macbook Pro's HDD for a backup HDD, instead of buying one? I have no use for it anyway, if and when I get a new SSD. BTW, the HDD is the upgraded factory 500gb 7200rpm. Also, do you think it's smarter to have a bigger backup drive than internal drive? In other words, I would like to get a 1TB Samsung 850 Pro SSD, and my current HDD is only 500GB.... I am a musician and need a lot of storage for musical purposes. I use Final Cut Pro, Logic Pro X, Ableton Live 9, Office, and Photoshop.... My Macbook Pro is a Late 2011 Macbook Pro 15.4' 2.2ghz quad core i7 8gb RAM. Oh yeah and a mother thing is, I think I should get an enclosure that has a thunderbolt port with usb, what are your thoughts?

    How to Make my Macbook Pro's internal HDD external, when I get a SSD?
    Get an externel enclosure at the same time.
    You can order from OWC
    http://eshop.macsales.com/shop/hard-drives/2.5-Notebook/
    Put the SSD in the externel enclosure and use something like Carbon Copy Cloner,  to clone the internal drive and all it content to the SSD.  Then swap them out.
    Always good to have more than one backup.

  • How to make a snapshot out of a movie file?

    How to make a snapshot out of a movie file and integrate this snapshot into the movie? Thanks, Wolfgang

    Either you use the Hold function from the Retiming popup or you export an image and reimport it.

  • How to make each playlist for each movie songs ? when i tried to add songs all movie songs comes in row , its very difficult to find which movie song belongs?

    how to make each playlist for each movie songs ? when i tried to add songs all movie songs comes in row , its very difficult to find which movie song belongs?

    Thank you! I put some self help hypnosis tracks to listen to on my iPod. I did not want to go to the next track automatically, I wanted to listen to them individually, one at a time. (If I fell asleep, I did not want to 'wake up' in the middle of a different track.) Your information helps me understand that I need to re-load this playlist onto my iPod from my  Mac computer, only first, I need to UNCHECK the boxes in front of each track so the iPod will STOP each time after playing the selected track. It is too bad that so many functions are not availabvle within the iPod, but that is probably why they can make it so compact.

  • An attempt to open a pdf file with Photoshop Elements (version 12) resulted in a pop generated by the Photoshop Editor stated "Impossible to execute this operation (opening file) because one of the specified colour is not managed". Is there any mean to ad

    An attempt to open a pdf file with Photoshop Elements (version 12) resulted in a pop generated by the Photoshop Editor stated "Impossible to execute this operation (opening file) because one of the specified colour is not managed". Is there any mean to adapt the file to make its reading possible?
    Did somebody get the same problem?

    It is a high order probability that your SQL's report generator is creating the PDF, not Acrobat (which by design and EULA cannot be used in as/with server).
    That the report generator outputs to an old-old version of PDF bears this out.
    Wiki articles on PDF are very nice for those high level intro summaries.
    To know / understand PDF you purchase and study the ISO Standard for PDF (ISO 32000-1:2008).
    Rather than "PDF validation" you may want to consider addressing the appearent root cause of the problem(s).
    You can change the email2fax application to one that can deal with older PDF versions.
    You can change the report generator to one that can output to the ISO Standard.
    (Perhaps the in-use application can be configured to output to the current version of PDF (i.e., the ISO Standard).
    Be well...

  • How do I save a PDF as an excel file when the PDF is horizontal. Adobe tries to rotate the page, but the data is entered in an  horizontal format.

    How do I save a PDF as an excel file when the PDF is horizontal. Adobe tries to rotate the page, but the data is entered in an  horizontal format.

    Thanks for the quick reply.  I figured out how to get the desired results by using tagging.  For anyone who may reference this post in the future, I went to "Customize" in the top right corner of Adobe, then selected "Create new tool set...", looked under "accessiblity and found the "tag" option.  Hit ok, tag is added to the toolbar.  Then I highlighted the dataset in the PDF that was relevant to the output format, then clicked "tag", saved as spreadsheet.  Sorry I can't provide more details on how tagging works or if there's a more elegant solution available, but I'm sure one's out there.

  • How do i delete a large amount of locked files at one time?

    How do i delete a large amount of locked files at one time or batch unlock the files to delete them?

    Drag them to the Trash and hold your Option key down when selecting Empty Trash.   
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

  • How TO Make my program executable?

    please list steps to make my program executable jar ??
    please write steps from 0 ot the end?
    thank u

    jar cvfm MyJar.jar MyManifest.txt -C . *.javawhere do you type that? I tried in a command console
    but it didnt work...Make sure jar.exe is in your path.
    and what do u mean by com.acme.MyMainClass? do I have to put the com.acme?No, you would replace it with the fully qualified name of your own class of course. You are allowed to use your own brains too.

  • How to make Oracle program executed through windows XP command line.

    I know this thread may not be appropriate to be posted here. However, I couldn't find place to post this question. However, the question is related to Oracle program execution. So I post here for help.
    I creted a windows XP shell program to execute a few oracle program to refresh data on database. All oracle programs work very well. But the windows shell program is not working properly. I seek your input to solve this problem. Here is the basic windows shell script:
    set oracle_sid=mydb
    set MyDir=C:\refresh
    sqlplus -s username_1/password_1@mydb @%MyDir%\updt_table.sql
    exit
    sqlldr username_2/password_2@mydb control=C:\refresh\control_file_1.ctl
    sqlldr username_2/password_2@mydb control=C:\refresh\control_file_2.ctl
    sqlldr username_2/password_2@mydb control=C:\refresh\control_file_3.ctl
    sqlldr username_2/password_2@mydb control=C:\refresh\control_file_4.ctl
    sqlldr username_2/password_2@mydb control=C:\refresh\control_file_5.ctl
    set oracle_sid=mydb
    set MyDir=C:\refresh
    sqlplus -s username_2/password_2@mydb @%MyDir%\refresh_table.sql
    exit
    The problem is: The first sqlplus is to connect to username_1. after windows shell execute and finish updt_table.sql as well as exit from that db schema, it suppose to go to next sql loader command line to login as username_2 to start sql loader control file to load data. The actual situation is: command line hang on at first "exit" and didn't login username_2 to do sql loader work. Please advise me where the problem is and how to fix it. Thanks for your kind help.

    krystian:
    I have tried this before I post for help. If I moved "exit" after updt_table.sql, the shell only finish the first part of command to update one table. Then windows shell hang on there and do nothing. It didn't go to login as username_2 to execute sql loader control files. This is where the problem is. How to force the windwos shell log into as username_2 to do next step? Thanks again.

  • I was able copy the hardrive of my old macbook from "My Passport" onto the desktop on an older iMac. but i dont know how to make my hardrive and user name be the main one since someone had used it in the past and had their info on the comp. please help!

    I recently broke my 2008 macbook. i was able to use an external hardrive to back up my data onto My Passport. I was going to buy a new computer but a friend told me sher had an older version of the iMac. (not sure how old but it doesnt have a camera if that helps) i was able to hook it up and turn it on but i ran into a few problems. 1) the "authentic" user or whatever it says is someone who previously used the computer. i added me as a user but im not sure how to make me the main user. 2) after hooking up My Passport, i was able to drag my files and copy them to the desktop.(i think i did it correctly) now, i dont know how to make my hard drive and applications and iformation the "main " info. The current apps on the iMac are super old versions of iTunes and iPhoto and such. 3) while trying to open the apps from my macbook on the iMac, it said it didnt have the right software to open these apps.
    I am so computer illiterate so someone please help!!! Also, i do not have internet in my new apartment yet so if there is a way to make this happen without using the internet that would be preferred. sorry for the horrible spelling and poorly written paragraph.
    THANK YOU!!

    You are not going to be able to run your old system from the backup on this old computer as the hardware is incompatible.
    You need to get a new computer or a refurbished one.

  • How to make a downloadable report of application log file.

    Hi Every One,
    i am new to this ABAP environment, I have application logs in my system, i need to generate the reports based on my filter condition and i need to download them as file/report, For example;
    I need a Application Log report for:
    only Particular User
    only particular time
    only importent logs
    only errors
    like that....so on..
    Can any one give me step by step, how to make a report of application logs, i know only i can see logs use transaction CodeSLG1. I want to make report them.
    Thank you
    Regards
    Ravi

    Found answer in log itself

  • How to make Adobe LiveCycle Designer ES 8.2 file compatiable with Adobe Reader X

    Adobe Reader X sporadically is unable to save or print a file created in Adobe LiveCycle Designer ES 8.2. Does anyone have any suggestions on how to make it compatiable/stable with reader X? We want to deploy reader X with Win7 32 bit

    I am not aware of any issues in that area ...can you provide more information as to when it is happening?
    Paul

  • How to make an user to have right to approve only one specific STS?

    In our BPS STS, we assign user A both on the highest level of one STS hierarchy B and on the lower level of another STS hierarchy C. And because in our real business planning process, A should only have right to approve STS B and can be approved by others in STS C, so we grant authorization "R_STS_SUP" to this user A, but then he has all the authorizations for approving or rejecting plans in both B and C. How to make this user only have authorization to approve STS B? Is there someone can kindly solve this problem? Thank you very much.

    Try to modify tunguska BSP application, OnInitialization handler for page frame.htm contains next code:
      AUTHORITY-CHECK OBJECT 'R_STS_SUP'
               ID 'ACTVT' FIELD '16'.
      IF sy-subrc NE 0.
        application->with_tree = ''.
      ELSE.
        application->with_tree = 'X'.
      ENDIF
    Try to add check for subplan/planning session here and in the case of B and C hierarchy set application->with_tree to blank value.

  • How to make sure all my automatic test case run in one session?

    Hi guys,
        I'm doing some automatic test for our products.
         Now i'm hindered by an issue(maybe,due to my wrong configuration).
         I've wrote some test method in a Coded UI Test project,and these run perfect on local machine.And i build an environment includes Builder Controller,Builder Agent,TestController and Test Agent etc, and that the test cases have been written
    in MTM already. 
          After that,i built the project,deployed the project and run the Coded UI Test on Test Agent machine,and i found it seems that he test cases run on different sessions.I have no idea how to config or set up to make sure all my test cases
    run just in one session.
        Could anyone help me,please?

    Hi dean.chen,
    >>I found it seems that he test cases run on different sessions.I have no idea how to config or set up to make sure all my test cases run just in one session.
    According to your description, could you please tell me what the different sessions are when you run the test cases in MTM?
    Why did you want to run the test cases in one sessions?
    where did you see the test cases run on different sessions?
    Could you please tell me how many test agents machine you use to run these automatic test cases in MTM?
    As far as I know that if you just use one test agent machine to run these automatic test cases in MTM, these test cases will be run one by one on the one test agent machine.
    To help you solve this issue, please tell me more detail message about this issue.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • HT2518 how do i or can i drag and drop files from one external drive to another ???HOW

    how do i drag and drop files from one external drive to another, i cannt get both drives to open up. only one at a time.. i have alot to learn i know but that is where i am at the time...

    You posted here so would assume you are also talking about running Windows.
    Are the drives NTFS and use on Windows?
    Are they Mac HFS formatted?
    You likely will need NTFS for OS X in one case. to mount PC and use under Mac OS Lion
    MacDrive to mount and WRITE to HFS drives under Windows

Maybe you are looking for