Running Multiple Scenarios in Parallel

Hello all,
I am trying to figure out how to execute multiple Interfaces / Scenarios inside a single parent thread I found some useful guidance in the thread below.
Link: Running multiple interfaces within a package in parallel
Which lead to me to use ODIStartScen in Asynchronous Mode. This works for the most part but this method generates a new Session Number for every child thread. Is there a way to run the child sessions inside the parent?
Thanks in advance
Mike

Hi Mike,
The child sessions are always tagged to the parent sessions. You can find this in the Work Repos table in snp_session table, field name is parent_sess_no.
To keep the same session-id even in the parent, try the below:
1. Declare a variable with the refresh mode as 'select '<%=odiRef.getInfo(SESS_NO")%>
2. Refresh this variable in the Parent Package.
3. In all the child packages, just declare this variable. This will help ODI in identifying the variable and as the value is already refreshed, it will be used during execution.
4. Use this variable and do what you are interested in.
Hope this helps.
Thanks,
Nithesh B

Similar Messages

  • Running same scenario in parallel for different values

    Hi all, I have a requirement that,on a high level, calls for running a scenario "in parallel" for a set of values that are passed into it. To break it down, say you have a scenario that does some processing (could be anything), and in order to do this processing, it needs a list of values (say 1, 2 and 3). What we need is that the scenario runs for these three values at the same time, the reason being it may run 10 mins for 1, 20 mins for 2, and 10 mins for 3 and we don't want to wait for it to finish for 1 and move onto 2 and finish 2 and then move on to 3. In order to test this can be done, ideally we'd like to see in the operator that when the scenario is kicked off, it is running for all three values simultaneously. Please gurus, if there is any way this can be achieved, do let me know.
    Thanks so much!

    Hi Bhabani, Thanks for your response. I think you've understood the requirement perfectly. It will generate different sessions for each loop. What I'm trying to test here is whether each of those sessions will be launched at the same time. Using the asynchronous mode should, in theory, ensure that they are but how can we verify this? Is there anything we can include in the package (maybe some Odi Tool) that will visibly show that all the sessions have been kicked off?
    Appreciate your help!

  • How can I run multiple midlets in parallel via the raspberry pi cmd line interface?

    I am trying to run multiple midlets at the same time on my raspberry pi.
    From netbeans point of view I am able to deploy and run them. But for my applications I want to auto start multiple midlets on the raspberry pi.
    On the cmd line interface of java me 8 I have commands to install a midlet and run a midlet.
    But i am not able to start multiple midlets.
    Can someone explain to me how I can do this?

    Hi!
    Could you please clarify a bit: do you want auto-start behavior of your applications or be able to start them manually via CLI?
    Because "auto start" means that applications are started by Java once you start Java itself and in order to make it happen you shall mark your applications appropriately (check MEEP spec for "MIDlet-<n>-Type" application attribute value "autostart"). If this is the case, have you added this attribute?
    If you want to run them manually you should be ale to do so via CLI just the same way as you start one application (via "ams-run" command).
    Either way, could you also please clarify what are the symptoms of the problem? E.g. on CLI what are the messages you receive back (if start is unsuccessful what is the error message etc).
    In addition please mind that there is limit on number of simultaneous VM tasks. If I'm not mistaken by default it is 6: 2 of them are used by system code and each running MIDlet consumes 1 VM task. If you want to increase it please change the value of "MAX_ISOLATES" property in jwc_properties.ini file. The maximum supported value is 16
    Regards,
    Andrey

  • Running multiple jobs (or parallelism) in non-project mode

    So, I have just converted my GUI-based project mode project to Tcl based non-project mode.
    I have 8 OOC IP modules that I sythesise before the main design using synth_ip. This occurs sequentially, rather than in parallel as it could when I have a run for each module in the GUI. there I would just set the number of jobs to 8 upon launching the run. This was far quicker.
    Without creating runs for each IP, can I implement the same kind of parallellism with my non-project tcl script?

    No. There are sort of two issues.
    The first is that in non-project batch mode there is not (supposed to be) a mechanism for managing files and filesets. Each synthesis run that you want to run has its own set, and there would normally be no way (in non-project mode) of managing this within the Tcl environment. However, in the case of IP, this sort of isn't true - IP are almost by definition little projects, so this problem doesn't really apply here.
    The second is that in non-project mode, there is a single flow of execution - there is no concept of "background jobs" which is what is used in project mode; there is a single thread of Tcl execution that runs linearly. The processes invoked by this thread may use multiple processors (the place_design and route_design processes do), but only one process is running at a time. Furthermore, in non-project batch, there is no eqivalent to fork/join (which is esstially what launch_runs/wait_on_run is).
    So, you have two choices. One is to compile the IP outside of your main Vivado run before you launch your main run - use your OS to launch 8 separate Vivado processes, each of which has its own script to compile one of your IP.
    The other is to compile the IP once, and keep the generated products around from run to run; your IP does not need to be synthesized each time - each synthesis run should end up with exactly the same netlist. You can even revision control the IP directory (with all its targets). This way, during "normal" runs, you skip the IP synthesis entirely and go straight to synthesizing your design.
    Avrum

  • Running multiple queries in parallel in a stored procedure

    Hi,
    I have two queries one on table1 (group bys) and second on table2 (again group bys) and then I need to compare the results.
    Is it possible to execute both of them in parallel as they have no dependencies ? SInce it is going to be called from a JAVA program right now the only way I know is
    to execute them in multiple threads but it would be great to have ideas of how to do it in a stored procedure. As a series of steps(all sql quries) have to be carried out and
    the data has to be locked for that period ?
    Just for clarity the steps are :
    Step1 : select for update cursor to lock the rows from table1
    Step2: open curosr then select data from table1 --- perform validations
    Step3 : select data using group bys on table1 and select data using group bys on table2 ---- this needs to be done in parallel (just to gain on time)
    Step4 : compare data
    Step5 : insert statement
    Step6 : close cursor then commit and exit
    This might be really silly question but please pardon my ignorance as I am not much of SQL guy !
    Thanks,
    Neetesh
    Edited by: user13312817 on 10 Nov, 2011 8:27 AM

    Maybe something like this (not tested)?
    SELECT t1.referenceno
         , t1.col1
         , t1.col2
         , t1.entityparent
         , t1.class
         , t1.annual - t2.annual
    FROM   (
              SELECT table1.Referenceno
                   , table1.col1
                   , table1.col2
                   , entitycodes.entityparent
                   , classes.class
                   , SUM(nvl(table1.AnnualAmt,0)) as Annual
              FROM   table1
              JOIN   entitycodes ON entitycodes.entitycode = table1.fundentity
              JOIN   classes     ON classes.accountcode    = table1.account
              GROUP BY table1.Referenceno
                     , table1.col1
                     , table1.col2
                     , entitycodes.entityparent
                     , classes.class
         ) t1
    JOIN    (
              SELECT table2.Referenceno
                   , table2.col1
                   , table2.col2
                   , entitycodes.entityparent
                   , classes.class
                   , SUM(nvl(table2.AnnualAmt,0)) as Annual
              FROM   table2
              JOIN   entitycodes ON entitycodes.entitycode = table2.fundentity
              JOIN   classes     ON classes.accountcode    = table2.account
              GROUP BY table1.Referenceno
                     , table1.col1
                     , table1.col2
                     , entitycodes.entityparent
                     , classes.class
         ) t2 ON  t2.referenceno  = t1.referenceno
              AND t2.col1         = t1.col1
              AND t2.col2         = t1.col2
              AND t2.entityparent = t1.entityparent
              AND t2.class        = t1.class

  • I am looking to use multithreading in order to run multiple tests in parallel on one UUT.

    I am looking to multithread multiple tests in paralllel on one UUT.  I looked in the main site and all examples are on zip files that I seem to not be able to successfully download from the site.  Does anyone have any file examples or white papers on this subject that I can view???
    Solved!
    Go to Solution.

    put one test in a sub sequence.  then call that subsequence using New Thread as the Execution Options:
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Run Multiple SSIS Packages in parallel using SQL job

    Hi ,
    We have a File Watcher process to determine the load of some files in a particular location. If files are arrived then another package has to be kick-started.
    There are around 10 such File Watcher Processes to look for 10 different categories of files. All 10 File Watcher have to be started at the same time.
    Now these can be automated by creating 10 different SQL jobs which is a safer option. But if a different category file arrives then another job has to be created. Somehow I feel this is not the right approach.
    Another option is to create one more package and execute all the 10 file watcher packages as 10 different execute packages in parallel.
    But incase if they don’t execute in parallel, i.e., if any of the package waits for some resources, then it does not satisfy our functional requirement . I have to be 100% sure that all 10 are getting executed in parallel.
    NOTE: There are 8 logical processors in this server.
    (SELECT cpu_count FROM sys.dm_os_sys_info
    i.e., 10 tasks can run in parallel, but somehow I got a doubt that only 2 are running exactly in parallel and other tasks are waiting. So I just don’t want to try this  option.
    Can someone please help me in giving the better way to automate these 10 file watcher process in a single job.
    Thanks in advance,
    Raksha
    Raksha

    Hi Jim,
    For Each File Type there are separate packages which needs to be run.
    For example package-A, processes FileType-A and package-B processes FileType-B. All these are independent processes which run in parrallel as of now. 
    The current requirement is to have File Watcher process for each of these packages. So now FileWatcher-A polls for FileType-A and if any of the filetype-A is found it will kick start package-A. In the same way there is FileWatcher-B, which looks for FileType-B
    and starts Package-B when any of FileType-B is found. There are 10 such File Watcher processes.
    These File Watcher Processes are independent and needs to start daily at 7 AM and run for 3 hrs. 
    Please let me know if is possible to run multiple packages in parallel using SQL job.
    NOTE: Some how I find it as a risk, to run these packages in parallel using execute package task and call that master package in job. I feel only 2 packages are running in parallel and other packages are waiting for resources.
    Thanks,
    Raksha
    Raksha

  • How to run multiple CodedUI Ordered Tests over multiple Test Agents for parallel execution using Test Controller

    we are using VS 2013, I need to run multiple Coded UI Ordered Tests in parallel on different agents.
    My requirement :
    Example:   I have 40 Coded UI Test scripts in single solution/project. i want to run in different OS environments(example 5 OS ).  I have created 5 Ordered tests with the same 40 test cases. 
    I have one Controller machine and 5 test agent machines. Now I want my tests to be distributed in a way that every agent gets 1 Ordered test to execute. 
    Machine_C = Controller (Controls Machine_1,2,3,4,5)
    Machine_1 = Test Agent 1 (Should execute Ordered Test 1 (ex: OS - WIN 7) )
    Machine_2 = Test Agent 2 (Should execute Ordered Test 2 (ex:
    OS - WIN 8) )
    Machine_3 = Test Agent 3 (Should execute Ordered Test 3
    (ex: OS - WIN 2008 server)  )
    Machine_4 = Test Agent 4 (Should execute Ordered Test 4 (ex:
    OS - WIN 2012 server) )
    Machine_5 = Test Agent 5 (Should execute Ordered Test 5 (ex:
    OS - WIN 2003 server) )
    I have changed the  “MinimumTestsPerAgent” app setting value
    as '1' in controller’s configuration file (QTController.exe.config).
    When I run the Ordered tests from the test explorer all Test agent running with each Ordered test and showing the status as running. but with in the 5 Test Agents only 2 Agents executing the test cases remaining all 3 agents not executing the test cases but
    status showing as 'running' still for long time (exp: More then 3 hr) after that all so  its not responding. 
    I need to know how I can configure my controller or how I can tell it to execute these tests in parallel on different test agents. This will help me reducing the script execution time. 
     I am not sure what steps I am missing. 
    It will be of great help if someone can guide me how this can be achieved.
    -- > One more thing Can I Run one Coded UI Ordered Test on One Specific Test Agent?
    ex: Need to run ordered Test 1 in Win 7 OS (Test Agent 1) only.
    Thanks in Advance.

    Hi Divakar,
    Thank you for posting in MSDN forum.
    As far as I know, we cannot specify coded UI ordered test run on specific test agent. And it is mainly that test controller determine which coded UI ordered test assign to which test agent.
    Generally, I know that if we want to run multiple CodedUI Ordered Tests over multiple Test Agents for parallel execution using Test Controller.
    We will need to change the MinimumTestsPerAgent property to 1 in the test controller configuration file (QTControllerConfig.exe.config) as you said.
    And then we will need to change the bucketSize number of tests/number of machines in the test settings.
    For more information about how to set this bucketSize value, please refer the following blog.
    http://blogs.msdn.com/b/aseemb/archive/2010/08/11/how-to-run-automated-tests-on-different-machines-in-parallel.aspx
    You can refer this Jack's suggestion to run your coded UI ordered test in lab Environment or load test.
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/661e73da-5a08-4c9b-8e5a-fc08c5962783/run-different-codedui-tests-simultaneously-on-different-test-agents-from-a-single-test-controller?forum=vstest
    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.

  • Can we run multiple sapinst programs in parallel?

    We are planning to upgrade our EP, XI and BW simultaneously. These SIDs all reside on the same server and same OS. Is it possible to run multiple sapinst programs in parallel? I know it may require specifying separate ports for the 2nd and 3rd instance of sapinst. For example: sapinst 1 gets default ports 21212, 21213. sapinst 2 will take 21214, 21215 and sapinst 3 takes 21216 and 21217.
    Has anyone attempted this sort of a thing before? Appreciate your thoughts.

    Never done that before, maybe it works .. however it could run into problems when the sapinst are trying to access the same paths / files.
    Regards,
    Siddhesh

  • How to send multiple files in parallel using ftp with single connection

    Hi.
    i have written code for file upload manager using ftp..
    it perfectly working with sequence file uploading in single connection..
    And i tried to upload multiple files with parallel processing in a single connection.... but it is not working properly.. i also used thread concept
    but single file only transfered and connection refused...
    my code here...
    //////////////////// main class //////////////////////////////////////////
    ftp.connect();
    ftp.login();
    String [] archivos = new  String[100];
                                      File dir = new File("C:\\Files Uploading\\");
                                       archivos = dir.list();
                                       for (int s=0; s<archivos.length;s++)
         //Start Data Transfer Here
         new DataTransfer(archivos[s]).start();
                                       Thread.sleep(1000);
    /////////////////////// thread class ////////////////////////////////
    class DataTransfer extends Thread
          String FileName="";
          String LocalPath="",RemotePath="";
           public DataTransfer(String fname)
         FileName = fname;
         LocalPath = "C:\\Files Uploading\\" + FileName;
         RemotePath = FileName;
         System.out.println(LocalPath);          
            public void run()
                        System.out.println("DataTransfer Started");
         /File Transfer Here
         try
               FileInputStream input = new FileInputStream(LocalPath);
                               Ftp_Client.storeFile(RemotePath,input);
         System.out.println("Successfully sent : " + RemotePath);
         catch (Exception exc)
              System.out.println(exc.getMessage());
              System.out.println("DataTransfer Ended");
         }otherwise tell me any other alternate way

    And i tried to upload multiple files with
    parallel processing in a single connection....
    but it is not working properly.FTP isn't a multiplexing protocol. How could it work at all?

  • Running multiple instances of a service

    ello,
    is it possible (and not "tabooed") to run multiple instances of an application that is designed to be service?
    Im intending to use the Java Service Wrapper to have my app run as a service, but im wondering if it is possible to run multiple instances of my application wrapped in the wrapper.
    What about starting the service using command line arguments?
    This is some details of my scenario:
    Im developing a server that will run without threading - it will read client requests that have been saved by the clients into a database. Thus im going to have an infinite while loop that just keeps reading the db for unprocessed client requests.
    When it is noticed that the load has increased then more than one instance of the server will be necessary.
    if im using the java service wrapper to run my server as a service will it be possible to achieve the above?
    thanks.

    one more thing : if i make any changes in the wrapper.conf xml file for the java service wrapper will the config be automatically loaded?

  • Running multiple instances of a top level vi

    The following question is copied from a 1999 post which I am also interested in an answer to. It wasn't answered in '99, but maybe there are more people around today who could comment;
    "I am interested in running multiple copies of a top-level vi in Labview
    operating under Windows95/98/NT much like you could run several copies of
    notepad.exe simultaneously. Whenever I attempt to start a second copy of a
    vi (or .exe), in either the development or runtime environment, Labview just
    brings the first copy to the foreground. Is it possible to alter this
    behavior?"

    I think it is not a bug but an "open feature". What to do if there is 2 or more calls to the same VIT on the diagram? Should a new instance be created for each node or the same instance reused? It depends of the programmer's intents... The problem has been swept under the carpet allowing only one subVIT instanciation per diagram.
    Back to the topic, one would have to be very careful to code an application where the same hierarchy of VIs has to run in multiple copies in parallel. User interface VIs has to be instanciated dynamically user VITs. What to do with subVIs with unitialized shift registers that shouldn't share their data amongst different hierachies? It is doable but requires a careful design. However for simple user display and
    input, a VIT does the job.
    The easiest way is to duplicate and run an executable file copy. That is because when a second instance of a LabVIEW executable is run, it detects the already running instance, passes the control to it and quit. With a different file copy of the executable, the application can be relaunched with its own application space where you can run the same hierarchy of VIs without conflicts.
    LabVIEW, C'est LabVIEW

  • Running Multiple Web Dispatchers On The Same Server

    Is it possible to run multiple instances of Web Dispatcher on the same server?  I want to have one instance pointing to my WAS 6.40 system and the other instance pointing to my BW system.  I have set up two services on the NT server:  One named the standard sapwebdisp.exe and the other named sapwebdispbw.exe.  I am using two separate profile files, one for each instance.  The services start O.K.  However, when I attempt to access my BW system using the HTTP port as defined in the BW profile and the Web Dispatcher profile, I get a message back saying that "The server you are attempting to access has refused the connection with the gateway. This usually results from trying to connect to a service that is inactive on the server."  I have double checked that the service is running and that the BW system is up and available.
    Any help is appreciated.
    Regards,
    Doug

    Hey guys,
    it seems you are web dispatcher specialists
    I have problems connecting even one server
    I would like to add an Enterprise portal (DEP) to the web dispatcher.
    My config file :
    SAPSYSTEMNAME = SDM
    SAPGLOBALHOST = webdispatch
    SAPSYSTEM = 00
    INSTANCE_NAME = W00
    DIR_CT_RUN = $(DIR_EXE_ROOT)\$(OS_UNICODE)\NTI386
    DIR_EXECUTABLE = $(DIR_CT_RUN)
    Accesssability of Message Server
    rdisp/mshost = 172.20.40.6
    ms/http_port = 8101
    Configuration for medium scenario
    icm/max_conn = 500
    icm/max_sockets = 1024
    icm/req_queue_len = 500
    icm/min_threads = 10
    icm/max_threads = 50
    mpi/total_size_MB = 80
    SAP Web Dispatcher Ports
    icm/server_port_0 = PROT=HTTP,PORT=80, TIMEOUT=120, EXTBIND=1, TIMEOUT=120, PROCTIMEOUT=120
    Is it possible for you to paste your config file here ? 
    With explanation what the portal name is en waht the web dispatcher name is ?
    The error I get :
    no valid destination server available for '!ALL' rc=7
    Where can I adjust this !ALL and !J2EE group ?
    Where can I manage the /link/ ? (like /irj/portal)
    If you need any info please let me know.
    THank you for your time & help
    BUD

  • Running Multiple JVM's on same Server has OutOfMemory - PermGen Errors

    I have a scenario where I have 2 application servers. One is running one JVM and the other is running multiple JVMs.
    Both are configured with:
    -XX:+UseConcMarkSweepGC
    -XX:+UseParNewGC
    -XX:MaxPermSize=256m
    -XX:+CMSPermGenSweepingEnabled
    -XX:+CMSClassUnloadingEnabled
    The server that is running with only 1 JVM runs stable, however the server that is running multiple JVMs has frequent crashes due to OutOfMemory - PermGen errors. The only other difference is the Heap size. 512mb for each JVM on the app server with multiple instances and 1GB for the server with 1 instance. Is there a relationship/settings that need to be tuned when running multiple JVM's on the same server to avoid this?
    Thx

    The only other difference is the Heap size. 512mb for each JVM on the app server with multiple instances and 1GB for the server with 1 instance.This isn't a trivial difference. Basically you're saying "When I give the server 1 GB then it's okay but when I give it 512 MB it's not okay." If I saw those symptoms I would take them at face value to start with.
    So, turn off one of those servers on the machine that has two. Don't change anything else. Testable prediction: That won't fix your problem.

  • Running multiple VIs?

    Hi all!
    I am still quite new to LabVIEW and I want to achieve listed below.
    I have 3 different VIs:
    1) VI 1 and 2 need starts simultaneously
    2) Both VI 2 and 2 each contains a while loop internally
    3) VI 3 is required to start after a time delay after starting of VI 1 and 2
    4) All 3 VIs are stop after VI 3 complete its execution
    Is it correct if I just simply put VI and VI 2 on the main VI for them to start together?
    What can I do for 3) and 4)?
    Attachments:
    Pic.jpg ‏16 KB

    JKSH wrote:
    apok wrote:
    Since you are new to LV, this can be intimidating....namely using notifiers,parallel loops and dynamic events.
    Hi apok,
    Why did you use user events instead of native events?
    The OP has blocking subVIs that contain long-running loops; how does that intergrate with your architecture?
    BTW, you can extend the Merge Errors VI to take 4 inputs (drag the bottom edge) -- no need to create an array first
    answers:
    producer/consumer architecture is highly effective in running multiple parellel loops or sub vi's with communications in between.
    doesnt matter how long the sub.vi is running(that is still controlled by the producer loop), again producer/consumer architechture can communicate back whether with dynamic events(noticing that my example shows how vi3 can control the main vi by dynamic communication) or forth with data or UI control of the sub vi's by the producer loop through equeues or notifiers.
    BTW, what you are probably seeing with merge error is an anomoly from translating between versions of LV, try it and see what i mean....believe me that i am not creating an array, its a bug. also, your use of flat sequences makes me question....
    When Should I Use a Flat Sequence Structure?
    Forcing execution with a flat sequence structure is useful for benchmarking code performance

Maybe you are looking for

  • How to make "0" appear on the display right after its input?

    Ok so i created a Vi with a keypad and digital display. Everything works fine except when zero (0) or dot (.) are input. When I press either 0 or dot, it doesnt display on the display right away, it display after my next input. For example lets say I

  • Ireport in jdeveloper 11.1.1.2.0

    Hi, I'm using jdeveloper 11.1.1.2.0 with ADF 11g. i want to use jasper report(ireport) for generating pdf report.Can any one give me sample link/example.how to set ireport and generate reports. thanks in advance. Edited by: user9010551 on May 17, 201

  • MSS:  Cannot Start Transaction HRWPC_FC_EXEC

    We have three custom ABAP reports setup for the 'Reports' tab in MSS.  Two of them work fine, but one of them is giving this error message: Cannot Start Transaction The Internet Transaction Server could not start the transaction "HRWPC_FC_EXEC" becau

  • Oracle cource code

    Hi, does anyone know of any applications that are available for oracle forms that filter out the source code and convert it into a text document, pdf, or automatically print just the code?

  • Macbook pro spinning wheel issue in Safari

    I am currently using a macbook pro 10.5.8 version I've noticed that whenever I'm in Safari or Firefox and I start to click on things, the rainbow spinning wheel icon appears for a long time before the thing I click on is loaded. Sometimes it keeps ha