Looping in stored prc even when no loop statement exists

Hi All,
There is a stored procedure that is doing a lot of inserts in tables and then finally selecting from those tables. It is used in report.
The procedure takes 20 hrs - after the last final insert it is going back to the first insert statement and re-running it for the same parameters.
There are NO loops of any kind. Do we need a EXPLICIT EXIT statement after the last statement so it exits out of code and the session gets closed.
What could be the issue?
Could someone give any pointers?
Regards,

904385 wrote:
Hi All,
There is a stored procedure that is doing a lot of inserts in tables and then finally selecting from those tables. It is used in report.
The procedure takes 20 hrs - after the last final insert it is going back to the first insert statement and re-running it for the same parameters.
There are NO loops of any kind. Do we need a EXPLICIT EXIT statement after the last statement so it exits out of code and the session gets closed.
What could be the issue?
Could someone give any pointers?
Regards,You need to show us an example of your code.
It's possible you can duplicate your statements if you use two terminator characters in an SQL script e.g.
test.sql
create table test (x number)
insert into test (x) values (1);
/And when run...
SQL> @c:\test.sql
Table created.
1 row created.
1 row created.
SQL>the insert gets executed twice.
This is becuase the ";" on the end of the insert statement causes it to insert and then the subsequent "/" on the next line causes SQL*Plus to execute the previous statement again.

Similar Messages

  • Outline agrement PR is deleting even when a contract is existing??

    Hi,
    in our ECC 6.0 implementation, it is possible to delete an Outline agreement PR even when there is a valid Contract exist (referred to said PR).
    I want to restrict that. How can i restrict user by deleting the PR when a contract is there????
    Pls advice
    Cheers

    control with help of ABAP develoment

  • Bex Query - Display Rows, even when no database record exists?

    Hi everybody,
    im creating a Query with Bex Query designer and have a requirement which i cant cope with atm, so i hope you can help me.
    I made a small screenshot with excel to explain how the query should be:
    [http://yfrog.com/ncqueryj]
    So, the requirement now is, even when for example there are no records for company A at all, the rows A-A1 to A-A4 should still be displayed in the query simply with no values.
    The Accounts are already in an row structure, but it isnt an option to take the company into the row structure, as this would mean we have to do several thousands selections for one query and there is more then one query to do, with each time different accounts, so the row structure wouldnt be reusable too.
    Do you know any way to achieve this without adding the company to the row structure?
    I hope my explanation was comprehensible, if you still have any question just ask.
    Thanks in advance
    Noody

    Hi Harry,
    thanks for the answer, it was already very helpful, but my problem still isnt completely solved because actually they dont want to get all companies that exists, but only certain companies which then should always be displayed, even without records.
    So for example they have company A, B, C and D, they always want to have A, B and C, even without values, but never D, even when D has values.
    The companies they want to see in the Query are in an Hierarchy which is selected through filter, so actually they dont want all existing companies from master data but all existing companies from an hierarchy.
    Regards
    Noody

  • Not able to increase gain of blue Apple Loop in Sample Editor, even when I bounce in place

    As far as I understand things, bouncing in place creates a new audio file that you can alter at will. I have a blue Apple Loop from Logic's library that I want to permanently change the gain on.  I can bounce in place but all the functions in the sample editor are greyed out, thus not allowing me to change the gain. The loop is a surround sound loop, I don't know if that matters. It's happened to me in stereo so I don't think so.

    Finaly i was able to solve the problem.The other machine was having some firewall blocking the receiver.

  • Looking for a way to log privilege adds even when the user has that priv

    We've run into a situation where we want IDM to log privilege adds/removes, even when that privilege already exists (for add) or doesn't exist (for remove) on a person.  Let me give some background.
    We are a small team working on an IDM project, each team member with 6-30 months of experience with the IDM product.  We're using 7.1.
    We have two systems, one of which is queryable and (certain) privileges updatable via REST API -- we'll call this system REST.  The second system of course is IDM.
    When an IDM privilege is added or removed, the business requirement is to always keep IDM and REST in sync, privilege-wise.  This is no problem and we have provisioning set up to make the API call, and it works great.  However, if there is a problem with the REST API (network issue, just plain down, etc.) this sync can't happen.  So, within the provisioning framework, if there is a failure, the failure is logged and the privilege is reverted, keeping REST and IDM synced.  A job runs regularly to check this log table and re-attempt the appropriate action, which of course will trigger provisioning again, hopefully successfully.
    The problem occurs in a situation like this, where each point comes in chronological order.
    1. User X gets privilege Y granted within an IDM UI.
    2. Provisioning triggers, but for some reason the REST API call fails (twice, because of retry).
    3. The failure task for the REST API call removes privilege Y from user X.  The error is logged.
    4. After a while, some job runs which removes privilege Y from all users whose names begin with X.  Even if the job explicitly removes privilege Y from user X, this is not logged in the system in any way, doesn't trigger provisioning, etc.
    5. After another while, the "retry job" runs and attempts action #1 again.  This time, the provisioning succeeds.  Now user X has privilege Y on both IDM and REST.  However, because of step 4, clearly user X should not have privilege Y.
    The same (well, reverse) issue occurs when removing the priv in step 1 and doing a grant in step 4.  During tests, one can just set up a To Identity Center step and remove/assign a privilege to an arbitrary person, then run the job containing this step repeatedly.  If the action has no net effect, there's no record (in, for example, sentries, oentries, or indeed in mxi_(old)values).  It would be great if there was a generic way to cause these actions to be logged, and we've actually thought of a couple other cases where this logging would be useful as well.  Is there some simple way?  Is it already logged in some esoteric table we haven't thought of?
    Any thoughts on this interesting scenario would be appreciated.  Thanks!

    Hi Chris,
    If I understand correctly, since you are using the log to ensure that the privileges are synced.
    Any chance you could enhance step 4 to remove information about the failed assignment from the log, so that it will not be retried?
    Note also, that this is improved in IdM7.2 and the framework. You will only get the privilege assigned after the add-member task has successfully assigned the privilege in the back-end system (which is what you are trying to achieve).
    Best regard
    John Erik Setsaas
    Development Architect IdM

  • Looping Quicktime Movies in Keynote & Keeping them Looped when Rendered

    Okay I have a quicktime movie that I am using as the background of my slide show. I have text fly in and out over the movie. I can get the movie to loop when I view the slideshow but when I try to export the slideshow to Quicktime the Background quicktime movie only plays once and then stops. I want the quicktime background to continue to loop when I render the entire slideshow to quicktime. And yes I have checked the loop box in the quicktime tab in the inspector window. Please Help!

    Yes, it is one slide with layered builds going in and out. The first 2 times I tried this it worked then on the same keynote file it stopped working on the second render and now it does not work even if I create a new file.
    While I do understand that I could make my slideshow, time it and loop the movies together in iMovie I do not feel that I should have to render two separate things loosing quality on each render because of the time aspect.
    Why would it work and all of a sudden stop? I should not have to go through iMovie making loops and rendering things twice when Keynote should be working.

  • Slideshow Transitions When Repeating Loop

    Hello,
    I've created a slideshow using many photos that I want to repeat/loop indefinitely. I've fixed the transition at the end so it doesn't fade to black, however, when the last slide ends, it doesn't transition to the first slide as I wanted.
    All of the transitions are dissolves except for the cut transition from the last slide to the first slide. Any ideas how on how to make every transition a dissolve....even when repeating?
    Thanks so much....

    Anyone?

  • How to make 2 clients on same VLAN communicate to each other when tunnel-loop-prevention is enabled?

    Requirement:
    How to make two clients on same VLAN communicate to each other when tunnel-loop-prevention is enabled on tunneled-node configuration at controller?
    Whenever we enable tunnel-loop-prevention on controller while we configure tunneled-node, the communication between two tunneled-node client on same VLAN is blocked or dropped.
    If the tunneled-node clients are of different VLANs then they can communicate between them even when the tunnel-loop-prevention is enabled on the controller.
    Solution:
    To make two tunneled-node client on same VLAN to communicate between them, we need to enable "local-proxy-arp" for the interface VLAN on the controller.
    Once it is enabled now the tunneled-node clients on same VLAN can communicate between each other. 
    Configuration:
    To enable "local-proxy-arp":
    Get to the interface of the VLAN on the controller
    Example :
    (config)#interface vlan 5
    (config)#ip local-proxy-arp
    To enable tunnel loop prevention on controller
    (config)# tunnel-loop-prevention
    Verification
    Show commands:
    To check if tunnel-loop-prevention is enabled or disabled
    #show tunneled-node config
    Tunnelded node Server: Enabled
    Tunnel Loop Prevention: Enabled
    To check if local-proxy-ap is enabled:
    #show interface vlan 5
    Look for in the output "ProxyARP enable"

    streetfi8er wrote:
    Server ready,waiting for client:
    Exception in thread "New THREAD" java.lang.NullPointerException
         at server4$server4Thread.run(server4.java:88)
    Failed to accept client
    when i run the second client programme on different a console in the same system i get the error that:
    Unknown HostOK, I'm no socket programming expert; but I can see a few potential problems with what you've written.
    1. First off, which line is line 88? Line numbers would be useful. Also, indenting your code properly would make it easier to read.
    2. Your 'while(!str.equalsIgnoreCase("close"))' will always fail with a NullPointerException because 'str' is initially set to null.
    3. Your 'while(true)' loop worries me. How does it exit? Relying on an exception is usually very bad practise.
    4. You are not handling SecurityExceptions. While it's unlikely to happen on your machine; it could easily happen on another.
    5. It might be worth indicating the actual exception thrown in your "Failed to accept client" message. accept() can throw three different types of IOException.
    6. All the threads you create will be called "New THREAD", which doesn't provide much value.
    HIH
    Winston

  • Why is it that it would take a very long time [if ever] to change or adjust the tempo of a loop in the audio track when i set it to adjust regions to locators? Until now the spinning wheel of death is still very much spinning. thanks for any help.   Is th

    Why is it that it would take a very long time [if ever] to change or adjust the tempo of a loop in the audio track when i set it to adjust regions to locators? Until now the spinning wheel of death is still very much spinning. thanks for any help.
    Is there another way to adjust tempo of loops the faster way, any other technique?

    No clue why the final processes have suddenly started to take so long. Two things I'd try: a) capture from an older tape to see if some problem with the new tape is at fault.  And b) check the health of your RAM and the hard drive.
    The red frame sounds a bit like a glitch we used to have in OnLocation (actually in its predecessor HDV Rack) which was caused by a partial GOP. But that was a product of HDV Rack recording from the live video stream. It turned out that HDV cameras intentionally interrupt the data stream for an instant upon starting to record--specifically to avoid recording a partial GOP to tape. So my gut says that the tape has partial GOPs at the points where you stopped/started recording.

  • Real newbie-I can hear my loops in my library, but when I drag them to a track, there is no audio.  What am I doing wrong?

    Real newbie question-I can hear the loops in my library, but when I drag them to a track, there is no audio when I playback or record.  What am I doing wrong?

    You probably put Midi loops (green) on audio tracks, and audio loops (blue) on Midi tracks.
    That won´t play.
    JanD

  • HT2443 loops are in the browser when you the loop message reads this file type is not supported

    loops are in the browser when you the loop message reads this file type is not supported

    gloucester
    In case you did not find it, the following is a copy/paste of the Announcement on Premiere Elements 19/NVIDIA GeForce
    that appears at the top of this forum.
    Premiere Elements 10 NVIDIA Video Card Driver Roll Back
    If you are a Premiere Elements 10 user whose Windows computer uses a NVIDIA GeForce video card and you are experiencing
    Premiere Elements 10 display and/or unexplained program behavior, then your first line of troubleshooting needs to be rolling
    back the video card driver version instead of assuring that it is up to date.
    Since October 2013 to the present, there have been a growing number of reports about display and unexplained workflow
    glitches specific to the Premiere Elements 10 user whose Windows computer has a NVIDIA GeForce video card. If this applies
    to you, then the “user to user” remedy is to roll back the NVIDIA GeForce video card driver as far as is necessary to get rid of
    the problems. The typical driver roll back has gone back as far as March – July 2013 in order to get a working Premiere
    Elements 10. Neither NVIDIA nor Adobe has taken any corrective action in this regard to date, and none is expected moving forward.
    Since October 2013, the following thread has tried to keep up with the Premiere Elements 10 NVIDIA reports
    http://forums.adobe.com/thread/1317675
    Older NVIDIA GeForce drivers can be found
    http://www.nvidia.com/Download/Find.aspx?lang=en-us
    A February 2014 overview of the situation as well as how to use the older NVIDIA GeForce drivers for the driver roll back can be found
    http://atr935.blogspot.com/2014/02/pe10-nvidia-video-card-roll-back.html
    ATR

  • How to get the value incremented only when the loop is true?

    Hi,
       From the snapshot attached, i want to increment the value of number indicator only once when its true and should increment the value again when the loop is true..i mean i want to get the number of times the loop is true.
    But in this vi i am getting the value incremented many number of times when the loop is true because the while loop is running continuously. 
    Attachments:
    labview.docx ‏54 KB

    muralicgowda wrote:    From the snapshot attached, i want to increment the value of number indicator only once when its true and should increment the value again when the loop is true..i mean i want to get the number of times the loop is true.
    But in this vi i am getting the value incremented many number of times when the loop is true because the while loop is running continuously. 
    A loop is a structure and not a boolean, so it cannot be false or true and thus I don't understand the question!
    Why don't you attach the actual VI instead of a word document? Your code is very difficult to understand because it seems to suffer from severe localitis, and some of the few visible terminals don't show a label. What's in the other cases of the case structures?
    Incrementing a value is better done in a shift register or feedback node. What's the purpose of the "absolute value" function. As long as you make sure you don't start with a negative value, it should not be needed. If you are looking for a off-on transition, try "implies" with the current and previous value of the boolean. (For an example, have a look at this post and the quoted example in it.)
    Message Edited by altenbach on 01-21-2010 08:47 AM
    LabVIEW Champion . Do more with less code and in less time .

  • Infinite loop in PR workflow even if the document is now APPROVED

    Hi everyone,
    Our PR workflow experiences a confusion in the document's status.
    A loop is being executed even if the PR document is now being APPROVED. The template, maybe, doesn't correctly read the status of the PR. Since the loop still runs, the approver is being Notified thru SAP inbox several times and this has caused the approver a sense of inconvenience and disturbance.
    Please guide me on what to do.
    Regards,
    Reymar

    Good day Aditya!
    There is indeed a loop in the WF definition. It sends a workitem to SAP inbox of the approver even after it is being APPROVED already.
    I checked the condition of the loop, but it is correctly defined there.
    I am looking at the reason that maybe this is on the synchronization issue. I mean, the statuses both of the documents and on the workflow side do not correlate or are different.
    Can I use the SWU_OBUF in PROD?
    Regards,
    Reymar

  • Looping a stored procedure

    Can someone explain to me how I loop a stored procedure ?
    I have a stored proc that deletes users. it works fine.
    set serveroutput on
    begin
    BTNEP.DEL_USERPROC (p_employee_id=>'11111');
    end;
    I have a list of over 1,000 employee_id's that need to be deleted.
    Is there a way i can loop through this list using the procedure ?
    thanks for any help

    ok so i put in table.
    i tried
    BEGIN
    FOR i IN (SELECT employee_id FROM employee_USERIDS)
    LOOP
    BTNEP.DEL_USERPROC (p_employee_id => i.employee_id);
    END LOOP;
    END;
    Error starting at line 1 in command:
    BEGIN
    FOR i IN (SELECT employee_id FROM employee_USERIDS)
    LOOP
    BTNEP.DEL_USERPROC (p_employee_id => i.employee_id);
    END LOOP;
    END;
    Error report:
    ORA-06550: line 4, column 7:
    PLS-00201: identifier 'BTNEP.DEL_USERPROC' must be declared
    ORA-06550: line 4, column 7:
    PL/SQL: Statement ignored
    06550. 00000 - "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • I have a large number of PDFs documents stored on a windows pcthat I would like to access on my iPad mini even when not cBooking referenceonnected to a network.

    i have a large number of PDFs documents stored on a windows pc that I would like to access on my iPad mini even when not connected  to a network. Does anyone know a solution. Eg maybe card reader and a app.

    Those devices have mixed results depending on the application. If the application does not support the device, then you are out of luck. There is no file manager in IOS to allow you to move files between folders because there are no folders that you can access. An app has to specifically support a storage location to access files.
    It's not that bad. The app has to have the ability to accept data from another app.  The latest memory dongles come with an ios app to access the external storage.  You then transfer the pdf from dongle's app to your app.  If your app can accept data from dropbox, it will be able to accept data from the memory dongle app.
    Other solutions:
    == "GoodReaderUSB is a practical and useful application whose main purpose is to help users transfer files and folders from their mobile device to PC effortlessly. It helps them to move and backup important data from their Apple device via a USB cable."
    http://www.softpedia.com/get/IPOD-TOOLS/Multimedia-IPOD-tools/GoodReaderUSB.shtm l
    == "iExplorer's disk mounting features allow you to use your iPhone, iPod or iPad like a USB flash drive."
    http://www.macroplant.com/iexplorer/

Maybe you are looking for