Need clarify some fields in v$session

On 11g2/Redhat 5, my query returnsselect v.inst_id,sid,serial#,wait_class,event,status,last_call_et --,cast(Q.SQL_FULLTEXT as varchar(4000)) cur_sql  
  from gv$session v join gv$sqlarea Q on v.SQL_ID = Q.SQL_ID and v.INST_ID=Q.INST_ID
INST_ID  SID      SERIAL#  WAIT_CLASS       EVENT               STATUS   LAST_CALL_ET       
1        16       854      Other    PX Deq: reap credit         ACTIVE   0       
2        218      152      Idle     PX Deq: Execution Msg       ACTIVE   0       
2        592      217      Idle     PX Deq: Execute Reply       ACTIVE   0       
3        604      47       Other    PX Deq: reap credit         ACTIVE   0       
1        592      163      Idle     PX Deq: Execution Msg       INACTIVE 6181        
3        400      15       Idle     SQL*Net message from client INACTIVE 7321    
1        598      510      Idle     SQL*Net message from client INACTIVE 272     
2        16       66       Idle     PX Deq: Execution Msg       INACTIVE 6181       
3        217      100      Idle     PX Deq: Execution Msg       INACTIVE 713     
3        16       52       Idle     PX Deq: Execution Msg       INACTIVE 3882     I know that these session are all SQL Developer sessions and are currently doing nothing. But if I know mothing about the sessions, how can I tell from this query which session is true INACTIVE or INACTIVE. The first 4 ACTIVE sessions are NOT executing SQL.
My task is not to kill the INACTIVE session but is to look at those true active sessions and figure out which of them are causing performance problem. V$SESSION just return too many sessions, so that I want filter out the true inactive ones.
Thanks.

figure out which of them are causing performance problemYou could query V$SESSTAT to determine activity.
Note that V$SESSTAT information for a session is cleared when the session is closed -- e.g. by a logout. Another session may be allocated the same SID when it does a login. Also remember that if the application maintains persistent sessions you might be looking at cumulative statistics over a period of days/weeks/months for such sessions. Therefore, you could write you own routines to poll V$SESSTAT at specific intervals and identify activity from changes in statistic values, adjusting for the fact that sessions may be opening and closing frequently (and may be reusing SIDs).
Hemant K Chitale

Similar Messages

  • Need to show some fields in display mode

    Hi, i need to show some fields in display mode for VA02 transaction code( is to change the values) for some particular users. so do we have any user exits for this requirement?
    Please answer me. its very urgent.. thanks in advance. 
    ex: payment terms and freight terms.

    you can try this for header level data
    MV45AFZZ exit ""USEREXIT_FIELD_MODIFICATION"
    code would be like below
       CASE screen-name.
    To suppress  Pricing total and Cuurency field at header
          WHEN 'VBAK-NETWR'.
    *YOU CAN ADD YOUR CONDITION HERE WHICH IF SATISFY THEN *EXECUTE NEXT  LINE OR SKIP IT   
          screen-INPUT = 0.
          WHEN 'VBAK-WAERK'.
              screen-INPUT = 0
        ENDCASE.
    but it depend upon what data AND in which tab you want to hide, like is it at header level or at item level or pricing (HEADER OR ITEM) data each of them have different exit to restrict data modification.
    ENJOY SAP.

  • How do I insert a CSV file that has blank fields? (Some  fields need to be blank) CS4

    Hi, this is the first time I have done a data merge in InDesign. I am trying to insert an address list that often has blank fields in it. The fields are blank since some fields are not relevent to some people (i.e. some of the people don't have cell phones others don't have email addresses) Therefore these people would obviously leave those field blank. The trouble is when I go to do a data merge I am told that the CSV file won't import because some fields are blank. I don't know why InDesign is telling me this, or course some fields are blank they are not relevent to that person. Can someone please tell me how I can get around this problem?

    I tried doing another data merge and I can't seem to get the "remove blank lines" feature to work anymore.
    Here is an image that has all the fields entered in:
    Yet if a field is left blank in the InDesign doc I will get this:
    Or if the blank field comes before another field on the same line I will get this:
    This seems odd to me since I thought these problems were supposed to go away when I clicked this:
    Do you know what might be going wrong? Here is what my data merge place holders look like if it is any help:

  • Need to make some fields mandatory in standard transaction XK01

    HI All,
    Is it possiable to make some fields in standard transaction like XK01 mandatory?
    or any work around ?
    thank in advance for your replies.
    Regads,
    Riyaz.

    Hi,
    From configuration(SPRO) u can easily make some fields mandatory in XK01. Otherwise create a transaction varition for XK01 using TC SHD0.
    Rewards points if helpful.
    Regards,
    Srinivas Ch

  • Need help suppressing some fields and tabs in documents

    Hello everyone, I have just begun working as an SD consultant, and found the following challenge:
    I was asked to figure out how to make some fields invisible and even take out an entire tab form the different sales documents.
    Can anyone please guide me on how to accomplish this? I would be really grateful. If this post is not clear enough, please just let me know.
    Thank you in advance,
    Dan

    Hi
    By suppressing fields for particular transaction can be done as belwo
    1. T code SHD0 and create the z variant for the t code  that you want to supress the fields.
    2.Once supress fields has been done u activate the same by going to standard variants
    3.you can see the variant in the tcode  by going to system --status
    if you want to supress the whole tab then better to consult the ABAPER to do that
    REgards
    Damu

  • Duplicate content of region fields in the region and keep some fields

    duplicate content of region fields in the region and keep some fields displayed in this region and some not.
    Our customer wants to duplicate the content of the region fields and 3 fields of this region (one of them is the key from the table ) have to be shown empty and have to be recreated when he does the next commit. The other 25 fields have to be filled with the content before. (I have to do a commit before I show the region again without these three fields)
    What I did:
    When I have a botton with request CHANGE then APEX does the change without emptying the fields. I tried to make processes on this request which should empty my three fields, but the processes never fire (I see it in the debug and I don't know why, I putted them on every process point for testing)
    The second try:
    On my button with request CHANGE , I filled the 'set these items ' with my three fields and the 'with these items' with 2 commas ,, to set these items null.
    I do no claer cache, but APEX empties the hole region.
    Can you help me??
    Thanks Uta

    Hi Uta,
    OK - This is what I did:
    1 - Page 15
    On the EMPNO column, I have a link to page 18. I set P18_EMPNO to #EMPNO#. I assume that you already have this functionality to link from the report page to the form page. There are no changes required to this page.
    2 - Page 18
    I have created a hidden field called "P18_EMPNO_COPY". There are no special settings for this item - I've just put it at the bottom of the region containing all of the other items
    I have created a button called "P18_COPY". This has a Conditional Display set with a Condition Type of Value of Item in Expression 1 IS NOT NULL and Expression 1 of P18_EMPNO. This has an Option URL Redirect set for it with the following settings:
    Target is a - Page
    Page - 18
    Set These Items - P18_EMPNO,P18_EMPNO_COPY
    With These Values - ,&P18_EMPNO.
    I have created a Process to run "On Load - After Header". The PL/SQL code for this is:
    DECLARE
    emp_rec EMP%ROWTYPE;
    BEGIN
    SELECT * INTO emp_rec FROM EMP WHERE EMPNO = :P18_EMPNO_COPY;
    :P18_EMPNO := NULL;
    :P18_JOB := emp_rec.JOB;
    :P18_MGR := emp_rec.MGR;
    :P18_SAL := emp_rec.SAL;
    :P18_DEPTNO := emp_rec.DEPTNO;
    END;
    This has a Conditional Processing Condition Type of "Value of Item in Expression 1 is NOT NULL" and Expression 1 shows P18_EMPNO_COPY
    Finally, for each field, I have added in a Default Value that points to itself (For example, the P18_JOB field has a Default Value of :P18_JOB) with a Default Value Type of PL/SQL Expression.
    Obviously you will need to replace the field and item names with those for your table and form.
    This process does the following:
    1 - The user clicks the link in the report on page 15. P18_EMPNO gets populated with the EMPNO value of the item select.
    2 - Page 18 is loaded with the data relating to the record with the ID found in P18_EMPNO
    3 - The Copy button is displayed only if P18_EMPNO contains a value
    4 - The user clicks the Copy button
    5 - The P18_EMPNO value is copied into P18_EMPNO_COPY and P18_EMPNO is blanked out
    6 - The page is submitted with these changes. When it reloads, the new process kicks in
    7 - This process will:
    (A) Create a variable based on the record structure for the EMP table
    (B) Fill this variable with the data in the table for the ID that's now in P18_EMPNO_COPY
    (C) Set the session state values for the fields that need to be repopulated with the data now retrieved into the variable
    (D) Clear the P18_EMPNO session state value
    8 - When the page starts to load the form, it will see that there is no P18_EMPNO value and, therefore, will not bring in any information from the table. However, as we have now set the Default Value settings for each field, this will force it to retrieve the values we've stored using the new process and display these values in the form.
    I think I've detailed everything - if this doesn't work, please let me know!
    Regards
    Andy

  • How can i transfer some fields from one table to another using a trigger

    hi,
    i have two tables;sales and accounts.i want in my accounts form to enter salesid which is then validated and if it exists in the sales table, some fields are copied to the accounts table automatically.how do i go about this.thanx

    hi,
    the code u gave me is not running.let me explain in
    detail.i have two tables;sales and accounts in my
    database (oracle 9i).each have a corresponding form
    in the developer window.these tables are linked using
    saleid.this id is entered and saved in the
    database.when the person is paying in the cash
    office,the saleid on an invoice form is entered on
    the accounts form.it is supposed to search the sales
    table and if the ids match,some records are extracted
    from the sales table to the accounts form instead of
    the accounts clerk entering the details all over
    again.these details will be used to generate a
    receipt an then the record on the accounts form is
    saved to the database.the contents of the two tables
    are:
    sales(saleid(pk),startno,endno,quantity,amount,saledat
    e)
    accounts(receiptno(pk),saleid,startno,endno,quantity,a
    mount).
    please advice and thanks very muchWhat does it mean "not running" ?
    Sure, it is running.
    Did you tested my example ?
    And it does exactly what you need.
    You didn't provided table structures and insert statements,
    that's why i showed you the method on 2 emp- tables.
    But it is exactly, what do you need.
    Change my emp_1 on your sales,
    and my emp_2 on your accounts,
    and compare the results.
    If you cannot directly copy and paste
    and say to your teacher / chief "My homework / task is ready"
    it doesn't mean, that the solution didn't provided ...

  • Some fields are missing while recording through shdb

    Dear Abapers,
                   I am doing bdc for F-27 t.code.Some fields,cobl-gsber(business area),cobl-kostl(Cost center) are missing while recording through SHDB.But when do it manualy the fields are displaying.Also i have ddded those fields manualy in the program,stll the fields are not getting captured.May anyone pls help me,why this problem is happening?What is the solution for this.
    Thanks in Advance.

    hi
    i can tell u that few transactions wont suffice us with BDC,so for such transactions we do bdc with similar kind of transactions.
    ie., The transactions FB60 and f-63 both are meant for Parking.
    But we cant do bdc for FB60 Parking. So we do bdc for f-63.
    similarly when we do bdc for vendor few fields wont appear...in that case, we use bapi for it....
    So try to find an appropriate bapi or similar tcode which will suffice ur need
    hope its clear.
    Regards
    Sajid

  • RFBIDE00 without some fields missing

    Hello.
    I'm trying to charge customer data using RFBIDE00 program, but I can't find some fields I need. For example, customer mail or contact person mail.
    I was thinking in a SAP Note or an enhancement to get this.
    Thank you.

    BIADDR2-E_MAIL is the email of the customers..
    check at line number 6055.

  • Downloading ALV to EXCEL - in some fields the last character is missing ...

    Hi,
    I am experiencing this kind of problem when downloading ALV report into Excel :-
    "You are downloading an ALV result to an EXCEL file. In some fields the last character is missing."
    For example, if MATNR is 0000234567 in display but after downloading to excel it becomes only 23456.
    I found another related forum thread : Pronlem while downloading ALV grid to excel
    I tried the suggested method to apply OSS note 1075315. However, the note cannot be implemented in the system. I am working in a ECC6 environment (SAP version 700, 701).
    Kindly please help me if you came across the similar kind of issue. Thanks much.

    Hi gkGoh8     ,
    The link thread that you just gave already provided the answer, in your field catalog you need to activate field lzero.
    1. Check FM : REUSE_ALV_GRID_DISPLAY
    2. Import Parameter tab :IT_FIELDCAT
    3. Double click SLIS_T_FIELDCAT_ALV
    4. On type group SLIS, check line 93
    Regards,
    JQC

  • Hiding the some fields in print PDF adobe form

    Hi all
    Im working on travel expense form in webdynpro ABAP.I have a requirement of hiding some field in the  adobe form.Can anyone tell me how to proceed ?
    Thanks and Regards
    Reeha

    Hi Reeha,
    In case you need to use any script you may prefer formCalc script, which is very easy to use. You can use any script out of the two as per your understanding and comfort level.
    If you require more technical information about FormCalc, refer to the Adobe XML Forms Architecture (XFA) Specification, version 2.4, available from:
    [http://partners.adobe.com/public/developer/xml/index_arch.html.]
    and
    [http://help.adobe.com/en_US/livecycle/es/FormCalc.pdf]
    Hope this helps you
    Regards,
    Gaurav Bhardwaj

  • ALV_grid oo: event "data_changed" on F4 in the line only for some fields

    Hi all,
    when I add a new line in ALV_Grid and I select the search help, for some fields
    the event "data_changed" has triggered even I have not finished to fill the entire fields on the line, and I don't need this.
    Opposite I have some fields which work fine and when I choose F4 the list of the
    possible values has showed without triggering "data_changed".
    Does anyboby know how is it possible?
    Since I'm new on ALV_grid oo, could you give a detailed answer?
    I thank You in advance.
                                                              Best Regards
                                                              Paolo

    I solved the problem int this way: 
    METHODS:
          handle_data_changed
              FOR EVENT data_changed
               OF cl_gui_alv_grid
              IMPORTING er_data_changed
              <u><i>e_onf4</i></u> e_onf4_before e_onf4_after.
      METHOD handle_data_changed.
    DATA: ls_good      TYPE lvc_s_modi.
    error_in_data = space.
    IF e_onf4 IS INITIAL.
      CALL METHOD check_righe_doppie  ( er_data_changed ).
      CALL METHOD update_delta_tables ( er_data_changed ).
      CALL METHOD semantic_checks     ( er_data_changed ).
    ENDIF.
      ENDMETHOD.                                  "handle_data_changed
    Message was edited by:
            Paolo Cavallini

  • How to make some fields of a view non editable

    Hi experts,
    I need to make some fields like system user, system time and system date of a view non editable and after saving values for all other editable fields, the system should fill the values for the non editable fields as well.
    Kindly help in this regard.

    I am assuming that you created a maintenance view for your table. Under view fields there is a column called 'Maintenance Attribute for view field' (one character field with 'P' in the column. Set that column value to 'H' for the fields that you want to hide.
    You then have to go to SE54, give your maintenance view name, in the menu, 'Environment-->Events' create an event 01 with your own code to fill in those hidden fields. Look with key words 'Table Events' in this forum and you will get a lot of examples.

  • Regarding rental object-I want to add some fields in output list?

    Hi,
    I am creating Ze program of transaction REISROOC.I want to add some fields in the output list .
    here logical database is used & for adding some fields i need to write Select query.
    how n where should i add this query?
    can anyone help me????
    Thanks,
    vaishali

    Solved
    Edited by: vaishali patil on Mar 2, 2009 1:32 PM

  • SELECT DISTINCT only on some fields but returning other fields.

    As the thread says I need to select distinct rows with some fields but I need to show the associated data of other columns in the same table.
    Simple Example
    SUPPOSE THE TABLE INFO:
    INFO(ID, NAME, TITLE, NUMBER, TELEPHONE, FAX, DESCRIPTION, TOPIC);
    The table info could have null values in all the columns except for the ID. And there could be the same information for: Name, Title, Number, Telephone, Fax info in a lot of rows.
    With the following statement I get distinct rows based on the name, title, number, telephone, fax and i get assured that the row with name in null is not returned.
    SELECT DISTINCT P.NAME, P.TITLE,P.NUMBER,P.TELEPHONE,P.FAX FROM INFO P WHERE TRIM(P.NAME) IS NOT NULL;
    returns 1400 rows;
    The problem is that I need the DESCRIPTION and TOPIC columns of the 1400 distinct rows.
    I have tried the following, but without sucess because the statement is returning 1350 rows, so there are 50 rows losted:
    SELECT P.NAME, P.TITLE,P.NUMBER,P.TELEPHONE,P.FAX, P.DESCRIPTION,P.TOPIC
    FROM INFO P , (SELECT DISTINCT P.NAME, P.TITLE,P.NUMBER,P.TELEPHONE,P.FAX FROM INFO P WHERE TRIM(P.NAME) IS NOT NULL) R
    WHERE P.NAME= R.NAME AND P.TITLE = R.TITLE AND P.NUMBER = R.NUMBER AND P.TELEPHONE = R.TELEPHONE AND P.FAX = R.FAX;
    Could anybody give me some help?
    pd: Don´t ask why the table has been designed in that way... I'm trying to fix that ¬¬
    Edited by: user6483610 on Sep 1, 2010 6:29 PM

    @Raj Mareddi: I have tried that aproach and it gives the ORA-00979: not a GROUP BY expression
    @PhoenixBai: You put me to think... jajaja i haven't think about it, actually there are more distinct values if I put the DESCRIPTION and TOPIC values in the query and yes I was hoping that the query choose for me... So I think that theres no way, the quality of the data is really bad and I have to deal with it. Thanks anyway!
    By oher hand theres no way to do this thing in Oracle? the aproach of Raj makes sense but the ORA-00979: not a GROUP BY expression says that you must remove the other columns that are not in the group by function.

Maybe you are looking for

  • Updates aren't appearing in my Creative Cloud desktop app

    Hello! All my apps in the desktop app appear to be up to date even though a new version of Photoshop, Muse and Illustrator are available! I updated Photoshop from within Photoshop itself but haven't yet done so with the other two! Thankyou! Louisa

  • Late 2008 MacBook Crackling

    I wasn't too sure where I should post this, but here's my problem: I purchased a refurbished MacBook from the Apple site in October of 2009. From the first week I got it, it had been making crackling noises (mainly from the right speaker), sometimes

  • XCelsius scheduling

    Hi, We need to schedule refresh of XCelsius document that generates swf file and send it to users by e-mail attachment or submit on shared folder. The output swf file should embed all data (no more refresh required when user opens). Our config is XIR

  • How Do I find the "Disable Click Sound" property in Captivate 7?

    My software simulation has very annoying click sounds from the mouse. I have seached the web and found a screenshot of an 'Options' section on the properties tab with a 'Disable Click Sound' checkbox, but my copy of Captivate 7 doesn't have that. Wha

  • Driver for LJET 3 printer under Windows 7 (64bit).

    It's a perfectly good printer that I bought in 1980s and it's been working great for all these years under the Windows all the way up to and including XP. Recently  I had to replace my XP PC by a Windows 7 (64bit) PC and I can't find a driver for it.