Top Session / SQL in OEM 10g

friends,
In oracle 10g enterprise manager, i can find top 10 sessions and sql information in graphical view. Can you provide me sql command for this this graphical view?
Waiting for your quick answers.
regards
Irfan Ahmad

If you want to find the exact sql, then trace the OEM page.
If you want to write your own statement, then it depends on what you mean by "top 10 sessions". By CPU ? BY IO ? By runtime.
You can check the AWR and Statspack code to see what statements they use, or you can find lots of examples using google.

Similar Messages

  • Top sessions from sql

    hi
    How can i get the top 5 or 2 users who consuming large physical and logical i/o s,like we getting the top sessions in OEM.I dont want to use OEM.Is it v$filestat and v$session?
    with regards
    ramya

    You can use v$sesstat and v$session. Something like :
    select * from (select
    b.username,
    b.terminal,
    to_char(b.logon_time,'dd/mm/yyyy hh24:mi:ss'),
    b.program,
    a.value
    from v$sesstat a, v$session b
    where a.statistic# in (40, 41, 42) and
    b.sid = a.siD and
    b.username is not null and
    b.username not like 'SYS%'
    order by a.value desc)
    where rownum < 6;In v$statname you can see all statistics, and eventually change statistic#.

  • To see all sessions in OEM 10g DBConsole

    I 'm trying to see all sessions in OEM 10g DBConsole, but I didn't find where to see, I only can see the main sessions... is there a way to see all sessions in database?

    Hi,
    It is best to not compare the 9i OEM to the 10g Grid Control, while some of the features may have been incorporated, they are very different.

  • How to find top 10  SQL statments which are consuming more cpu time.

    hi all,
    Is there any command or script to monitor the top 10 sql statments which are consuming more cpu time.
    I know by using AWR REPORT we can find it, i want the command or script to find the top cpu utilization sql statments.
    Regards
    Subhash.

    Subhash,
    A quick and dirty Google search could have get you started with the following:
    Thread: how to get top CPU consuming sql oracle 10g
    Re: how to get top CPU consuming sql oracle 10g
    Oracle SQL top sessions
    http://www.dba-oracle.com/oracle10g_tuning/t_sql_top_sessions.htm
    "How to Find top 10 expensive sql's", version 9.2.0
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:73325450402303
    HTH,
    Thierry

  • How to generate Top 10 SQL's in the grid report.

    Hello,
    can anyone give a sample query to be used against to get the information of the top 10 SQL's from the database during the time frame we provide to the report during run time.
    Thanks for your time in advance,
    -Vj

    Subhash,
    A quick and dirty Google search could have get you started with the following:
    Thread: how to get top CPU consuming sql oracle 10g
    Re: how to get top CPU consuming sql oracle 10g
    Oracle SQL top sessions
    http://www.dba-oracle.com/oracle10g_tuning/t_sql_top_sessions.htm
    "How to Find top 10 expensive sql's", version 9.2.0
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:73325450402303
    HTH,
    Thierry

  • About Top session in a DB

    Hi,all,
    I need to decide what is top session in a DB, to see how much it would consume resource in that server. When I use TOAD to do it, I find these are so many factors when I make dicision. such as "CPU used by","Physical write" ...
    That means "It is top session sort by CPU used by". So I want to know those essential factors, by which certain session would consume much resource.
    Do you have any advice? Are there any scripts on hand to do this job,except third-part tool like TOAD?
    Robin

    However when I want to work with the top sessions I use the Performance Manager ( This is part of OEM ). These are its advices and descriptions.
    Top SessionsSessions are displayed in descending order based upon the delta value of the statistic chosen as the sort statistic. This is a customizable chart that allows sorting and filtering of sessions based upon a number of user settable criterion.Typically the session that is performing the most I/O is the session that should be targetted for tuning. To identify the SQL statement the session is currently executing you can drill down to the Current SQL Chart. From this drilldown you can choose to tune the SQL statement directly.Complete detailed information about any session can be found by selecting the session and drilling down to the Session Details Chart. This chart allows you to view the current SQL statement as well as resource consumption and performance metrics at the same time.The list of all cursors the session has currently open is available through the Open Cursors For This Session Chart. This helps identify all the SQL statements the session is using. From this chart SQL statements can be selected for tuning further drilldown and analysis.This chart can be used to create a customized Top Sessions view. All of the available statistics and identifiers for sessions are shown in a large table by default. By using the Set Options button in the toolbar the chart can be customized to show only the items of interest and the sort criteria can be changed. Customized charts can then be saved, named and accessed directly by name. Specific advice for each of the data items shown on this chart is available below.This chart includes the following data items:
    Session NameDescription This data item represents either the Oracle username of the current session or, if the session is owned by an Oracle background process, the name of the background process. Data Source select NVL(s.username, b.name) from v$session s, v$bgprocess b User Action The session name is useful in determining which database users are consuming the most resources. If there is a need to prevent a particular session from consuming too much, one way to control resource usage is to create a resource profile. This profile can then be applied to the Oracle user specified in the session name. The profile provides hard limits on any resource that is explicitly added to it. Some of the resources that can be controlled with profiles are cpu usage, idle time, connect time, etc.
    OS UsernameDescription This data item represents the name of the operating system client user. That is the username reported at the time of the database connection time from the operating system. Data Source select osuser from v$session User Action The operating system username can be useful if more than one OS user shares a particular Oracle account (such as SYSTEM). If the session name is not unique, the OS username may provide the identity of the user for the session.
    and so on...
    Do you have OEM ?
    Joel Pérez

  • Oem 9i vs oem 10g (client-server)

    Hi friends,
    I run both my 9i and 10g OEM (client-server based) against/accessing/managing
    an oracle 8i db. In 9i oem i can run TOP SESSION/TOP USERS stats
    but in 10g oem its not available now.
    Likewise in 9i oem i can add,delete,insert,update a row on any schema table
    but in 10g oem its not avialable also. Why is this lose in functionality
    happened please.
    thanks :)

    No, Kri...
    Oracle10g introduced a brand-spanking new way of doing things. One OEM database control, reachable through one port, per 10g database instance. SID and other information hard coded right in the emctl routine used to start and stop the OEM engine.
    To get at any other versions, you go through the Grid Control: set up an agent on the machine to be monitored, set up a central repository and a central grid control 'management server' and point your browser at the management server.
    Or you go dual operation - the 9i OEM standalone console for 9i and lower and the web console for 10g and higher.

  • Urgt:How to identify TOP 5 SQL using more CPU time  without using statspack

    How to identify the TOP 5 SQL queries which are consuming more CPU time during the timespan of 24 hours for entire database. There are N number of users who have issued sql queries, out of which few users have disconnected and few user are still connected to the database(I need to consider all sessions). My database version is 9.0.1. I don't want to use statspack. Is there any way to identify TOP 5 SQL consuming more CPU time without affecting the performance of the database. Can any one help me on this? Its urgent!!. I don't want to use statspack becasue it degrades the performance and i cannot afford to run it for 24 hours.

    You don't run statspack for 24 hours, that would infact be pointless...
    Run statspack for say a 10 or 15 minute window during a particular "busy" period on your database. If you run it for longer then all the useful data will have been "averaged out". You want a snapshot in time, not an average over the day.

  • How to identify TOP 5 SQL consuming more CPU time without using statspack

    How to identify the TOP 5 SQL queries which are consuming more CPU time during the timespan of 24 hours for entire database. There are N number of users who have issued sql queries, out of which few users have disconnected and few user are still connected to the database(I need to consider all sessions). My database version is 9.0.1. I don't want to use statspack. Is there any way to identify TOP 5 SQL consuming more CPU time without affecting the performance of the database. Can any one help me on this? Its urgent!!.

    My database version is 9.0.1. I don't want
    to use statspack. Is there any way to identify TOP 5
    SQL consuming more CPU time without affecting the
    performance of the database. Can any one help me on
    this? Its urgent!!.I cant understand why you dont want to use statspack. As it is very easy to use and very quick to identify bottlenecks. Try using statspack. Its really wonderful.
    Particularly in your case statspack is the best.
    Regards,
    Sanju.

  • Comparing schema using OEM 10g

    Hi,
    IS there any way to compare schema from 2 different schema for Prod and test environments using OEM 10g.
    I have a comparison script which will work for mr but the report generated is not easily readeble.
    Please point out the steps if there is any option to do so in OEM 10g. My database version is 9i.
    Thanks
    Anky

    You can use Oracle Enterprise Manager Grid Control or SQL Developer, in either case you need to have the change management pack licensed other then that you are looking at 3rd party tools such as Toad, older version of OEM or custom scripts.
    You can try some of these tools which include scripts, etc. as these may also be of help to you.
    http://dgielis.blogspot.com/2006/01/compare-2-oracle-schemas.html
    Mike M.

  • Sql tracing in 10g

    Hi,
    I need to trace the sql statements in 10g in linux so that as sys as sysdba i have entered the command
    alter session set sql_trace=true;
    session altered
    Now i need to know the location where i can find the sql statements pls help me

    Check USER_DUMP_DEST init. parameter. See http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/sqltrace.htm#g22503.
    Example with a SQL*Plus SYSDBA connection :
    SQL> show parameter user_dump_dest
    NAME                                 TYPE        VALUE
    user_dump_dest                       string      C:\ORACLEXE\APP\ORACLE\ADMIN\X
                                                     E\UDUMPEdited by: P. Forstmann on 14 janv. 2010 09:35

  • Missing dll in top sessions monitor..

    I installed OEM V9.0.1 on Win2K workstation. I am able to launch Enterprise manager console, access schema, etc,
    but when I click on TOP SESSIONS MONITOR (after entering the user id & password), i get the following error
    "the dynamic link library oravppdc.dll could not be found in the specified path"
    I have searched all the directories for this dll, but I am not able to find it. where can I find it ?
    thanks & regards

    Hello,
    Check SAP note 1145609 and see if it helps.
    Regards,
    David

  • Scheduling thru OEM 10g

    Hi,
    would anybody tell me how to schedule the jobs like OWB Mappings/Process Flows thru OEM 10g.
    Thanks in Advance.
    Ashish

    Are you familiar with the oem_exec_template.sql file? This is provided with OWB in the following directory: <OWB_HOME>/rtp/sql.
    This will allow you to execute mappings or process flows from SQLPlus. There are a number of parameters required. There is plenty of documentation at the beginning of the file defining each of the parameters. Using this, you can schedule process flows in 10g R1. I am currently doing this and it seems to work quite well with the exception of a few unrelated issues.
    Hoe this helps.
    John

  • How many days old we can see SQL Executions OEM 11g

    one of my technical guy asked me 5 days back sql session information how many days old we can see SQL Executions OEM 11g ..?

    Metric Historical Information will be saved for a year by default.
    Check http://download.oracle.com/docs/cd/E11857_01/em.111/e16790/repository.htm#i1030660
    SQL Statement execution might be analyzed from AWR snapshots using ADDM.
    You can keep AWR Snapshots as long as you like.
    Bare in mind that this will occupy database space.
    From the Database Home page select the Server tab and select the Automatic Workload Repository link to set Snapshot Retention
    Regards
    Rob
    http://oemgc.wordpress.com

  • OEM 10G

    I have installed OEM 10g, and all was working great until today. I get Page Not Found when I try to open the console, so I checked for the service and it was not running. I tried to start the service, OracleDBConsoleorcl, and got an error 1053: The service did not respond to the start or control request in a timely fashion. I am using the version I downloaded from the web, and have made no changes since I first installed it and it was working. I am not using it for anything but my local installation right now, so have not installed the IAS with Grid Control. Do I need to do that even though I have not tried to connect to other Oracle server with OEM? Any suggestions? Thanks.

    Thanks for your reply
    But I was not talking about Grid Control. I was talking about non-web based Oacle Enterprise Manager Consol 10g. If there is any configuration we need to do in order to get those information for sessions, which was available in 9i OEM?
    I first want a non-web based OEM client because it is easy to use. Web based application (like grid control) are never so reliable and speedy (this is my opinion).
    Can anyone else help?
    Thanks.

Maybe you are looking for

  • Error while invoking web service over SSL

    While making a SSL Connections to web service i am getting the below mentioned error in spite of configuring the certificate provided by the client onto WLS. I tried adding the certificate to the default DemoTrust and DemoIdentity Keystores. The erro

  • Email addresses popping down that I have not stored in my address book. How do I delete them?

    When I start writing a letter on a new email, a pop down menu with addresses show some "contacts" or email addresses that I have not stored or used. How can I get rid of them? This is on the mail app. that comes with the iPad. Any input anyone? Thank

  • HT3986 I want to run sage on my Mac Mini

    Hi I want to run sage instant or 50 on my Mac Mini, is boot camp with Win 7 compatible? Thanks in advance

  • User Defined Exceptions in Web Service

    I am trying to create complex user defined exceptions in Web services I am creating. Is there a way in JDeveloper to assist in modifying the WSDL to include all required parameters for fault handling that I can use to do this? Or do I have to write t

  • Can't run XP sp3 on x61 tablet - BSOD during installation

    I'm trying to install XP pro sp3 on my X61 tablet, but every time I try I get a BSOD with a 0x0000007B error.  I've tried everything I can think of: 1) changing the BIOS sata mode from ACHI <--> compatibility 2) copying an installation of XP in a vir