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

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#.

  • Top Sessions

    Is there a way to permanently keep my customized settings for Top Session?
    I always want to see All Active Sessions, why is it that i must always click on the customize button first?
    Thanks
    Randy

    I'm not aware of any way to save the customizations set in Top Consumers/Top Sessions. I've never seen that done before.
    Possibly an enhancement request?
    If anyone else, has done this let me know, but I've not seen it.

  • 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

  • Invalid values in 'Top Sessions'

    I have a newly install OEM grid control and on the "Top Sessions" page for multiple databases, I am seeing 'bad' values for every session on numerous columns, i.e.
    CPU (1/100 sec) 1127219200
    Logical Reads 1106247680
    Hard Parses 1127219200
    Disk Sorts 5658315534953873408
    I am getting these result against both 10.2.0.1 and 9.2.0.6 version databases. I have used 'Monitoring Configuration' to setup the dbsnmp user and install statspack. It seems to me as though I must have a bad version of the statspack tables or something.
    Thanks for your help!

    I am also facing same issue.. in fact, in our case, all the values in the columns like Disk sorts, total parses, hard parses are all same for all the sessions.
    And our target OS is
    SunOS 5.9 Generic_118558-22 (64-bit) .
    Would you please pos the bug number, so I can gather some more info.

  • EP About top level navigation

    We are designing that many roles are assigned to one user.
    (about 7-8 roles per user)
    When many roles are assigned to the user, tabs in top level navigation bar can not be displayed without scroll horizontally.
    We want to display all roles at once, without scroll.
    To realize the above, roles must be displayed on 2 records
    in the one top level navigation bar.
    Is ther someone who knows whether top level navigation can
    be displayed at 2 records on a bar, or not.
    Any help or information would be appreciated.
    Thank you.
    Mizuka Aoyama
    SAP Japan Netweaver Consulting.

    Mizuka,
    first, you might want to reorganize your roles and possibly have a look at the "merging" feature.
    Next, you might change the portals theme to use a smaller font for the top level tabs.
    If both options are unsuitable, you can develop your own top level navigation component by writing some java code. Then you can make it look whatever you like to (and I mean it, it's extremely flexible, I did it early in the time of EP6 SP 0 ramp-up, but definitely takes some time).
    Regards,
    Dominik

  • 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.

  • Question about top case

    Hi there,
    I'd like to know if the "top case/keyboard" part also includes the trackpad?
    I'm asking because I just had the top case replaced (was interfering with the fan that produced a clicking sound) and it looks like they replaced it with a used one?! For example, the bottom left corner shows a 1.5 inch square, lighter gray patch (as if there was a sticker there?), and the middle of the trackpad button is very shiny compared to the sides, like it's been used...
    Thanks for any input!
    whitebook 2.0Ghz - 4H622   Mac OS X (10.4.7)   2GB RAM

    The top case includes the trackpad and trackpad button.
    This is at the moment a bit of a sore subject with me. After my MacBook was returned from being repaired for the random shutdown problem, the trackpad button does not respond at all to clicks in the lower right corner. (The repair consisted of replacing the top case and heat sink.) So half the time when I click the button, it doesn't work, because the right end is where I click most often.
    Yesterday I talked to AppleCare phone support, and the Product Specialist suggested I talk to a store Genius, that maybe it could be fixed or else the turnaround for a new top case would be faster than shipping.
    I did that this morning, and the Genius claimed that the behavior was within specs, that it would not bother his typing since you're supposed to click in the middle of the button, that it was equivalent to complaining about a couple of dead pixels.
    I haven't had a return call yet from the Product Specialist, and I'm currently planning on trying a different Apple store tomorrow.
    I see "mushy trackpad button" is one of the common complaints on web forums:
    http://www.mymac.com/showarticle.php?do=something&id=1572

  • How FF can become smarter about implementing Session Restore

    FF needs to become "smarter" about Restoring. Only do a chunk of say 10 tabs at a time, and improve the error recognition & handling so it doesn't just spin forever. Sometimes it doesn't even show the spinner; just won't respond & Activity Monitor says its Not Responding. Can't tell if the Not Responding is due to an active but CPU stealing process that is proceeding, or a stuck process where I should Force Quit. Just have to let it go for 10 minutes before Force Quit.
    Restore needs to have a popup window that tells me exactly what tab it is actively Restoring at the moment, and a timer showing how long it was been working on that Tab. And I need to be able to tell FF how long to try before abandoning that Tab. I need to be able to tell it to abandon that tab sooner via a click button. Abandoned tabs go into a menu for me to mess around with later.
    Noticed that mozilla.org is often "on top" when FF hangs up. And just now, navigating from the main mozilla page to here (3 layers deep?) I had to wait 5-10 seconds for each page to load. Is the mozilla server just underpowered for the amount of traffic, or what?

    ''Why should I want to decrease that?''
    I said to look at the settings. I did not say to change anything.
    ''When I got the email notification, I went to this tab and Refreshed it to see your reply''
    You left the page on the browser after you sent your post? Why is that?
    Are you doing this with your other trouble web pages?
    Do you have this problem when you use a link or bookmark?

  • Getting all session and info about each session

    I want the functionality of HttpSessionContext, but unfortunately, it is deprecated. Specificially, I want to be able to get a Collection of all of the existing HttpSessions so I can loop through them and call the getAttribute(String) and getLastAccessedTime() methods on each HttpSession. The ultimate goal would be to print out a list of all existing sessions, when their were last accessed and print the value of any session attributes that I choose. Is there a way to do this?

    The session listener is available to you in j2ee containers 1.4 and above. It will tell you when a session is created or destroyed. As far as getting you hands on all the sessions there is no j2ee spec defined to give you this. However if you are lucky, the application server's vendor may provide the api to do exactly what you want.

  • ADF Best Practice : About user session management in ADF BC

    Hi,
    I'm using ADF BC and I want to manage information specific to a particular user.
    In the developer's guide at §9.10 it is advised to use APIs relative to DBTransaction class through the getSession and getUserData methods.
    I have several questions :
    * are Session objects returned by ApplicationModuleImpl.getSession() and DBTransaction.getSession() the same ?
    * is it safe to manage user information by using the map returned by the oracle.adf.share.ADFContext.getSessionScope() method ?
    * finally, which is the recommended approach and what are the caveats of each ?
    Thanks a lot,
    Seb.

    Here is the code fragment :
       * Return the jhsUser object.
       * For this method to return an object, the user object must have called setUser
       * on the application module
      public Object getUser()
        Object user = ADFContext.getCurrent().getSessionScope().get(JhsUser.JHS_USER_KEY);
        if (user!=null)
          return user;
        // code below for backwards compatibility
        if (getSession()==null)
          return null;
        return getSession().getUserData().get(JhsUser.JHS_USER_KEY);
       * Stores user object as am session userdata.
       * @deprecated user is now retrieved using pull meachnism with ADFContext, instead of
       * push.
      public void setUser(Object user)
        getSession().getUserData().put(JhsUser.JHS_USER_KEY, user);
      }Notice the deprecated method setUser.
    Seb.

  • Question about "top-down" web services development

    I tried to follow the Oracle "RPC literal top-down web services how-to" to develop a web service with a top-down approach but I have error when I try to compile with Ant the provided example.
    This howto is located at: http://www.oracle.com/technology/sample_code/tech/java/codesnippet/webservices/rpc-lit/index.html
    The error I have is:
    D:\Franck\WebServices\prototype\projectAS10g\exemple\rpc-lit&gt;ant
    Buildfile: build.xml
    env-check:
    check-oracle-home:
    check-j2ee-home:
    init:
    sub-init:
    gen-service:
    [echo] Generating service artifacts
    env-check:
    check-oracle-home:
    check-j2ee-home:
    init:
    wsa:
    [java] java.util.zip.ZipException: The system cannot find the file specified
    [java] at java.util.zip.ZipFile.open(Native Method)
    [java] at java.util.zip.ZipFile.&lt;init&gt;(ZipFile.java:112)
    [java] at java.util.jar.JarFile.&lt;init&gt;(JarFile.java:127)
    [java] at java.util.jar.JarFile.&lt;init&gt;(JarFile.java:65)
    [java] Exception in thread "main"
    BUILD FAILED
    D:\Franck\WebServices\prototype\projectAS10g\exemple\rpc-lit\build.xml:21: The following error occurred while executing this line:
    D:\Franck\WebServices\prototype\projectAS10g\exemple\rpc-lit\config\common.xml:63: Java returned: 1
    Total time: 1 second
    When I look at the common.xml file which is used by the build.xml one I have a class like:
    &lt;pathelement location="${ws.lib.dir}/orasaaj.jar"/&gt;
    The problem is that I do not have this jar file on my disk and I can't find it on the net. Maybe it is one of the root cause of my build failed.
    Does anyone experience this howto successfully and if someone can tell me where to find this jar file it would be great.
    Thanks

    I tried to follow the Oracle "RPC literal top-down web services how-to" to develop a web service with a top-down approach but I have error when I try to compile with Ant the provided example.
    This howto is located at: http://www.oracle.com/technology/sample_code/tech/java/codesnippet/webservices/rpc-lit/index.html
    The error I have is:
    D:\Franck\WebServices\prototype\projectAS10g\exemple\rpc-lit&gt;ant
    Buildfile: build.xml
    env-check:
    check-oracle-home:
    check-j2ee-home:
    init:
    sub-init:
    gen-service:
    [echo] Generating service artifacts
    env-check:
    check-oracle-home:
    check-j2ee-home:
    init:
    wsa:
    [java] java.util.zip.ZipException: The system cannot find the file specified
    [java] at java.util.zip.ZipFile.open(Native Method)
    [java] at java.util.zip.ZipFile.&lt;init&gt;(ZipFile.java:112)
    [java] at java.util.jar.JarFile.&lt;init&gt;(JarFile.java:127)
    [java] at java.util.jar.JarFile.&lt;init&gt;(JarFile.java:65)
    [java] Exception in thread "main"
    BUILD FAILED
    D:\Franck\WebServices\prototype\projectAS10g\exemple\rpc-lit\build.xml:21: The following error occurred while executing this line:
    D:\Franck\WebServices\prototype\projectAS10g\exemple\rpc-lit\config\common.xml:63: Java returned: 1
    Total time: 1 second
    When I look at the common.xml file which is used by the build.xml one I have a class like:
    &lt;pathelement location="${ws.lib.dir}/orasaaj.jar"/&gt;
    The problem is that I do not have this jar file on my disk and I can't find it on the net. Maybe it is one of the root cause of my build failed.
    Does anyone experience this howto successfully and if someone can tell me where to find this jar file it would be great.
    Thanks

  • About Inactive Sessions

    Hello everybody:
    I need some help, this is my situation:
    Every day when I arrive to my job I have to kill inactive session from other days, e.g Today I had to kill a lot of Inactive Session of Yesterday.
    How could I did this by other way.
    Thanks

    Hiow are you determining that the session is inactive? If you are only looking at v$session.status then be aware that you cannot determine if a session is truely INACTIVE from this column alone. You must also look at last_call_et.
    The reason is that Oracle only considers a session ACTIVE while it is processing SQL (or pl/sql) and with a dedicated session and a connect pooled front-end or a client like Forms where the user spends a lot of time filling in the screen or reviewing results then while you see an INACTIVE status in two queries of v$session 30 seconds apart while the session may have run 8 fast short SQL statements in between your viewing v$session. The last_call_et column woud reflect the activity but it is unlikely you would catch the ACTIVE status.
    HTH -- Mark D Powell --

  • Top sessions query

    Hello does anyone have a query that I can use to show sid, serial# and current SQL for a specified user. I know there are tools out there but there is no budget for anything now and OEM is acting very unstable in my environment. I keep having to shut it down and restart it. My Oracle version is 9.2.0.8 on Sun Solaris 9. Thank you for your input.
    -- David

    Justin, I do not have a sql_id in my v$session or v$sql. This is for 10g and above. I am running 9.2.0.8.
    SQL> desc v$session
    Name                                      Null?    Type
    SADDR                                              RAW(8)
    SID                                                NUMBER
    SERIAL#                                            NUMBER
    AUDSID                                             NUMBER
    PADDR                                              RAW(8)
    USER#                                              NUMBER
    USERNAME                                           VARCHAR2(30)
    COMMAND                                            NUMBER
    OWNERID                                            NUMBER
    TADDR                                              VARCHAR2(16)
    LOCKWAIT                                           VARCHAR2(16)
    STATUS                                             VARCHAR2(8)
    SERVER                                             VARCHAR2(9)
    SCHEMA#                                            NUMBER
    SCHEMANAME                                         VARCHAR2(30)
    OSUSER                                             VARCHAR2(30)
    PROCESS                                            VARCHAR2(12)
    MACHINE                                            VARCHAR2(64)
    TERMINAL                                           VARCHAR2(30)
    PROGRAM                                            VARCHAR2(48)
    TYPE                                               VARCHAR2(10)
    SQL_ADDRESS                                        RAW(8)
    SQL_HASH_VALUE                                     NUMBER
    PREV_SQL_ADDR                                      RAW(8)
    PREV_HASH_VALUE                                    NUMBER
    MODULE                                             VARCHAR2(48)
    MODULE_HASH                                        NUMBER
    ACTION                                             VARCHAR2(32)
    ACTION_HASH                                        NUMBER
    CLIENT_INFO                                        VARCHAR2(64)
    FIXED_TABLE_SEQUENCE                               NUMBER
    ROW_WAIT_OBJ#                                      NUMBER
    ROW_WAIT_FILE#                                     NUMBER
    ROW_WAIT_BLOCK#                                    NUMBER
    ROW_WAIT_ROW#                                      NUMBER
    LOGON_TIME                                         DATE
    LAST_CALL_ET                                       NUMBER
    PDML_ENABLED                                       VARCHAR2(3)
    FAILOVER_TYPE                                      VARCHAR2(13)
    FAILOVER_METHOD                                    VARCHAR2(10)
    FAILED_OVER                                        VARCHAR2(3)
    RESOURCE_CONSUMER_GROUP                            VARCHAR2(32)
    PDML_STATUS                                        VARCHAR2(8)
    PDDL_STATUS                                        VARCHAR2(8)
    PQ_STATUS                                          VARCHAR2(8)
    CURRENT_QUEUE_DURATION                             NUMBER
    CLIENT_IDENTIFIER                                  VARCHAR2(64)
    SQL> desc v$sql
    Name                                      Null?    Type
    SQL_TEXT                                           VARCHAR2(1000)
    SHARABLE_MEM                                       NUMBER
    PERSISTENT_MEM                                     NUMBER
    RUNTIME_MEM                                        NUMBER
    SORTS                                              NUMBER
    LOADED_VERSIONS                                    NUMBER
    OPEN_VERSIONS                                      NUMBER
    USERS_OPENING                                      NUMBER
    FETCHES                                            NUMBER
    EXECUTIONS                                         NUMBER
    USERS_EXECUTING                                    NUMBER
    LOADS                                              NUMBER
    FIRST_LOAD_TIME                                    VARCHAR2(19)
    INVALIDATIONS                                      NUMBER
    PARSE_CALLS                                        NUMBER
    DISK_READS                                         NUMBER
    BUFFER_GETS                                        NUMBER
    ROWS_PROCESSED                                     NUMBER
    COMMAND_TYPE                                       NUMBER
    OPTIMIZER_MODE                                     VARCHAR2(10)
    OPTIMIZER_COST                                     NUMBER
    PARSING_USER_ID                                    NUMBER
    PARSING_SCHEMA_ID                                  NUMBER
    KEPT_VERSIONS                                      NUMBER
    ADDRESS                                            RAW(8)
    TYPE_CHK_HEAP                                      RAW(8)
    HASH_VALUE                                         NUMBER
    PLAN_HASH_VALUE                                    NUMBER
    CHILD_NUMBER                                       NUMBER
    MODULE                                             VARCHAR2(64)
    MODULE_HASH                                        NUMBER
    ACTION                                             VARCHAR2(64)
    ACTION_HASH                                        NUMBER
    SERIALIZABLE_ABORTS                                NUMBER
    OUTLINE_CATEGORY                                   VARCHAR2(64)
    CPU_TIME                                           NUMBER
    ELAPSED_TIME                                       NUMBER
    OUTLINE_SID                                        NUMBER
    CHILD_ADDRESS                                      RAW(8)
    SQLTYPE                                            NUMBER
    REMOTE                                             VARCHAR2(1)
    OBJECT_STATUS                                      VARCHAR2(19)
    LITERAL_HASH_VALUE                                 NUMBER
    LAST_LOAD_TIME                                     VARCHAR2(19)
    IS_OBSOLETE                                        VARCHAR2(1)
    CHILD_LATCH                                        NUMBEREdited by: JesusLuvR on Jan 30, 2009 1:49 PM

  • Quick question about PHP sessions and Air app

    Could someone clear this up for me?
    My air app makes html requests to php scripts, php login, search etc. I've been advised to use sessions in the php scripts to ensure each request to a script is done by a logged in user.
    So is the session identifier stored automatically by air somewhere, similar to a cookie in a browser?

    4.4.1 is indeed the version of php in 10.4.6, but it's also the version of php that's running on my 10.3.9 server. You can execute php -v on your server to see which version you've got, but it seems unlikely that it's a version other than 4.4.1 if you haven't updated it yourself. Are there security updates you haven't applied?

Maybe you are looking for

  • I have a little problem.

    I don't know what wrong with this: HDAUDIO\FUNC_01&VEN_8086&DEV_2807&SUBSYS_80860101&REV_1000 HDAUDIO\FUNC_01&VEN_8086&DEV_2807&SUBSYS_80860101 This question was solved. View Solution.

  • Migrate PPPoE/Virtual-Interface from 7206VXR to ASR 1002

    Good Day, I have been attempting to migrate services from an existing 7206VXR to a recently purchased ASR1002 and could use some help. My mistake in assuming that the config would be similar to 7206VXR, but there are changes - mainly VRF and cisco-av

  • How can I edit a PDF form?

    how do you edit and change a pdf form?

  • Cannot use pages on new mac mini

    I got  a new mac mini & have a bunch of documents, but I cannot look at them. I've tried pages, but it wants a software serial number. I don't have one & when I go to buy one, it says that I have the program. I just cannot use it.

  • The i--- programs dont work

    So last night I needed to install X11 cause the iMac didn't come with it installed and you cant download it. Or so I read. So I pop in the iMac disc 1 and go to install it. If I had to option I would have unselected EVERYTHING but X11. I couldnt, I H