Can multiple queries run parallel in a workbook

Hi,
My user has a workbook with multiplue queries.  It took took long to run the queries sequentially.  Is there a way to setup so the queries can run parallel?
Thanks for your help inadvance,
Frank

Following thread might help you on this.
Workbook with multiple queries.  Execution in parallel?

Similar Messages

  • Queries run PARALLEL but no parallel parameters or table DOP set

    I've just taken over a new system and am seeing something that seems to me to be a bit unusual.
    Queries are running parallel, but I've checked and all tables have a DOP of 1 and none of the user queries have a parallel hint. Yet I see queries running parallel in OEM.
    The DB is 11.1.0.7 EE. It does have PARALLEL parms set at the DB level, such as max servers and min servers.
    I showed this to another DBA and they hadn't seen it, either.
    The docs state that, for a query to run parallel, a DOP > 1 must be set at the table level or in the query with a hint. Of course, these days, the docs are frequently very wrong and out of date. If this were 11.2, I would think the new Automatic DOP was involved.
    Appreciate any ideas on how to investigate this.

    pdp0617 wrote:
    I've just taken over a new system and am seeing something that seems to me to be a bit unusual.
    Queries are running parallel, but I've checked and all tables have a DOP of 1 and none of the user queries have a parallel hint. Yet I see queries running parallel in OEM.
    The DB is 11.1.0.7 EE. It does have PARALLEL parms set at the DB level, such as max servers and min servers.
    I showed this to another DBA and they hadn't seen it, either.
    The docs state that, for a query to run parallel, a DOP > 1 must be set at the table level or in the query with a hint. Of course, these days, the docs are frequently very wrong and out of date. If this were 11.2, I would think the new Automatic DOP was involved.
    Appreciate any ideas on how to investigate this.Well, its not certainly an unusual behavior. I have seen it already once but I am not sure that you have the same case but let's try. Can you tell that whether your query is using any indexes and what's the output of this query if the index is in use?
    select index_name,degree,instances from all_indexes where index_name='indexname';HTH
    Aman....

  • Running multiple queries in parallel in a stored procedure

    Hi,
    I have two queries one on table1 (group bys) and second on table2 (again group bys) and then I need to compare the results.
    Is it possible to execute both of them in parallel as they have no dependencies ? SInce it is going to be called from a JAVA program right now the only way I know is
    to execute them in multiple threads but it would be great to have ideas of how to do it in a stored procedure. As a series of steps(all sql quries) have to be carried out and
    the data has to be locked for that period ?
    Just for clarity the steps are :
    Step1 : select for update cursor to lock the rows from table1
    Step2: open curosr then select data from table1 --- perform validations
    Step3 : select data using group bys on table1 and select data using group bys on table2 ---- this needs to be done in parallel (just to gain on time)
    Step4 : compare data
    Step5 : insert statement
    Step6 : close cursor then commit and exit
    This might be really silly question but please pardon my ignorance as I am not much of SQL guy !
    Thanks,
    Neetesh
    Edited by: user13312817 on 10 Nov, 2011 8:27 AM

    Maybe something like this (not tested)?
    SELECT t1.referenceno
         , t1.col1
         , t1.col2
         , t1.entityparent
         , t1.class
         , t1.annual - t2.annual
    FROM   (
              SELECT table1.Referenceno
                   , table1.col1
                   , table1.col2
                   , entitycodes.entityparent
                   , classes.class
                   , SUM(nvl(table1.AnnualAmt,0)) as Annual
              FROM   table1
              JOIN   entitycodes ON entitycodes.entitycode = table1.fundentity
              JOIN   classes     ON classes.accountcode    = table1.account
              GROUP BY table1.Referenceno
                     , table1.col1
                     , table1.col2
                     , entitycodes.entityparent
                     , classes.class
         ) t1
    JOIN    (
              SELECT table2.Referenceno
                   , table2.col1
                   , table2.col2
                   , entitycodes.entityparent
                   , classes.class
                   , SUM(nvl(table2.AnnualAmt,0)) as Annual
              FROM   table2
              JOIN   entitycodes ON entitycodes.entitycode = table2.fundentity
              JOIN   classes     ON classes.accountcode    = table2.account
              GROUP BY table1.Referenceno
                     , table1.col1
                     , table1.col2
                     , entitycodes.entityparent
                     , classes.class
         ) t2 ON  t2.referenceno  = t1.referenceno
              AND t2.col1         = t1.col1
              AND t2.col2         = t1.col2
              AND t2.entityparent = t1.entityparent
              AND t2.class        = t1.class

  • JPA multiple queries run for ManyToOne mapping

    I have a ManyToOne relationship defined on an Entity A to another Entity B. When I run a named query that returns N results, N queries are run to populate the Entity B objects defined by the ManyToOne relationship.
    Is there a way to configure toplink to run a single join query to populate all of the Entities instead of running N+1 queries?
    Below are the definitions of the Entities, I am running this named query on Entity A
    @NamedQuery(name = "PSFasCatAttr.findByCategoryId",
    query = "select object (obj) from PSFasCatAttr obj where obj.fasPtCategory =:categoryId " + " Order By obj.requiredFlag desc, obj.fasAttrSeqNo"
    Entity A
    @Id
    @Column(name="FAS_PT_CATEGORY", nullable = false)
    private Long fasPtCategory;
    @Id
    @Column(name="FAS_ITEM_ATTR_ID", nullable = false)
    private Long fasItemAttrId;
    @Column(name="FAS_ATTR_SEQ_NO", nullable = false)
    private Long fasAttrSeqNo;
    @Column(name="REQUIRED_FLAG", nullable = false)
    private String requiredFlag;
    @ManyToOne
    @JoinColumn(name = "FAS_ITEM_ATTR_ID", referencedColumnName = "FAS_ITEM_ATTR_ID", insertable=false, updatable=false)
    private PSFasAttribute pSFasAttribute;
    Entity B
    @Id
    @Column(name="FAS_ITEM_ATTR_ID", nullable = false)
    private Long fasItemAttrId;
    @Column(name="FAS_ATTR_DESCR", nullable = false)
    private String fasAttrDescr;
    @Column(name="FAS_ATTR_SET_ID", nullable = false)
    private Long fasAttrSetId;

    JPQL defines the "join fetch" syntax for joining a relationship.
    i.e.
    select obj from PSFasCatAttr obj join fetch obj.pSFasAttribute where ...
    You can also set the relationship to be @Lazy, (I would recommend this anyway), so even if you don't join the relationship in your query it will not read the related objects unless they are accessed.
    If you are using the TopLink 11g preview you can also use TopLink query hints to join fetch or batch read the attribute. Batch reading can be more efficient than a join fetch for reading ToMany or ManyToOne relationships because it avoids duplicates.

  • Can multiple executables run on Labview RT?

    Can I execute processes on the Labview RT that are non-VI processes?  From what I understand, the Labview RT is tightly coupled with the Pharlap RTOS.  NI has tools to create an executable to run on Labview RT.  Can I run other executables created from other applications?  What if I want to run a Labview RT executable and a non-Labview RT executable on the Pharlap RTOS?  The PXI-8196 RT controller will have a FAT file system?  Can the PXI-8196 RT, with its Labview RT and Pharlap RTOS, initiate multiple executables?
    Wayne

    Hi Wayne,
    Chris' answer was spot-on.  To clarify the other points, the RT controller will require the FAT file system (FAT32 in the case of the 8196 RT), and you can only run one executable at a time.  From within this executable, you can call DLLs and other VI's, but calling an external executable will not work.  If you choose to create a DLL, I recommend using the DLL Checker 7.1.1 utility, which can be found in our KnowledeBase.  This will verify that the DLL does not make calls to functions or libraries not supported on the Pharlap OS, since some windows libraries and function calls are not available in RT.
    Cheers,
    Matt Pollock
    National Instruments

  • How do I run parallels in the guest account

    I recently updated my Mac Mini.  On the old one I was running Parallels, and had the guest account set up to be able to run parallels just fine.  I used Migration Assistant to transfer everything to the new Mac.  Unfortunately, now my guest account can no longer run Parallels.  When I try to run Parallels, a popup window comes on the screen saying "You don't have permission to use the application 'launcher.'"  Even if I click "Always Allow", the next time I try to run it I get the same popup window warning.  I tried following Parallels webpage advice in how to share a virtual machine with multiple users from their website: http://kb.parallels.com/en/9303, but that doesn't help whatsoever.  So now I'm stuck.  What am I doing wrong?  I obviously had this working another time.  I'm thinking that the problem seems to lie on the Mac side, rather than the Parallels side.  Please help!

    I have not encountered this specific problem, but I suspect the cure is to reinstall Parallels desktop. Parallels installs some functions deep in the OS and they are unlikely to be transferred using MIgration Assistant which intentionally seeks to protect the operating systemon the target Mac.

  • Multiple Queries Slower

    I am having an issue where the performance slows down drastically if i have multiple queries ( Running around 4 queries ) running at the same time. The performance is good when i have only one query running.
    When i run the queries individually one after an another it takes about 10 secs for each of them to return.
    When i run the queries together then it take more than a couple of minutes for all of them to return.
    Any tips suggestions for any changes in oracle parameters to improve performance, when multiple queries are running at the same time. Another thing, the CPU is not being used to its full capacity. The CPU is somewhere in the 10 to 20% usage.
    Thanks,
    Jay.

    Jayachandra, I think there is a good chance you need to tune one or more of the queries in question as they are probably running poorly using more resources than necessary. Individually they seem OK because total time is short but when combined the poor resource utilization is showing up.
    If running CBO
    run an explain plan on each query.
    update the statistics
    re-run the explain plans and look for differences
    If different retime the queries, you may already be done
    If not different or you spot something that looks wrong such as a full table scan where you think an index should be used then follow standard tuning practice to see what you can get.
    Then once you know the SQL are as good as they are going to get look at the buffer pool to make sure it is just not too small. Many DBA just immediately make the buffer pool bigger if query performance is not good enough, however, this is usually not the correct solution and I believe you should never over-allocate resources because you might need them somewhere else.
    HTH -- Mark D Powell --

  • Can we run parallel data collections to collect multiple source instance.

    Hi,
    We have a business requirement where we will have multiple Source(ERP) instance and single Destination(ASCP) instance. We would like to check if we will be able to run Data collections in parallel to collect multiple EPR instance in the same time window. This is to reduce the total planning process time duration as following data collections we will be required to run multiple plan runs.
    Please help me with your expert comments
    Rgds
    Sid

    You may instead use Continuous collections to save on time so it can run collections from both instances periodically throughout the day thereby reducing a single timespan to collect all the data.
    Thanks
    Navneet Goel
    Inspirage

  • Can join queries in Oracle 8i and above span multiple databases

    Hi,
    In Oracle 8i and above, can join queries span multiple databases??
    For eg., I have two databases A and B, and say database A has table A_T and
    database B has table B_T. Assume that both the databases are on the same
    server.
    Can I run a join query from my application using OCI calls that spans across
    tables from multiple databases, namely, A_T and B_T?
    My query probably looks like this - Select * from A.A_T, B.B_T;
    Thank you,
    Sashi

    In Oracle 8i and above, can join queries span multiple databases??
    For eg., I have two databases A and B, and say database A has table A_T and
    database B has table B_T. Assume that both the databases are on the same
    server.
    Can I run a join query from my application using OCI calls that spans across
    tables from multiple databases, namely, A_T and B_T?
    My query probably looks like this - Select * from A.A_T, B.B_T;If you create a database link from database A to B your SQL would look something like this:
    select * from A.A_T, B.B_T@dbB where A.A_T.PK = B.B_T.PK@dbB
    The Oracle manuals should have the information you need on creating a database link.

  • How to embed multiple queries in single workbook

    Hi,
               I am working in BI 7.0 environment. My requirement is
    1) I have 6 different SD queries.
    2) I need to create workbook out of each query.
    3) I need to embed workbook created from each query into a single work book (each worksheet in workbook should have workbook created from 1single query).
    This way the final workbook will have six work sheets with six different queries (all saved as workbooks).
    Can anyone please give me an idea to create the workbook.
    We are latest version of Excel.
    Thanks in advance.

    Hi Padma,
       You can embed multiple queries in a workbook.Please follow below steps.
    1. Open the query in a Bex analyzer (first query)
    2. Go to second tab and select a cell and insert anlaysis item (second icon on the Bex Toolbar)
    3. Right click and assign query to the data provider.
    4. Goto next tab and insert analysis item for third query . Similarly you can insert many queries but embedding multiple queries will degrade performace.
    5. Goto workbook settings (last icon in Bex tool bar) for workbook properties like refresh workbook on open. pop up variable screen on refresh etc.
    Also please go thru below links .
    http://help.sap.com/saphelp_nw04/helpdata/en/ba/45583ca544eb
    51e10000000a114084/content.htm
    Hope this helps. Let me know if you have any queries.
    Regards
    Suvarna

  • Poor Performance 7.0 Workbook with multiple queries

    Hi all,
    I've got the following issue. Our users have workbooks which contain serveral queries on different sheets. (One on each workbook sheet)
    When a workbook contains 5 or more queries, the overall workbook performance will decrease drastically. Workbook with 8 or more queries result in time-outs and messages like unsufficient shared memory.
    Does anyone have the same kind of problems with multiple queries in a Bex 7.0 workbook? Do any one have a solution?
    Any suggestions are welcome.
    Thanks!
    Cheers,
    Ron

    Bill,
    Tried to make a workbook according to your advise. It certainly makes a difference in workbook size. The new workbook is 50% smaller than the older version based on the standard SAP template.
    However, my workbook contains 17 queries, and after 5 minutes it breaks the BW connection. So basic conclusion is that BW 7.0 workbook can't work with a large number of dataproviders/ queries.  This did work in BEx BW 3.x.
    If any one has any other suggestion, more than welcome.
    Cheers,
    Ron

  • How to run multiple queries in a report 6i

    hi!
    i have multiple queries that i have created in data model
    how can i invoke them in my report?
    thanks!

    Every query is run automatically. You can have a Q1 and Q2 and display results of Q1 on one page, and the results of Q2 on another.

  • Inserting Multiple queries into a workbook

    Hi Friends,
    I have to insert multiple queries into a workbook and each query should be in a different worksheet of the work book.
    I have gone thru some of the SAP documentation, for example http://help.sap.com/saphelp_nw04/helpdata/en/3a/89883989676778e10000000a11402f/frameset.htm 
    In above link under the fatures section it says
    If you want to insert a query into the active workbook:
    Open a workbook and, from the BEx toolbar, choose Tools ® Insert Query.... The query is then inserted into the current worksheet starting at the active cell
    But when i chech in the tools under desig tools, i have lot of options like insert grid,insert checbox, radio button extc, but i dont have "Insert query".
    I am using BI7 Bex analyazer, The Only way i am able to insert a new query into a work sheet using BI7 is that first i have to design the work sheet but including design elemenst in my case i am using Grid. But this is not giving the correct display.
    Did anyone insert multiple queries in the same workbook? if you can you please let me know how did u acheive this?.
    Thanks in adv.
    Regards
    BN

    Hi Rajesh,
    Thanks for your response, but in BI7 Bex analyser you dont have the option of insert query from tools.
    Rather what i did is (maynot be the correct way), i have executed the query and saved it as work book and in the tools there is an option "copy Sheet". If you select this the same layout is copied to the 2nd sheet, there just change the assignment of design items to a new Dataprovider. Attach the new query to the new Dataprovider.
    It works for me, as of now
    But i have  questions regarding selection screen.
    1. In this work book i am embbeding 6 queries and each query individually has variables. When i execute the workbook i get the selection screen, in the selection screen all the common variables are shown in one grouping and other in a different grouping. Is this correct way of selection screen display?.
    2. I want to see the variable screen every time i open the work book, how can i acheive this?.
    Regards
    BN

  • Multiple queries in a workbook and final result

    Hi All,
    Is there any way Bw can handle the below.
    I have a workbook with 2 queries:
    1. Total sales by employee
    2. The monthly budget for this employee
    I want to put the total sales and budget from each query in sheet 3 of my workbook.  Can BW handle this.  I'm thinking a macro could handle this, but was hoping BW could.  Any advice.
    Thanks.

    Hi Mike,
    To insert multiple queries in a single woorkbook.
    In the Business Explore --> Analyser --> Open the first query and then click on tools button of the BEx add on components and select the option ( Insert Query ).
    Reg's,
    Pratap Reddy Bodimalla.

  • Insert multiple queries using either WORKBOOK, WAD or Report Designer

    Hello Guys
    I have a task where I have to insert multiple queries into one single page/sheet & print it out later. For this I can use any one of the tools available: Workbook, WAD or Report Designer.
    1. Workbook - Here I have read that we can use a call back MACRO and some other features.
    2. WAD - Here I have read that we can use: 1. Multiple data providers (one for each query) & 2. Multiple web analysis items linking to each individual data provider.
    3. Report Designer - Since this is the actual 'formatting' tool provided by SAP, I am assuming that this is the right environment to achieve my task.
    My question: Which one out of the above 3 tools is actually feasible? Can someone explain me in detail about how to go about this task. Any 'How to..' docs from SAP would also be most helpful.
    Regards.

    Hi Kashyap,
    I have done similar requirement in Workbook,it has better features and more user friendly than others......it depends on the individual...but U cna meet your requirement thru Workbooks...
    If the Req are complicated then we go for MAcros ,where in we can satify the critical req,say some sort of Dynamic reqs.
    There are lot of threads on Multiple queries in one Workbook....Just search in SDN and u will get lot of Threads on this topic.
    Come bak if u have any other doubts.
    Rgds
    SVU123

Maybe you are looking for

  • Can i use home sharing between my computer and my ipad?

    can I use home sharing between my computer and my new ipad (3rd generation)  if so, how. Thanks

  • Is it possible to get receipt for ipod bought at Apple Store

    Several months ago, my wife bought as a present an iPod and Logitech mm50 speakers at an Apple Store in the Mall nearby. Unfortunately, the receipt is long gone, if she even had one. Is it possible to get a receipt from the Apple store, if I (or wife

  • Acrobat Will Not Allow Save?

    I have Acrobat 9, Pro Extended (9.5.5). Running on Windows 7 Proffesional. Also in case relevant, MS Office 2007. Autocad 2009Adobe Photoshop, Illustrator and Indesign CS4. I create files mostly from programs such as Autocad, MS Word, MS Excel, or ot

  • Indesign CS4 - Export to SWF and font issue

    Hello, How do you embed a font in an Indesign CS4 document when you are going to export it to an SWF file? I have an Indesign CS4 document that uses a particular font.  This document is then exported to an SWF file which is then uploaded in our intra

  • Exporting Issue / Graphics problem

    Hi , I hope someone may be able to help, I have made a very simple animation and made some circle's on the program (elipse shape) to make it look like something is falling into a black hole. When i save and publish this, open it on muse the circle's