CPU used by oracle user

Hello
10 g R2 on Windows SERVER 2003
user Oracle SCOTT connect to SQLPLUS and runs a large query. Is there some way to see how much CPU he uses?

Thank you.

CPU used by a user (session wise)
Select a.sid, a.username, a.osuser, c.name b.value
session $ v a, v$ sesstat b, v$ statname c
where = select a.sid
and b.statistic # c.statistic = #.
and c.name like '% CPU % '.
and a.username = 'SCOTT'
order of a.sid, c.name
/

By user (session wise) the following information:
1 uses of the CPU
2 kinds of memory
3. scan of table
4 validation
5 slider
6. physical reads
7. logical reads
8 BCHR (buffer hit ratio cache)

Select a.sid, a.username, a.osuser, c.name b.value
session $ v a, v$ sesstat b, v$ statname c
where = select a.sid
and b.statistic # c.statistic = #.
and (c.name like '% CPU %') or c.name like ' % sorts (memory) % "or c.name like '% table scan %' or c.name like"% commit %"c.name as 'cursor %' or c.name like ' % read %" or like "% stamp %" c.name c.name like ' % cache %»
and b.value > 0
order of a.sid, c.name
/

If you have licenses for diagnosis package and the performance pack, you can look at the history of the current session for this type of information. You can query the DBA_HIST_ACTIVE_SESS_HISTORY view, or run the ashrpt.sql script in $ORACLE_HOME/rdbms/admin or use OEM to get a graphical representation of the workload over time.

HTH
Girish Sharma

Published by: Girish Sharma on December 8, 2009 17:23
"and a.username ='SCOTT '" added. "

Tags: Database

Similar Questions

  • CPU used by ORACLE

    Hello
    on the 11G R2, Win 2008.
    In Windows, you see the background process (mmon, pmon,...). Can we?
    How to see CPU used by Oracle background processes?
    Updated CPU was used to 90% by oracle.
    I ran a CWA. But nothing about them in it. I wonder why Oracle was time CPU?
    Load Profile              Per Second    Per Transaction   Per Exec   Per Call
    ~~~~~~~~~~~~         ---------------    --------------- ---------- ----------
          DB Time(s):                1.5                1.7       0.05       0.05
           DB CPU(s):                0.9                1.0       0.03       0.03
           Redo size:            3,294.8            3,914.9
       Logical reads:           42,405.9           50,387.3
       Block changes:               19.5               23.2
      Physical reads:               14.8               17.6
     Physical writes:                1.2                1.4
          User calls:               27.2               32.3
              Parses:                9.9               11.7
         Hard parses:                0.2                0.2
    W/A MB processed:                0.1                0.1
              Logons:                0.3                0.3
            Executes:               27.9               33.2
           Rollbacks:                0.0                0.0
        Transactions:                0.8
    
    Instance Efficiency Percentages (Target 100%)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                Buffer Nowait %:  100.00       Redo NoWait %:  100.00
                Buffer  Hit   %:   99.97    In-memory Sort %:  100.00
                Library Hit   %:   98.46        Soft Parse %:   97.94
             Execute to Parse %:   64.67         Latch Hit %:  100.00
    Parse CPU to Parse Elapsd %:   10.90     % Non-Parse CPU:   99.92
    
     Shared Pool Statistics        Begin    End
                                  ------  ------
                 Memory Usage %:   81.43   83.60
        % SQL with executions>1:   92.47   84.84
      % Memory for SQL w/exec>1:   86.88   79.50
    
    Top 5 Timed Foreground Events
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                               Avg
                                                              wait   % DB
    Event                                 Waits     Time(s)   (ms)   time Wait Class
    ------------------------------ ------------ ----------- ------ ------ ----------
    DB CPU                                            6,317          60.4
    db file sequential read              44,888       2,407     54   23.0 User I/O
    db file scattered read                5,522         441     80    4.2 User I/O
    control file sequential read          4,725         268     57    2.6 System I/O
    Disk file operations I/O              1,089          73     67     .7 User I/O
    Thank you.

    You can use Process Explorer to look at in the background processes: http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx

  • After changing the orainventory place im unable to connect using the oracle user

    Hello

    IM using oracle 12 c on rhel 6 after correctly installing the software, I changed the location of oravinventory in/data/houses

    / u01/app/Oracle

    After making these changes im is no longer able to connect using the oracle user...

    also I back return changes I had made to the orainventory folder still unable to connect using the oracle user...

    any help on this would be greatly appreciated

    Sadia. wrote:

    Hello

    IM using oracle 12 c on rhel 6 after correctly installing the software, I changed the location of oravinventory in/data/houses

    / u01/app/Oracle

    After making these changes im is no longer able to connect using the oracle user...

    also I back return changes I had made to the orainventory folder still unable to connect using the oracle user...

    any help on this would be greatly appreciated

    Newer versions of oracle have implemented a great new technology to help solve problems, called "error messages."  Unfortunately, I can't find any reference to an error message named 'is no longer able to connect.

    And why you are moving your site from inventory?  When you have installed oracle, he put the inventory where he wanted.  There is no reason to try to change or replace.

  • How to check the total memory used by Oracle and user who use more memo

    Hello

    I use oracle 10.2.0.4 on Windows 2003 server SP2 version.

    1. How can I check the "total memory" used by Oracle

    2. which users use more CPU resources.

    Thanks and greetings
    Amit

    Hello

    Oracle EM is the best to identify the use of the processor and memory used by each session.

    In addition, use after query to calculate the memory used by each session of the.

    SELECT to_char (ssn.sid, '9999') | ' - ' || NVL (ssn.username, nvl (bgp.name, 'background')) |
    NVL (Lower (SSN.machine), ins.host_name) "SESSION."
    TO_CHAR (prc.spid, '999999999') ' PID/THREAD. "
    TO_CHAR ((se1.value/1024) / 1024, '999G999G990D00'). "MO" "SIZE."
    TO_CHAR ((se2.value/1024) / 1024, '999G999G990D00'). "MO" 'MAXIMUM SIZE '.
    V $ sesstat se1, v$ sesstat se2, v$ session ssn, v$ bgprocess bgp, v$ process RPC.
    v$ ins instance, v$ statname stat1, v$ statname stat2
    WHERE se1.statistic # = stat1.statistic # and stat1.name = 'pga session in memory.
    AND se2.statistic # = stat2.statistic # and stat2.name = 'pga memory max session'
    AND se1.sid = ssn.sid
    AND se2.sid = ssn.sid
    AND ssn.paddr = bgp.paddr (+)
    AND ssn.paddr = prc.addr (+);

    Kind regards
    Charrier

  • How can we replace Oracle form when you used by another user

    Hi Experts,

    Is it possible to replace Oracle form while in use by another user?

    Some time need deliver urgent fixes on the production environment, but it must wait for downtime, and the form does not use.

    I searched the Forum, but able to get the answer to this topic, I will be grateful if you could provide no alternative to do this.

    Env:

    Windows Server 2008 R2

    WebLogic Server 10.3.5

    Oracle form & report 11.1.2

    Hello

    For Production environment, it will be handled with tactics that led to minor maintenance work as well.

    You must have two physical directories (real and temporary) including the same fmx/plx/pll/mmx, files etc.

    and a file reference of in the FORMS_PATH in default.env, who have the latest version of the source.

    Copy the last source file into a temporary directory, when the user take the new session, it will access the new version of the source of the temporary path and who obviously last source version.

    Meanwhile, once the actual source published by the user version, you can copy the latest version of the source to the real directory and reset the FORMS_PATH with the actual path.

    In this way, you can solve your problem.

  • CPU used by the oracle process

    Hello
    10 g R2 on AIX 1.6 How to see the CPU used by the Oracle process?

    Thank you.

    By process, you can use:

    You can use the command topas or svmon - G

    By Session

    use of v$ Session

  • Ask about the 'top' of Linux on Linux for oracle user command

    It's the output of the 'top' command in one of my linux server hosting an Oracle instance with SGA 600 MB and 400 MB PGA. One instance is in this server.


    Top - 14:36:37 04:26, 3 users, load average: 0.05, 0.11 0.28
    Tasks: 124 1 total, running, 123 sleeping, 0 stopped, 0 zombie
    CPU: 0.2% us, sy 0.1% 0.0% ni, 66.6% id, 33.1% wa, 0.0% Hi, 0.0% if
    MEM: 12299332 k total, * 2569836 k * used, 9729496 k free, 61288 k buffers
    Swap: 20972816 k total, 0 k used, 20972816 k, 2274852-free updated k cached

    PID USER PR NOR VIRT RES SHR S % CPU % MEM TIME + COMMAND
    6345 oracle 16 0 37132 1752 1172 S 0,0 0,0 0:00.08 sshd
    6346 oracle 16 0 54004 1536 1208 S 0,0 0,0 0:00.02 bash
    6423 45376 0 16 10 oracle m 6228 S 0.0 0.1 0:00.25 tnslsnr
    6471 oracle 16 0 740 m 17 m 13 m S 0.0 0.1 0:00.02 oracle
    6473 oracle 16 0 739 m 15 m 12 m S 0.0 0.1 0:00.01 oracle
    6475 oracle 16 0 739 m 32 m 29 m S 0.3 0.0 0:00.07 oracle
    6477 oracle 16 742 m 0 50 m 44 m S 0,0 0,4 0:00.27 oracle
    6479 oracle 16 754 m 0 23 m 19 m S 0.0 0.2 0:00.43 oracle
    6481 oracle 16 0 739 m 24 m 20 m S 0.0 0.2 0:00.61 oracle
    6483 oracle 16 740 m 0 88 83 m m S 0.7 0.0 0:00.71 oracle
    6485 oracle 16 0 739 m 22 m 19 m S 0.0 0.2 0:00.01 oracle
    6487 oracle 16 0 740 m 30 m 25 m S 0.3 0.0 0:00.15 oracle
    6489 oracle 16 741 m 0 55 m 48 m S 0.0 0.5 0:00.29 oracle
    6491 oracle 16 0 739 m 24 m 20 m S 0.0 0.2 0:00.01 oracle
    6493 oracle 16 0 739 m 15 m 11 m S 0.0 0.1 0:00.01 oracle
    6495 oracle 16 0 739 m 14 m 11 m S 0.0 0.1 0:00.00 oracle
    6622 oracle 16 739 m 0 m 16 m 13 S 0.0 0.1 0:00.00 oracle
    6626 oracle 16 740 m 0 79 74 m m S 0.7 0.0 0:01.95 oracle
    6636 oracle 16 0 740 m 28 m 23 m S 0.0 0.2 0:00.06 oracle
    6638 oracle 16 0 739 m 16 m 12 m S 0.0 0.1 0:00.01 oracle
    6846 oracle 16 0 739 m 19 m 16 m S 0.0 0.2 0:00.02 oracle
    6848 oracle 16 0 739 m 24 m 21 m S 0.0 0.2 0:00.04 oracle
    6850 oracle 16 0 739 m 19 m 16 m S 0.0 0.2 0:00.02 oracle
    6852 oracle 16 0 739 m 19 m 16 m S 0.0 0.2 0:00.01 oracle
    6854 oracle 16 0 739 m 30 m 26 m S 0.3 0.0 0:00.12 oracle
    6856 oracle 15 0 739 m 28 m 24 m S 0.0 0.2 0:00.18 oracle
    6858 oracle 15 0 740 m 40 m 35 m S 0.3 0.0 0:06.39 oracle
    6862 oracle 16 0 739 m 32 m 28 m S 0.3 0.0 0:02.25 oracle
    6864 oracle 16 0 739 m 19 m 16 m S 0.0 0.2 0:00.02 oracle
    6866 oracle 16 0 739 m 19 m 16 m S 0.0 0.2 0:00.03 oracle
    6868 oracle 16 0 739 m 19 m 16 m S 0.0 0.2 0:00.02 oracle
    7480 oracle 15 0 37264 1668 1092 S 0,0 0,0 0:00.15 sshd
    7481 oracle 15 0 54004 1528 1196 S 0,0 0,0 0:00.05 bash
    10333 oracle 16 0 739 m 20 m 16 m S 0.0 0.2 0:00.00 oracle
    10337 oracle 15 0 6168 1080 768 R 0,0 0,0 0:00.00 top

    RAM total as seen from the high command is 12G.
    * 2569836 *-total RAM that is currently used.

    How I see the total RAM used by all Oracle processes running on that server. The server is Linux X 86 64 bit. I can summarize the values under the column 'VIRT' command 'top' to see the total RAM used?

    Is it possible to see the total RAM and CPU used by top Oracle?


    "VIRT" is the virtual memory - what is related to the figure above, which is the physical memory (RAM)?

    Thanks in advance
    SSN

    Published by: SSNair on October 21, 2010 02:39

    Oracle used shared memory to implement the CMS, which was the largest consumer of memory of the Oracle instance. The problem is that in of many modern operating system, including linux, it is difficult to define the use of memory real fo software. This is because the memory used by a process consists of shared (for example, shared memory, shared library, executable code) and private components (for example, the heap, stack). Utilities such as top, ps, etc. provides all the visible memory through a process, regardless of whether or not it is shared. Accordingly, the total amount of VIRT etc. will be inflated by shared components. A more accurate figure of the use of memory, shared memory / library / code should be counted once.

    Before 11g, Oracle used System V ipc, and it is possible to control the amount of memory allocated by using IPCS. 11 g, Oracle passed to/dev/SHM, use df to check memory allocation. (Thanks user11150436)

    The figure of "Mem used" in the upper part is the actual use of memory: shared memory and the library are not counted multiple. However, Linux always puts in cache (read before actually requested) and disk i/o buffer (writing after completion of signaling). Therefore, "Used Mem" is almost always of very nearly the amount of physical memory. "Used Mem' - 'buffers' - 'cached' reflects the memory actually used by the operating system and all the programs most accuately.

    And you can use the pmap utility to check the memory card. Can classify you the use of memory sharable and unsharable to calculate a more accurate result, adapted to your need. You need knowledge of OS to understand the output.

  • on my ap cpu used

    Hi all

    I have a question about the rate of cpu used, my ap has high computer function, as jpeg encode and decode seconds, and when he's throwing for awhile time, the CPU rate used for my ap is superior and superior and then she reach up to 100% result in the user interface is more slower. Is there a solution that could solve this problem? or no matter what concept, I know.

    The issue you describe is not really possible on a BlackBerry.  As a multitasking operating system, it will run quite happily CPU intensive workloads in the background while maintaining good performance of the user interface for the user.

    If your treatment is an impact on the user, it is certainly because you run the processing on the thread of events, you should avoid.

    I think that this article will be useful:

    http://supportforums.BlackBerry.com/T5/Java-development/what-is-the-event-thread/Ta-p/446865

  • ASM and SCAN listener running of the Oracle user not user network

    Hi all

    Greetings for the day!

    In one of my new customer environment, I see that ASM and SCAN are running oracle user not user network, although the ORACLE_HOME is on the grid software. I read somewhere that we should run ASM and SCAN from grid not Oracle. Please let me know if I'm right and if there are consequences of the performer of the Oracle user.

    OS: Red Hat Enterprise Linux Server 6.5 (Santiago) 64-bit release

    Oracle RDBMS: 11204

    Oracle GI: 11204

    CAR Info: 2 node cluster.

    Thank you very much.

    AbbDBA

    The important word is expected here. It is suggested that 11.2, that the separation of roles, a non-oracle account must be used for the GI. But this is not essential, and certainly not wrong to use Oracle db and IM account as long as you do not use ASM according to security features. So nothing to worry about. You're good.

    Aman...

  • Password expiration for Oracle users

    Hello

    We use different Oracle (9i at 12 c) versions on different OS (Win, unix) platforms,

    Most of the prodction of the password of the user databases get expire after 180 days, which is the cause of the problem for us.

    We need detailed information according to how many days user password will expire.

    Need a script to find the number of days due to password expiry.

    Thanks in advance.

    Select the user name, expiration-date-sysdate from dba_users

    Hemant K Collette

  • Difference between Oracle user and security

    Hi all

    Can someone give me the difference between--> Oracle--> user and security-> system oracle apps R12 resp. administrator user.


    Thank you
    Mahesh.

    Published by: 991854 on March 12, 2013 01:49

    Can someone give me the difference between--> Oracle--> user and security-> oracle apps R12 resp. system administrator user.

    Security > Oracle > register:

    Use this window to register a username with Oracle E-Business Suite ORACLE. An ORACLE user name grants privileges to access the ORACLE database
    http://docs.Oracle.com/CD/E18727_01/doc.121/e12893/T174296T174305.htm

    Security > Oracle > DataSet:

    A data group defines the mapping between the products Oracle E-Business Suite and ORACLE database ID. A data group determines which accounts of liability forms, concurrent programs and reports Oracle database to connect to. see: Definition of data groups, the Oracle eBusiness Suite system administrator Guide - Configuration.
    http://docs.Oracle.com/CD/E18727_01/doc.121/e12843/T156458T156461.htm

    Security > user > define:

    This window allows to set user Oracle E-Business Suite. This user is an authorized user of Oracle E-Business Suite and is identified by a user name.
    http://docs.Oracle.com/CD/E18727_01/doc.121/e12843/T156458T156461.htm

    Thank you
    Hussein

  • No access to the oracle user to disk HARD drives

    Aloha!

    I installed Oracle 11 g R2 64 bit on Oracle Linux 5 update 7. To create an instance, assigning components of database on 3 hard disks allocated, I was invited with an error saying "cannot create the directory said. It seems that oracle (user) does not have access or sufficient permissions to run the creation of such directory. The problem is of course oracle user had no permission. How can I give an oracle as a license to the user?

    Thanks in advance.

    Hades

    Salvation;

    What is owner of these courses? What ls - lrt return on the exsiting path? Have you tried to use chmod or chown command to can give rights w/r to your oracle user?

    Use chmod and chown command man man chmod and chown man on your screen of telnet.

    You can also google for can see the use of these two commands

    Respect of
    HELIOS

  • When to use WebADI Oracle and Oracle HRMS API?

    Hello

    I'm a little confused?

    When to use Oracle WebADI?
    When to use DataPump?
    When to use the Oracle API?

    What is the difference between WebADI and in terms of functionality of the API?

    Thank you

    For example, "migrate data from employee work.

    Indeed a technical expert may use WebADI is not quite black and white - just a guideline I recommend. Here are the reasons why I recommend the direct use of APIs more WebADI:

    (1) WebADI does not have any competition. If you are a considerable migration and want to ensure multiple-CPU server, I would use a simultaneous multithreaded program to load data from the staging tables employee in HRMS Oracle by the PL/SQL API. A strong migration may take 72 consecutive hours to load - multi-threading, which would significantly reduce.
    (2) WebADI is fickle and unreliable when you speak many lines. So often the bomb out and you will have to start the loading process. An Automated charger is reliable.
    (3) WebADI has no decent error handling. If a line fails the lot fails. An Automated charger can handle elegantly errors (and there will be errors) without affecting the overall load.
    (4) WebADI is manually intensive. Of course, it does a great job to make life easier. But you must still download unprotect, insert rows, lose its time to copy and paste, upload etc. You are dependent on people doing this at the right time and she of all right. If you load in multiple environments (and you're usually), it's a heaviness. Automated loading is fully automated, reliable, can be planned and can be repeated.
    (5) other reasons. For example, WebADI does not support CLOB, BLOB large amounts of text and all kinds of other things.

    I might consider using WebADI to migrate data from employee work if it was a small client with only a few hundred employees and migration data was not the critical moment.

  • How to use the Weblogic user in my WebCenter application?

    Hello

    I'm doing my first Webcenter application. I have configured my wiki and weblogic server to connect, forum (discussions) with my users OID. So now any user OID can connect to this application.

    In my custom application Webcenter I configured JAAS security, now I would like to know how to use the same users OID in my application. Is this possible? Can someone help me? I tried Oracle Developers Guide, but it doesn't help me.

    Sorry for my bad English...

    Thank you

    Nelson

    You need to register a new provider of authentication on WLS. Please see this link http://www.oracle.com/technology/products/jdev/tips/fnimphius/oidconfig/index.html.

  • Revoke roles in the management of Oracle users

    Hi people,
    I have a question to Management (UMX) Oracle user.
    Is there an API to revoke the UMX user roles. Or can we write our custom code for revoke?

    All thought expertise or how managing the current implementations?

    Thank you
    Jannat

    Hello

    Please see (Note: 373369.1 - how to assign and revoke the role and responsibility of a user using the standard API?).

    Kind regards
    Hussein

Maybe you are looking for

  • How to unlock iphone without sim card?

    Hello I bought a 2nd hand iphone5s, could he do at home without a sim card menu, well I decided to reset it, and now I have to go through the process of 'Hello' and restart the iphone entirely. Although I was not given a sim card, so I can't use it r

  • I want to frequently visited sites appears when I open Firefox, instead it shows a blank page.

    When Firefox starts first of all, I have my home page the value: newtab. When loading, it loads a blank page. However, when I click on the new tab, a page with all of my frequently visited sites appears. I want the site visited freq tiles is displaye

  • Registration details

    Hello I need help to change my registration information. Now I live in Willemstad Curacao and need to change the details so I can add my visa to buy products online. First registration was in Florida USA.

  • I can't stop links integrated Youtube auto buffering and playing

    How tabs open it often incorporated links to Youtube that will automatically set buffer and play. I have only 4 GB of data per month, so I'm very annoyed with the data that I do not choose to download! Too many multiple links tabs can all start playi

  • HP: Desktop screen

    When I started my laptop it showed at the start screen, then I entered my password and after loading, he went to my office, but I'm unable to view my desktop.I know because alt + Ctrl + delete displays the Task Manager, but it's not office screen.Pls