stop a running query

Hello

can we add a report stop button?

Help, please

HEMU

HEMU wrote:

I sent a report which takes a lot of time.

the report is a bit complicated and forced it to take a while.

I want my user to give the possibility to stop the report between the two if he/she wants to

It is not possible. There is no "in between" where the report query can be stopped. If the execution of the report during the page query see the transformation then there is nothing the user can do until the page request is completed. If the query runs asynchronously in response to an AJAX call triggered by paging or dynamic action of refreshment, then it would be theoretically possible to send an asynchronous request to kill the session of database in which the query is running, but it's complicated, messy and has all kinds of consequences.

If the report is too slow, then you have 3 options:

  • Make it faster
  • Do it differently (for example using materialized views)
  • Run in the background and notify the user that it is ready, for example using a scheduler process to create a collection of APEX and reports on it then. (Note that the previous method of APEX_PLSQL_JOB for execution of background process is obsolete from the APEX 5.0)

Tags: Database

Similar Questions

  • I installed Security Essentials and it causes Defender to stop the run.

    * Original title: Security Essentials

    I installed Security Essentials and it causes Defender to stop the run. The only way I can turn the Defender needs to restore my computer to before Security Essentials. I tried twice and got the same result.

    Security Essentials replaces the Defender?

    I am running Vista.

    Thanks Len H

    You are right.  MSE (Microsoft Security Essentials) in Windows XP, Vista and 7 can be used instead of Windows Defender.  They can not be activated at the same time.

    https://blogs.Microsoft.com/Cybertrust/2013/11/14/Windows-Defender-and-Microsoft-security-essentials-which-one-do-i-need/

  • Is it possible to stop a running application and uninstall it

    Hello

    From an application, I created a new codemodule and ran another application (HelloWorld.cod) by using - ApplicationManager runApplication() method.

    Now on certain events (for example the application that ran HellowWorld out).

    (a) I want to stop the running application - HelloWorld. Is there a possible way?

    (b) once the application is stopped, is it possible to uninstall?

    Thanks in advance.

    POOJA-

    Yes you are right... Could you solve the thread now ?

    See you soon...

  • "Error running query: the real member does not exist in the application.

    Hi all

    I have a HFM EN users need to run, but somehow they started getting this error "error running query: real member does not exist in the application". I traced their levels of access to mine, and I am able to run the same report without any problem but the user still getting the same error. what may be the possible cause. Please help me so that I can ensure the debugging.

    Thank you

    Zitouni

    I was able to solve this problem by checking the user of security principals class was trying to run the report for. The user did not have acesss on the class of the said security and change all, solve the problem.

    Thanks, Sattu

  • Characters not visible (caused by hitting the bar space or TAB in PL/SQL developer tool) causing slow running query? and database with low performance?

    Hi all

    I need your help to get this issue resolved its urgent and I'm not able to get to the conclusion. Here is my scenario, I'm getting slow query runs because of some non-visible characters that are copied with the application of the PL/SQL developer tool. Please find below attached screenshot: Oracle_Issue

    Oracle_Isssue.png

    Note: This non-visible characters are caused when we write the query then us hit the SPACEBAR or press TAB PL/SQL developer tool

    I use the developer tool PL/SQL to write or test the query. Now I take this request copy paste in my application of the company (who takes this query connects to Oracle or any source of data base, catch data and produce PDF reports for customers).

    Now, my client is the Oracle user when I write and you run this query by the PL/SQL Developer, it works fine, but when I paste in my Inbox feature request (reporting system) and run it, it runs slower and jams to the customer database. Now after a little research I found that when I copy the query directly from PL/SQL developer at my request, he copy some characters not visible (introduced when we press SPACE or TAB in PL/SQL developer tool when writing query) with the request, then I copy this query again to my box of the application Notepad and delete these non-visible characters. Now, after removing the non-visible characters again once I copy backup question in my application and run the query, it works normally. Please find below attached screenshot: Oracle_Issue 2

    Oracle_Isssue_2.png

    So I think that the cause of slow performance is due to some INVISIBLE CHARACTERS present in the query.

    My application uses SQL server 2008-2012 at the backend to store data from different sources.

    Character set used: SQL_Latin1_General_CP1_CI_AS


    To write and test queries: PL/SQL developer tool

    My Client use Oracle 11 g

    Character set used: Normal character: NLS_CHARACTER: AL16UTF16

    National Characeter: NLS_NCHAR_CHARACTER: WE8WIN1521

    I just wanted to know the blocking process to the top of the database and the characters not visible how affecting slow running query of query database.

    Please let me know if I'm missing something or you need more information on this issue.

    Thanks in advance,

    HP

    Simple answer. No.

    Spaces and line breaks do not change the execution plan created. Does not plan to run slower or faster.

  • pre-requete and key-run-query

    Hi all

    one who fires first

    KEY-RUN-QUERY FIRES BEFORE PRE-REQUETE or vice versa?

    Thank you

    newbi_egy wrote:

    What do you mean with "obvious developer.

    1. I hear of course developer KEY-EXEQRY integrated call/write EXECUTE_QUERY trigger to run the query.

    2. This is in all versions, same behavior except the shortcut key to run the query in 6i F8 in 11 g Ctrl + F11

    3. it's Ok, it should be that way. This is correct behavior.

    You can test this way

    1 al ' KEY-EXEQRY

    message('KEY-EXEQRY');

    message('KEY-EXEQRY');

    EXECUTE_QUERY;

    2. in the previous QUERY

    message('PRE-QUERY');

    message('PRE-QUERY');

    3. press F8 or Ctrl + F11 to run the query based on you form version

    Result:

    First Messenger KEY-EXEQRY

    Second QUERY before displaying the messages

  • Cannot run query because of RepositoryException

    Hello
    I'm new to this product.
    I am customizing the application of CRS. I want to create a point in ProductCatalog descriptor and must insert some properties. Here is my custom .xml

    <? XML version = "1.0" encoding = "UTF-8"? >
    < gsa-model >
    < name point-descriptor = "check_inv" >
    < table name = "My_DCS_SKU" type = "primary" id-column-name = "sku_id" >
    < property name = data type "inventory_status" = "string".
    column-name = display-name-resource "INVENTORY_STATUS" = "inventory_status" default = "InStock" / >
    < property name = data type "sku_id" = "string".
    column-name = display-name-resource "sku_id" = "sku_id" / >
    < /table >
    < / descriptor point >
    < / gsa-model >

    With this XML, I am able to see my newly added and point-descriptor properties in dyn/admin(in ProductCatalog). Even if I am able to check the values of these properties in dyn/admin.

    But in jsp when I get the inventory_status, I get an exception:
    Cannot run query because of the RepositoryException: atg.repository.RepositoryException: no property named 'sku40145' could be found in the descriptor of the item "check_inv".


    I added the following code in jsp.



    < name dsp:droplet = "/ atg/dynamo/drop/RQLQueryForEach" >
    < name dsp:param = "queryRQL" value = "sku_id = sku40145" / >

    < name dsp:param = "repository".
    value = "/ atg/commerce/catalog/ProductCatalog" / >

    < name dsp:param = "itemDescriptor" value = "check_inv" / >

    < name dsp:oparam = "output" >

    < p > < dsp:valueof param = "element.inventory_status" / >
    < / dsp:oparam >
    < / dsp:droplet >

    Please suggest me how to get rid of this problem?
    I use ATG10.1.1


    Thank you
    Phanie

    Published by: 995229 on March 21, 2013 02:21

    try to use a parameter for the value of your sku_id-

    and use the param below-

  • When you click on the Cancel button, avoid running query

    Hello

    I'm going to the jsff a page to another at the click of a button

    In the second page I go back to the 1st page when the Cancel button is clicked
    But when clicked on this button cancel my request get rerun and takes a long time to come back on the 1st page
    This is a read only vo interview... How can I avoid running query on a button click Cancel

    Thank you

    Real question is: "why is your query run when you press the Cancel button?
    If your application is already running on the first page, this should not happen unless you:
    -to perform an operation on the Cancel button that runs the query
    -changed "Refresh" of your iterator property
    -perform rollback

    Dario

  • Problem running query.

    Hello

    I have the below slow running query.

    Please suggest / give your input on the reduction of the time for this request

    ENV: Oracle 10.2.0.4.0


    SELECT *.
    OF GMS_NOTE g
    WHERE g.SEQ_ID =
    (SELECT MAX (B.SEQ_ID)
    OF GMS_NOTE gn
    WHERE the gn. HIST_ID = g.HIST_ID)
    AND SUPERIOR (SRC_ID) =: SYS_B_0
    AND SUPERIOR (SAL_CODE) =: SYS_B_1
    AND TRANS_DATE > = TO_DATE (: SYS_B_2, SYS_B_3);




    PLAN_TABLE_OUTPUT
    -------------------------------------------------------------------------------------------------------------------------
    Hash value of plan: 4245552679

    ---------------------------------------------------------------------------------------------------
    | ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |
    ---------------------------------------------------------------------------------------------------
    | 0 | SELECT STATEMENT | 1. 402 | 57739 (1) | 00:11:33 |
    |* 1 | FILTER |
    |* 2 | TABLE ACCESS FULL | GMS_NOTE | 1. 402 | 57736 (1) | 00:11:33 |
    | 3. GLOBAL TRI | 1. 10.
    | 4. FIRST LINE | 3. 30. 3 (0) | 00:00:01 |
    |* 5 | INDEX RANGE SCAN (MIN/MAX) | GMS_NOTE_PK | 3. 30. 3 (0) | 00:00:01 |
    ---------------------------------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):
    ---------------------------------------------------

    1 - filter("O".") SEQ_ID "IS (SELECT MAX ('B'.". SEQ_ID") OF
    "GMS_NOTE" 'B' WHERE 'B '. "HIST_ID"=:B1))
    2 filter (UPPER ("SRC_ID") =: SYS_B_0 AND UPPER ("SAL_CODE") =: SYS_B_1)
    AND 'TRANS_DATE' > = TO_DATE (: SYS_B_2,: SYS_B_3))
    5 - access("B".") HIST_ID "(=:B1)"

    21 selected lines.



    Index / row count information for the GMS_NOTE (not partitioned table):

    His stats are up to date.

    Select count (*) in the GMS_NOTE;


    COUNT (*)
    ----------
    4858242



    CREATE A UNIQUE GMS_NOTE_PK ON GMS_NOTE INDEX
    (HIST_ID, SEQ_ID);


    CREATE INDEX IDX1_BIDFEEDORDER ON GMS_NOTE
    (HIST_ID, UPPER ("SRC_ID"), UPPER ("SAL_CODE"), TRANS_DATE);


    ALTER TABLE GMS_NOTE ADD)
    CONSTRAINT GMS_NOTE_PK
    KEY ELEMENTARY SCHOOL
    (HIST_ID, SEQ_ID)
    WITH THE HELP OF INDEX GMS_NOTE_PK
    ENABLE VALIDATE);

    Thanks in advance.

    user13517642 wrote:
    Thanks Nikolay.

    I created an index on the trans_date column, and it is originally a range of indexes on the table instead of a table scan full scan.

    I'm not Nikolai, but you're welcome. ;)

    Now turn this trans_date the composite index index, I suggested, for an even better improvement.

  • How to remove a discoverer report that has a status of running query

    Hello

    How to remove a discoverer report that has a status of running query

    Thank you

    Hi 925907,

    I think you would work with your DBA to kill the session associated with the workbook running.

    A query like this will provide your DBA with all the necessary information, it must:

    Select
    vs.*
    Of
    v$ session vs
    where
    vs. Program like 'dis51ws@% ';

    After the session was killed, it is a deletion of standard workbook (select file > open workbooks, and then right click on the name of the workbook, and then select delete).

    Patrick

  • How export (unload) result of the query without running query on sql developer

    Hello

    I want to know how export (unload) result of the query without running query on sql developer.

    I know this way.
    1. execution of query
    2. click on "Download" on the results tab
    http://i.stack.imgur.com/CQ4Qb.jpg


    Is he available unload a query result before the race?

    No, but you can do this ask the developer SQL change however, for other users can vote and add weight to the possible future implementation.

    Kind regards
    K.

  • Payroll Run query does not appear on the payroll LOV

    Hi all

    Am on 12.1.3
    DB - 11 GR 1 material

    Wen, trying to run on PAYROLL:
    FACE below error:
    Payroll Run query does not appear on the payroll LOV


    Thank you

    Please post the exact name of the simultaneous program you want to submit as well as all the parameters.

    I understand that you get an error when you try to select the LOV to pass parameters, right?

    If the program has not yet been presented, then it is an expected behavior not to find any file of log/output.

    Please see if these MOS Docs Help.

    Simultaneous request for payroll, payroll name Lov for payroll run Erros: APP-FND-1436: the list of values can not find all the values for you to choose [333524.1 ID]
    Payroll run parameter list of values (LOV) in the process "Retry Payroll Run" does not display any values [1368390.1 ID]

    Thank you
    Hussein

  • Error running query of queries

    Hello

    I am in the process of updating my site in CF5 to CF9 and I get a "query of query error" on the following code each time I have add the first point to my shopping cart. If I add a second element, the error disappears. Here are two pieces of keys to the code where I pull the item from the database information and then use the query requests to merge the query with the amount of shopping cart.

    <!-get-> Product Details

    < CFQUERY NAME='GetDetails'

    DATASOURCE = ' #request.ds # '

    Username = ' #request.dsuser # '

    PASSWORD = ' #request.dspass # ' >

    SELECT
    ItemNo,

    Agenda,

    Grades,

    Price,

    ImageSmall

    DE Products
    ItemNo IN (#QuotedValueList(GetCart.ItemNo) #)
    < / CFQUERY >

    <!-add the column "OrderQty"->

    < CFQUERY NAME="GetList" DBTYPE="query">

    SELECT
    GetDetails.ItemNo YOU ItemNo,

    GetDetails.Item point, AS

    GetDetails.Grades AS Grades,

    AS price, GetDetails.Price

    GetDetails.ImageSmall AS ImageSmall,

    GetCart.Quantity AS OrderQty

    DE GetDetails, GetCart
    GetDetails.ItemNo = GetCart.ItemNo
    < / CFQUERY >

    This is the error I get. The line number refers to the Q of Q above.

    Error running query of queries.

    Comparison = runtime exception.
    Comparison of Type incompatible Exception: on the left side and right side of the comparison operator "=" have incompatible types.
    Type of expression left side = "VARCHAR".
    Expression type side right hand = "DATE".

    I tried a lot of things affect a 'string' type to the right, but nothing seems to work.

    I would be very happy any help that I can get as I've spent countless hours trying to figure this.

    Thank you
    Steve

    Looks like the GetCart query is generated with functions to query coldfusion as opposed to a database query.  It also seems that the QueryNew function has the names of the fields, but not the types of data.  This means some trys to ColdFusion for the type of basic data on the first rows of data.

    Or it could be something else.

  • Running query automatically by activating a form already open...

    Hello
    I have developed two forms... formed called formB (using the built-in function open_form passing certain parameters...).
    I want to run query automatically on a block of retail of formed when formB leaves (.. .then formA remains the only open form).
    I wrote a code of the trigger WHEN-WINDOW-ACTIVATED on formed... and it works...!
    but the user has to click on any element of this form...
    Is there another way...?

    Note: I use Dev2000 v6i with patch 12 applied...
    Thank you very much
    SIM

    sgalaxy wrote:

    I wrote a code of the trigger WHEN-WINDOW-ACTIVATED on formed... and it works...!
    but the user has to click on any element of this form...
    Is there another way...?

    Try using a GO_ITEM in your method instead of the user manually clicking on one, that might work.

    Tony

  • Error running query database

    I have a web application written in CF8 with Oracle 11 g as primary server. This application has been used very often for over 6 years. Currently, I'm moving to CF10 and you only a small code change CF. When I ran the new application in my test server, everything seems to work fine except when it calls an Oracle Package. This action generates an error: error running database query the strange thing is all work before and after the call to the procedure, I tested using cfabort this Package Oracle still works in the production server (CF8), but not when it is called by CF10. My question is: are there changes for CF10 when you call a procedure? or is there any fix that I don't know? The code is as follows: SELECT box trim (to_char (SYSDATE, 'DAY')) WHEN 'MONDAY' then '1' another '2' end HAVE double TodaysDate

    SELECT Count (other_id) AS NoRecFound FROM gl_dup_ids_ssns WHERE Trim (create_date) =

    SELECT Count (other_id) AS NoRecFound FROM gl_dup_ids_ssns WHERE (create_date) = CF Trim codes to stop the process and email admin

    Error performing query of database appears when it hit to run cfstoredproc. The codes are exactly the same that in CF8, this model has not been changed. Exceptions 14:03:53.053 - database Exception: in /home/space/users/www/GL/glproc.cfm: line 93 runtime error query database.

    I found the answer! In case someone out there also face the same question. In Administrator, Datasource Advance, go down and find: authorized SQL where there are checkboxes for Select, Update, Delete, Insert and one of them is to store the process checkbox. My box was not checked that's why ColdFusion is unable to call a stored procedure. I checked and recorded and I'm good to go.

Maybe you are looking for

  • MacBook Pro upgrade to SSD HARD drive

    I own a MacBook Pro (mid-2012) with 500 GB HARD drive and want to update on the HARD drive. I want it to start as a new laptop after recovery. I don't want to back up my data. So, if I insert my new Samsung 850 EVO (250GB) replace my mac HARD drive,

  • I'm not able to open a new tab manually. I tried to click on the new tab button and going to file and clicking on new tab. This is the case since 20:00 02/10/2011.

    I have been using Mozilla for about 4 years and never had any problems by opening a new tab manually. But since yesterday, I am not able to do. I even uninstalled Firefox and then re installed. No change.

  • Firmware 1.2.7.76 crash and the loss of the ssh keys SG-300

    Hello 2 of our 7 switches SG-300-52 updated new firmware now. Our preliminary findings: -(boring): switch regenerates it of ssh host key on every reboot. If I export the configuration, the keys can be seen, but they are apparently not stored and are

  • Sony Vaio 13 Pro power indicator

    Hello I have a question, a few days ago, my light was blinking orange when the PRO13 has been in sleepmode. But I see more. Anyone know of this feature is available in the settings? And if the laptop must always do this if it is in sleepmode? Greetin

  • IN to join

    Convert the query to join below.ID is PK. create table a( id number,flag number); insert into a values(1,100); insert into a values(2,100); insert into a values(3,100); insert into a values(4,200); create table b( id number,flag number); insert into