PL/SQL Loop without stopping

Hi, I have a list of procedure name in PROCLIST table. I am planning to fetch it and interate using loop. Inside loop I have to execute the same name procedure.
Problem : The procedure I have to execute without stopping means in the 1st iteration execute 1st procedure, before completion of the 1st procedure it should iterate for next and execute the 2nd procedure. so my task is to execute this all the procedures parallely. Any type of help is appreciated.

Hi,
Thanks for reply. I have tried with the same package. but my all the procedure's name in table which I am fetching using cursor loop.
My task is to fetch procedure name from the loop and executed it but the loop shouldn't wait for the 1st procedure to complete. Without waiting for 1st procedure to complete, it should interate for the next & fetch the 2nd procedure's name and execute 2nd procedure parallely.

Similar Messages

  • How to stop execution in while loop without stopping execution of other loops in the same vi

    HI
    I am quite a novice in Labview.
    I have a problem in my project. I used a while loop inside my vi to build an array of ten values along with other loops. Then I used a stop button to stop manually the while loop. But it seems like the loop doesn't stop in the middle of the array building and so other loops in the vi doesn't work until the while loop finishes building the array and as soon as while loop execution is over, the complete vi stops. But all that I wanted was to build the array using the shift register along with the control to stop building array anytime. And not to stop execution of other structures when the while loop finishes.
    Can anyone help me?
    Rahul

    Hi Rahul,
    Modified ur Vi to work with single button.
    But the subtract case is not in any loop.
    So, once both the loops stop, the subtract case will execute only once. Depending on state of subtaract boolean at that time, corresponding case will be executed and the Vi will stop.
    so think of a logic where u can put this also in a new loop.
    Or you can also incorporate it in one of the two loops and pass the other loop's data to it.
    Let us know how you will proceed in this regard
    I am posting your VI as well a VI with my modifications VI in Labview 7.0 so that Thomas can give his suggestions too
    Plus, always keep a time delay in your while loops.
    Oh sorry, the "arrayinouttestnewfinal.vi" is the modified vi
    Regards
    Dev
    Message Edited by devchander on 01-10-2006 06:15 AM
    Message Edited by devchander on 01-10-2006 06:19 AM
    Attachments:
    arrayinouttestnewfinalnew4.vi ‏59 KB
    arrayinouttestnewfinal.vi ‏63 KB

  • MASTER/SLAVE PATTERN: how to stop slave loop without stop main loop

    Hi All, I am studying the master/slave loop and saw an examples are like this (only master block shows)
    From this case, as I understand, if we click "set" button, slave loop will run. If we click this button again to mak it "Flase", the slave loop will be stopped as well as the main loop will be stopped as well.
    Now if I have a multi-function main loop, I just want to start or stop slave loop when click "set" button, how can I do it? Thank you very much! 

    bhl3302 wrote:
    From this case, as I understand, if we click "set" button, slave loop will run. If we click this button again to mak it "Flase", the slave loop will be stopped as well as the main loop will be stopped as well.
    Your understanding is completely wrong.  There is nothing in the image you show that would stop either loop.  In this situation the "set" button would normally have a latching mechanical action, meaning that when it is pushed, it will stay true until it is read once, at which point it will return to false.  Placing the control terminal inside the event case causes the terminal to be read and resets the button to false.  With a latching mechanical action, there will be only one event generated even though the boolean will change value twice (from false to true, and from true to false).  You'll never have a situation where you push the button once to set it true, and again to set it false.  However, even if the mechanical action is switching, not latching, it still won't make a difference here - the event case does the same thing whenever the value changes, regardless of whether it's true or false.

  • How can I get the number of rows in my sql result, without a loop?

    Hello,
    I've a problem, I would like to get the number of rows in my sql result without make a loop like :
    while (rs.next()){
    int number = rs.getRow();
    Is there any method to do this, on the first element?
    Thx, STeF

    If you want to count how many rows are in result set, I dont think you can, but you could always run a count statement for that sql
    say your sql is
    select field1, field2, field3
    from table1, table2
    where field4=field5 ......
    then you can count the rows this statement returns by
    select count(*) from
    (say your sql is
    select field1, field2, field3
    from table1, table2
    where field4=field5 ......)
    This way you will get the count for just that sql

  • How to write a SQL Query without using group by clause

    Hi,
    Can anyone help me to find out if there is a approach to build a SQL Query without using group by clause.
    Please site an example if is it so,
    Regards

    I hope this example could illuminate danepc on is problem.
    CREATE or replace TYPE MY_ARRAY AS TABLE OF INTEGER
    CREATE OR REPLACE FUNCTION GET_ARR return my_array
    as
         arr my_array;
    begin
         arr := my_array();
         for i in 1..10 loop
              arr.extend;
              arr(i) := i mod 7;
         end loop;
         return arr;
    end;
    select column_value
    from table(get_arr)
    order by column_value;
    select column_value,count(*) occurences
    from table(get_arr)
    group by column_value
    order by column_value;And the output should be something like this:
    SQL> CREATE or replace TYPE MY_ARRAY AS TABLE OF INTEGER
      2  /
    Tipo creato.
    SQL>
    SQL> CREATE OR REPLACE FUNCTION GET_ARR return my_array
      2  as
      3   arr my_array;
      4  begin
      5   arr := my_array();
      6   for i in 1..10 loop
      7    arr.extend;
      8    arr(i) := i mod 7;
      9   end loop;
    10   return arr;
    11  end;
    12  /
    Funzione creata.
    SQL>
    SQL>
    SQL> select column_value
      2  from table(get_arr)
      3  order by column_value;
    COLUMN_VALUE
               0
               1
               1
               2
               2
               3
               3
               4
               5
               6
    Selezionate 10 righe.
    SQL>
    SQL> select column_value,count(*) occurences
      2  from table(get_arr)
      3  group by column_value
      4  order by column_value;
    COLUMN_VALUE OCCURENCES
               0          1
               1          2
               2          2
               3          2
               4          1
               5          1
               6          1
    Selezionate 7 righe.
    SQL> Bye Alessandro

  • PXI-6533, Changing frequency without stopping the card?

    Using PXI-6533 and LabVIEW, is it possible to update the frequency (of a defined pattern) without stopping the output of the card?

    Hi JX5000,
    I don't have an example written for this use case, but you would use the property node in your while loop (perhaps with an event structure).  I've attached a link to the LabVIEW Help file on this property node below.  Hopefully this helps!
    DAQmx Timing Property Node (VI)
    http://zone.ni.com/reference/en-XX/help/370469AA-01/lvdaqmx/mxtimingpnode/
    Josh B
    Applications Engineer
    National Instruments

  • Problem with PL/SQL loop

    Hi,
    Here is what I am trying to do. The SQL query retrurns only one record but the loop is execuitng twice. The count returns 2. What could be the problem? Thanks for your help.
    type t_name is record(id number, c_name varchar2(100));
    type t_names is ref cursor return t_name
    Procedure returnVal()
    v_t_names t_names;
    count number;
    BEGIN
    count : = 0;
    OPEN v_t_names for select user_id, u_name from tableA WHERE dept_id = 100;
    LOOP
    FETCH v_t_names into t_name;
    Exit when v_t_names%not found;
    count := count + 1
    END LOOP
    END returnVal;
    ---------------------------------------------------------------------

    After fixing the million and one errors with your example code, I turned it into the following similar so I could run it:
    declare
      type t_name is record(id number, c_name varchar2(100));
      type t_names is ref cursor return t_name;
      v_t_names t_names;
      v_t_name_rec t_name;
      l_count number;
    BEGIN
      l_count := 0;
      OPEN v_t_names for select 1, 'Fred' from dual;
      LOOP
        FETCH v_t_names into v_t_name_rec;
        Exit when v_t_names%notfound;
        l_count := l_count + 1;
      END LOOP;
      dbms_output.put_line(l_count);
    END;
    /the output was: 1.
    The loop does get executed twice - the first time through it does a fetch, finds a record, so doesn't satisfy the EXIT criteria, and updates l_count, and finishes the first loop through. It must then go back to the top of the loop, and fetch another record. However, because there was only 1 record, the exit criteria is now met, so the procedure now jumps out of the loop without updating l_count. So, the loop has been entered twice.
    Does that explain things?
    Message was edited by:
    Boneist
    One thought: Since your code was so obviously an example you made up to illustrate your problem, can you guarentee that the "increment the counter" step was AFTER the "exit when cursor%notfound" step in the original?
    My guess is that it's before it, so that the count goes up regardless of the cursor having fetched a row or not.

  • Making 2 for loops without nested

    How to make two for loops without nested like the follwoing
    for i in 1.10, j in 1..30 loop
    end loop
    Please help me

    Following is the closest I could think of...
    SQL> ed
    Wrote file afiedt.buf
    1 declare
    2 type myrec is record (ctr1 number, ctr2 number);
    3 type tabrec is table of myrec ;
    4 v_tabrec tabrec := new tabrec();
    5 begin
    6 for i in 1..10 loop
    7 v_tabrec.extend;
    8 v_tabrec(i).ctr1 := i;
    9 v_tabrec(i).ctr2 := i;
    10 end loop;
    11 for i in 11..30 loop
    12 v_tabrec.extend;
    13 v_tabrec(i).ctr2 := i;
    14 end loop;
    15 for i in v_tabrec.first..v_tabrec.last loop
    16 dbms_output.put_line(v_tabrec(i).ctr1 || v_tabrec(i).ctr2);
    17 end loop;
    18* end;
    SQL> /
    11
    22
    33
    44
    55
    66
    77
    88
    99
    1010
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30

  • Can we assign value to a variable in PL/SQL Loop

    Hi
    Can we assign value to a variable in PL/SQL Loops?
    DECLARE
    V_Num NUMBER;
    BEGIN
    LOOP
    V_Num := 10;
    DBMS_OUTPUT.put_line(V_num);
    V_Num := V_Num - 1;
    EXIT WHEN V_Num = 0;
    END LOOP;
    END;
    In the above program, Can we assign V_num with a value 10????????
    Thanks & Regards,
    Hari Babu
    Edited by: 1004977 on Jun 5, 2013 2:40 AM

    Hi,
    1004977 wrote:
    Hi
    Can we assign value to a variable in PL/SQL Loops?
    DECLARE
    V_Num NUMBER;
    BEGIN
    LOOP
    V_Num := 10;
    DBMS_OUTPUT.put_line(V_num);
    V_Num := V_Num - 1;
    EXIT WHEN V_Num = 0;
    END LOOP;
    END;
    In the above program, Can we assign V_num with a value 10????????Yes; the example you posted does that.
    When the loop starts, the value 10 is assigned to v_num. You should see that value displayed by the put_line statement.
    After that, v_num is set to 10 - 1 = 9.
    Next, the EXIT condition is evaluated. At this point, v_num is 9, not 0, so the loop runs again. V_num is set to 10 again, and the loop continues forever (or, in some versions, until the dbms_output buffer is filled and an error occurs.)

  • How to change the profile value in the pl/sql code without making change in the database

    How to change the profile value in the pl/sql code without making change in the database.

    I have program ,where if the profiles 'printer and nunber of copies ' are set at the user level, by default when the report completes the O/p will be sent to the printer mentioned in the set-up. but what user wants is
    if these Profiles are set for the user running this program automatic printing should not be done.

  • How can I get itunes on my i pad to play single songs in a playlist without stopping it manually?

    How can I get itunes on my i pad to play single songs in a playlist without stopping it manually?

    To turn on the check marks on, say, 150 consecutive songs in a list, do the following:
    Click on the first song in the list.
    Scroll to the last (150th) song in the list.
    Hold the shift key down while clicking the last song in the list.
    All 150 songs will then be highlighted.  Click the check box in one of the 150 songs and all songs will exhibit the same behavior.

  • Sql reporting services stops every 24 hours for a short time then restarts

    I have noticed that recently in sccm 2012 sp1 the sql reporting services stops every morning at 7:58 am and restarts after a minute or two.  The only entry in the event logs is when it stops.  I don't see anything tied in with it that stops or
    starts at the same time and there are no tasks or anything like that which would point to this time frame.  I just thought I would throw this out there to see if anyone had any ideas.  Usually with something of this nature there are some corresponding
    log entries that go beyond the service stopping, but in this case there isn't.  Thanks for any help you can provide.

    I think I found out what was going on.  I approached this from a different angle and was directed to the sql reporting services logs and found information on the reporting web server stopping.  Researching that yielded the following information. 
    It appears that this is a result of the SSRS Web Server recycling the App Domain, which is supposed to be a pretty normal process.  In fact, the configuration file for this process defaults to recycling the app domain twice daily.  This lines up
    with the time frame that the reporting service is stopping.  It restarts it in less that two minutes and logs the recyling in the reporting services log twice daily so why I'm not seeing this entry in the event logs twice daily or even every day must
    be a timing thing.  I think if it takes an extra millisecond or two to recycle the app domain, it dumps an entry into the windows event logs and the sccm component status monitoring.
    http://ask.sqlservercentral.com/questions/97176/reporting-web-server-stopped.html

  • My apple tv is not streaming video without stopping

    When streaming films from my mac air to apple TV  the internet steaming is non stop
    But the apple TV stopped while it is buffering.
    So although the film runs without stopping on the Mac Air screen it keeps stopping when being mirrord on the HD Tv via the Aplle TV.
    It seems like the Apple TV is not keeping up with the video feed from the mac air
    Please advise?

    this looks like a clogged network.
    How are you connecting MBA and Apple TV?
    If both are on WiFi - try to connect Apple TV via cable to your router (if possible). This will improve the newtrok bandwidth.

  • How to add byte[] array based Image to the SQL Server without using parameter

    how to add byte[] array based Image to the SQL Server without using parameter.I have a column in table with the type image in sql and i want to add image array to the sql image column like below:
    I want to add image (RESIM) to the procedur like shown above but sql accepts byte[] RESIMI like System.Drowing. I whant that  sql accepts byte [] array like sql  image type
    not using cmd.ParametersAdd() method
    here is Isle() method content

    SQL Server binary constants use a hexadecimal format:
    https://msdn.microsoft.com/en-us/library/ms179899.aspx
    You'll have to build that string from a byte array yourself:
    byte[] bytes = ...
    StringBuilder builder = new StringBuilder("0x", 2 + bytes.Length * 2);
    foreach (var b in bytes)
    builder.Append(b.ToString("X2"));
    string binhex = builder.ToString();
    That said, what you're trying to do - not using parameters - is the wrong thing to do. Not only it is insecure due to the risk of SQL injection but in the case of binary data is also inefficient since these hex strings are larger than the original byte[]
    data.

  • Reports included in the page keep looping without retrieving any results

    We are facing an issue related to the behaviour of Siebel Analytics when more than 1 answer are included in a dashboard page. When a report is generated, the other reports included in the page keep looping without retrieving any results, but if I manually click on 'cancel' link, the reports successfully appear with consistent data. This behaviour is not stable since sometimes the page works fine, sometimes not, but it's not clear what it depends on. Can anybody please let me know if this behaviour is a known bug.

    Hi Deb,
    Could you please explain me in more detail?
    The problem is we are able to see the old reports that we were already moved into Q environment. The newly moved 5 reports are giving this error message.
    Please help
    Thanks
    Sri

Maybe you are looking for

  • Java.exe has encountered a problem and needs to close.

    I installed Oracle8i on my P4 then when I reboot I get the error "java.exe has encountered a problem and needs to close." even if I click on "don't report" if keeps popping up, anything to do to resolve this? Thanks.

  • How can I set up dynamic parameters in a CMC schedule?

    Just need some help to set-up a month-end schedule in CMC (Central Management Console ). The schedule will contain a number on Crystal reports. These report should be run for the month just gone. eg If the schedule is run on 30.09.14, I'd like the FR

  • Migration from Sp2 to Sp3

    I upgraded weblogic sp2 to Weblogic sp3 in Solaris environment.When i restart the server, all the components are getting deployed and the server listens to the correct port but immediately the shutdown begin and the server undeploys all the component

  • WordMac 2004 application won't open

    I've tried adding a new user, shift boot, changing the name of the fonts folders (including disabling the Classic and computer fonts), and removing start up files. I've also tried disk utility. Any suggestions?

  • Lion and Pentax .pef Raw icon previews?!?

    Is there a way to get the Lion 10.7.2 Finder to display icon previews for my Pentax .PEF Raw files?  This worked fine in OSX 10.6.