Configuring Restart On property in Cronacle for running scripts in loop

Hello all,
We have a scenario where in we have run a script or job chain in a loop. The loop count is fixed, however the count is coming in from a parameter.
- Could you tell us if the parameter value can be set dynamically as a result of execution of the previous job chain, if so how is it done. (As of now the default value of the parameter is being used)
- Is Restart On property the only way to perform loop executions or is there any other effective way
Thanks and Regards
Raj

Hi,
You can also use a precondition in a job chain to have some jobs restarted for a certain number of times. You can use parameter values in the precondition too to determine when to break the loop.
Regards,
Anton.

Similar Messages

  • Add a for each script to loop through HTTPService?

    I'm using Flash Builder 4 with the Flex 4.1 SDK.  I want to add a "for each" script to loop through my HTTPService XML file so only each nepName displays only once in my dropdown list.  In my XML file I have multiple records associated with nepName.  I would like ALL the records associated with each nepName to populate in my datagrid when it is selected from the dropdown.  Currently in my dropdown there is a nepName entry for each XML tag.  I hope I was able to explain that well enough. I'll try to put my code below so you can see everything I'm working with.
    MXML:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:esri="http://www.esri.com/2008/ags"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
                   creationComplete="nepInfo.send()">
        <s:layout>
            <s:VerticalLayout horizontalAlign="center" paddingTop="25"/>
        </s:layout>
        <fx:Declarations>
            <s:HTTPService id="nepInfo" url="http://www.epa.gov/owow/estuaries/nep_info.xml"/>
            <!--s:RadioButtonGroup id="optiongroup"/-->
        </fx:Declarations>
        <s:Panel title="NEP Project Information">
            <s:layout>
                <s:VerticalLayout/>
            </s:layout>
            <s:HGroup verticalAlign="middle">
        <mx:Form x="188" y="34" width="338">
        <mx:FormItem label="Search for NEP Information:">
        <s:DropDownList enabled="true" id="dropDownList" prompt="Select NEP" dataProvider="{nepInfo.lastResult.records.record}" labelField="nepName">
        </s:DropDownList>
        </mx:FormItem>
        </mx:Form>       
            </s:HGroup>   
            <mx:DataGrid id="resultsGrid"
                         dataProvider="{dropDownList.selectedItem}"
                         visible="{dropDownList.selectedItem != null}" x="20" y="62" width="1166" height="620">
                <mx:columns>
                    <mx:DataGridColumn dataField="projectName" headerText="Project Name" wordWrap="true"/>
                    <mx:DataGridColumn dataField="projectDescription" headerText="Project Description" wordWrap="true"/>
                    <mx:DataGridColumn dataField="acres" headerText="Acres" wordWrap="true"/>
                    <mx:DataGridColumn dataField="habitatDescription" headerText="Habitat Description" wordWrap="true"/>
                    <mx:DataGridColumn dataField="neportCategory" headerText="Habitat Category" wordWrap="true"/>
                    <mx:DataGridColumn dataField="restorationType" headerText="Restoration Type" wordWrap="true"/>
                    <mx:DataGridColumn dataField="leadPartner" headerText="Lead Partner" wordWrap="true"/>
                </mx:columns>
            </mx:DataGrid>
        </s:Panel>
    </s:Application>
    XML: http://www.epa.gov/owow/estuaries/nep_info.xml
    Thank you in advance for your help!
    -Alison

    ($file, pwd);Assuming "pwd" is meant as the current directory, here a small example :
    TEST@db102 SQL> create or replace procedure test_proc (p1 varchar2, p2 varchar2)
      2  is
      3  begin
      4     dbms_output.put_line (p1||' '||p2);
      5  end;
    TEST@db102 SQL> /
    Procedure created.
    TEST@db102 SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    $ ls -l /tmp/test/*.sql
    -rw-r--r--  1 ora102 dba  69 Apr 18 23:23 /tmp/test/file1.sql
    -rw-r--r--  1 ora102 dba 112 Apr 18 23:23 /tmp/test/file2.sql
    -rw-r--r--  1 ora102 dba 120 Apr 18 23:23 /tmp/test/file3.sql
    $ cat test_proc.sh
    DIR=/tmp/test
    cd $DIR
    ls *.sql | while read file
    do
            echo "Processing file $file"
            sqlplus -s test/test << EOF
    set feed off
    set pages 0
    set serveroutput on
    exec test_proc('$file', '`pwd`');
    exit
    EOF
    done
    $ ./test_proc.sh
    Processing file file1.sql
    file1.sql /tmp/test
    Processing file file2.sql
    file2.sql /tmp/test
    Processing file file3.sql
    file3.sql /tmp/test
    $

  • Running scripts in different schema

    Assume you have a workspace user DEMO and parsing schema TEST and PROD.
    I create from Workshop/utilities/DDL you select schema PROD for getting DDL for tables, Triggers...
    Now you want to run this script against schema PROD (to create the Objects from PROD at TEST). But at Workshop/scripts you see the scripts owned by TEST, but you can't select a schema fur running the script.
    As workaround I edited the script: create table TEST.x instead of create table x, but I got: ORA-01031: insufficient privileges.
    If I go to Workshop/SQL_Commands select the schema TEST and put in the content of the script (create table TEST.x) it works.
    I confused as I create a DDL for y selecting TEST as schema and want run it as "create table PROD.y" - IT WORKS.
    In which context is a script executed ?
    The difference between schema TEST and PROD is that PROD was created with the workspace and TEST was added later (as new created schema).
    It looks like a bug?

    thank you scott, I understand. I assumed/found the "primary" schema (b) as the way as it worked. The default schema (a) I now tested - it works.
    That means per user there is only 1 schema assigned for running scripts (default or the first schema sssigned to workspace.
    But If I have a workspaced with assigned many schemata and some users, having there own default schema but accessing different schemata, there is no way to run a script at a specific schema.
    A workaround could by if a developer can change his default schema, but he can't
    ( I believe thats okay!).
    A developer sometimes has to create, upload,execute scripts ...
    For my example with schemata DEMO, PROD,TEST I hade to create 3 developers and relogin for executing scripts in the 3 different schemata.
    I think there is an enhancement request for having
    a) connect command in a script OR
    b) selecting schema as in object browser
    Thanks - hope you had merry christmas

  • Running @Script.sql from inside C#

    I'm trying to include a script file as part of a deployment. I'm able to connect to my Oracle XE database in code and run stored procedures as well as text commands. My deployment will copy a script file into an install directory for later use. When the user activates history recording, I want to run this script file.
    I can run the script manually...@"C:\Program Files\History Setup\TestScript.sql"...without issue. Works just fine.
    Currently I recieve an invalid sql command error. At the moment I'm trying:
    Command.Connection = myconnection;
    Command.CommandText = @"@""C:\Program Files\History Setup\TestScript.sql""";
    Command.CommandType = CommandType.Text;
    try
    Connection.Open();
    Command.ExecuteNonQuerry;
    catch (Exception ex)
    error handling
    If anyone has advice for running script files from inside C#, it would be appreciated.

    The other Dennis is correct. You must cleanup the text.
    This should give you a start. I have had good results using the forward slash as a delimiter.
    r,
    dennis
    byte[] ba = GetFileContent("SomeFileName");
    string All_My_Statements = Encoding.UTF8.GetString(ba);
    ExecutScript(NetConnectionString, All_My_Statements);
            public void ExecuteScript(string _connectstring, string _final_statements)
                   string[] cmd_seq = _final_statements.Split(new char[] { '/' }, StringSplitOptions.RemoveEmptyEntries);
                for (int i = 0; i < cmd_seq.Length; i++)
                    string act_cmd = cmd_seq;
    string tmp = actcmd.Replace("\r\n", "");
    act_cmd = _tmp;
    if (act_cmd.Length > 2)
    try
    int r = ExecuteTextNonQuery(_connectstring, act_cmd);
    if (r == 1) // success
    LogThis("\tSuccess:" + act_cmd);
    else
    LogThis("\tExecuted:" + act_cmd);
    catch (OracleException) { LogThis("\tException:" + act_cmd); }
    catch (System.Exception) { LogThis("\tException:" + act_cmd); }
    public static byte[] GetFileContent(string f)
    byte[] ba = null;
    try
    System.IO.FileStream fs = new FileStream(f, FileMode.Open);
    System.IO.BinaryReader br = new BinaryReader(fs);
    ba = br.ReadBytes((int)fs.Length);
    br.Close();
    fs.Close();
    catch (System.Exception) { };
    return ba;
    public static int ExecuteTextNonQuery(string connectionString, string exec)
    int rtn_int = -1;
    using (OracleConnection oraconn = new OracleConnection(connectionString))
    string execcmd = exec;
    try
    _oraconn.Open();
    using (OracleCommand cmd = new OracleCommand(_execcmd, _oraconn))
    cmd.CommandType = CommandType.Text;
    rtn_int = cmd.ExecuteNonQuery();
    catch (OracleException _oraEx)
    throw (_oraEx); // Actually rethrow
    catch (System.Exception _sysEx)
    throw (_sysEx); // Actually rethrow
    finally
    if (_oraconn.State == ConnectionState.Broken || _oraconn.State == ConnectionState.Open)
    _oraconn.Close();
    } //using _conn
    return rtn_int;

  • Run script with .pkb extension

    How do I run scripts from sql developer? I tried: file - open - mypackage.pkb. Opens file. When I do Run - Run File, I get: "The target metrics_pkg.pkb cannot be started because it is not a runnable target."
    Ok, maybe I should just use @mypackage.pkb as if I was in sqlplus. Nope. I have not told it where my script resides, so I get: "Unable to open file: "C:\Documents and Settings\mthompso\metrics_pkg.pkb".
    I assume there is some way to set the directory for running scripts?

    Couple of things to try here.. Don't use 'Run****' from the run menu. There is a green arrow on the editor that will only be available if a target is runnable.. If it is greyed out, you don't have a connection associated. Additionally, if the drop-down list on the upper right hand side doesn't show a connection, it won't run.
    And a hint to the development team.. please disable the run option under the run menu if it is not runnable :)
    Eric

  • When attempting to install "Software Update" from Apple, the process talls at "Configuring Installation".  Even allowing it to run for 24 hours does not result in any progress.

    When attempting to install "Software Update" from Apple, the process stalls at "Configuring Installation".  Even allowing it to run for 24 hours does not result in any progress.

    Thanks for the straightforward tip. I had restarted once already, but the second time was a charm. The install button now works. Don't know if it mattered, but I also repaired disk permissions and then restarted in safe mode this time.
    The printer driver is apparently a different issue in itself. It turns out that the my printer, the HP Deskjet F380, has some fluke that makes it incompatible in 10.6. A new driver is coming out from HP according to Rickmeister in this thread: http://discussions.apple.com/thread.jspa?messageID=10076690&#10076690
    In case anyone else has the same problem with the F380: Like the user in the aforementioned thread, I downloaded and installed the old HP drivers for 10.5, and now at least I can print in the meantime.

  • I restarted my ipod touch and it ran out of power half way,now it will charge for one little bar and then start restarting again without charging until it runs out, it also wont show up on itunes, can you help me

    i restarted my ipod touch and it ran out of power half way,now it will charge for one little bar and then start restarting again without charging until it runs out, it also wont show up on itunes, can you help me

    the only other thing i can think of is the put the ipod into recovery mode
    but as itunes cant find it, it may not work
    hold the power button for 3sec's keep holding the power button now also hold in the home buttton the screen goes black
    now let go of the power button keep the home held in the screen goes blue and shows the itunes with the cd and the up arrow with the usb cable, connect to itunes to start recovery mode.
    or take it to an apple store fore them to help with recovery mode but this can take up to 3hrs
    or try out www.ipodsurgery.co.uk

  • Need Configuration File (fsisys,fsiuser and afgjob) details for running a XML in documaker 12

    Hi,
              I need basic configuration details for running a simple xml in documaker 12. Details like printer,recipient configuration,etc.

    Hello Sen,
    You might want to set the below XML-related configuration sections besides doing the general DB Handler and Library setup that is required for Documaker 12.x version. The Printer configuration may not require changes from the flat-file extract mode. Make sure the afgjob entry ;BatchingByRecipINI;;; is in place too.
    < ExtractKeyField >
      SearchMask = 1,<?xml
    [ RECIP_NAMES ]
      ZERO=000,
      FC=101,FULL COPY
    < BatchingByRecip >
      DefaultBatch = BATCH1
      Batch_Recip_def = !//RecipientRecord[RecipientDescription="Full Copy"];"BATCH1";FC
    < RUNMODE >
       NAUNLOAD = Yes
       XMLExtract = Yes
       DownLoadFAP = Yes
       ChkDstLenExceeded = No
       LoadCordFAP = No
       CheckNextRecip = No
       CompiledFAP = No
    < TRN_Fields >
        SystemInd = !//TransactionRecord/TransactionKey/SystemIndicator
        TransactionNum = !//TransactionRecord/TransactionKey/TransactionNumber
        LOB = !//PolicyRecord/LOB
        Iteration = !//TransactionRecord/TransactionKey/Iteration

  • VMM 2012: How to Configure Automatic Start and Stop Actions for a Virtual Machine?

    Does somebody know how to confgure Automatic Start and Stop Actions for a Virtual Machine in VMM 2012?
    I miss that option.

    Automatic Start or Automatic Restart actions are available for virtual machines running on a Hyper-V cluster from within Virtual Machine Manager.
    From within Virtual Machine Manager, bring up the Virtual Machine's properties:
    Click "Hardware Configuration"
    Click "Availability"
    Click "High", "Medium", or "Low" to enable automatic start/restart or
    Click "Do not restart automatically" to disable automatic start/restart
    Screenshot from VMM 2012 for a VM running in a Server 2012 R2 Hyper-V cluster:
    VMs running on a cluster have to be marked "Highly Available" and logically, Microsoft assumes that you'll want these VMs to be running all the time when this setting is selected.  If the cluster fails or needs to be restarted, you can set the priority
    by which a VM restarts, or you can set the VM to not restart at all when cluster services are restored by using the settings above.

  • MRP area for running a sale order MRP

    Hello PP experts,
    I come across a scenario where , I need to do the  MRP run for sale order in a MRP area. I have checked , I can put PIR with respect to MRP AREA , but when I open MD50 screen for running MRP for sale order. I did not found the MRP AREA
    field in the screen.
    In short , my question is , How the sale order MRP run ,  system will do in a MRP
    area defined for the material ?
    Here , I have already defined the material is MRP AREA and also I have created
    MRP area segment in the material master.
    I have also configured the MRP area in SPRO.
    Waiting for your reply.
    Regards,

    Hello ,
    Thanks for reply.
    I am using plant MRP area. For FERT , I am using make to order strategy 20.
    I want to specify the real problem. It is like below.
    Suppose 'A ' is sumassembly goes to a variant configured MTO KMAT say 'V'.
    The same 'A'  subassembly is a child for a make to stock FERT say ' S'.
    Presently  using strtegy 11 for MTS fert 'S' and 10 for the subassembly ---'A'.
    Now the planner want to plan for the subassembly.
    He is putting the PIR for the subassembly as sales order is not availble and he is putting the PIR for FERT 'S'.
    When sales order is coming then additinal quantity planning is happening.
    So I suggested to use the strategy 70 for subassembly 'A' , so the sales order (of 'V') OF  quantity will be offset for the PIR of the SUBASSEMBLY 'A'.
    But the consumption of PIR of 'A' will  be apllicable to MTS  FERT that is 'S'.
    So how can we prevent the system from offsetting the dependent requiremet triggered from the PIR of 'A'.
    That means the consumption  (that is the usage of stategy 70) of the FERT requirement should only work for ' A' and sales order based KMAT 'V'.
    The same offseting should not work for subassembly 'A' and MTS FERT 'S'.
    For for Make to order KAMT 'V' , if I use MRP area and do the sales order planning in MRP area. Will I get the desired result ?
    Waiting for reply.
    Regards,
    Ravindra

  • Recommended order for running clean-up wizard in wsus upstream / replica hierarchy

    Hi :)
    Is there anywhere documented recommended order for running clean-up wizard in wsus upstream / replica hierarchy ?
    Should I first run on Upstream and than on Replica or vice versa ?
    I've found on this blog
    http://www.madanmohan.com/2010/10/sms-wsus-synchronization-failed.html that clean-up should be run always from bottom (replica) to the top (upstream).
    Also, is there any news for WSUS 4 :) ?
    Best regards

    YES,you'd better run the WSUS Server Clean-up Wizard from the bottom of the WSUS hierarchy to the top and NEVER from the top down.
    I totally disagree! The Server Cleanup Wizard should be run on the upstream server first, to ensure that
    updates that will be deleted are no longer synchronized to the downstream server. Furthermore, if you run the SCW on the downstream server first, and it deletes updates that have had status changes on the upstream server that need to be replicated,
    this may throw a synchronization error on the downstream server. The downstream server should NEVER be intentionally put in a configuration that makes it different from the upstream server, and running the SCW on a downstream server before running it on an
    upstream server would do exactly that.
    For more details on my thoughts about how to use the Server Cleanup Wizard in a replica environment, please view my webcast from Sep 2010
    Using the WSUS Server Cleanup Wizard - Expert Tips and Tricks".
    Lawrence Garvin, M.S., MCITP:EA, MCDBA, MCSA
    Microsoft MVP - Software Distribution (2005-2012)
    My MVP Profile: http://mvp.support.microsoft.com/profile/Lawrence.Garvin

  • How to configure a system property

    Hi everybody,
    Does anybody know how to configure a system property through WebLogic 11g console?
    I´d like to configure a property through web console and then get this property in my java code. Something like this:
    System.getProperty("foo");
    Is it possible?
    Thanks,
    Fernando

    Hi Fernando,
    Please refer to the following link which tells us how we can set the JAVA_OPTIONS from the Admin Console....
    http://weblogic-wonders.com/weblogic/2010/03/26/nodemanager-based-managedservers-setting-mem_args/
    The above link demonstrate that how we can set *"-Duser.dir=E:/MyDirectory"* System property.....
    Now you can set your own JAVA_OPTION like following:
    -Dfoo=MyFooValue
    After setting above propertu in AdminConsole MEM ARGS you need to restart the Server. then you can use the following code:
    String result=System.getProperty("foo");
    Thanks
    Jay SenSharma

  • New Imac. I get rid off login password from security and account and restart. Now it asks for username and password and it's not acepting anything. Any ideas?

    New Imac. I get rid off login password from security and accounts and restart. Now it asks for username and password and it's not acepting anything. Any ideas?

    First, reset your password as follows.
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select Utilities ▹ Terminal from the menu bar.
    In the Terminal window, type this:
    resetpassword
    That's one word with no spaces. Then press return. A Reset Password window opens.
    Select your boot volume if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Follow the prompts to reset the password. It's safest to choose a password that includes only the characters a-z, A-Z, and 0-9.
    Select  ▹ Restart from the menu bar.
    You should now be able to log in with the new password, but you won't be able to unlock the Keychain. If you've forgotten the Keychain password (which is ordinarily the same as your login password), there's no way to recover it. You’ll need to reset your keychain in the preferences of the Keychain Access application.
    If you're being prompted to authenticate when making changes to files inside your home folder, continue as follows.
    Back up all data now.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Drag or copy — do not type — the following line into the Terminal window, then press return:
    sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:20 ~ $_ ; chmod -R -N ~ $_ 2> /dev/null
    Be sure to select the whole line by triple-clicking anywhere in it. You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. You don't need to post the warning. If you don’t have a login password, you’ll need to set one before you can run the command.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select Utilities ▹ Terminal from the menu bar. A text window opens.
    In the Terminal window, type this:
    resetpassword
    That's one word with no spaces. Then press return. A Reset Password window opens. You’re not going to reset a password.
    Select your boot volume if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select  ▹ Restart from the menu bar.

  • With Windows 7 Home Premium, whenever I start iTunes, I get a message that colors have been reverted to Windows Basic because iTunes won't support my Windows Aero configuration.  Is there a fix for the incompatibility?

    With Windows 7 Home Premium, whenever I start iTunes, I get a message that colors have been reverted to Windows Basic because iTunes won't support my Windows Aero configuration.  Is there a fix for the incompatibility?  I don't mind the color changes, but I'm having an external speaker problem that could be related to the incompatibility (at random times--usually several hours after start-up, my external speakers--connected via my Samsung Central Station's wireless docking station and computer-installed dongle--shut off and won't play until I restart.  I've investigated other options, but iTunes may be the problem.)  Thanks.

    Perhaps let's first try updating your Apple Software Update.
    Launch Apple Software Update ("Start > All Programs > Apple Software Update"). Does it launch and offer you a newer version of Apple Software Update? If so, choose to install just that update to Apple Software Update. (Deselect any other software offered at the same time.)
    If the ASU update goes through okay, try another iTunes install. Does it go through without the errors this time?

  • Just had help installing cc 2014. get this dialog box when i open the app. One or more files in the adobe folder necessary for running photoshop are missing. Help

    Just had help installing cc 2014. get this dialog box when i open the app. One or more files in the adobe folder necessary for running photoshop are missing. Help

    Please Run the Cleaner tool to remove Ps CC 2014 :http://www.adobe.com/support/contact/cscleanertool.html .
    Restart your system and then try installing Ps CC 2014 again.
    Regards,
    Ashutosh

Maybe you are looking for

  • How to save adobe interactive forms offline in blackberry

    Hi Experts, A basic question... Can  a user save an  adobe interactive form in blackberry while he is not connected to the SAP system. The user is not logged on to the internet(the user is offline/ not connected to the system)when he or she fills out

  • Trouble Upgrading to Lion

    Help, I have attempted to upgrade to Lion but now on the restart it seems the system has stalled.  The pinwheel has been spinning for almost 2hours on my startup screen.  Should I power my system off or is this part of the Lion upgrade?  How long sho

  • Sync yahoo contact and got address all mixed up

    I just sync my yahoo contact to my iPhone and saw that I have lots of friends named AAA. Also, some addresses and phone numbers are all mixed up. It feels like someone just grabbed the addresses and swapped them. Can anyone tell me what's going on? W

  • Taking a lifetime

    It is taking a lifetime for me to compress a 13 minute slideshow video through compressor as a 90 min DVD setting. IT SAYS ITS GOING TO TAKE 3 MORE HOURS!! Why does compressor have such problems when trying to export stuff? This is ridiculous!! the v

  • Payed my bill, but everytime I try to open a app from creative cloud it says I need to renew my subscription. How do I get around this?

    Payed my bill, but everytime I try to open a app from creative cloud it says I need to renew my subscription. How do I get around this?