How can I parallel 2 2 queries differ from the DB?

The situation: I have a function, where I create 2 queries dynamically. Queries refer to two different bases, which are bound by dblink. And then I just union by the "UNION ALL" clause. After that I have exec that together interrogate them. Then I assign the results to a sys_refcursor. And the function returns a cursor to my external application.

Question: can I run the execution of these two queries in parallel mode and how? I think that the execs 'UNION ALL clause "the first part of the first and the second union. Any help appreciated.

I use Ora 10 g is said by the way.

Published by: 806206 on 29.10.2010 01:36

806206 wrote:
The situation: I have a function, where I create 2 queries dynamically. Queries refer to two different bases, which are bound by dblink. And then I just union by the "UNION ALL" clause. After that I have exec that together interrogate them. Then I assign the results to a sys_refcursor. And the function returns a cursor to my external application.

A cursor is not a result set. A cursor lies in the shared SQL pool and consists of submitted SQL source code and this code in the format "analyzed and compile ' (aka an execution plan). A slider is like a program. A cursor with bind variable is as a program with input parameters.

The cursor or the program is executed. It copies data to the appellant when the appellant says the cursor fetch/get the next series line out.

There is no result set created and stored somewhere in the memory of the (limited) server. Take a look at the view of Oracle® Database Reference (as V$ SQLAREA) on the sliders and container.

Question: can I run the execution of these two queries in parallel mode and how? I think that the execs 'UNION ALL clause "the first part of the first and the second union. Any help appreciated.

From where? PL/SQL? Or a Java client?

You will need to evaluate this approach to parallelising of treatment. It can only increase the complexity and provide little benefit performance.

The basic concept is that the thread principal (or process) will be the consumer of the data - and that children threads will read data from the remote databases and write to the data stream that the mother consumes.

In PL/SQL, this can be done using queues in advance - where 'children' (started as background work processes for example) spooling the data they retrieve from the remote cursors and the parent removes and processes these data.

Tags: Database

Similar Questions

  • How can I delete several clips at once from the timeline

    How can I delete several clips at once from the timeline?

    Thanks, Dan

    Shift-click or command-click to select if they are contiguous. Then press the delete key.

    Or select them and use the keyboard shortcut command + X.

    Or select them in the Index of the Timeline and use the key DELETE or command + X.

    Russ

  • How can I get WIndows8 TouchSmart to boot from the recovery disc

    How can I get WIndows8 TouchSmart to boot from the recovery disc? With the recovery in the drive disk when I do a reboot or stop and start it does not read anything from the DVD player. My computer is a HP TouchSmart 23-D160QD.

    @AirForce9731,

    You may need to change the boot order to boot from the DVD drive first.  The steps to do this are in the document below.

    http://support.HP.com/us-en/document/c00364979

    These are recovery disks made by the recovery discs sent by HP?  They will not work in a different system (you will receive an error message), but you are able to get the boot floppies in a different system?  They should be able to start up to a point where the error message will be displayed.

  • I have photoshopCC, but some how I get pop ups saying that my path for cs6 is expires, and then I buy and get a licience no, well I have not because I have a year of photoshop and lightroom CC. How can I get rid of this message from the trial please my

    I have photoshopCC, but some how I get pop ups saying that my path for cs6 is expires, and then I buy and get a licience no, well I have not because I have a year of photoshop and lightroom CC. How can I get rid of this message from the Marie trial please

    Go to Photoshop forum

  • I use CS5.1 and installed a new hard drive. during the migration, PS now will not work. How can I reinstall? installation initial performed from the internet, no discs.

    I use CS5.1 and installed a new hard drive. during the migration, PS now will not work. How can I reinstall? installation initial performed from the internet, no discs.

    Download the CS5 products

  • How can I sync 2 sony AVCHD images from the camera on the "date" as a prelude and import it in first pro?

    I have 2 sony camera popular with the AVCHD file structure. The two cameras are the same. How can I sync 2 sony AVCHD images from the camera on the "date" as a prelude and import it in first pro? Im working with 6.0


    Now I see the date taken in the import screen until I click "ingest". When in the trash, this option is there, but no metadata in there. It is therefore impossible to import images from two cameras and have these sorted.


    How can I get this sorted out before, so I can export for the first?

    Thank you. Tom van den Dool

    Hi Tom,

    How can I sync 2 sony AVCHD images from the camera on the "date" as a prelude and import it in first pro? Im working with 6.0.

    Sorry, you can not do as a prelude. You can request a feature here: http://adobe.ly/feature_request

    Thank you

    Kevin

  • How can I configure my computer to boot from the CD Rom drive

    I have Windows 7 home version and I have a problem with booting from the cd rom.  I did a cd bootable for a work at home job, but it will not work properly.  It works fine on the desktop of my sister, but not my laptop.  What is happening is the CD loads when I restart my computer, but then it goes to a black screen and just stays there until I have eject the CD.  I can hear the CD running, but I get nothing after the initial splash screen.  I have reset the bios to make sure that the CD-Rom was placed up in the boot parameters.  Any ideas why this CD will not completely loaded?  Thanks for any help you can give.

    Gayle

    Please note, in order to install Windows 7, you must have a DVD player, if you have a CD-ROM drive, which will not work.

    To learn how to change your BIOS options to boot from the DVD drive, the following tutorial:

    http://notebooks.com/2011/05/05/How-to-load-BIOS-and-change-boot-configuration/

  • How can I specify project settings that differ from my source footage?

    I want to create a project in Premiere Pro 2015 CC which is 1920 x 1080, but my source of the layer film is all 2.7 K and 4K.  I want to use this extra resolution in the source footage of the layer for the digital zoom and the effects.  When I created the project, it does match the size / resolution of the source footage.  How can I specify 1920 x 1080 in advance?

    N ° you go to the File menu > New > sequence and when the new sequence pane opens, you choose an existing previously set sequence, or create a custom one that defines the parameters of the sequence on what you want your movie to be.

    Once you are done, click OK and a new empty sequence will be created that contains the settings you have chosen.

    The first time you change your source in this empty sequence material, you will be asked to match the settings of your source material - choose to keep the existing sequence settings and continue.

    When you place your size source material more 1920 x 1080 on the timeline, it cannot display the full of the source clip - if so, frame size select the clip on the timeline, and then right click on it and in the drop-down menu choose set to the size of the image.

    MtD

  • How can I find out what queries executed in the SCT TEMP (Oracle 9i and 10g)?

    Dear friends, you have a query that can watch what instructions are currently running in the TEMP tablespace?

    Many thanks in advance, Marcelo.

    Dear Marcelo!

    What exactly do you mean with "what instructions are running currently in the TEMP tablespace". Do you mean: what statement uses the TEMP tablespace for big sortoperations instead of PGA?

    If Yes, then you can use tempseg_usage $ v and v$ sqlstats to gather the information.

    SELECT username, session_addr, sqladdr, tu.sql_id, tablespace, sql_fulltext
    FROM   v$tempseg_usage tu, v$sqlstats ss
    WHERE  tu.sql_id = ss.sql_id
    

    Yours sincerely

    Florian W.

    Published by: Florian W. the 17.06.2009 11:44

  • How can I get thunderbird to delete messages from the server

    When Thunderbird gets mail from the server, I want that he deleted from the server. How can I do this?

    The Menu bar, select Settings Server Tools-account settings

    Check the boxes that work for you.

    No menu bar display? Press the ALT key.

  • How can I get network connection when booting from the usb key or dvd

    Computer: HP Pavilion P6-2450eo

    Secure boot disabled

    Legacy Boot enabled

    Thruogh F9 I can boot into uefi since a key USB and DVD mode, but I can't seem to program loadet network connection. I tried with 13.04 Ubuntu, Linux Mint 15 and Boot Repair - all with the same result.

    How can I get the programs get started with network connection?

    On thanks in advance!

    poul1304

    Please check that the programs (Ubuntu, Mint, Boot-Repair, etc.) that you attempt to use it, press the controller Atheros AR8161L gigabit ethernet in native mode. Not all operating systems and software are supported each otut device or the network configuration of the box. Several times, drivers must be loaded or injected into the operating system for a device working properly.

    Please send Bravo

  • If I do not have a windows vista sp2 install disk how can I erase all programs and files from the laptop?

    I would remove ALL of my laptop which is running vista Sp2 and I have not a disk to install it from what can do?

    Hello

    Here are the different ways to reinstall Vista

    Contact the manufacturer of the laptop computer and ask them to send you to vista recovery disks to reinstall the operating system back as it was when you bought it

    they do it for a nominal cost of $

    ____________________________________________________________

    also ask them if you have a recovery partition on your hard drive to get back to the way you bought

    you would normally press F8, F9, F10 or F11 or Alt + F10 or 0 to start to start the recovery process according to the manufacturer

    Ask them of the exact key sequence

    __________________________________________________________

    or borrow a vista microsoft dvd; not a HP, Acer recovery disk etc

    Make sure that you borrow the correct 32-bit or 64-bit microsoft dvd to your computer

    they contain all versions of vista

    This is the product key that determines which version of vista is installed

    http://www.theeldergeek.com/Vista/vista_clean_installation.html

    ____________________________________________________________

    How to replace Microsoft software or hardware, order service packs and replace product manuals

    http://support.Microsoft.com/kb/326246

  • How can I return a normal dynamic object from the library (cloud symbol) to a smart object

    I only change my dynamic in Illustrator (via double klick) object when it is not in the library.

    Unfortunately, I did not know that from the beginning and now I have a few documents where all the objects are in the library and can't do em to open in Illustrator.

    When you paste from Illustrator into Photoshop, you can choose how to paste, but there is also a checkbox "add to my current library.

    Maybe this has been verified.

    But you can always change them when you open the library in Illustrator and double-click on it.

  • How can you choose insread iphone ipad app from the DPS app generator?

    Hi guys

    When I select Create from Indesign to create my application iPhone app, it goes to the app DPS constructor and then set to default iPad. How can I change to create an app instead of the iPad app? On the left side on DPS App Builder, I see the iPad and the details of the App. According to the guide of the Adobe, there is another screen that you select the type of application (iPhone and IPad).

    Screen Shot 2013-03-30 at 5.51.15 PM.png

    Any help would be greatly appreciated.

    Thank you

    Do not use the command Create App. DPS App Builder from the Applications folder. Then log in with an account that has the role of DPS App Builder. You need a Pro or Enterprise subscription to create an application that works on iPhone and iPad. Create an application for both, not separate apps.

  • How can I connect to my webserver VM from the outside?

    I'm sure that there is an easy solution for this, but I searched without success.

    I run a Web server on FreeBSD in Fusion, and my Mac uses DHCP (static address can come in time).

    My VM (fusion 2.0.1) is connected through NAT, I also use my Mac as a local server for testing, but only to listen on 127.0.0.1

    Here's my question simply:

    My FreeBSD runs Apache and is set up to serve the site (example.com, say) and DNS settings are all up to date. (I know that the BSD Web server works fine because I can connect from Safari using the merger IP address directly).

    Now if from the outside (you, for example), type http://example.com/ in your browser, connect to my Mac via port 80 and Apache on my Mac will attempt to server web page. But what I really want, it's demand to go on the virtual machine without going through the Mac. (In analogies, there is a setting that allows some ports go 'on' the virtual machine, but merging doesn't seem to have it - I promise to change the merger, because it works best with FreeBSD).

    So in short:

    How to configure my machine Virtual Port 80, rather than the Mac doing listening to?

    MacGruder says:

    So in short: How do I set up my VM to Port 80, rather than the Mac doing listening to?

    I introduce it more as a proof of concept, then a full step by step guide because there are many variables and you did not really a complete topology of your local network and other relevant information to be explicit and accurate on a total scope of the project.

    Good on my MBP without Apache running in OS X and a Virtual Machine of defined merger on NAT with Apache running on the client, I modified the nat.conf and reset the VMware network and was able to directly access Web Server of the customer from another physical Machine on my local network.

    OS X host IP address: 192.168.1.100

    Merge comments NAT IP address: 172.16.172.128

    Another physical Machine on the LAN IP address: 192.168.1.3

    Named Fusion comments: webtest

    Installed the Apache server in comments and editing the web page by default so you can be sure I look what I expect to be looking at and not the host content of the Apache server.

    Stop and closed Fusion comments

    Edited "/ Library/Application Support/VMware Fusion/vmnet8/nat.conf" and added 80 = 172.16.172.128:80

    Restarted network VMware with: sudo "/ Library/Application Support/VMware Fusion/boot.sh"-restart

    Open fusion and began comments

    Editing another physical Machine on the LAN hosts file to add: 192.168.1.100 webtest webtest.com www.webtest.com

    Browser open on another physical Machine on LAN and typed http://www.webtest.com

    Now, I'm looking at the modified Apache file index.html.en default server prompt so it allows me to know that I can access a Web server on the Guest NATed through the Port 80 of the host of another system other then the host.

    Notes:

    Personal firewall should of course be properly defined to allow connectivity between the systems.

    If you what the outside world can then access if your host doesn't have a static IP address, then you will need to use a form any Dynamic DNS on the host computer.

    It is in any case just to let you know it is possible and it's just one of the ways of May to go on this subject and without all the relevant information, I don't have the time to enter in other scenarios.

    Hope that helps!

    Post edited by: WoodyZ

    Added the second - to - restart

Maybe you are looking for

  • How to open a new taken on my phone

    I can't click on my new facebook my cock Lopez came out it say I have to open a new socket.

  • Satellite M70-190 - problem with USB

    Hello!After you uninstall Windows XP and BIOS update, I have a problem with the USB ports. My work does ' t of USB flash drive. Windows also find a USB flash drive, but I can't find it in "my computer".If anyone idea about this problem?PS, External H

  • Satellite M45-S359 equipped with a bluetooth device?

    Satellite M45-S359 equipped with a bluetooth device? Well, if it was, I don't know how to use uu

  • Too large on the desktop icons and fonts

    When I started my computer, my icons and fonts have been very large.  I don't know what happened, but I need a way to solve this problem.  It drives me crazy.  I can see everything on my screen.  Thank you for your quick help.

  • Crooked printing checks

    Hello I have the HP 8600 Premium for a few months now.  Everything worked very well; until this morning.  I went to print checks, everything came out crooked.  You will never have this problem before.  I adjusted the spring (?) in the status bar, and