Send a break to interrupt a query?

With SQL plus it is possible to interrupt a long running query. This is being discussed in this thread:
Killing long running SQL query
Is something like this possible in APEX?
Rene

Hello Rene,
I've never played it my self, but in the APEX utility tab, database monitor, session section, you can see a list of sessions relevant to APEX, and you have the option to kill a session. You should check it and see if it can help you.
Regards,
Arie.

Similar Messages

  • What is the key Combination to send CTRL-BREAK Key sequence on MacBook Pro

    I need to send a CTRL-BREAK key sequence to a router via console terminal. what is the key Combination to send CTRL-BREAK Key sequence on MacBook Pro
    I can't seem to find any documentation on how to send a CTRL-BREAK sequence
    TIA

    In the Terminal application, select the 'Help > Terminal Help' menu item. In the help window that opens, click on the link 'Shortcuts for Terminal.' Scroll down to the line beginning 'Send break.'

  • SC Alert: SC Request to send to break to host

    I have a SunFire V240 server. I jumpstarted the server to solaris 10 and oracle 9i. The system jumpstarts perfectly and all files are extracted. When i reboot the client system it shows an error -->
    SC Alert: Sc Request to send to break to host
    and the system hangs at this point. I restarted the server and changed the boot setting
    auto-boot?=false.
    Now the system boots to ok prompt and stops.
    From this point it boots to single user mode easily and then we can change it to multiuser mode by issuing the init command. But when we try running the boot command from the ok prompt the system hangs again and throws junk values on pressing any key.
    There's another problem --> when running in multi user mode everything works fine like ssh, telnet but if the machine is left idle for some 1 hour the system jumps back to the ok prompt.
    Please Help !!!

    The "SC Alert" seems to be coming from the etm module which looks like it deals with the service module. You might want to look and see if the v240's firmware is current.
    http://sunsolve.sun.com/search/advsearch.do?collection=PATCH&type=collections&queryKey5=119239&toDocument=yes
    may make that problem go away.
    The second thing sounds odd. Is it precisely one hour? Maybe you have powerd configured incorrectly.

  • Ability to send the results of a report query to a table in the database

    Hi Guys
    Is it possible to send the results of a report query to a table in the database ?
    Thanks

    Yes.
    For this purpose, you can use :
    * the delivers advanced option
    http://gerardnico.com/wiki/dat/obiee/bi_scheduler/advanced_publication_delivers
    * the SOA API
    http://gerardnico.com/wiki/dat/obiee/obiee_soap_eclipse
    This two solutions need some development skills.

  • Is there any way to use Control Break in a SQL Query

    Hi,
    Is there any way to use a control break on Dept column in a SQL query to have a Output-2 instead of Output-1.
    Is there any way to modify the SQL query.
    SQL
    select dept, loc, count(*)
      from dept
    group by dept, locOutput-1
      Dept      Loc       Count(*)
      10         AA        1
      10         BB        2
      10         CC        2
      20         AA        2
      20         BB        2Output-2
      Dept      Loc       Count(*)
      10         AA        1
                 BB        2
                 CC        2
      20         AA        2
                 BB        2Thanks,
    Deepak

    DeepakJ wrote:
    Hi,
    Is there any way to use a control break on Dept column in a SQL query to have a Output-2 instead of Output-1.
    Is there any way to modify the SQL query.
    SQL
    select dept, loc, count(*)
    from dept
    group by dept, locOutput-1
    Dept      Loc       Count(*)
    10         AA        1
    10         BB        2
    10         CC        2
    20         AA        2
    20         BB        2Output-2
    Dept      Loc       Count(*)
    10         AA        1
    BB        2
    CC        2
    20         AA        2
    BB        2
    Yes, using the <tt>lag</tt> analytic function and specified ordering of the data:
    select
        nullif(d.deptno, lag(d.deptno) over (order by d.deptno, d.loc, e.mgr nulls first)) deptno
      , nullif(d.loc, lag(d.loc) over (order by d.deptno, d.loc, e.mgr nulls first)) loc
      , e.mgr
      , count(*) n
    from
        dept d
          join emp e
            on d.deptno = e.deptno
    group by
        d.deptno
      , d.loc
      , e.mgr
    order by
        d.deptno
      , d.loc
      , e.mgr nulls first;
    DEPTNO  LOC       MGR   N
        10  NEW YORK         1
                      7782   1
                      7839   1
        20  DALLAS    7566   2
                      7788   1
                      7839   1
        30  CHICAGO   7698   4
                      7839   1
        40  BOSTON    7698   2
                      7902   1

  • Breaking Date Range in Query...

    Hi Friends,
    I have a Table which calculates Leaves taken by employees. The Leave Start date and End Date is in Range. i.e. Leave is from say 10th March 2006 to 15th March 2006. I need to generate a report for each day of the Leave. I.e. report needs a record for 10th, 11th,12th,13th,14th,15th. How can I break the date range into individual dates betn that range in a SQL Query..?
    thanks a lot,
    Jalpan Pota

    You can do it with a pipelined function. I have posted Re: Quarters Missing.?? that produces a range of quarters for a given date range. You should be easily able to amend this so that it produces a range of dates. Note that you will need to create a type that is a nested table of dates.
    Cheers, APC

  • How send parameter in prerender() function for query

    Sir I use requestbean for sending data to next page
    Because want use this parameter in query
    I get data as per this parameter
    But when I call next page not pass parameter value to next page and query use blank parameter
    I write code in prerender()
    See my code
    public void prerender() {
    try {
    getSessionBean1().getTripRowSet().setObject( 1, parameter1..getValue());
    tripDataProvider.refresh();
    } catch (Exception e) {
    error("Cannot switch to person " + &#8220;no record &#8220;);
    log("Cannot switch to person " + &#8220;no record , e);
    Please give me idea how I send my parameter in prerender() function for query
    Thank&#8217;s
    aamir

    sir i try SessionBean but same as result
    sir you see my full problem
    I use studio creator
    I create two page first for sending data to other page such as user login page
    I add property in SessionBean, RequestBean and bind to data with my user name textfield
    and in next page I bind to data with other textfield
    after this I try to use this textfield use in
    public void prerender() {  
    try {
    getSessionBean1().getChartofaccRowSet().setObject(1, textfield1.getValue());
    chartofaccDataProvider.refresh();
    } catch (Exception e) {
    error("Cannot switch to person " + �noooo�t);
    log("Cannot switch to person " + �noooo�, e);
    In this line I use that textfiled that bind to data form login page
    getSessionBean1().getChartofaccRowSet().setObject(1, textfield1.getValue());
    but sir this public void prerender() {   function t not get textfield1 value in this function textfield give me null value
    but when page complete run then show value in textfield
    it mean this public void prerender() { function run befor  SessionBean, RequestBean and not get SessionBean, RequestBean value
    please give me idea how I pass value in public void prerender() { function form other page and I use this value in query
    such as example
    getSessionBean1().getChartofaccRowSet().setObject(1, textfield1.getValue());
    this is my sessionbean query
    SELECT ALL FNET.CHARTOFACC.PARENT,
    FNET.CHARTOFACC.CHILD,
    FNET.CHARTOFACC.ACCID,
    FNET.CHARTOFACC.TITLE,
    FNET.CHARTOFACC.CAMPID,
    FNET.CHARTOFACC.ACTIVE,
    FNET.CHARTOFACC.FSTATUS,
    FNET.CHARTOFACC.COMHEADID,
    FNET.CHARTOFACC.FIX_VARIABLE,
    FNET.CHARTOFACC.VARI_PER
    FROM FNET.CHARTOFACC
    WHERE FNET.CHARTOFACC.CAMPID = ?
    please give me idea
    thank�s
    aamir
    SELECT ALL FNET.CHARTOFACC.PARENT,
    FNET.CHARTOFACC.CHILD,
    FNET.CHARTOFACC.ACCID,
    FNET.CHARTOFACC.TITLE,
    FNET.CHARTOFACC.CAMPID,
    FNET.CHARTOFACC.ACTIVE,
    FNET.CHARTOFACC.FSTATUS,
    FNET.CHARTOFACC.COMHEADID,
    FNET.CHARTOFACC.FIX_VARIABLE,
    FNET.CHARTOFACC.VARI_PER
    FROM FNET.CHARTOFACC
    WHERE FNET.CHARTOFACC.CAMPID = ?

  • Req. the script for sending the rows returned by a query to my mail id.

    Hi ,
    Can anyone send me the script, for this thing.
    Actually i am working on production side, and i am executing the query which will return the rows of mview name which are not getting refreshed with the specified frequency. so i want those rows returned by query to be send to my mail id.
    Thanks a lot..
    With Regards
    Vedavathi.E

    Hello,
    Please review the following link;
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_smtp.htm#sthref15607
    Adith

  • Breaking up a long query

    Hello,
    I am creating a PL/SQL package that produces a report based on the selection of different accounts and dates from a text area and a drop down menu. When I select accounts from the text area, it should run a query to generate a report, i.e.
    if tableName = 'human' then
    sql_query:= 'SELECT distinct  date || gen || ID  || SSN || DOB || ID1 || ID2 ||
    children || address || phone || cell ||
    zip || mortgage || loans ||
    military|| race || class || sex ||
    health|| work|| occupation || dependents ||
    tax_info || travel_dates || spouse || insurance ||
    children || parents || cars || cash ||
    health_benefits || tuition || debt || family ||
    income || qol || gas_mileage ||
    age || service || CC ||
    bills || house || apt ||
    AC || DC || temperature ||
    room || BC || AD || EF ||
    FG || GH || IJ||
    KL || LM ||
    NO || YES ||
    SS || MM ||
    NM || LL'||
                         'FROM INFORMATION
                          where VERSION=('''||vs1||''') ' || 'and
                         DATE between '''||startDate||''' and '''||endDate||''' and
                         ID in ('''||accnt||''')'; 
    EXECUTE IMMEDIATE sql_query BULK COLLECT INTO query_result;
    htp.p(sql_query);
    for q in 1..query_result.count loop
    htp.p('<OPTION VALUE="'||query_result(q)||'">'||query_result(q));
    end loop;
    end;I have a few problems.
    First, the query does not get printed on the screen...the error that comes says that the identifier is too long.
    Second, the query_result does not get printed since the first problem is not solved.
    What can I do to split my query up so that it is not as long?

    Are you really concatentating that many columns? What does a simple select length of all that return? What line number for the identifier? Why not back off the htp request and try a dbms_output in a SQL*Plus session and see if at least that works?

  • Sender Adapter - Content Conversion Key Field Query

    Hi,
    I have a flat file of the following structure I am attempting to convert to XML using a file sender adatper:
    H1,H2,H3,H4
    D1,D2,D3,D4,D5,D6
    D1,D2,D3,D4,D5,D6
    D1,D2,D3,D4,D5,D6
    T1,T2,T3,T4
    Within the Content Conversion tab I have a Recordset Structure of:
    Header,1,Detail,*,Trailer,1
    i.e one header record, multiple detail records and one trailer as per the above example.
    It would seem that according to errors generated via Communication Channel Monitoring that this sort of Recordset Structure requires the Key Field Name to be set. I have searched around the forum and looked at the help.sap.com site and I'm struggling to understand what is required here.
    Anyone help ?

    >>It would seem that according to errors generated via Communication Channel Monitoring that this sort of Recordset Structure requires the Key Field Name to be set. I have searched around the forum and looked at the help.sap.com site and I'm struggling to understand what is required here.
    Yes you need to set key field value for your Header, Detail and Trailer
    Example:
    Header.keyFieldValue    H1
    Detail.keyFieldValue     D1
    Trailer.keyFieldValue   T1

  • Break string using unique query

    Hi
    I have data as
    SQL> select  T1.USUARIO, T1.departamento, t1.acao
      2    from SIBTB_PERMISSAO  t1
      3    where t1.acao in ('SIBPED','SIBCOM','SIBPED','SIBFIN')
      4    and t1.usuario = 'umlanton'
    SQL> /
    USUARIO              DEPARTAMENTO                                                                     ACAO
    umlanton             '25','26','27','28','29','66','67','68','69'                                     SIBFIN
    umlanton             '25','26','27','28','29','66','67','68','69'                                     SIBPED
    umlanton             '25','26','27','28','29','66','67','68','69'                                     SIBCOMI musto to break data in unique queyr show data as:
    umlanton          25     SIBFIN
    umlanton          26     SIBFIN               
    umlanton          27     SIBFIN
    umlanton          28     SIBFIN
    umlanton           29     SIBFIN
    umlanton           66     SIBFIN
    umlanton           67     SIBFIN
    umlanton           68     SIBFIN
    umlanton           69     SIBFIN
    umlanton          25     SIBPED
    umlanton          26     SIBPED               
    umlanton          27     SIBPED
    umlanton          28     SIBPED
    umlanton           29     SIBPED
    umlanton           66     SIBPED
    umlanton           67     SIBPED
    umlanton           68     SIBPED
    umlanton           69     SIBPED
    umlanton          25     SIBCOM
    umlanton          26     SIBCOM               
    umlanton          27     SIBCOM
    umlanton          28     SIBCOM
    umlanton           29     SIBCOM
    umlanton           66     SIBCOM
    umlanton           67     SIBCOM
    umlanton           68     SIBCOM
    umlanton           69     SIBCOMI do not have idea how like to begin :-(
    I see something using regular expression, but is with oracle 10.2 , I am using 9.2.02
    using oracle 9.2.02
    TIA

    using oracle 9.2.02
    SQL> with t as
    select 'umlanton' a, '''25'',''26'',''27'',''28'',''29'',''66'',''67'',''68'',''69''' b, 'SIBFIN' c from dual union all
    select 'umlanton' a, '''25'',''26'',''27'',''28'',''29'',''66'',''67'',''68'',''69''' b, 'SIBPED' c from dual union all
    select 'umlanton' a, '''25'',''26'',''27'',''28'',''29'',''66'',''67'',''68'',''69''' b, 'SIBCOM' c from dual
    select a,
           extractvalue(column_value, 'e') b,
           c
      from t,
      table(xmlsequence(xmltype('<e><e>' || trim('''' from replace(b, ''',''', '</e><e>')) || '</e></e>').extract('e/e'))) x
    A        B     C    
    umlanton 25    SIBFIN
    umlanton 26    SIBFIN
    umlanton 27    SIBFIN
    umlanton 28    SIBFIN
    umlanton 29    SIBFIN
    umlanton 66    SIBFIN
    umlanton 67    SIBFIN
    umlanton 68    SIBFIN
    umlanton 69    SIBFIN
    umlanton 25    SIBPED
    umlanton 26    SIBPED
    umlanton 27    SIBPED
    umlanton 28    SIBPED
    umlanton 29    SIBPED
    umlanton 66    SIBPED
    umlanton 67    SIBPED
    umlanton 68    SIBPED
    umlanton 69    SIBPED
    umlanton 25    SIBCOM
    umlanton 26    SIBCOM
    umlanton 27    SIBCOM
    umlanton 28    SIBCOM
    umlanton 29    SIBCOM
    umlanton 66    SIBCOM
    umlanton 67    SIBCOM
    umlanton 68    SIBCOM
    umlanton 69    SIBCOM
    27 rows selected.

  • Generate thread dump without sending ctrl-break on Win32

    I have a server application running as a service on Win2k (we use Service+ to do this). The output of the console is piped to a text file which we can monitor. But, I can't figure out how to generate a thread dump while running in this configuration. Does anyone know if Service+ can be configured to do this, or if it can be achieved programmatically (how does Sun spit out the thread info when it gets the request).
    Thanks,
    Larry

    If you are running a java application on a Windows server. You can press Ctrl-Break, and a thread dump will be displayed in the console. This thread dump is a list of all the threads running in the JVM, and the line of code they are each executing.
    We'd like to be able to generate this thread dump some other way than pressing Ctrl-Break, because we don't have a console, our application is running as a service using Service .
    Thanks for the reply,
    Larry0AThanks for the reply,
    Larry

  • Two select query in sender JDBC adaptor

    Hi
    We are doing JDFC-RFC scenario, in which i need to fetch the data from two tables (header  and item table) whch correspondes to the 2 table parameter of RFC .
    Any clues how to configure sender jdbc CC having  2 select query ??????
    Regards
    Vijay

    Swatantra,
    You can have a look at the below URL for more info on JOIN.
    http://www.w3schools.com/sql/sql_join.asp
    Best regards,
    raj.

  • Why would white space and line breaks in sql query increase runtime

    Using 11.2.0.3.0 on unix sprac server, 8 cpus 32 cores 12TB storage. We have 16 batch servers doing inserts and ~100 users doing mostly queries.
    We have a wierd issue,  we have a long query that takes 30 seconds to run 1st time then 10-20 secs every other time. Based on knowledge of DB we expected it to take a lot less.  Then a developer reformatted it by taking removing extra white space and line breaks.  all of sudden query takes 6 secs first time and 0.8 every other time.  we tripled checked to ensure they are identical and that only difference is white space and line breaks.  We tried it with SQLDeveloper, TOAD, SQLPLUS, from out desktops, appserver. we could reproduce it every time, with white space 10-20 secs without it 0.8 secs.  Query is 200 lines long with white space 30 without it.
    Why would having white space make such a dramatic difference?  because the query is longer eventhough its identical?  We checked parsing times, etc, no difference.  Is there some network setting, oracle parameter, sqlnet setting?  We spent hours looking on google and found nother
    Slow:
      SELECT grt_student.student_id                                                                                                                                                                                                 
    AS student_id,
      grt_student.last_name                                                                                                                                                                                                       
    AS last_name,
      grt_student.first_name                                                                                                                                                                                                      
    AS first_name,
      grt_buyerinstance.buyerinstance_id                                                                                                                                                                                            
    AS buyerinstance_id,
      grt_buyerinstance.buyerfamily_id                                                                                                                                                                                              
    AS buyerfamily_id,
      grt_buyer.buyerfamily_acronym                                                                                                                                                                                                 
    AS buyerfamily_acronym,
      grt_reporting_utls_pkg.convert_gmrt_battery(grt_buyerinstance.buyerfamily_id,grt_buyer.battery)                                                                                                                                
    AS battery,
    fast:
    SELECT grt_student.student_id 
    AS student_id,  grt_student.last_name
    AS last_name, grt_student.first_name   AS first_name,  grt_buyerinstance.buyerinstance_id   AS buyerinstance_id,  grt_buyerinstance.buyerfamily_id
    AS buyerfamily_id,
      grt_buyer.buyerfamily_acronym  AS buyerfamily_acronym,  grt_reporting_utls_pkg.convert_gmrt_battery(grt_buyerinstance.buyerfamily_id,grt_buyer.battery)   AS battery,

    Do you have some sort of horrific network connection between the client and the database such that it would take 8.5 seconds to transmit a few kb of SQL to the server?  That seems most unlikely.
    How are you determining the query plan?  Are you absolutely sure that both SQL statements have the same plan_hash_value when they are actually executed (not just when you generate a query plan without executing it)?  What are the differences in wait events when you execute the two?
    The sql_id will change when you add or remove whitespace.  There are various methods of modifying query plans that are tied to a sql_id.  My wager would be that you have a profile/ outline/ etc. that is not there for the reformatted one which is causing a query plan difference.  My next guess is that you have an accepted plan for the old statement, you haven't set up a process to let the plan evolve, and the reformatted statement starts with the plan that the old statement would get if you allowed the plan to evolve.
    Justin

  • Sending Email with Query Result (Table Format)

    Hi,
    I have a query result from ExecuteSQL task e.g.:
    ID Product
    1     Pencil
    2     Crayon
    3     Eraser
    I want to send an email with the above query result and I want it to be in Table format (such as in Microsoft Word with rows and column lines) to allow better readability to the receiver.
    Is it possible in SSIS?
    cherriesh

    It has to be HTML format . Read Tony's article
    http://sqlblogcasts.com/blogs/tonyrogerson/archive/2008/03/28/send-table-or-view-as-embedded-html-lt-table-gt-in-an-email-stored-procedure.aspx
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

Maybe you are looking for