How to see the wait events info. after excute a select query

Hi
How to see the wait events info. after execute a select query. Are there any parameter to set for this option?
And also wanna see the follwing info. in trace file. For this what are the parameters I have to set right?
SELECT * FROM emp, dept
WHERE emp.deptno = dept.deptno;
call   count      cpu    elapsed     disk    query current    rows
Parse      1     0.16      0.29         3       13       0       0
Execute    1     0.00      0.00         0        0       0       0
Fetch      1     0.03      0.26         2        2       4      14
Misses in library cache during parse: 1
Parsing user id: (8) SCOTT Regards
Arpitha

$ sqlplus scott/tiger
SQL*Plus: Release 10.2.0.2.0 - Production on Wed Apr 20 15:29:33 2011
Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> SHOW PARAMETER dump
NAME                                 TYPE        VALUE
background_core_dump                 string      partial
background_dump_dest                 string      /user/oracle/app/oracle/admin/
                                                 orclsb/bdump
core_dump_dest                       string      /user/oracle/app/oracle/admin/
                                                 orclsb/cdump
max_dump_file_size                   string      UNLIMITED
shadow_core_dump                     string      partial
user_dump_dest                       string      /user/oracle/app/oracle/admin/
                                                 orclsb/udump
SQL> ALTER SESSION SET EVENTS='10046 trace name context forever, level 12';
Session altered.
SQL> SELECT * FROM emp WHERE deptno=20;
     EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM
    DEPTNO
      7369 SMITH      CLERK           7902 17-DEC-80        800
        20
      7566 JONES      MANAGER         7839 02-APR-81       2975
        20
      7788 SCOTT      ANALYST         7566 19-APR-87       3000
        20
     EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM
    DEPTNO
      7876 ADAMS      CLERK           7788 23-MAY-87       1100
        20
      7902 FORD       ANALYST         7566 03-DEC-81       3000
        20Now
$ pwd
/user/oracle/app/oracle/admin/orclsb/udump
$ ls -ltr|tail -5
-rw-r-----   1 oracle   oinstall     622 Apr 20 11:35 orclsb_ora_949.trc
-rw-r-----   1 oracle   oinstall     651 Apr 20 11:35 orclsb_ora_976.trc
-rw-r-----   1 oracle   oinstall    1982 Apr 20 11:35 orclsb_ora_977.trc
-rw-r-----   1 oracle   oinstall    1443 Apr 20 15:29 orclsb_ora_1251.trc
-rw-r-----   1 oracle   oinstall  279719 Apr 20 15:30 orclsb_ora_1255.trc
$ tkprof  orclsb_ora_1255.trc  orclsb_ora_1255.txt
TKPROF: Release 10.2.0.2.0 - Production on Wed Apr 20 15:32:17 2011
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
$ ls -ltr|tail -5
-rw-r-----   1 oracle   oinstall     651 Apr 20 11:35 orclsb_ora_976.trc
-rw-r-----   1 oracle   oinstall    1982 Apr 20 11:35 orclsb_ora_977.trc
-rw-r-----   1 oracle   oinstall    1443 Apr 20 15:29 orclsb_ora_1251.trc
-rw-r-----   1 oracle   oinstall  279719 Apr 20 15:30 orclsb_ora_1255.trc
-rw-r--r--   1 oracle   oinstall   26872 Apr 20 15:32 orclsb_ora_1255.txtThis orclsb_ora_1255.txt contains the required information.

Similar Messages

  • How to escape the special character ' (ascii 39) in a select query?

    Hi,
    does anybody know how to escape the special character ' (ascii 39) in a select query?
    I've tried a lot of ways but nothing seems to work, for example I try to get all
    names in table foo where coloumn name contains a '-sign (ascii 39)
    select name from foo where name like '%\'%';
    select name from foo where name like '%{'}%';
    select name from atg_horse where name like '%chr(39)%'
    ... but neither works, I end up with a ORA-01756: quoted string not properly terminated
    I would apriciate any help
    /Carl-Michael

    friends
    thanks for ur time and effort that u gave to reply to my problem.
    But my main problem is that when my application (VC++ 7) fires the following query in the oracle database , it does not return any rows.
    SELECT count(*) FROM ORGANISATION WHERE UPPER(ORGANISATION.ORGANISATIONNAME)
    LIKE N'β%' ORDER BY ORGANISATION.ORGANISATIONNAME
    the above question in the previous thread was just to check on sql plus as it's editor does not support unicode characters.

  • How to Get the Job, Cost center, Position description using select query

    Hi all,
    How to get the  Job, Cost center, Position description through select query without using the Function module?
    thanks,
    Prasad

    use adhoq query and take the report chose both text and value

  • How to see the publised event in EDN

    I am publishing on event in mediator without anybody subscribed to that event.
    I want to know where I can see the published event. I investigated and figured out that
    it is using the "EDNDataSource" to write it to DB but not able to see any table having the event.
    Also, I would like to know how the EDN repository can be changed from DB based to JMS based?
    Thanks!

    Based on the SOA Suite Developer's guide, Oracle recommends using the DB based if the database is Oracle.
    For JMS based:
    http://biemond.blogspot.com/2011/06/configure-en-test-jms-based-edn-in-soa.html
    http://docs.oracle.com/cd/E15586_01/integration.1111/e10224/obe_intro.htm (38.3.6)
    Edited by: benp11 on Jan 11, 2012 7:05 AM

  • How to improve the performance of one program in one select query

    Hi,
    I am facing performance issue in one program. I have given some part of the code of the program.
    it is taking much time below select query. How to improve the performance.
    Quick response is highly appreciated.
    Program code
    DATA: BEGIN OF t_dels_tvpod OCCURS 100,
    vbeln LIKE tvpod-vbeln,
    posnr LIKE tvpod-posnr,
    lfimg_diff LIKE tvpod-lfimg_diff,
    calcu LIKE tvpod-calcu,
    podmg LIKE tvpod-podmg,
    uecha LIKE lips-uecha,
    pstyv LIKE lips-pstyv,
    xchar LIKE lips-xchar,
    grund LIKE tvpod-grund,
    END OF t_dels_tvpod,
    DATA: l_tabix LIKE sy-tabix,
    lt_dels_tvpod LIKE t_dels_tvpod OCCURS 10 WITH HEADER LINE,
    ls_dels_tvpod LIKE t_dels_tvpod.
    SELECT vbeln INTO TABLE lt_dels_tvpod FROM likp
    FOR ALL ENTRIES IN t_dels_tvpod
    WHERE vbeln = t_dels_tvpod-vbeln
    AND erdat IN s_erdat
    AND bldat IN s_bldat
    AND podat IN s_podat
    AND ernam IN s_ernam
    AND kunnr IN s_kunnr
    AND vkorg IN s_vkorg
    AND vstel IN s_vstel
    AND lfart NOT IN r_del_types_exclude.
    Waiting for quick response.
    Best regards,
    BDP

    Bansidhar,
    1) You need to add a check to make sure that internal table t_dels_tvpod (used in the FOR ALL ENTRIES clause) is not blank. If it is blank skip the SELECt statement.
    2)  Check the performance with and without clause 'AND lfart NOT IN r_del_types_exclude'. Sometimes NOT causes the select statement to not use the index. Instead of 'lfart NOT IN r_del_types_exclude' use 'lfart IN r_del_types_exclude' and build r_del_types_exclude by using r_del_types_exclude-sign = 'E' instead of 'I'.
    3) Make sure that the table used in the FOR ALL ENTRIES clause has unique delivery numbers.
    Try doing something like this.
    TYPES: BEGIN OF ty_del_types_exclude,
             sign(1)   TYPE c,
             option(2) TYPE c,
             low       TYPE likp-lfart,
             high      TYPE likp-lfart,
           END OF ty_del_types_exclude.
    DATA: w_del_types_exclude TYPE          ty_del_types_exclude,
          t_del_types_exclude TYPE TABLE OF ty_del_types_exclude,
          t_dels_tvpod_tmp    LIKE TABLE OF t_dels_tvpod        .
    IF NOT t_dels_tvpod[] IS INITIAL.
    * Assuming that I would like to exclude delivery types 'LP' and 'LPP'
      CLEAR w_del_types_exclude.
      REFRESH t_del_types_exclude.
      w_del_types_exclude-sign = 'E'.
      w_del_types_exclude-option = 'EQ'.
      w_del_types_exclude-low = 'LP'.
      APPEND w_del_types_exclude TO t_del_types_exclude.
      w_del_types_exclude-low = 'LPP'.
      APPEND w_del_types_exclude TO t_del_types_exclude.
      t_dels_tvpod_tmp[] = t_dels_tvpod[].
      SORT t_dels_tvpod_tmp BY vbeln.
      DELETE ADJACENT DUPLICATES FROM t_dels_tvpod_tmp
        COMPARING
          vbeln.
      SELECT vbeln
        FROM likp
        INTO TABLE lt_dels_tvpod
        FOR ALL ENTRIES IN t_dels_tvpod_tmp
        WHERE vbeln EQ t_dels_tvpod_tmp-vbeln
        AND erdat IN s_erdat
        AND bldat IN s_bldat
        AND podat IN s_podat
        AND ernam IN s_ernam
        AND kunnr IN s_kunnr
        AND vkorg IN s_vkorg
        AND vstel IN s_vstel
        AND lfart IN t_del_types_exclude.
    ENDIF.

  • No wait events info in trace file?

    A very good day to all experts,
    I am tracing a session using the below procedure.
    dbms_system.set_ev(12,13,EV=>10046,LE=>12,NM=>'');
    I am just displaying the following information in trace file.Trace file is not displaying any wait events even when i am doing level 12 tracing.How i can see the wait event information in trace files?
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 1 0.01 0.01 0 0 0 0
    Fetch 2 0.00 0.05 2 2 0 1
    total 4 0.01 0.07 2 2 0 1
    Misses in library cache during parse: 1
    Optimizer mode: CHOOSE
    Parsing user id: 55
    Rows Row Source Operation
    1 TABLE ACCESS BY INDEX ROWID aaa_USERS (cr=2 pr=2 pw=0 time=58806 us)
    1 INDEX UNIQUE SCAN SYS_C004271 (cr=1 pr=1 pw=0 time=42773 us)(object id 47506)
    Thank you....

    Your post is without version information up to 4 digits.
    You post tkprof output.
    Not all version of Oracle have tkprof post wait event info.
    IIRC. this started in Oracle 9iR2.
    You would need to look in the raw trace file to find out whether this information is actually available. You will find it is.
    This could likely being caused by using 8i, which doesn't have this facility.
    But as you don't post a version, your question can not be answered.
    Sybrand Bakker
    Senior Oracle DBA

  • How do I see the dates and info on gift card redeemal, purchases and other transctions?

    I need to see how much was the gift card amount I originally redeemed.
    How do I see the dates and info on gift card redeemal, purchases and other transactions?

    You can't see when gift cards were redeemed onto your account, nor what you bought with it - you can only see your entire purchase history via the Store > View Account menu option on your computer's iTunes, it won't show what payment method method was used for each item : http://support.apple.com/kb/HT2727

  • How to increase the waiting time for response in Adapter Engine not in IE

    Hi Experts,
                It is a SOAP to Proxy Synchronous interface. SOAP system is sending the request to PI, PI sending the same request to ECC system, After execution of some logic response back to PI in 7 minutes. In ABAP Stack(sxmb_moni) processing the response message also successfully with success flag after completion of these 7 minutes. But exactly 5 minutes later getting the error at Java Stack RWB- in communication channel monitoring i.e
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessageExpiredException: Message bd2bf8d0-b2c2-11e0-c383-001cc4fb5cb7(OUTBOUND) expired.  We have set the "runtime-HTTP_TIMEOUT" parameter as 3600. thats why in Integration engine it is processing successfully.
    kindly suggest me how to increase the waiting time for response in Adapter Engine. Exactly after 5 mins getting the above error in rwb, but in Integration Engine getting successful flag after 7 mins until then it is waiting for response with  status flag Log version.
    Thanks & Regards,
    Srihari.

    Hi,
    Please see
    How To... Investigate Timeouts In Synchronous XI/PI Scenarios
    It will answer all your queries
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c059d583-a551-2c10-e095-eb5d95e03747?QuickLink=index&overridelayout=true

  • How to Run the NEW "System Info Command" in Tiger ?????

    I am new to Applescript and was wondering if someone could help me on how to run the new "System Info Command"?
    Thanks!!!

    The "system info" command that red_menace uses above is the new system info command that's mentioned on the web page you referenced. However, red's example only displays the "long user name" and the "AppleScript version" in the dialog.
    The entire system info record actually contains all of these items, each of which you can access just like red_menace shows you in his example:
    AppleScript version
    AppleScript Studio version
    system version
    short user name
    long user name
    user ID
    user locale
    home directory
    boot volume
    computer name
    host name
    IPv4 address
    primary Ethernet address
    CPU type
    CPU speed
    physical memory
    Steve
    PS - if you switch Script Editor over so the bottom pane displays the "Event Log" you'll see the entire system info record displayed in the log when you run red_menace's script.

  • How to see the change logs for billing document

    Dears,
    Could you please how to see the change logs for billing document.
    My client is using ECC 6.0 & if i use VF03 > Environment > changes > does not show the changes i had made.
    Thanks in advance
    Ranjan

    hello, friend.
    you should be able to see changes done after the initial creation and saving, by going thru Environment > Changes.  try it again, and this time make sure that changes were done to the billing document prior to posting to accounting.
    normally, when configuration of Billing is done correctly, there will be little or no instances of changing anything in the Billing document,  as saving the document after creation will post this to Accounting.  of course, inclusion of a posting block in the billing type will provide you the opportunity for changes. 
    regards.

  • How to see the customer purchase order acknowledgement ?

    How to see the customer purchase order acknowledgement ?
    in that PO ACK where we see the UOM and Qty ?
    thanks & regards,
    Srikanth.

    hi
    Customer Purchase Order is nothing but the Sales Order in your system
    Customer Po acknowledgement is nothing but the Acknowledgement that is sent out (output type BA00) to the Customer after the Sales Order has been created.
    Note: Purchase is to Customer - Sales is to you as the Vendor.
    cheers
    Nandu
    Edited by: Nanda Kumar Veeraraghavan on Apr 1, 2008 12:11 AM

  • How to see the portal runtime errors and exception

    Hi friends,
    I am new to the EP. Can you plz let me know how to see the logs of the error occurs during the runtime.
    I have got the following error "Error occurs during the rendering of jsp component"
    But I am not able to see the logs.
    can you plz tell me the exact path to see the error logs
    Thanks and regards,
    Kuldeep Verma

    HI Kuldeep
    Yoiu can check the portal Logs and traces in link as the bellow.
    http://your_url:portno/nwa
    The JSP logs you can trace there.
    Just follow the following path after loged in to NWA.
    Monitoring -> Logs and Traces ->
    Then in the dropdown menu select the Default Trace
    Cheers
    Chinmaya
    Reward for helpful answers

  • How to see Summarized Hierarchy for Variances after variance calculation

    Hi,
    How to see Summarized Hierarchy for Variances after variance calculation.
    Thanks
    Sunitha

    hi Sunitha,
    KOB3 is the t.code. assign me kindly.
    regards
    Sirisha

  • How to see the Table Names & Field Names by other than F1 help

    Hi Experts
       How to see the Table Names & Field Names by other than F1 help, & How to see the List of MM Table Names.
    Rgds

    The only option to see the active table/ field name is through F1 --> Technical Information. Apart from this, you can use any 3rd part application like GUIex (INbuilt in SAP ECC 6.0 ... can be activated by clicking on the tri-color button on the top right), but you need technical knowledge to understand the information. As far consolidated list of MM tables is concerned, SAP don;t provide you the same at one place, it experience and knowledge which help you in this regard. For your immediate reference MM tables are as under :
    EBAN  - Purchase Requisition 
    EBKN  - Purchase Requisition Account Assignment 
    EBUB   - Index for Stock Transport Requisitions for Materi
    EINA    - Purchasing Info Record: General Data 
    EINE     - Purchasing Info Record: Purchasing Organization D
    EIPA     - Order Price History: Info Record 
    EKAB   - Release Documentation 
    EKAN   - Vendor Address: Purchasing Document 
    EKBE    - History per Purchasing Document 
    EKBEH - Removed PO History Records 
    EKBZ    - History per Purchasing Document: Delivery Costs 
    EKBZH  - History per Purchasing Document: Delivery Costs 
    EKEH    - Scheduling Agreement Release Documentation 
    EKEK    - Header Data for Scheduling Agreement Releases 
    EKES     - Vendor Confirmations 
    EKET     - Scheduling Agreement Schedule Lines 
    EKETH   - Scheduling Agreement Schedules: History Tables 
    EKKI      - Purchasing Condition Index 
    EKKN    - Account Assignment in Purchasing Document 
    EKKO    - Purchasing Document Header 
    EKPA     - Partner Roles in Purchasing 
    EKPB     - "Material Provided" Item in Purchasing Document 
    EKPO    - Purchasing Document Item 
    EKPV    - Shipping-Specific Data on Stock Tfr. for Purch. D 
    EKRS    - ERS Procedure: Goods (Merchandise) Movements to b 
    EKUB    - Index for Stock Transport Orders for Material 
    EORD    - Purchasing Source List 
    EQUK    - Quota File: Header

  • How to see the IDOC structure in XML format

    Hi, I am ver new to MII. I configured connection between SAPand SAP MII and IDOC is triggering in SAP MII. I can see the idoc triggered in Message monitor.
    Now my query is how to see the IDOC structure in XML format? I written a transaction where I am assigning transaction.xml to my Local.xml and trying to display with message action block. When I display the message I am getting message as below
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    There is no data in the xml, but in SAP side i seen data and segment which sent to MII as a IDOC. Please help me how to resolve this issue.

    Hi, Thanks for quick response.
    In Message monitor I seen the IDOC list after executing POIT transaction code in SAP.
    But the display button is disabled always in message monitor screen. I want to take this IDOC and save it in my SQL database. So I want to see this IDOC structure in XML format. Where i can see this structure?

Maybe you are looking for

  • Can i change my font in my kindle app

    Is there a way to change the font sytle in my kindle app?  I found the size and backgrounds/colors, but don't see the style.

  • Home Sharing between Mac & PC - Can't drag & drop from one to the other.

    I have a Mac & a PC. I turned on home sharing and it works well, except that I want to copy all of the music on the Mac over to the PC. With Home Sharing active, you should be able to drag & Drop, but I can't. I read the help article and it says that

  • Track nokia gps enabled phone from pc

    hey, im starting this post to get info for me and for others because i believe that this is such an important feature in our nokia phones that we must maximise. my question is, are there any programs where users can track there gps enabled phones fro

  • Difficulty getting refund - very discouraging !

    I closed my TV account at the end of March 2015.  I had a credit of $45.58 at that time.  After waiting several weeks for the refund, I managed to contact a customer service rep., who advised that "the check is in the mail".  Since the closing of the

  • Send OK but not receive mail

    On iMac 10.7 can send mail but nor receive on my .me account? Any suggestions? My wireless iPad works fine.  Thanks