What is DBMS_PARALLEL_EXECUTE doing in the background

What is the best way to see all the actual SQL's that are being executed in the background when a package is executed?
For an example, I am interested in knowing what DBMS_PARALLEL_EXECUTE package is doing in the background. I've read what the procedures do and I understand the functionality. But I'd like to know how it does it. I wanted to know what create_chunks_by_number_col is doing in the background.

970021 wrote:
What is the best way to see all the actual SQL's that are being executed in the background when a package is executed?
For an example, I am interested in knowing what DBMS_PARALLEL_EXECUTE package is doing in the background. I've read what the procedures do and I understand the functionality. But I'd like to know how it does it. I wanted to know what create_chunks_by_number_col is doing in the background.
OK - I'm confused.
You said you 'read what the procedures do' but the doc explains pretty clearly (IMHO) exactly how it creates the chunks.
http://docs.oracle.com/cd/E11882_01/appdev.112/e16760/d_parallel_ex.htm#CHDHFCDJ
CREATE_CHUNKS_BY_NUMBER_COL Procedure
This procedure chunks the table (associated with the specified task) by the specified column. The specified column must be a NUMBER column. This procedure takes the MIN and MAX value of the column, and then divide the range evenly according to chunk_size. The chunks are:
CREATE_CHUNKS_BY_NUMBER_COL Procedure
This procedure chunks the table (associated with the specified task) by
the specified column. The specified column must be a NUMBER column. This
procedure takes the MIN and MAX value of the column, and then divide the
range evenly according to chunk_size. The chunks are:
START_ID                              END_ID
min_id_val                            min_id_val+1*chunk_size-1
min_id_val+1*chunk_size               min_id_val+2*chunk_size-1
min_id_val+i*chunk_size               max_id_val
So I am at a loss to know how that particular example is of any value to you.
That package creates a list of START_ID and END_ID values, one pair of values for each 'chunk'. It then starts a parallel process for each chunk that queries the table using a where clause that is basically just this:
WHERE userColumn BETWEEN :START_ID AND END_ID
The RUN_TASK Procedure explains part of that
RUN_TASK Procedure
This procedure executes the specified statement (sql_stmt) on the chunks in parallel. It commits after processing each chunk. The specified statement must have two placeholders called start_id, and end_id respectively, which represent the range of the chunk to be processed. The types of the placeholder must be rowid where ROWID based chunking was used, or NUMBER where number based chunking was used. The specified statement should not commit unless it is idempotent.
The SQL statement is executed as the current user.
Examples
Suppose the chunk table contains the following chunk ranges:
START_ID                              END_ID
1                                     10
11                                    20
21                                    30
And the specified SQL statement is:
UPDATE employees
      SET salary = salary + 10
      WHERE e.employee_id  BETWEEN :start_id AND :end_id
This procedure executes the following statements in parallel:
UPDATE employees 
      SET salary =.salary + 10  WHERE employee_id BETWEEN 1 and 10;
      COMMIT;
UPDATE employees 
      SET salary =.salary + 10  WHERE employee_id between 11 and 20;
      COMMIT;
UPDATE employees 
      SET salary =.salary + 10  WHERE employee_id between 21 and 30;
      COMMIT;
You could just as easily write those queries yourself for chunking by number. But you couldn't execute them in parallel unless you created a scheduler job.
So like the doc says Oracle is just:
1. getting the MIN/MAX of the column
2. creating a process for each entry in the 'chunk table'
3. executing those processes in parallel
4. commiting each process individually
5. maintain status for you.
I'm not sure what you would expect to see on the backend for an example like that.

Similar Messages

  • When I am quit an app or Internet etc it leaves a faint view of what I was previously doing in the background of both my home screen or any app. Does anyone know how to fix this?

    When I am quit an app or Internet etc it leaves a faint view of what I was previously doing in the background of both my home screen or any app. Does anyone know how to fix this?

    don't worry, it's normal and it will fade away by itself. If not, take it to your apple store

  • How do I find out what applications are running in the background

    I have a 2008 iMac with 2GB memory.  How do I find out what programs are running in the background?  I am going to buy a new iMac before the end of the year to replace this one.  When I looked at Activity Monitor it shows 1.8Gb used but doesn't tell all the programs running.

    open activity monitor [if it doesnt launch click winders>Activity Monitor]. then it'll show all proceses

  • I´ve bought the new IPad3, what a disappointment the 3G does not work, no Internet available, APPLE what are you doing for the all the people in Germany who bought the new IPad3? I´m still an Apple fan, all my products are from Apple but I need a solution

    I have been waiting since months for the new IPad4G 64 Gbt. ON recommendation of Apple Support I have changed my IPad 4G last week in the hope that something was wrong with the firts one I bought.
    The one I have now has the same problems. WiFi is working however 4G not at all. Apple what can I do? What are you doing for the thausands of German Apple fans who have bought a IPad4G and can not use it. We need a solution NOW. I´m working with this tool and need to be able to rely on it.
    Thanks for a feed back.

    JKerki wrote:
    They had not heard about the problem, however made no problem to change it for an other one. Apple Support Germany pretendet not to know about this problem. However the web is full of complaints.
    It would be advisable for Apple to react officially on it. € 799, - for something that doesn´t function is no fun :-((
    Isn't replacing your iPad Apple "officially" acting on it?

  • Sorry, Flagfox has encountered a problem. Please copy the report below and post it on our forums with a detailed explanation of what you were doing at the time so we can attempt to fix your issue. (English please) Flagfox version null (missing IPDB!)

    Sorry, Flagfox has encountered a problem. Please copy the report below and post it on our forums with a detailed explanation of what you were doing at the time so we can attempt to fix your issue. (English please)
    Flagfox version null (missing IPDB!)
    ERROR MESSAGE: Fatal Flagfox startup error!
    EXCEPTION THROWN: TypeError: ExtensionManager.getItemForID(id) is null
    STACK TRACE: startup()@file:///C:/Documents%20and%20Settings/Vanessa%20Ecret/Programdata/Mozilla/Firefox/Profiles/9eyewkfc.default/extensions/%7B1018e4d6-728f-4b20-ad56-37578a4de76b%7D/chrome/flagfox/modules/flagfox.jsm:40
    ([object ChromeWindow])@file:///C:/Documents%20and%20Settings/Vanessa%20Ecret/Programdata/Mozilla/Firefox/Profiles/9eyewkfc.default/extensions/%7B1018e4d6-728f-4b20-ad56-37578a4de76b%7D/chrome/flagfox/modules/flagfox.jsm:160
    Flagfox_loadForThisWindow([object Event])@chrome://flagfox/content/overlay.xul:16
    BROWSER: Mozilla Firefox 3.6.6/20100625231939 (Gecko 1.9.2.6/20100625231939) using locale en-US on WINNT x86-msvc
    This error and a Flagfox preferences dump has been sent to Tools -> Error Console. Please report this and any related errors so we can investigate your problem. Conversely, if you don't report this then it probably won't get fixed.
    == i was update

    Sorry, the Flagfox extension has encountered a problem. The following error output and a Flagfox preferences dump has been sent to Tools -> Error Console.
    FLAGFOX VERSION: 4.1.x (missing IPDB!)
    ERROR MESSAGE: Fatal Flagfox startup error!
    EXCEPTION THROWN: TypeError: addon is null
    STACK TRACE:
    (null)@resource://flagfox/flagfox.jsm:70
    safeCall((function (addon) {try {FlagfoxVersion = addon.version;var ip4db = addon.getResourceURI(IPv4DBfilename).QueryInterface(Components.interfaces.nsIFileURL).file;var ip6db = addon.getResourceURI(IPv6DBfilename).QueryInterface(Components.interfaces.nsIFileURL).file;ipdb.init(ip4db, ip6db);checkIPDBage();ready = true;} catch (e) {handleStartupError(e);}}),null)@resource://gre/modules/AddonManager.jsm:48
    ([object Object])@resource://gre/modules/AddonManager.jsm:897
    AOC_callNext()@resource://gre/modules/AddonManager.jsm:118
    (null)@resource://gre/modules/AddonManager.jsm:892
    PL_getAddon("{1018e4d6-728f-4b20-ad56-37578a4de76b}",(function (aAddon) {if (aAddon) {safeCall(aCallback, aAddon);} else {aCaller.callNext();}}))@resource:///modules/PluginProvider.jsm:79
    callProvider([object Object],"getAddonByID",null,"{1018e4d6-728f-4b20-ad56-37578a4de76b}",(function (aAddon) {if (aAddon) {safeCall(aCallback, aAddon);} else {aCaller.callNext();}}))@resource://gre/modules/AddonManager.jsm:76
    ([object Object],[object Object])@resource://gre/modules/AddonManager.jsm:888
    AOC_callNext()@resource://gre/modules/AddonManager.jsm:124
    (null)@resource://gre/modules/AddonManager.jsm:892
    (null)@resource:///modules/XPIProvider.jsm:3047
    ([object Array])@resource:///modules/XPIProvider.jsm:4864
    (0)@resource:///modules/XPIProvider.jsm:3867
    BROWSER: Mozilla Firefox 7.0.1 (Gecko 7.0.1 / 20110928134238)
    OS: Windows NT 6.1 (WINNT x86-msvc windows)
    LOCALE: en-us content / en-us UI / en-us OS
    Select and copy the error report above. In order to fix this problem for you and others, please read and follow the troubleshooting and bug reporting instructions on the Flagfox support forums. Please post an abundance of information with any error reports, namely what you were doing at the time that may have triggered this. (English please)

  • How do i see what applications are running in the background

    My iMac is running very slow my operating system is OS X Yosemite Version 10.10.2 with a 2.5 GHz Intel Core i5 Processor. How do I see what applications are running in the background?

    Reinstalling OS X Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Reinstalling OS X Without Erasing the Drive
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility and press the Continue button. After Disk Utility loads select the Macintosh HD entry from the the left side list.  Click on the First Aid tab, then click on the Repair Disk button. If Disk Utility reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit Disk Utility and return to the main menu.
    Reinstall OS X: Select Reinstall OS X and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    Alternatively, see:
    Reinstall OS X Without Erasing the Drive
    Choose the version you have installed now:
    OS X Yosemite- Reinstall OS X
    OS X Mavericks- Reinstall OS X
    OS X Mountain Lion- Reinstall OS X
    OS X Lion- Reinstall Mac OS X
         Note: You will need an active Internet connection. I suggest using Ethernet
                     if possible because it is three times faster than wireless.

  • Music spontaneously starts, stops, stutters at random and I'm not even using that app. Repeated attempts to pause the song and close the app have no affect. Just keeps popping on and off randomly no matter what I'm doing at the time.

    How do I eliminate this glitch?  Music spontaneously starts, stops, stutters at random and I'm not even using that app. Repeated attempts to pause the song and close the app have no affect. Just keeps popping on and off randomly no matter what I'm doing at the time. I tried double-clicking the Home button which brings up all of the active apps, touched and held the Music icon until all the icons started wiggling, tapped the Close icon in the upper left corner of the Music app to close the app completely, but the app is still open and still randomly stuttering. I did notice that the play button icon flashes in the upper right corner of the screen when this happens and it appears and disappears in concurrence with the Music app stuttering. When the music starts, the icon appears and when it stops, the icon disappears again. When the music stutters on and off, the icon appears and disappears rapidly and in sync with that random glitch. This just started today for no apparent reason. I turned the iPad off, waited 30 seconds and turned it back on. As soon as it was finished starting up, the same music glitch began again immediately. I'm using iOS 6.1.3.

    Well, no one seems to have any answers or ideas for me, I'll update what I've been able to accomplish.
    I reloaded all 14 disks in the time frame of watching Lord of the Rings on Fri. nite.
    Funny thing is, the first disk pulled the info from the online store! Hooray!
    Wait-then all the next 13 could find no information online...what the heck is up with that? So I MANUALLY assign each disk a new track # to co-inside with each disk, spent about 2 hours doing that.
    But still, itunes tells me my playlist is too large, there's not enough space on the ipod. so I unchecked 1 1/2 disks (I'd listen to 1/2 of disk 1 previously) and voila! there's my ipod full of my book. Finally. But what a lot of bother just to keep things in order!

  • I just got an IPAD2 on Saturday.  With the Mac, I could always tell when programs were open/running by going to the menu bar.  How can I tell what programs are running in the background.  I am struggling with not being able to go to a menu bar at the top

    I just got an IPAD2 on Saturday.  With the Mac, I could always tell when programs were open/running by going to the menu bar.  How can I tell what programs are running in the background.  I am struggling with not being able to go to a menu bar at the top

    You can see which apps are open and/or recently used by double-clicking the home button to bring up the taskbar at the bottom of the screen (not all apps that appear there are active) - you can then close apps on it by pressing and holding one of them for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Mail app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar. If you have an app 'open' on-screen then it won't appear on the taskbar, you will need to go back to the homescreen first, and it should then show when you next open the taskbar.
    If you haven't already got a copy then you can download the iPad manual from here : http://support.apple.com/manuals/#ipad

  • I gave my brother my old iPad.  I reset it so it's like a new iPad. But, it is still in my iCloud tabs, not what he is doing, but the last thing i had open in Safari.

    I gave my brother my old iPad.  I reset it so it's like a new iPad. But, it is still in my iCloud tabs, not what he is doing, but the last thing i had open in Safari. When I went to iCloud.com and did the find my iPhone thing, it was still listed. But it couldn't find it. It's rather annoying to have it there all the time. How do I make it go away. I can't see a way to tell iCloud that that device is no longer mine.

    Wipe iPhone/iPad/iPod touch clean
    There are a few steps to do:
    Switch off iMessage in Settings > Messages
    Switch off FaceTime in Settings > FaceTime
    Delete iCloud in Settings > iCloud > Delete Account
    Finally Settings > General > Reset > Erase All Content and Settings.
    Un-register your device: https://supportprofile.apple.com
    Now you can sell/give.

  • OK, I'm perplexed.  I've been a mac user for almost 30 years.  My entire ecosystem is Mac and I remained with mac through the dark 90s.  What apple has does in the past 2 years is unbelieveable.  I just upgraded to 10.86, then 10.9, no end of problems

    OK, I'm perplexed.  I've been a mac user for almost 30 years.  My entire ecosystem is Mac and I remained with mac through the dark 90s.  What apple has does in the past 2 years is unbelieveable.  I just upgraded to 10.86, then 10.9, no end of problems.
    I can no longer mirror and of my monitors VGA or HDMI, my itunes which supplies iphone and ipad has disabled podcast app so that I can't listen to my favorite programs and I find out after the fact that Office software is not compatible with OSX 8.6.
    Forget about the fact that itunes looks like it was developed by a 1980s MS-DOS programmer.   Its kludgy, limited and generally does not work.
    What does one do?  Frankly, I used to use macs because they were like info appliances that just worked.  Now the time to manage tech glitches from the company has become way too costly.  Sadly, Apple has become Microsoft and Microsoft seems to become Apple.

    "... as do the users who are downloading recent OSXs in record numbers."
    USUALLY YOU DO NOT KNOW WHAT YOU DOWNLOAD UNTIL YOU HAVE IT !!!
    APPLE USED TO HAVE GREAT STUFF BUT OBVIOUSLY TRIES TO INVENT FOR THE SAKE OF INVENTING !!!
    THIS IS ACTUALLY A STEP BACKWARDS (TO MS).
    CALENDAR & CONTACTS SYNC VIA ICLOUD ONLY IS AN ABSOLUTE NO GO !!!
    @APPLE: FIX THIS ASAP !!!

  • Leaving data roaming ON while abroad: what apps use data in the background?

    As a quick preface, I've had an iPhone since Week 1 in the summer of 2007. I've been working outside the U.S. for well over a year now, so I've been roaming with my iPhone for almost the entire time I've owned it. I had kept data roaming turned OFF since the fall of '07, when a software update brought it as an option, but visual voicemail continued to work as always even when data roaming was OFF (under software versions 1.x).
    After hearing about the early bugs with iPhone software v2.0, I stuck with the last version of 1.x until about a month ago. While I like almost everything about 2.2, I was dismayed to notice that visual voicemail no longer worked if data roaming was turned OFF. (Apparently, the visual voicemail "loophole," for lack of a better phrase, was closed with 2.0 or a subsequent version of the software.)
    This has left me facing a conundrum: Turning data roaming ON might leave me susceptible to a big data roaming bill, while leaving it OFF leaves me in the dark as far as the existence and Caller ID of new voicemail(s).
    QUESTION: Does anyone know of the DEFINITIVE list of which iPhone apps use data roaming in the background? That is, if I leave data roaming ON but NEVER use the email app or Safari or YouTube or any other app that accesses the internet and would incur data charges (or, at least, never use any of those apps unless connected to a WiFi network), which apps will use data in the background anyway, WITHOUT me actually launching the app?
    Back in the 1.x versions, I'm not aware of any apps that used data unless the user actually launched an app, but I've noticed that, under 2.2, Apple's App Store app routinely connects to the internet on its own to check for updates if I have data roaming enabled. (I'd like to turn this OFF, but doing so doesn't appear to be an option.)
    I'm hoping App Store is the only app that has this (bad) behavior, and that I'd be safe leaving data roaming ON while consciously avoiding using data over the EDGE network, but I have no idea if apps like Stocks, YouTube, Weather, etc., have been updated, in 2.x or even 2.2, to check for updates in the background, and thus run up data roaming charges.
    If anyone can shed any light on this, it would be much appreciated. Thanks very much.

    The iPhone is officially unlocked and can be used with whatever provider/SIM card.
    But imagine, we are a team of around 20 people, travelling to all kind of different countries all over the world (changing, not the same person is always travelling to the same countries), and of course (I didn't mention this in my first post), we also have to stay in contact by phone. In addition, also whatsapp is based on the phone number as far as I know, which is our main "quick" communication tool. It would never work out that all of us inform the others all the time about the changing phone numbers, depending on which country each individual is at the moment.
    Your answer unfortunately just confirmed what my researches so far resulted in... there really seems to be no apple-like easy solution to manage data roaming for apps individually. In the beginning I was sure to quickly find something in the appstore, since I assume my situation is not such an exception. I guess I have to start learning how to program apps! :-)
    Anyway, thanks for your answer! As I mentioned before, every idea is appreciated.

  • What is flip4mac importing in the background?

    In a recent upgrade to Leopard, I installed the beta flip4mac which works perfectly, however it evokes a window with time bar "importing movie" that previous versions of flip4mac did not. I assume it may have been doing it in earlier versions in the background without the notification.
    Does anyone know exactly what the plugin is doing? Importing what and to where? Into ram? It does it's "importing" in the column view if there are .wmv movies in the list. Possibly to build the thumbnails? If there are many .wmv files, it takes quite a bit of time and processing power.
    I see no preference setting to turn it off as an automatic function.
    Thanks for any information!
    Flip4mac is a great program.

    Sounds like you're activating a feature within the upgraded version of Flip4Mac. The basic free player simply plays wmv content, but you can import Windows Media files into supported
    QuickTime editing applications, or convert Windows Media files into other media formats with the upgraded version. These functions are available in trial mode with the free version, but have limitations.
    What exactly are you trying to do? Do you have a file locally, that you're trying to play back. Or are you attempting to bring something into iMovie?

  • What is Apple doing about the "Unable to download" problems?

    So, forgive me if these questions have been asked before. But I am new to Apple, just bought an iPhone about 2 months ago. I love my iPhone, but once you start getting into the world of the App store is where the problems seem to start flooding in. Specifically with the downloading and updating portion. Downloading is sometimes a breeze and sometimes a pain as is updating. Some days I have no problems downloading or updating apps. Other days I get error messages such as "unable to download" with an option of "done" or "retry."
    The "done" option is worthless because if you select it, the app is still unselectable and will stay that way for days and the only way around it is to delete the app and reinstall if you can even reinstall it without having problems.
    The "retry" option is also worthless because as soon as you select that option, not even a second later will the message "unable to download" pop up again.
    Some days I get the error message that says something along the lines of unable to download without a wifi connection. That confuses me because there are plenty of times when I have downloaded apps without a wifi connection. So why is it that sometimes I need a wifi connection and other times I dont need it. Second, I am connected to a wifi connection right now and my app still wont update.
    I dont know about you, but I sure as **** dont like seeing that red number 1 on my app store every day, but with the problems of updating apps sometimes im forced to just stare at it every time I unlock my phone.
    So what is Apple doing about these problems?? Because I've seen alot of threads on this discussion board but they all seem to have the same answers, "turn off the phone then turn it back on" "download over a wifi connection" "delete the app and re install"

    Have you called Apple tech support or visited an Apple Store to ask for assistance with the problem? If not, then you really haven't even given Apple the opportunity to assist you with this problem. This is not happening to every iPod touch by any means, so it's most likely an issue with your particular unit. Try the usual steps: restart, reset, restore.
    http://support.apple.com/kb/HT1430
    http://support.apple.com/kb/HT1414
    If that doesn't help, call Apple support or take the iPod to an Apple Store.
    Regards.

  • How can I know what apps are running in the background of Q10

    My battery is not lasting more than 12 hours even though I'm moderately using it. How can I tell which applications are running in the background?

    As of now, the BB10 does not allow any apps to run in the background unless they are baked in the OS or in the active frames. So if an app is not in a active frame, no app is running in the background. try maximizing your battery by switching to wif whenever you have a wifi network.
    Twitter: @ukmight
    1. Click on the " Like " button if you find anything helpful posted.
    2. If any of the replies in your post has resolved your problem, mark the reply(ies) as " Solution ", so that others can readily view the solution instead of creating another redundant post.

  • Hearing what sounds like air in the background

    Hi, I have a Creative Sound Blaster Z (The gray/bare bones one) and I'm having an issue. I use a headset with attached microphone for my audio. I installed my sound card and plugged the 2 3.5mm jacks into the card in the rear panel and my mic and speakers work just fine. The problem is, I'm hearing a rather annoying blowing air like sound in video games and videos (including twitch.tv/Netflix as examples). The louder the sound the more the "air" intensifies also. Also, my Sound Blaster Z Control Panel does not load up when I run it. All the other creative programs work, just not the control panel. I have tried completely uninstalling and reinstalling several times. I have disabled all audio including onboard sound and graphic card sound. I also have the latest drivers. Everything works great except for this noise I'm getting in the background, it ruins everything. I'm thinking it's an option in the control panel I can adjust but I can't get into the audio control panel.
    I have a Nvidia GTX 780 and Asus VI Hero Maximus mobo if that helps any.
    Pretty much at a loss here. Really need some help guys. Thanks

    Hi Brenx,
    Maybe the noise comes from your microphone. You may want to try to disable your microphone to see the the issue persists.
    As for the problem of the Sound Blaster Z control panel not loading up, you may need to do a refresh of your Windows.

Maybe you are looking for