How to find the cpu cost and i/o cost  by a query

I have a query that give the cpu utilization for a session.
select s.name, m.value from v$statname s, v$mystat m
where s.statistic# = m.statistic#
and name = 'CPU used by this session';
But how do you find the cpu cost and i/o cost by a query?

Sounds like you want to use TRACE.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/sqltrace.htm#PFGRF01020

Similar Messages

  • How to find the CPU utilization from the portal front end

    HI Guys,
      I want to find the CPU utilization from the portal front end browser screen.Can you please let me know how to find this and also the path to find it.
    And how to find the CPU utilization from the server.What is the command to find the CPU utilization at unix level.
    Regards,
    Krishnam.

    hi you can create transient field in view object indicate to visibility of row (boolean ) and create view criteria that show only rows that are able to be visible according to transient attribute and at the update process set the attribute to true inside entityImpl class

  • How to find the column name and table name with a value

    Hi All
    How to find the column name and table name with "Value".
    For Example i have value named "Srikkanth" This value will be stored in one table and in one column i we dont know the table how to find the table name and column name
    Any help is highly appricatable
    Thanks & Regards
    Srikkanth.M

    2 solutions by Michaels (the latter is 11g upwards only)...
    michaels>  var val varchar2(5)
    michaels>  exec :val := 'as'
    PL/SQL procedure successfully completed.
    michaels>  select distinct substr (:val, 1, 11) "Searchword",
                    substr (table_name, 1, 14) "Table",
                    substr (t.column_value.getstringval (), 1, 50) "Column/Value"
               from cols,
                    table
                       (xmlsequence
                           (dbms_xmlgen.getxmltype ('select ' || column_name
                                                    || ' from ' || table_name
                                                    || ' where upper('
                                                    || column_name
                                                    || ') like upper(''%' || :val
                                                    || '%'')'
                                                   ).extract ('ROWSET/ROW/*')
                       ) t
    --        where table_name in ('EMPLOYEES', 'JOB_HISTORY', 'DEPARTMENTS')
           order by "Table"or
    SQL> select table_name,
           column_name,
           :search_string search_string,
           result
      from cols,
           xmltable(('ora:view("'||table_name||'")/ROW/'||column_name||'[ora:contains(text(),"%'|| :search_string || '%") > 0]')
           columns result varchar2(10) path '.'
    where table_name in ('EMP', 'DEPT')
    TABLE_NAME           COLUMN_NAME          SEARCH_STRING        RESULT   
    DEPT                 DNAME                ES                   RESEARCH 
    DEPT                 DNAME                ES                   SALES    
    EMP                  ENAME                ES                   JONES    
    EMP                  ENAME                ES                   JAMES    
    EMP                  JOB                  ES                   SALESMAN 
    EMP                  JOB                  ES                   SALESMAN 
    EMP                  JOB                  ES                   SALESMAN 
    EMP                  JOB                  ES                   PRESIDENT
    EMP                  JOB                  ES                   SALESMAN 
    9 rows selected.

  • Urgentpls : How to find the Oracle reports and forms version in Unix prompt

    Hi,
    How to find the Oracle reports and forms version in Unix prompt.
    Please give the steps
    Thanks

    I need to check the version of Oracle forms and reportsExample :$ frmcmp.sh -h | head -1
    Forms 10.1 (Form Compiler) Version 10.1.2.0.2 (Production)
    $ rwrun.sh 2>/dev/null | head -2 | tail -1
    Report Builder: Release 10.1.2.0.2 - Production on Wed Mar 10 11:17:55 2010
    $

  • How to find the user exits and BADIS from SPRO

    Hi all,
    please let us know how to find the User exits or BADIS for an application from SPRO.
    Regards,
    Madhavi

    Hi Varisetty,
    Finding user exits and BAdis from SPRO can be cumbsersome. In most instances you know the standard SAP program and want to check (find) an exit called in the flow of the transaction. You can do this as follows:
    For User Exit:
    Put "/h" in the command box (to start debugging)
    Execute your transaction
    When you enter debugging - put a breakpoint at statement
    CALL CUSTOMER-FUNCTION
    the control will stop at all calls to User Exits
    For BAdi (it's simpler)
    Go to class CL_EXITHANDLER in SE24
    Enter method GET_INSTANCE
    Put a breakpoint in this method
    Run your standard transaction - control will stop at all BAdis called within the flow since this method is used to check BAdi implementations before invoking them
    Also, if you want to find enhancements by package - go to SE80, enter the package and check function groups starting with X - those contain function exits (conventional user exits). For BAdis in a package, there is normally a separate tree node (under the package) for Enhancements hence clearly identifiable.
    Cheers,
    Adi

  • How to find the cpu usage per query for a time period

    Hi All,
    Is there a way to find the cpu used per query for a given time period?
    DB:10.2.0.5
    OS:AIX
    Thanks

    user13364377 wrote:
    if there are multiple queries starting at the same time, then what to do?Handle:      user13364377
    Status Level:      Newbie (10)
    Registered:      Jul 5, 2010
    Total Posts:      264
    Total Questions:      113 (84 unresolved)
    why so many unanswered questions?
    clarify your question
    same SQL multiple times from different sessions?
    or
    different SQLs from different sessions?

  • I reformated my computer to sell and now I cannot figure out how to find the system info and specs of the computer

    I had Apple wipe my computer clean and now it's at the "Welcome" page but I need to find out all the specs like RAM/Hardrive space how can I get that info without running the welcome intro?

    if you know the year and CPU speed of this macbook - go to everymac.com and match your specs from the year it was released.
    if you can see your serial number - go to the link below and enter the last 3 characters of your serial number and you'll get the specs.
    http://www.everymac.com/ultimate-mac-lookup/

  • How to find the new tables and columns in a schema

    hi..good morning to all...
    I have a schema ABC which owns some objects.
    Now some days before I have made another schema XYZ which was a replica of ABC schema.
    between these days some new tables, new columns in the existing tables(with or without default value), comments on the columns are being added in the new schema i.e XYZ schema.
    Now I have to find the extra things which are present in the new schema. I need to find the new tables, new columns in hte existing tables, their default values and descriptions of those.
    Can u plss help me how can I find it?
    I am guessing that I have to write a SQL query with a minus clause but I am not able to write it and also dont know where should I execute it.
    plss help. thanks in advance.

    And moreover, when I am executing the query to get the desired result, then it is throwing "illegal use of long datatype" error and pointing to the b.data_default area of my query..
    select a.table_name, a.column_name, b.data_default, a.comments from all_col_comments a, dba_tab_columns b
    where a.TABLE_NAME=b.TABLE_NAME
    and a.OWNER=b.OWNER
    and a.OWNER=XYZ
    minus
    select c.table_name, c.column_name, d.data_default, c.comments from all_col_comments c, dba_tab_columns d
    where c.TABLE_NAME=d.TABLE_NAME
    and c.OWNER=d.OWNER
    and c.OWNER='ABC'
    order by 1, 2;
    plss help...

  • How to find the Installation Type and License Details.

    Hi,
    If we have an already installed oracle system on AIX ,how come we find whether the installation type is Standard or Enterprise ?,also where we can find the licensing details,ie number of user license?
    Regards,
    Sam

    Hello,
    Here is the difference:
    <<Enterprise Edition>>
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Feb 27 10:00:49 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    DBMS_STANDARD.DATABASE_NAME()
    ORCL
    << Standard Edition>>
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Feb 27 10:00:44 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Release 10.2.0.1.0 - Production
    DBMS_STANDARD.DATABASE_NAME()
    SRI
    -Sri

  • How to find the killed session and machine name

    Hi,
    At the time of batch job running .somebody killed that session .let me know how to find out the particular user name db level or oslevel .from which machine they killed how to find out at OS level . but when i have set the audit_trail=os only SYSDBA user activities are audited not the other user activities.
    The server is AIX and db version 11i .provide the query for finding or os level .
    thanks,
    DBC.
    Edited by: dbc001 on Mar 26, 2013 9:48 PM

    Are you sure that somebosy had killed the session? Did you get any error regarding kill session? Is there any other errors you can see in logs?its suspect only....
    >
    How that job was scheduled?...actually we have lot of source systems, from those source system we are getting the data into BI machine, by using BI apps team process data and trigger load jobs @db
    Apps team is having database unix logins aswell as db logins to process their requests.
    Your OS admin can check the history upto some extent? Check if he has auditing enabled at OS level?we are in the process of checking with OS sysadmin.
    upto now we didnt got any clue....apps team successfully re-ran failed job.

  • How to find the given job and all the programs in it

    Plz suggest me how to find a job whether it exists in sap or not?
    I searched using sm37 and using table TBTCO still the job name is not available there.
    Note: I know one program name which is part of that job.
    I could not found the given job ?

    Goto SM37 and the last field there is ABAP program name.
    give the program name there and select period well back from past to til till now say -
    01.01.2006 to 12.02.2007.
    and execute ..
    u will find the list of the jobs using this program.
    or Use FM  -
    BP_FIND_JOBS_WITH_PROGRAM

  • How to find the version, release and sub release of HFM

    Dear
    Need to check what exactly is the version, release and sub release of HFM.
    I have only the information that is 11.1.2.1. xxxxx
    I want to find out x
    How can I get?
    thank you

    I got it to run using Celvin method (using the JRE not the JDK).  The JDK method threw back the following(E:\Oracle\Middleware\EPMSystem11R1\OPatch>opatch lsinventory -oh E:\Oracle\Middleware\EPMSystem11r1 -jdk E:\"Program Files (x86)"\Java\jdk1.7.0_17\bin
    Files was unexpected at this time)
    The method below worked:
    E:\Oracle\Middleware\EPMSystem11R1\OPatch>opatch.bat lsinventory -jdk E:\Oracle\
    Middleware\jdk160_35
    Oracle Interim Patch Installer version 11.1.0.9.9
    Copyright (c) 2012, Oracle Corporation.  All rights reserved.
    Oracle Home       : E:\Oracle\MIDDLE~1\EPMSYS~1
    Central Inventory : E:\Program Files\Oracle\Inventory
       from           : n/a
    OPatch version    : 11.1.0.9.9
    OUI version       : 11.1.0.9.0
    Log file location : E:\Oracle\MIDDLE~1\EPMSYS~1\cfgtoollogs\opatch\opatch2013-09
    -24_15-03-36PM_1.log
    OPatch detects the Middleware Home as "E:\Oracle\Middleware"
    Lsinventory Output file location : E:\Oracle\MIDDLE~1\EPMSYS~1\cfgtoollogs\opatc
    h\lsinv\lsinventory2013-09-24_15-03-36PM.txt
    Installed Top-level Products (2):
    Oracle EPM System                                                    11.1.2.3.0
    Oracle WebTier and Utilities CD                                      11.1.1.7.0
    There are 2 products installed in this Oracle Home.
    There are no Interim patches installed in this Oracle Home.
    OPatch succeeded.
    E:\Oracle\Middleware\EPMSystem11R1\OPatch>
    **This is the actual file contents. **
    --------------------------------------------------------------------------------Installed Top-level Products (2):
    Oracle EPM System                                                    11.1.2.3.0Oracle WebTier and Utilities CD                                      11.1.1.7.0There are 2 products installed in this Oracle Home.
    There are no Interim patches installed in this Oracle Home.--------------------------------------------------------------------------------

  • How to find the Message Class and ID for messages in WebIC

    Dear Experts,
    I get some error messages in the WebIC
    I went to SAAB to activate and see details on the error messages
    But, what i am missing is the the message class and the ID information
    Can any one tell me if there is a work around to check and find out which message class and ID the message belongs to
    Regards,
    Raj

    Hi Raj,
    Put a break-point in method get_instance or ADD_MESSAGE of class cl_bsp_wd_message_service.
    Best regards,
    Caíque Escaler

  • How to find the Service order and its status..

    Hello,
    How see the status of the service order...
    i have to search for all the service orders where all of them completed once....
    which tables, fields are useful.
    Please help to solve this issue.
    thanks for yoru cooperation

    Hello Gun,
    How to see the status desciption for example
    I1005
    I1004
    I1002...etc
    waht I1005 means. I have to display status of each service order in the list , here i can not display I1005 is the status, instad i have to diplay I1005's desciption.

  • How to find the objects that are used for a particular BEx query

    Hi ,
    I am preparing the inventory for BEx queries. Means for a particular BEx query I want to know the correcsponding
    1. Selection screen variables
    2. Characteristics
    3. Restrcited, Calculated and normal key figures.
    I have checked all the BEx query related tabe but unable to find the proper relation between these tables to get the desired output.
    Can you help for table joins to get the output as mentioned above.
    Thanks in advance.
    Regards,
    Sai

    Hi,
    you want find the total information about query details use the T  CODE - RSRTQ.
    give the proper selection then execute.
    please find the doc.
    RSRTQ – Query Definition – Multipurpose T-Code on BEx Queries
    Thanks,
    Phani.

Maybe you are looking for

  • Error throwing while creating sales order

    Dear all, While on sales order creation,We have entered order type,sales organization,distribution channel,divison, on entering sold to party,presssing enter,error is throwing as No customer master record exists for sold-to party actually customer ma

  • Installing SAP R/3 4.7 SR1 EXT200 on Linux 5.2 with Oracle 10G (10.2.0.2)

    I am getting following error which executing the DB Load. I am done with CI installation and Installed Oracle 10g with patch level 10.2.0.2( according to PAM) I got following error in sapinst.log file: INFO 2009-08-31 17:12:48 Working directory chang

  • Question about countdown timer for final cut 5.1

    I know someone just asked for one in fce but is there one for 5.1. I need to count down 30 mins. for one thing and 30 sec for another. is there a good template? thanks in advance.

  • How to make selection screen display only

    hi all , is there a way can only display the selection screen  , but not modifiable  , i don't want to create a new screen but use the selection screen. regards Kevin

  • How do I see the unedited verison of an image?

    I am trying out Aperture to see if I want to make the leap from iPhoto. The way I like to edit photos in iPhoto is to go into full screen mode and then as I make adjustments compare them with the unedited original by holding down the control key whic