Running queries concurrently

Hi,
I have a very complicated BI Publisher report that has about 10 queries in a data model, set with the "Concatenate SQL Data Source" option (along with "make row names unique"). These queries are running against an OBIEE server.
When I look at the queries being submitting in NQQuery.log, I can see that it seems to be running them sequentially. I.e. query #1 finishes before query #2 kicks off, etc.
I'd like for all 10 queries to get submitted at the same exact time, to improve performance. Is there something I should change to get this to happen?
Thanks,
Scott

Unfortunately, we do not have the option to remove queries. This report is "the" essential report for my client...and it covers lots of different areas. Politically no chance to reduce the scope of the report...and I've already jumped through hoops to combine queries where practical.
Might have to think about returning to my original design - which was to have Answers queries to pull the data, then source those instead of hitting the BI server directly. At least on a dashboard page, if I have all ten queries, all ten will update simultaneously.
Thanks for the info, appreciate the help,
Scott

Similar Messages

  • Multiple running queries at the same time

    Hi!
    I looked around (and RTM) for this but didn't find anything, so I'm asking here.
    I have quite a few long running queries (data loading and such things, warehousing stuff), and I need to be able to run multiple queries/statements at the same time. In TOAD I can do this, start a procedure and while it is running I can do SQL statements in another session tab (it supports threaded sessions - it starts queries in their own background thread/session).
    When I start a long running procedure or query in SQL Developer I can not do anything until the procedure execution finishes. Is there any way (setting/preference) to enable SQL Developer to be able to run multiple queries at the same time?
    I really would like to move away from TOAD, but this is a major showstopper for me.
    Thanx for any tips.
    Alex

    Hi!
    This post is going to be a little longer, but I have to clarify things out.
    I did not mean to throw any wild accusations, because I did my fair share of RTFM and searching the help. I can tell you that if you put any of these in the help search box:
    session
    non shared
    non-shared
    connection
    concurrent <- I guess this one should yeld something
    multiple
    spawn
    you won't find anything usefull, the article that comes closest, is this:
    "Sharing of Connections
    By default, each connection in SQL Developer is shared when possible. For example, if you open a table in the Connections navigator and two SQL Worksheets using the same connection, all three panes use one shared connection to the database. In this example, a commit operation in one SQL Worksheet commits across all three panes. If you want a dedicated session, you must duplicate your connection and give it another name. Sessions are shared by name, not connection information, so this new connection will be kept separate from the original."
    It does not mention any spawning of non-shared connections from the current one, nor it does mention using a accelerator key combo. But since there could be written something about it, I guess you could call it a documentation bug, because it does not provide any clue to this functionality. The help is definitely of no help in this case. As you can see, I do not throw accusations without trying to find out something first. I guess if someone is not as deep into SQL Developer as you are, there is no way for him/her to know this.
    OK, I tried your suggestion, and (sadly) it does not work as I suppose it should.
    Here's what I did:
    - start a new connection, and enter the following code in SQL Worksheet:
    declare
    j number;
    begin
    for i in 1..1000000
    LOOP
    j := sin(i);
    end LOOP;
    end;
    As you can see, it doesn't do much besides holding the connection busy for a while when executed.
    - start a new non-shared connection from the first one using CTRL-SHIFT-N (as you suggested) and put the following statement in the new SQL Worksheet (with "__1" appended to connection name)
    select sysdate from dual;
    - go to the first SQL Worksheet and execute the procedure
    - while the procedure is executing, go to the second SQL Worksheet and hit F9.
    The sysdate is returned as soon as the first SQL Worksheet finishes and not any sooner. It may run in separate session, but the result is not returned before the other session is finished doing what it is doing. I guess the correct behaviour would be to return the sysdate immediately.
    I verified this behaviour repeating it 3 times starting with a new instance of SQL Developer, each time connecting to another schema and spawning the new non-shared session. The database used was Oracle 10.2.0.3 EE on RHEL 4 UPD3.
    The concurrent execution lacks concurrency. The statements might be executed concurently on the database (i did not went the extra mile to verfiy this), but the returning of results is just not independent of other sessions. To the end user this is as much concurrent as it is serial execution.
    I hope developers get this issue straightened out soon, as I said, I'd love to move away from Toad, but I'll have to wait until they fix this out.
    Is there anything else that can be done to make it behave correctly?
    Kind regards
    Alex

  • Running ejbc concurrently

    I have to generate a set of EJB jars for our project. There is no
    ordering dependency, so I would like to try creating them in parallel.
    I know that Weblogic ejbc uses a cache directory. I'm concerned that
    concurrent instances of ejbc may not cooperate if they are using the
    same cache dir. I know that there are parameters specify cache
    directories for IIOP and RMI related functions, but I do not believe
    that there is one for specifying the primary cache directory.
    Does anybody have experience with running ejbc concurrently ?
    Thanks,
    John Broderick
    System Analyst
    Fedex Ground
    [email protected]

    Unfortunately, we do not have the option to remove queries. This report is "the" essential report for my client...and it covers lots of different areas. Politically no chance to reduce the scope of the report...and I've already jumped through hoops to combine queries where practical.
    Might have to think about returning to my original design - which was to have Answers queries to pull the data, then source those instead of hitting the BI server directly. At least on a dashboard page, if I have all ten queries, all ten will update simultaneously.
    Thanks for the info, appreciate the help,
    Scott

  • How to run a Concurrent Program from the back end?

    Hi,
    How to run a Concurrent Program from the back end?
    Is it Possible to see that Concuurent Request id which we run from the back end, in the front end?
    If yes, then Please Give reply how to write the code
    Thanks in Advance,
    Bharathi.S

    This is documented in Chapter 20 of the Application Developers Guide http://download.oracle.com/docs/cd/B53825_03/current/acrobat/121devg.pdf. These MOS Docs also have some information available
    221542.1 - Sample Code for FND_SUBMIT and FND_REQUEST API's
    235359.1 - How to Launch Planning Data Pull MSCPDP using FND_REQUEST.SUBMIT_REQUEST
    HTH
    Srini

  • Error while running through concurrent programme

    Hi Everyone,
    I have a report in report builder which is based on a View.
    Its working fine in report builder but when i register the report and try to run
    using Concurrent request,
    Its throwing an error saying
    "View Does Not Exist"
    Any suggestions?
    Thanks
    --Kumar                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Thank you u were right.That issue resolved.
    But now i have one more problem.
    As my report has 18 columns in the output, i have increased the width and height of the report to 180 and 50 and section width and height to 18 and 10 and set the orientation to LandScape.
    Its working fine in the report builder but when i run it in the application, its giving me an error saying that
    "REP-1212: Object Body is not fully enclosed by its enclosing object."
    Any suggestion on this.
    Thanks in advance.
    --Kumar                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Sourcing : Error while Running Java Concurrent Program

    Hi All,
    Navigations:
    Application: Sourcing
    Responsibility : Sourcing Buyer
    Concurrent Program : Generate and Store Sourcing response spreadsheet
    I am trying to run
    Java Concurrent Program : Generate and Store Sourcing response spreadsheet in SRS Window,
    it completed with Error status.
    Please let me know How can I run this Concurrent Program with Normal status and able to view/save the Output.
    Please provide resolution on this.

    Thanks for your reply..
    Program: Generate and Store Sourcing response spreadsheet
    ShortName: PON_EXPORT_RESPONSE
    Application: Sourcing
    Executable: ExportResponseCp
    Method: Java Concurrent Program
    Responsibility : Sourcing Buyer.
    Has this ever worked? If yes, any changes been done recently?
    => No
    Is this the seeded concurrent program or a custom one?
    => Its seeded program.
    EBS: R12.1.3
    Login as Sourcing Buyer Responsibility :
    When you create RFQ and then Close RFQ and then create Surrogate quote and after you Export the Spreadsheet in SelfService Pages it generates the output.
    But if You run the concurrent program (Generate and Store Sourcing response spreadsheet) it errors out.
    Error : Exception in thread main java .lang.stringIndexOutOfBoundException:
    Thanks..

  • Format changing after running the concurrent program for indentation

    Hi
    I have got an issue regarding indentation in rtf template. Actually in the template I have indentation or numbering in one format like david but after running the concurrent program in the temlate output I am getting the numbering in Latin letters. like
    I
    II
    III
    etc.
    can anyone please send me the resolution for this issue.
    Thanks and regards
    kk

    What is the application release?
    If you are on 11i, please make sure you have (Patch 8198363: INDENTATION PROBLEM WHILE GENERATING RTF OUTPUT USING RTF TEMPLATE) applied and check then.
    Thanks,
    Hussein

  • Java.lang.OutOfMemoryError when running java concurrent program

    Hi,
    i had written a java concurrent program to create the content items into Oracle Content Manager (OCM). Process the records from interface table and create the content items into OCM by calling the API IBC_CITEM_ADMIN_GRP.upsert_item().
    I run the concurrent program with 2000 records in interface table, it's an one to one process, 563 records are processed and 563 content items are created successfully in OCM. After 563 records continuously throws the Exception
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.put_line('EX - bundle validation others--');
    x_return_status := FND_API.G_RET_STS_ERROR;
    FND_MESSAGE.Set_Name('IBC', 'A_BUNDLE_ERROR');
    FND_MESSAGE.set_token('SITUATION', 'VALIDATION');
    FND_MSG_PUB.ADD;
    IF IBC_DEBUG_PVT.debug_enabled THEN
    IBC_DEBUG_PVT.end_process(
    IBC_DEBUG_PVT.make_parameter_list(
    p_tag => 'OUTPUT',
    p_parms => JTF_VARCHAR2_TABLE_4000(
    'x_return_status', '*** EXCEPTION *** [' || SQLERRM || ']'
    END IF;
    in IBC_CITEM_ADMIN_GRP.validate_attribute_bundle() API.
    Again running the concurrent program it process another 563 records. Can any one help me to fix this issue?
    i figured out the exception. When debug the error, i got the actual error message like this
    ORA-29532: Java call terminated by uncaught Java exception: java.lang.OutOfMemoryError
    ORA-29532: Java call terminated by uncaught Java exception: java.lang.NullPointerException
    ORA-29532: Java call terminated by uncaught Java exception: java.lang.ArrayIndexOutOfBoundsException: -2048 < 0
    for this issue i increased the heap memory size up to 1024MB. Still i have the same issue. Can any one help to fix the issue?

    ORA-29532: Java call terminated by uncaught Java
    exception: java.lang.NullPointerException
    ORA-29532: Java call terminated by uncaught Java
    exception: java.lang.ArrayIndexOutOfBoundsException:
    -2048 < 0Aren't the null pointer and arrayindexoutofbounds, the ones which you get when you are trying to read beyond your array? (example: when your loop tries to access the 563rd element in your array, since your array index starts from 0)?
    May be if you can try to write out your elements in the array, you might see what it is croaking about.
    Thanks,
    Chiru

  • How to get the list of long running queries

    hi,
         my requirement is to get the list of long running queries in bi and also what are the steps to reduce running time of quires.
    thanks.

    Hi Venkat,
    The statistics information will give you time the query takes while opening it
    For Eg,with BEx Analyzer,you have an option in Global Settings->Display Statistics.
    If you open a query from backend in Analyzer,and then click "Display Statistics",it will show the amount of time it takes to load it.
    Other than this there might be some tcodes available to read this value.
    Rgds,
    Murali

  • Running Report Concurrently (In background)

    Hello every Body,
    In my oracle forms application I have one report that takes long time to finish.
    Can I run it concurrently so the user can continue using the application until the report finish ?
    Any HELP please.
    I am using Oracle developer suite 10g.
    Thanks and regards.
    Edited by: awad on Sep 15, 2012 3:33 AM

    Thank you Prabodh,
    I use this code to run the report :
    Begin
      Repid := Find_Report_Object('Myrep');
      Set_Report_Object_Property(Repid,Report_Execution_Mode,Batch);
      Set_Report_Object_Property(Repid,Report_Comm_Mode,Asynchronous);
      Set_Report_Object_Property(Repid,Report_Destype,'Cashe');
      Set_Report_Object_Property(Repid,Report_Filename,P_Repname);
      Set_Report_Object_Property(Repid,Report_Desformat,P_Desformat);
      Set_Report_Object_Property(Repid,Report_Server,L_Report_Server);
      V_Rep       := Run_Report_Object(Repid,P_Pl_Id);
      Rep_Status := Report_Object_Status(V_Rep);
      While Rep_Status In ('RUNNING','OPENING_REPORT','ENQUEUED') Loop
              Rep_Status := Report_Object_Status(V_Rep);
      End Loop;
      If Rep_Status = 'FINISHED' Then                        
          Web.Show_Document(L_Apps_Server||'/Reports/Rwservlet/Getjobid'||Substr(V_Rep,Instr(V_Rep,'_',-1)+1)||'?'||'Server='||L_Report_Server,'_Blank');
      Else
          Msg_Alert('Error When Running Report');
      End If;
    End;This code is written in a form Procedure under program units node.
    The problem is in the While loop that check fro the status. There is no way to execute this procedure (or the while loop and Web.Show_Document portion) Asynchronously (in other thread or process ) without using command line ?
    Edited by: awad on Sep 16, 2012 2:37 PM

  • Re: Probelems running queries in SQL Developer

    I used to be able to run queries in SQL developer without any problems but now I get the followin message whenever I try to run a query
    "Could not initialize class oracle.sql.CHAR"
    p.s. I also get this: "oracle.i18n.text.converter.CharacterConverterOGS.getInstance(I)Loracle/i18n/text/converter/CharacterConverter;"
    Edited by: user564155 on Jul 26, 2010 1:49 PM

    Might be corrupt settings; backup/delete the SQL Developer/systemXXX directory in the hidden Application Data under your Windows profile to reset your installation to defaults.
    Else, if you run from \sqldeveloper\bin\sqldeveloper.exe, what output do you get in the opened console when starting up and querying? This could help diagnosing the problem.
    Hope that helps,
    K.

  • Running queries coming from different systems

    Hello All
    I have a scenario,
    We are using BI version 7.0,
    The requirement is to  run queries in BEX analyzer coming from 2 different SaPBW systems.
    For example :
    We have two  BW systems A and B,
    In the First tab  we have query running based on the BW system A and in the second tab query running on Bw system B.
    When we try to run the second query in the second tab the first query vanishes,
    Can anybody help me, is it possible to run the 2 different queries from different systems???
    Regards,
    Ravi

    Hi Ravi,
    Even using RRI you will not be able to combine reports from different systems in single workbook. RRI is generally used for Summery to detail level reporting. In such scenarios from first report you click on particular characteristic and other details related to this characteristics are shown in different report coming from any other source.
    If you want this kind of report to run then either you will have to build a Virtual provider in one of the BI system making source as another system and then create a query and use it in same workbook.
    In this way your report might take some time to execute but you don't need to load all your data from one system to other.
    Regards,
    Durgesh.

  • Running Queries

    Hello All,
    I am faced with a peculiar situation.
    I am on BOXI3.1 SP2 with Windows Server 200R2 as OS and its  a clustered and distributed environment.
    I have a large number of reports which have multiple queries (which is quite natural).
    So when you open a report to refresh data interactively we generally click on "Run Queries" to refresh the entire report.
    But some of my over zealous users click on the dropdown and refresh only some of the queries and then start complaing that the report is not refreshing properly.
    So we decided to do something that they only see run queries not the individual ones. How can i resolve the situation.
    Earlier i thought I may change something on the XML and the dropdwon won't be visible but then I realised if i do that it will be applicable for all users. So we want it only for a certain group of users.
    Can anybody help ?
    Regards
    Sid

    Hi Sid,
    I don't think there is a way for you to do this in the out of the box product.  I think the easiest thing to do would be to put a big text box on the top of each report that states that the report requires ALL queries to be refreshed in order for it to show the correct data.
    This is really a user education piece and is not something that the security model accounts for.  In order for you to change this behavior based on groups, a right would have to be associated to that behavior and it doesn't appear that one exists at this point.
    Honestly, I think the easiest way to fix this is to have it stated on the report.  The next best way would be to have your users view instances of the document that has refreshed all the queries.  This limits the hits on your database and avoids this confusion.  You could remove the refresh rights for these groups and setup recurring schedules that they can view and work with, but cannot actually refresh the data on.
    I know this probably won't fit your scenario exactly, but just wanted to throw that out there.
    Jb

  • Script for gather and store the log running queries details in a table?

    Hi All,
    Please suggest the best query that gather and store the long running queries details in a table.
    Thanks,
    rup

    The below links would help you...
    Ben Snaidero
    performance-dashboard

  • Running scripts concurrently from various workstations(OTM)

    We have a server setup for OATS and we are accessing the OTM given by admins. But when when we submit the scripts from workstation the playback is running on server not on workstation.
    what setup is required on workstations to see the script playback on workstation only when run from OTM. I have 5 workstions where I need to run scripts concurrently.
    We are using OATS 12.2 and this is for Oracle EBS functional testing
    Thanks

    Hi,
    You have to add machines in OTM server. During execution, you have to give execution in client machine.
    Cheers,
    Deepu M

Maybe you are looking for

  • Could not complete the liquify command because of a disk error

    PSE 13 displays the above message when I try to use the Liquify filter. There are no disk errors on my machine. Other Filters (but not all) also fail to open. Any suggestions please.

  • Custom Ribbon tab does not show in generic list

    Hi. I'm deploying the following definiton on a generic list, but the new custom tab does not show up. Anyone that can see what I have done wrong? Thanks! <Elements xmlns=”http://schemas.microsoft.com/sharepoint/“> <CustomAction Id=”Ribbon.MyTab” Titl

  • Cheque and payment advice through different printers

    Hi , We need to print cheques and payment advice through different printers , for both the above documents we are using z programs .... Both get printed at the same time ,whenever a cheque is printed a payment advice is also printed . any idea how to

  • HT204053 it need to pay for using icloud account?

    If i have already icloud account on iphone 4s but i can not use for sending mail..so do i need to pay for this service?

  • Disc drive ejecting dvd media

    the drive in my Imac G5 2.1Ghz will not hold blank media disc in it they don't show in the finder i place them in to the computer slot drive less then a few minutes it ejects the disc. I have tried to rest the smu/pmu , the PRam , i even went as far