Long process and its progress

I have very long 'reading file' operation (~ 1 hour) performed by procedure residing in package.
While working, this procedure is updating 'progress table' - 'x rows read'
In standard GUI I run the procedure asynchronously in one session and while it is running I read the 'progress table' in second session and show progress to user.
Is something like this possible in APEX?
Could you please show me links to examples
1) how to run very long procedure?
2) how to show progress?

In Oracle, there is a table called V$SESSION_LONGOPS and you can populate it using the procedure DBMS_APPLICATION_INFO.SET_SESSION_LONGOPS(). Basically, in your 'reading file' procedure, in the loop, you would make a calls to set_session_longops() and then in another session, you can query the V$SESSION_LONGOPS table to see the progress.
Hope this helps.
chris.

Similar Messages

  • Are a single ns-slapd process and its 32 LWP (light weight processes) limited or bound to a single processor?

    ns-slapd and its LWP sub-processes seem to appear as a single process in some tools. Does this limit them to only being able to use one of the available processors on a multi-processor system, either due to lock management or for some other reason?
    W see all the CPUs on a four processor system receiving activity, but the system never exceeds 25% utilization, or, the total of a single CPU.
    Is this a limitation, or are we just not using it much yet?

    <i>Are a single ns-slapd process and its 32 LWP (light weight processes) limited or bound to a single processor?</i>
    The short answer:
    No, and you shouldn't need to worry about it anyway.
    The long answer:
    The configuration LDAP is never a bottleneck in an iAS system. You could have hundreds of iAS servers running off a single instance and a single processor LDAP would still be able to handle the configuration requests easily.
    If you also use your LDAP server as an authentication repository, you should size your LDAP server based on your authentication needs. But even if you are using iDS as an authentication store there are several other factors to keep in mind.
    1. iDS scales pretty effectively up to about four CPU's for the most important operations (i.e. reads)
    2. Unless you are running some unusual application server hardware, you will run out of disk i/o long before you run out of CPU power.
    3. If you have any significant load on the directory server you should probably offload it onto its own server (or partition) anyway so that it doesn't steal excessive amounts of memory from that appserver.
    4. Similarly, if you are putting a lot of stress on the directory server with authentications, you should consider tuning the directory server for those authentications.
    I guess a little more detail about your application server architecture would be helpful in figuring out why your CPU doesn't exceed 25%. I strongly doubt that it has anything to do with slapd, however.

  • I tried updating to iOS 8.1 but it have the apple symbol and a blue screen pops up and it restarts the process and its been going on about 3 weeks already. I dont know what to do? Is my iPad broke cause I just got that iPad in August.

    I tried updating to iOS 8.1 but it have the apple symbol and a blue screen pops up and it restarts the process and its been going on about 3 weeks already. I dont know what to do? Is my iPad broke cause I just got that iPad in August.

    Hi You may have a hardware fault take ipad to Apple Store. Ring then first to make an Appointment take box and you purchase paperwork they may give you A replacement. Before you do that Try a Reboot hold down power button & menu button hold both down until you see Apple Logo you may need to hold down for up to 30 Seconds But you may need to do this more than once. If it doesn't work take back to Apple Store. Cheers Brian

  • I bought a movie not too long ago and its not downloading. what should I do?

    So I tried renting a movie.."Alice In Wonderland" the old one the 1951 one..and it just won't download and last time I called iTunes they say just wait a few days and then once you have plugged it into iTunes it will download..and it hasn't..please help.

    Open itunes on your computer, click Store>Check for Available Downloads

  • Facetime is no longer working and its not showing up as an option in the conatct list for people I've fascetimed with before

    My Facetime on my iPhone worked reallty well.
    Then one day the references to Facetime from thsoe who had Iphone 4 or iPad 2 stopped appearing in the Contact list. Now I find I can't receive FaceTime either.
    What coudl have xcaused this. How do I reinstate FaceTie functionaility?

    Settings>Phone Set FaceTime to "On"

  • Command to compute the CPu utilisation of a process and its respective chil

    Hi All,
    what the command equivalent of "sar -X" of linux on solaris ? need this for performance testing .
    appreciate if you respond AQAP .
    Warm Regards ,
    Chakravarthy

    I don't know what 'sar -X' does on linux. Can you describe the behavior you want?
    I see CPU utililization in the subject. Perhaps you're looking for something like 'prstat' or more likely system accounting.
    Darren

  • HT1212 my iphone is disabled and it wont give me a chance to do the passcode and its not synced how do i fix it

    My phone is disabled for a long time and its not synced how can i change the passcode

    You need to restore the device. It is the only way to disable the passcode. Your data is already lost unless you have synced this phone in the past. See this support document. http://support.apple.com/kb/ht1212

  • Process and thread CPU%

    Hello,
    Is there a utility to allow me to view CPU usage of my process and its inidividual threads (i.e. not "top").
    Thanks,
    Neil

    tray
    sar n
    where n is the time period
    Ahmed fathy

  • Third Party Sales - Bus process and Config

    Friends,
    Kindly explain 3rd party sales business process and its configuration settings.
    I am not able to locate the full configurations using Search. If any one knows the exact link which clearly states this issue.
    Thanks,
    Mahe

    Hi,
    please  see this notes
    Process Flow for 3rd Party Sales
    Customize the third party sales in summary:
    1. Create Vendor XK01
    2. Create Material u2013 Material Type as "Trading Goods". Item category group as "BANS".
    3. Assign Item Category TAS to Order type that you are going to use.
    4. A sale order is created and when saved a PR is generated at the background 
    5. With reference to SO a PO is created (ME21N). The company raises PO to the vendor.
    6. Vendor delivers the goods and raises bill to company. MM receives the invoice MIRO 
    7. Goods receipt MIGO 
    8. Goods issue
    9. The item cat TAS or Schedule line cat CS is not relevant for delivery which is evident from the config and,   therefore, there is no delivery process attached in the whole process of Third party sales.
    10. Billing     
    -  3rd party sales order Create Sales Order
    VA01
          Order Type
          Sales org, distr chnl, div
          Enter
          Sold to
          PO #
          Material
          Quantity
          Enter
          Save
    SD -  3rd party sales order View the PR that is created with a third party sales order
    VA01
          Order Number
          Goto Item Overview
          Item ->Schedule Item
    SD -  3rd party sales order View the PR that is created
    ME52N
          Key in the PR number
          Save
    SD -  3rd party sales order Assign the PR to the vendor and create PO
    ME57
          Key in the PR number
          Toggle the "Assigned Purchase Requisition"
          Execute
          Check the box next to the material
          Assign Automatically button
          Click on "Assignments" button
          Click on "Process assignment"
          The "Process Assignment Create PO" box , enter
          Drag the PR and drop in the shopping basket
          Save
    SD -  3rd party sales order Receive Goods
    MIGO_GR
          PO Number
          DN Number
          Batch tab , click on classification
          Serial Numbers tab
          Date of Production
          Flag Item OK
          Check, just in case
          Post
          Save
    SD -  3rd party sales order Create Invoice
    MIRO
          Invoice Date
          Look for the PO , state the vendor and the Material
          Check the box
          Clilck on "Copy"
          Purchase Order Number (bottom half of the screen)
          Amount
          State the baseline date
          Simulate & Post
          Invoice Number
          *Invoice blocked due to date variance
    SD -  3rd party sales order Create a delivery order
    VL01N
          In the order screen , go to the menu Sales Document , select "Deliver"
          Go to "picking" tab
          State the qty and save
    SD -  3rd party sales order Create a billing document
    VF01
          Ensure that the delivery document is correct in the
          Enter
          Go to edit -> Log
          Save
    business process.....
    please see the link...........
    http://help.sap.com/bp_pharmav1600/Pharma_US/index.htm
    Regrds,
    venkataswamy.y
    Edited by: yanamadala venkataswamy on Sep 11, 2009 11:09 AM
    Edited by: yanamadala venkataswamy on Sep 11, 2009 1:26 PM
    Edited by: yanamadala venkataswamy on Sep 11, 2009 1:27 PM

  • Associating records of processes N its subprocess in data object COMPONENT

    Hi,
    I am using Monitor Express to monitoring BPM process data, and I want to group data from a process and its subprocess.
    How to join these informations if there is no key-field in COMPONENT dataobject (COMPOSITE_INSTANCE_ID and COMPONENT_INSTANCE_ID are different between processes and subprocess).
    Luciano Gomes

    Hi,
    I am using Monitor Express to monitoring BPM process data, and I want to group data from a process and its subprocess.
    How to join these informations if there is no key-field in COMPONENT dataobject (COMPOSITE_INSTANCE_ID and COMPONENT_INSTANCE_ID are different between processes and subprocess).
    Luciano Gomes

  • How the invocation between process and sub-process work?

    As I have read throught some posts here and know that the web service whicn is used to trigger the process is asynchronous.
    so is the invocation between process and its sub-process asynchronous using web service?
    supposed there is a process like below:
    Start Event -
    >Sub-Process ->Automated Task-->EndEvent
    I have some confused questions:
    1: is it asyn to invoke the subprocess?
    2: if the invocation is asyn, is the next "Automated Task" triggerred before the completion of the nested subprocess? It seems to be, but it is not so reasonable.
    3: if the invocation is asyn, how the process get the return value of the nested subprocess?

    Hi John,
    the invocation of sub-processes is done via an internal runtime mechanism and not via normal Web Service call.
    The sub-process call is synchronous, so the calling process is waiting for the reply from the sub-process. There are a few things to keep in mind when using sub-processes:
    If you are branching off parallel execution paths (via a split gateway) within the sub-process and are using a regular end event, only the first token arriving at the end event will return to the calling process. The sub-process will keep running until either the last of its tokens flows into the end event or until the calling process is being terminated. In any case, the calling process will not react to any more tokens arriving at the sub-processes end event.
    If you are using parallelism within the sub-process, but want it to terminate once the first token arrives the end, use a terminating end event in the sub-process.
    Don't use the correlation condition at the start event of a sub-process. If this condition evaluates to 'false', the sub-process will never be started, but the calling process will wait forever for a reply.
    If you want the sub-process call to behave asynchronously, you can model the sub-process to split off a token to the execution path where it does the actual work and have another straight path directly from the split gateway to the (non-terminating) end event. That way the calling process will continue right away, but of course you cannot expect any response coming out of the sub-process.
    Best regards,
    Oliver

  • HT4759 Hello .. I've been subscribed for ic;oud for 20$ per year and I found it useless for many reasons: that I can not disconnect my mobile while the uploading process and it takes long time for uploading my data .. Its not a reliable system that's why

    Hello .. I've been subscribed for ic;oud for 20$ per year and I found it useless for many reasons: that I can not disconnect my mobile while the uploading process and it takes long time for uploading my data .. Its not a reliable system that's why I need to deactivate the space service and take my money back .. Thanks

    The "issues" you've raised are nothing to do with the iCloud service.
    No service that uploads data allows you to disconnect the device you are uploading from while uploading data. Doing so would prevent the upload from completing. It is a basic requirement for any uploading service that you remain connected to it for uploading to be possible.
    The time it takes to upload data to iCloud is entirely dependent on how fast your Internet connection is, and how much data you are uploading. Both of these things are completely out of Apple's control. Whichever upload service you use will be affected by the speed of your Internet connection.

  • I purchased a ipod 5th generation  2 weeks ago and its still processing! how long does it usually take 2 process

    i purchased a ipod 5th generation  2 weeks ago and its still processing! how long does it usually take 2 process??

    See this ungoing discussion:
    https://discussions.apple.com/thread/4384899?tstart=0

  • Mac OS 10.5 /  I deleted the " Private" folder ... and emptied the trash. So the folder and its contents no longer exists on my computer at all !!!  I do have the OS dvd that i purchased years ago...  But my computer will not start from it on its own. My

    Mac OS 10.5 /
    I deleted the " Private" folder ... and emptied the trash. So the folder and its contents no longer exists on my computer at all !!!
    I do have the OS 10.5 dvd that i purchased years ago...
    But my computer will not start from it on its own.
    My question is what is the open source or terminal language code used to tell my mac to look in the DVD rom drive for startup info?  I know that im not the only person in this world who has deleted the "PRIVATE" folder and emptied the trash so it no longer exists on their machine...
    That said theres gotta be a common fix for a Power PC G4 that has the OS X dvd in the rom drive but wont look to it to reinstall the vital contents of the PRIVATE folder.
    Once again there is not a copy of this file or its contents in the recycle bin...
    Also rebooting the machine , pressing and holding the letter C does not prompt the machine to look to the dvd rom drive.
    I was reinstalling pro tools and figured I would make some room by cleaning my computers HD...
    Lol It was a bad choice to delete this file ...
    Thanks guys

    Okay sorry it took forever to respond... But for a while there I gave up on this computer!!!!
    Money's been tight lately , so taking it in to a professional was not yet an option... though I did consider it eventhough.
    Anyway long story short im glad I didnt spend any money because I already had all the tools necessary to fix this issue but was going about it in the wrong way. Okay so here is my scenario and the breakdown... Though this may not fix the issue for everyone :( which *****... But I know we all will have different circumstances.
    Anyway here we go...
    Okay so first things first....  Years ago I purchased the OS 10.5.1 disk ... So that has always been in my possession!!!!
    I realize that some may not have a disk to reflash your OS to your hard drive... but if you do your in luck.
    2ndly ... I had an external harddrive with all of my itunes downloaded music so it was more than okay with me to delete my primary HD because all the important stuff could either be copied over or repathed to be located.
    -------If you dont want to read through the whole story the fix is summed up in the bottom section-------
    Okay so now the SOLUTION!!!!
    By trial and error , and pure boredom I opened up my computer to clean the inside...
    AND
    "Disconnected the primary HD"
    and just because ....... REBOOTED my computer. Just to see what it would do.
    Upon restart and though it looked like it would repeat its usual cycle...
    About 1 minute in to that process my computer froze for about 2 seconds and flashed to the OS installation screen.
    Mind you I havent seen this screen yet... Probably hasnt been since I installed the OS years ago.
    After a bit of trial and error...
    I decided to tell my computer to startup from the OS 10.5 disk located in my dvd rom drive and restarted once again...
    this setting is under
    Utilities / startup disk
    After a little more trial and error ... I realized that I could reconnect the primary HD , restart the machine and return to the OS installation menu.
    So upon this discovery
    I went to the Disk Utility located under Utilities
    Highlighted my primary HD located in the left hand column
    Once highlighted ...
    In the heading section on the right I selected the option
    Erase
    in which I erased My current OS on my primary HD ...
    I used the first option in the list under security... Because it seemed like the least invasive and would take the least amount of time to see if this process would actually work.
    I FORGOT to add something... 
    Another reason why I deleted my primary HD!!!!!
    I forgot to say that it WOULD NOT!!!!! Show up in the STARTUP list as an option...Even After multiple reboots....
    But like clockwork... Once I deleted its name IT SHOWED UP as an option!!!!
    So back to the next step...
    I returned to the STARTUP option under utilities ... And was then able to see MY primary HD now as a startup option...
    But ofcourse it had no name because it we previously erased it.
    So when Clicking my newly erased HD ... I was almost immediately prompted to REINSTALL the OS ...
    Which said it would take about 57 minutes ... But I believe was alot less...
    My issue was resolved ... My computer then stated the install was SUCCESSFUL!!!!!!! :))))))))))) lol ;)
    It was like I was setting up for the first time ;) asking for my registration info...
    The dilemma of deleting the private folder and emptying the trash is finally over resolved. Done ... and no extra money spent!!!!!!!!! 
    Its really crazy that the information for such a simple thing is not readily available. Especially being such a simple fix.
    I know im not the only person who's had this issue , because i've seen numerous posts with similar wording.
    I also know I wont be the last person to have this issue... So I hope this synopsis makes sense.
    -------One more time the fix------
    *Insert your OS dvd into your dvd rom drive.
    *Unplug your primary HD or corrupted startup disk
    *Reboot your machine...
    Upon restart your primary HD will not be recognized...
    * you will then be prompted to select your language.
    Once selected
    *Click Utilities/startup... Highlight the the selection that refers to the OS dvd located in the dvd rom drive.
    * Click restart...
    !!!!!!!!!!Be sure to reconnect your Primary HD Before your computer restarts and you hear the chime!!!!!!!!
    If you do not replug your HD before the chime it will not be recognized.
    In that case restart again.
    Upon restart once again
    *Choose your language...
    *Click Utilities / disk utility
    In the left column select and
    *Highlight your HD ...
    Then towards the top portion / center of the page
    *Click the heading Erase
    Then on the page toward the bottom
    *Click security options
    This will then provide erase options.
    I USED THE FIRST OPTION
    "Dont erase data"...
    *click OK
    * click erase...
    Once erased which should take a few seconds
    *Cancel the disk utility...
    * Click Utilities / startup
    And your newly erased HD should now appear in the list.
    * Select your drive from the list by highlighting
    It should no longer have a name.
    *Once selected, you will then be prompted to restart and install the OS to your newly erased HD...
    Thats it!!!!
    Once everything reinstalls re-add your personal info or registration info and you are up and running.
    Goodluck ;)

  • My iPhone 4s is not switching on, I connected it to itunes thru my Windows 7 laptop and it says phone needs to be restored. I clicked okay and it started the process however the progress bar with the apple logo is on the screen, progressbar do not start

    My iPhone 4s is not switching on, I connected it to itunes thru my Windows 7 laptop and it says phone needs to be restored. I clicked okay and it started the process however the progress bar with the apple logo is on the screen, progress in the bar did not start yet after 5 hours. Some one please hep me.

    I did put it in DFU mode but its still not working, although everytime it shows your iphone needs to be restored. Kindly help.

Maybe you are looking for