How do I find out which query are running??

My client is connecting to the database and running application through the web. From the Unix system, I know his job took 99% of CPU time and running for 1 hour already. Is there anyway I can find out which query are running in the Oracle?? So I can tune this query?? thanks..

Hi,
You can use the following query to identify it.
set linesize 100
set pagesize 100
SELECT substr(sql_text,1,40) sql,executions, rows_processed,
rows_processed/executions "Rows/Exec",
hash_value,address
FROM V$SQLAREA WHERE executions > 100 AND rownum <= 10
ORDER BY executions DESC;
Rgds,
Dhana

Similar Messages

  • My computer says I cannot use icloud because I have multiple versions of outlook installed. How do I find out which versions are installed and how do I decide which one to delete?

    My computer states that I have multiple versions of outlook installed and that i cannot use icloud. How d if find out which versions are installed and which ne to delete without interrupting the other?

    That's a Windows/Office problem. You should ask in the Microsoft support forums.

  • My Library has ten more songs than my iPod. How can I find out which songs are not syncing?

    My Library has ten more songs than my iPod. How can I find out which songs are not syncing?
    I recently had to purchase a new hard drive. Because the size of my music collection exceeds 140 GB, I stored all of my music on a separate external hard drive. When I exported everything back into my new iTunes library, I found that I had about 200 more songs than I had in the previous library. After deleting most of those extraneous songs, I was able to get my library close to where it was before. However, after syncing to my iPod Classic, I noticed that only 34,853 of the 34,863 loaded. How can I figure out which of those ten songs in my library did not sync to my iPod?
    Yellow12

    It may be that the 10 songs are unchecked. To find them select songs view.
    If there is a column Heading marked with a tick then click on it to sort by this column.
    If the Column is not there then View > View Options and select the Checked column which will then display
    Check the songs by putting ticks in the empty boxes and resynch. Now those tracks should go over as well

  • How do i find out which computers are authorized?

    How do I find out which computers are authorized?

    Log into iTunes from your desktop. (Sign in upper right corner of iTunes page.)
    On your user name/e-mail (upper right corner) use the drop down menu and select account.
    Select manage your devices.
    That's it folks ....

  • How do I find out which instruments are used by software instrument loops?

    This isn't so much a problem, it's just something that's been bugging me - how do I find out which instruments are used by the software instrument loops?
    Usually clicking on a track will bring up the instrument name in the track info pane, but if I do this after importing a software instrument loop into my song it doesn't show anything. Any ideas?
    PS I have used the search function so I apologise in advance if there's an obvious answer.

    in track info, under details, the instrument being used is displayed in the generator popUp menu

  • HT1420 How do I find out which computers are authorized to my Apple ID?

    How do I find out which computers are authorized to my Apple ID?

    lmoscoso wrote:
    How do I find out which computers are authorized to my Apple ID?
    You cannot.
    Some people wish there was a way to print out a list of authorized computers that would look like "Suzy's laptop,  Dad's Macbook, and the desktop we threw away last year."  But there is no way to do so.
    It is especially confusing, since a single machine may be using up multiple authorizations.  Also, authorizations may be used up by machines that do not even exist any more.
    If you are at the limit, you can use the Deauthorize All command,  and then reauthorize just the ones you need.

  • How do I find out what applications are running in the background

    I have a 2008 iMac with 2GB memory.  How do I find out what programs are running in the background?  I am going to buy a new iMac before the end of the year to replace this one.  When I looked at Activity Monitor it shows 1.8Gb used but doesn't tell all the programs running.

    open activity monitor [if it doesnt launch click winders>Activity Monitor]. then it'll show all proceses

  • How can I find out which tables are having DDL locks?

    I can see related information by querying DBA_DDL_LOCKS view, but it doesn't give me the information which tables are having DDL locks.
    Is there a way I can find out which tables are having DDL locks?
    Thanks!

    Here's a long script written back in 2001. Still works:
    BREAK on sid on serial# on username
    COL sid        for 9999
    COL serial#    for 99999
    COL username   for a20
    COL type       for a20    trunc
    COL lmode      for a5     trunc
    COL lrequest   for a4     trunc
    COL detail     for a75    trunc
    SELECT   s.sid
           , s.serial#
           , s.username
           , DECODE(
                  l.TYPE
                -- Long locks
                , 'TM', 'dml/data enq (TM)'
                , 'TX', 'transac enq (TX) '
                , 'UL', 'pls usr lock (UL)'
                -- Short locks
                , 'BL', 'buf hash tbl (BL)'
                , 'CF', 'control file (CF)'
                , 'CI', 'cross inst f (CI)'
                , 'CU', 'cursor bind (CU) '
                , 'DF', 'data file (CF)   '
                , 'DL', 'direct load (DL) '
                , 'DM', 'mount/strtup (DM)'
                , 'DR', 'reco lock (DR)   '
                , 'DX', 'distrib tran (DX)'
                , 'FI', 'sga opn file (FI)'
                , 'FS', 'file set (FS)    '
                , 'IN', 'instance num (IN)'
                , 'IR', 'instce recvr (IR)'
                , 'IS', 'get state (IS)   '
                , 'IV', 'libcache inv (IV)'
                , 'JQ', 'job queue (JQ)   '
                , 'KK', 'log sw kick (KK) '
                , 'LS', 'log switch (LS)  '
                , 'MM', 'mount def (MM)   '
                , 'MR', 'media recvry (MR)'
                , 'PF', 'pwfile enq (PF)  '
                , 'PR', 'process strt (PR)'
                , 'RW', 'row wait (RW)    '
                , 'RT', 'redo thread (RT) '
                , 'SC', 'scn enq (SC)     '
                , 'SM', 'smon lock (SM)   '
                , 'SN', 'seqno instce (SN)'
                , 'SQ', 'seqno enq (SQ)   '
                , 'ST', 'space transc (ST)'
                , 'SV', 'seqno value (SV) '
                , 'TA', 'generic enq (TA) '
                , 'TD', 'dll enq (TD)     '
                , 'TE', 'extend seg (TE)  '
                , 'TS', 'temp segment (TS)'
                , 'TT', 'temp table (TT)  '
                , 'UN', 'user name (UN)   '
                , 'WL', 'write redo (WL)  '
                , 'TYPE = ' || l.TYPE) AS type
           , DECODE(l.lmode, 0, 'none', 1, 'null', 2, 'RS', 3, 'RX', 4, 'S', 5, 'SRX', 6, 'X', TO_CHAR(l.lmode)) A
    S lmode
           , DECODE(l.request, 0, 'none', 1, 'null', 2, 'RS', 3, 'RX', 4, 'S', 5, 'SRX', 6, 'X', TO_CHAR(l.request
    )) AS lrequest
           , DECODE(
                  l.TYPE
                , 'JQ', 'Job #' || j.job || ' (' || j.what || ') owned by: ' || j.username
                , 'MR', DECODE(s.user_type, 'BG', 'DICTIONARY OBJECT', LOWER(obj.owner) || '.' || LOWER(obj.name))
    || ' (' || LOWER(obj.TYPE) || ')'
                , 'RT', 'thread #' || LOWER(l.id1)
                , 'RW', 'file#' || LOWER(SUBSTR(l.id1, 1, 3)) || ', block#' || LOWER(SUBSTR(l.id1, 4, 5)) || ', ro
    w#' || LOWER(l.id2)
                , 'TD', 'object: ' || LOWER(obj.owner) || '.' || LOWER(obj.name) || ' (' || LOWER(obj.TYPE) || ')'
                , 'TM', 'object: ' || LOWER(obj.owner) || '.' || LOWER(obj.name) || ' (' || LOWER(obj.TYPE) || ')'
                , 'TS', DECODE(l.id2, 0, 'enqueue', 'new block allocation')
                , 'TX', DECODE(
                             lo.object_name
                           , NULL, 'rbs #' || TRUNC(l.id1 / 65536) || ', slot #' || LOWER(l.id1)
                           , 'rbs #' || TRUNC(l.id1 / 65536) || ', slot #' || LOWER(l.id1) || ', object: ' || LOWE
    R(lo.object_name))
                , 'UL', 'lock name: ' || la.name || ', expiration date: ' || TO_CHAR(la.expiration, 'DD-MON-RR HH2
    4:MI:SS')
                , 'WL', 'redo log file#' || LOWER(l.id1)
                , 'id1 = ' || l.id1 || ', id2 = ' || l.id2) AS detail
        FROM sys.v_$lock l
           , (SELECT a.sid
                   , a.serial#
                   , NVL(a.username, 'SYS (' || LOWER(b.name) || ')') AS username
                   , DECODE(a.username, NULL, 'BG', 'USER') AS user_type
                FROM sys.v_$session a
                   , sys.v_$bgprocess b
               WHERE a.paddr = b.paddr(+)) s
           , (SELECT o.obj#
                   , u.name AS owner
                   , o.name
                   , DECODE(
                          o.type#
                        , 0, 'NEXT OBJECT'
                        , 1, 'INDEX'
                        , 2, 'TABLE'
                        , 3, 'CLUSTER'
                        , 4, 'VIEW'
                        , 5, 'SYNONYM'
                        , 6, 'SEQUENCE'
                        , 7, 'PROCEDURE'
                        , 8, 'FUNCTION'
                        , 9, 'PACKAGE'
                        , 11, 'PACKAGE BODY'
                        , 12, 'TRIGGER'
                        , 13, 'TYPE'
                        , 14, 'TYPE BODY'
                        , 19, 'TABLE PARTITION'
                        , 20, 'INDEX PARTITION'
                        , 22, 'LIBRARY'
                        , 23, 'DIRECTORY'
                        , 24, 'QUEUE'
                        , 28, 'JAVA SOURCE'
                        , 29, 'JAVA CLASS'
                        , 30, 'JAVA RESOURCE'
                        , 32, 'INDEXTYPE'
                        , 33, 'OPERATOR'
                        , 34, 'TABLE SUBPARTITION'
                        , 35, 'INDEX SUBPARTITION'
                        , 39, 'LOB PARTITION'
                        , 40, 'LOB SUBPARTITION'
                        , 43, 'DIMENSION'
                        , 44, 'CONTEXT'
                        , 47, 'RESOURCE PLAN'
                        , 48, 'CONSUMER GROUP'
                        , 51, 'SUBSCRIPTION'
                        , 52, 'LOCATION'
                        , 'UNDEFINED') AS type
                FROM sys.obj$ o
                   , sys.user$ u
               WHERE o.owner# = u.user#) obj
           , (SELECT vlo.xidusn
                   , vlo.xidslot
                   , vlo.xidsqn
                   , vlo.process
                   , o.owner || '.' || o.object_name AS object_name
                FROM sys.v_$locked_object vlo
                   , sys.dba_objects o
               WHERE vlo.object_id = o.object_id) lo
           , (SELECT job
                   , schema_user AS username
                   , what
                FROM dba_jobs) j
           , sys.dbms_lock_allocated la
       WHERE l.sid = s.sid
         AND l.id1 = obj.obj#(+)
         AND l.id2 = j.job(+)
         AND TRUNC(l.id1 / 65536) = lo.xidusn(+)
         AND LOWER(l.id1) = lo.xidslot(+)
         AND l.id2 = lo.xidsqn(+)
         AND l.id1 = la.lockid(+)
         AND l.TYPE != 'MR'
    UNION ALL
                      /*** LATCH HOLDERS ***/
    SELECT   s.sid
           , s.serial#
           , s.username
           , 'latch'
           , 'X'
           , 'none'
           , h.name || ' addr=' || LOWER(RAWTOHEX(laddr)) AS object
        FROM sys.v_$process p
           , sys.v_$session s
           , sys.v_$latchholder h
       WHERE h.pid = p.pid
         AND p.addr = s.paddr
    UNION ALL
                      /*** LATCH WAITERS ***/
    SELECT   s.sid
           , s.serial#
           , s.username
           , 'latch'
           , 'none'
           , 'X'
           , name || ' latch=' || p.latchwait AS object
        FROM sys.v_$session s
           , sys.v_$process p
           , sys.v_$latch l
       WHERE latchwait IS NOT NULL
         AND p.addr = s.paddr
         AND p.latchwait = l.addr
    ORDER BY sid
           , serial#
           , username
           , 4
           , 5
           , 6
           , 7;

  • How do I find out which JamPacks are present?

    Second question: How do I determine which Jampacks are loaded into a current GarageBand on my new (old) computer?

    Thanks,I did that but if for instance I'm trying to determine if: "Garageband Jam Pack 2: Remix Tools, Garageband Jam Pack 3:Rhythm Tools, Garageband Jam Pack 4: Symphony Pack" are present, what exactly am I looking for?

  • RV082 VLAN's - How can I find out which clients are on them?

    We have an RV082 router and two of the ports are designated as VLAN2 and VLAN3, the router interface only gives a status report of the port but I can't find anyway to see which computer's are on those VLAN's. Is there anyway to do this? Thank you.

    The router is DHCP, I can see everybody that way but what I was wondering because that information isn't on the DHCP status window is who is on let's say, we have 3 VLANS setup in the router, the router tells me through System Summary Port Stats which port is set to which VLAN but I do not see anywhere in the router interface which IP addresses are going to VLAN1, VLAN2 or VLAN3 for instance. It does not show this in the Port Management screen either. Was wondering if there is some way to see this in CMD? I do not know how to interface with the 3 switches we have in CMD either. I am just an old A+ guy in a small company who knows how to fix computers but don't know much about networking. I was put into this position because I could change out a video card so they thought I was the guy to run the network because they can't afford to do much more than that with the economy in a shambles. Thanks for any help you can give me.
    Dean
    P.S. I'm really a drafter.

  • How do you find out which files are not authorized?

    All of a sudden, out of the blue, I start getting this message :
    Some of the Audible files in the iTunes library were not copied to the iPod “iPod” because you are not authorized to play them on this computer.
    Well first of all - all of the music I've bought in the last 4 years have come from iTunes so why this comes up now all of a sudden is beyond me.
    Computer hasn't changed.
    Same old iPod touch (1st gen) I've been using for several years now. The last time I tried to sync it was probably a few weeks ago (with no problems).
    I thought I'd look to see if say the past 10 songs I've purchased are on the iPod (which goes back several months)... they are.
    So I thought - ok let's see if I get a problem syncing my iPhone and my iPad. Nope - no problems there.
    I'm stumped.
    It would be nice if I could even get a list of the files it claims can't be synced to the iPod, that would be a good starting point to diagnose the problem, but I can't figure out even how to get that.
    Help!

    PunkStar Studios wrote:
    Some of the Audible files ...
    if you're seeing that error, it has nothing to do with purchased content from the iTunes store.
    Audible is an online store that sells Audiobooks. The audiobooks purchased from Audibooks work the same way as the songs purchased from iTunes. You can only play the audiobooks on a limited number of computers.

  • HT1420 how do I find out which computers are authorized on my Apple ID?

    I have seemed to have lost track of the computers that are authorized on my Apple ID.  In iTunes I can find how many computers are authorized on my ID but no list of computer names. 

    There is no list available from your end.
    (82495)

  • Photos-App: How do I find out which photos are used in a Shared Photo Stream?

    Hi folks,
    I just ecountered a “problem“ using a Shared Photo Stream.
    FYI: I have circa 1.200 images stored in Photos-App. About 360 of them are used in a Shared Photo Stream.
    Now I'd like to delete all the fotos NOT used in said Stream.
    Since the images in said Stream are not in the same order as they were originally taken, there are also many images between the ones used.
    So now I am confronted with the time-consuming task of comparing and deleting the photos, switching between Stream and Album/webview all the time.
    And do it all by hand. Naaaaaaaah! ):
    Any ideas on how to speed up this whole process?
    (I already wrote Apple to maybe add a label or icon to the photos used in a Stream (when in any other view) so it gets easier to identify the right ones.)
    Greets, Tim

    Incorrect. Photos added to the Camera Roll are automatically uploaded to Photo Stream. Photos deleted from the Camera Roll are not automatically deleted from Photo Stream.

  • How do I find out which computers I have activated on iTunes?

    I am trying to activtate my laptop on iTunes and it keeps telling me that I already have 5 computers activated.  I checked my old laptop and it says it is not activated.
    So, how do I find out which computers are activated? How do I take the old ones off the activation list if I no longer own them? I no longer have the HP Vectra computer listed below.

    You cannot identify them. However you can deauthorise them all and then reauthorise the ones you need.
    To Deauthorise all
    go to Itunes Store Select Account from the Quik links section
    Use the Deauthorise all button
    To reauthorise a machine
    Store > Authorise this computer.. in the Top Menu (You may need Ctrl B to see it in windows)

  • [SOLVED] How do I find out what packages are installed in a distro?

    Okay. I was running Arch before, but GNOME had a bunch of problems that I couldn't fix myself, so I reformatted and went to Peppermint OS (it's a cloud-based system), and I absolutely love it. Now, the thing is, it's even slower than my Arch system was running GNOME, and it's supposed to be super-lightweight and speedy; but aside from that, I found it's a great distro (I think most of the slowdown is because it's based on Ubuntu and Mint). So, my question: how do I find out which packages are in Peppermint OS so I can emulate the basic environment, except with Arch underneath? Thanks, guys!
    Last edited by InfernalDante (2011-07-13 02:39:05)

    Okay, I guess an hour of Googling wasn't enough, but I just found a site that tells me how to do it! I'll mark this solved, but for anyone else who wants to know, the info is right here: http://www.cyberciti.biz/faq/find-out-i … -in-linux/ It uses dpkg, which I think is only used on Debian-based systems (correct me if I'm wrong) so it may not work for all distros, but it's a start.

Maybe you are looking for

  • IPod classic 160GB not detected under Windows Vista

    Hi, I was trying to find something on that problem, but obviously all the problems with iPod and Vista are slightly different. Here's my story: Toshiba Portege R400 Windows Vista Ultimate 32bit iPod Classic 160GB iTunes 7.6.0.29 USB 2.0 When I try to

  • Mail Auto Retrieval - Nokia 5800

    Hi, Im having a problem with Nokia's Email App on my 5800XM. I just set up 3 mail accounts, but i can configure automatic retrieval only for 2 of them. Is it limited just for 2 account (auto retrieval)? Is there any way to increase this value?. Hope

  • Perspective Warp missing from the "Edit" dropdown in - Photoshop CC

    Perspective Warp missing from the "Edit" dropdown in - Photoshop CC It's a brand new instal of Photoshop CC and there is no Perspective warp. -Thanks

  • Webcenter integration with Obiee

    Hi , I am trying to integrate to connect to Obiee database using logical sql view object , so when I try to create a connection , it errors out stating that the connection to the particular port on the given is machine is failing. actually the link g

  • Cannot get IE11 to install - 40007

    OS: Windows Server 2008 R2 SP1.... I have installed all the pre-requistes hotfixes and rebooted. Try to install IE11 and keeps on failing on this: Setup exit code: 0x00009C47 (40007) - Required updates failed to download. How is this possible if even