Sql to find it out current process

can someone give me sql query which tell me what is the current process in my database running. let say my database have load issue and i would like to see or find it out what are the current process, user, and which user running what.
Thanks

run top and capture the process id.
Give it to the sql below :-
--Given a SPID ( Server PID ) check out which session
SELECT s.client_identifier,s.SID, p.spid,s.username,s.machine,s.logon_time --os pid
FROM v$session s, v$process p
WHERE s.paddr = p.addr
AND s.username <> ' '
AND spid=1234;

Similar Messages

  • Please help: ORA-04030: Out of Process memory error when starting 9.0.1 iFS

    When starting the 9.0.1 iFS running on a 9.0.1.4 Database and Tru64 5.1 O/S, the following errors are displayed:
    IFS-35205: Failed to get prepared statement
    java.sql.SQLException:ORA-04030: Out of process memory when trying to allocate 1048 bytes (callheap,kghsstk).
    Database has the following parameters:
    shared pool 150M
    java pool 100M
    large pool 5M
    DB Cache 60M
    DB Block Size 8K
    Sort area size 1M
    Server has 1GB ram, 12GB swap.
    Please can anyone help?

    Hi Alan,
    your help with this is most appreciated!
    I ran your suggested generated SQL script, but at first the same problem was occuring with the first ALTER statement that happened to be generated.
    However, your explanation mentioned the view 'odm_publicobject' and although this view wasn't in the resulting SQL, I found that compiling the similarly named views in this order worked...
    ODMV_PUBLICOBJECT
    ODBV_PUBLICOBJECT
    ODMBS_PUBLICOBJECT
    ODMS_PUBLICOBJECT
    ODUS_PUBLICOBJECT
    ODUV_PUBLICOBJECT
    (Perhaps other combinations would have worked, but in anycase certainly some orders didn't work...)
    At this point, running the complete original generated SQL script then worked successfully and low and behold as you predicted, IFS started successfully.
    (I didn't actually bother removing these 6 already re-compiled views from the original script, so they got re-compiled twice...)
    So this means that we can now actually stop and start IFS as required without re-installing IFS everytime - which is obviously great!
    I will certainly be watching out for 9.0.3, but my understanding for the reason we were going with 9.0.1 in the first place was that this was included in the RDBMS CD-pack, whereas I believe from 9.0.2 onwards it was seperately licensed. I will check with our Oracle dba's.
    But at least we can prove in principle now whether it will suit our requirements....
    Once again, many thanks for looking into this at such a deep level - very much appreciated.
    Graham.

  • How to find out what process touched a file

    I am currently running Leopard 10.5.7 on a MacBook. Some of my system files' permissions keep getting screwed up. It happens randomly, and when it does I have to repair permission and reboot the computer to fix it. I am trying to isolate the problem. Is there a way to find out what processes or applications touched a certain file? thanks.

    Tony:
    Did you try repairing your keychain?
    Look in your 'Utilities' folder for the 'Keychain Access' application.
    Run it and use the 'Keychain Access/Keychain First Aid' menu...follow the prompts. After repairs, restart and see if the situation improves.
    If you are determining permission repair status on a repeated basis by simply doing a repair and reacting to the immediate report there, you may be chasing ghosts.
    If you are encountering legitimate issues when running various apps, you may need to check the basics. If there are other users on the machine or you have moved standard applications to custom locations you may have to simplify your overall machine's configuration and go from there.
    Good luck in any case.

  • Query to find out which process consuming more cpu?

    Hi All,
    some one please tell me the query to find out which process is consuming more
    cpu resources?
    Thanks and Regards
    Srikanth

    Use V$SESSTAT to determine which sessions are using most CPU, and investigate what SQL these users/sessions are executing:
    SQL> select ss.sid, se.command, ss.value CPU, se.username, se.program
    from v$sesstat ss, v$session se
    where ss.statistic# in
    (select statistic#
    from v$statname
    where name = 'CPU used by this session')
    and se.sid=ss.sid
    order by ss.value desc;

  • How to find out Orphan Process

    Hi
    We are using Windows clients and connect to Oracle Database Server. For some reason if the Client machine is rebooted when an application is running, The Process still shown in the V$Session and it take hours to get released from the V$Session.
    Is there any sql to find out such Orphan Process?
    Thanks in advance
    S Muralidharan
    Procon Systems Pvt. Ltd.

    http://download-west.oracle.com/docs/cd/B10501_01/network.920/a96581/sqlnet.htm#437587
    Read the limitations and side effects before implementing.

  • How to find out current archtecture

    I have installed Oracle Database Express Edition 11g Release 2. APEX 4.0 has been installed automatically. (I didn't configure any servers, just clicked 'next')
    Now I have to upgrade APEX to 4.1 , but I must know, what should I configure - Oracle Application Express Listener, the Embedded PL/SQL Gateway, or Oracle HTTP Server?
    So, how to find out current archtecture of APEX 4.0 ?
    Thank you,
    Kseniya.

    Kseniya wrote:
    I have installed Oracle Database Express Edition 11g Release 2. APEX 4.0 has been installed automatically. (I didn't configure any servers, just clicked 'next')In that case, it should be Embedded PL/SQL Gateway. Is there a port number in the URL? What is it?

  • Finding The Current Process ID

    Is there a way to get the current process ID from a Java application running on Winows XP?
    Better yet, is there a way to specify the process ID of your application from the command line?
    I'm guessing the answer to the second question is no, but that there is an answer to the first question.
    TIA,
    John

    The argument that getpid() is not available because it is not platform independent is not really very convincing.
    It's quite likely that there are a number of platforms that don't have networking and therefore a large chunk of Java could be considered platform dependent. Of again it's likely that some platforms don't distinguish between output and error output streams so System.err and System.out would also seem platform dependent.
    It's fairly clear that most platforms that we care to program for do have the concept of a process and most will also support the concept of a process identifier therefore in most cases getpid() would seem a reasonable api to support - for those platforms that do not support the concept of a process id we coud throw an exception or return null or whatever.
    The process id would be useful for generating UUID's but another case where I've found if useful is passing it to databases as a connection parameter so that if/when a particular db connection is misbehaving I can trivially lookup the PID associated with that connection on the db and then go to the OS and find out which process instance owns that connection and debug/restart or whatever.

  • How to find out the process chain

    Hi folks
    Hope every one is doing good..!
    in sm37 my job is running (ABAP program) which is in process chain, but i have to find out the process chain name..!
    Could any one help me on this..!

    hi,
      in SM37 select the job status as active and execute it, in the next screen you  will find only active jobs select your job (ABAP Program) click on step - > in th next screen put the cursor on the job -> select Goto option in menu bar click on variant it gives you the field names and desc like chain name, variant etc information.
    Regards
    Sankar

  • Any good way to find out which process is running on which CPU, how long it

    Hi All
    any good way to find out which process is running on which CPU, how long it took, how many threads it has forked, which thread went to which CPU, etc. .
    RPS
    Message was edited by:
    RajeshPS

    Hi All
    any good way to find out which process is running on
    which CPU, how long it took, how many threads it has
    forked, which thread went to which CPU, etc. .Because the scheduler moves threads from CPU to CPU all the time, that would be a lot of information to store. I don't know any easy way to gather it.
    Under Solaris 10, you could write a dtrace script that noted every time one of the processes thread was enqueued or dequeued on a cpu and post-process that.
    That's probably the best way.
    Darren

  • API's to find CPU Utilization of Current Process

    Hi World,
    Do Java 5 or Java 6 has any new API's for finding the CPU Utilization of the current process. Is there any other way of finding the CPU Utilization of current Process.
    Regards,
    Gopi

    Don't double post. I've removed the thread you started in the Java Programming forum 2 minutes after this one, with the identically same question.
    db

  • How to find photos which have not been updated to the current Process Version?

    How can I search and/or filter to find photos which have not been updated to the current Process Version?  I would like to get a list of the photos rather than going through them one by one and looking for the lightening bolt.

    Thank you!  As my memory fades, it is good to know that my memory is backed up with you and others on this forum!

  • Can any one let me know how to  find out current internet explorer version

    Can any one let me know how to find out current internet explorer version

    Don;t use annoyed repeated words. Try to explain exactly what is your problem.
    <script LANGUAGE="JavaScript">
    document.write("Your browser Name: <B>" + navigator.appName + "</B>.<br>")
    //Detect IE Version Only
    if (navigator.appVersion.indexOf("MSIE")!=-1){
    var temp=navigator.appVersion.split("MSIE")
    var version=parseFloat(temp[1])
    document.write(" Your Browser version: <B>" + version + "</B>.")
    </script>

  • SQl to find out the last  business day of a given week

    Can any one please let me know what will be the SQL to find out the last business day (monday-friday) of a week?
    Edited by: 863997 on Oct 6, 2011 10:40 AM

    Assuming for "this week" that you want "last week Friday," then here is the SQL:
    TIMESTAMPADD(SQL_TSI_DAY,-1,TIMESTAMPADD(SQL_TSI_DAY, DAYOFWEEK(CURRENT_DATE)*-1, CURRENT_DATE))
    If you want the "nth" business day of the month, click on this link here:
    Re: calculation of Business day in OBIEE

  • Sql to find out combination of true and false

    Hi all,
    Could any one provide the sql to find out combination of true and false . For eg: if I have 3 elements a , b c i would like to get below o/p
    a   b  c
    t t t
    t t f
    t f f
    f f f
    t f t
    f f t
    your reply is greatly appreated - thank you

    Do you mean something like this (all permutations) ?
    SQL> with t as (
      2    select 't' bool from dual union all select 'f' from dual)
      3  select a.bool a,b.bool b,c.bool c
      4  from t a,t b,t c
      5  /
    A B C
    t t t
    t t f
    t f t
    t f f
    f t t
    f t f
    f f t
    f f fIf not, then you already got correct answers regarding boolean type in sql.
    Best regards
    Maxim

  • Database Error: DBD::Oracle::db do failed: ORA-04030: out of process memory

    Hi
    I have a stored procedure that uses the XMLQuery function (SELECT XMLQuery( '......' RETURNING CONTENT) FROM dual; ) to extract data from 3 different tables and store the xml file in XML DB. This store procedure was running fine for a long time until 2 weeks ago where I started seeing the following error:
    Database Error: DBD::Oracle::db do failed: ORA-04030: out of process memory when trying to allocate 92 bytes (koh dur heap d,qmxtkWriteXobToOpn:heap)
    Currently I have 16,000 records. I am not sure what is going on, the size of the previous successful output xml file is about 2M. I also noticed when the stored procedure runs with 3G of system memory available, it basically used up all the memory and cpu time. The store proc consistently dies after 3.5 hour and spits out the ORA-04030 out of process memory error.
    Does anyone have any suggestion what to look for or what parameters I need to set? Thanks

    Unless your database is strictly a DSS-type of database, your AWR report exposes loads of issues with it. And I think none of the time during the AWR window was spent on database. Look at the DB time (with all those multi cores) compared with the elapsed time of the AWR.
    As you are on 11g, why not make use of MEMORY_TARGET (a single parameter to manage both SGA and PGA)? If you are already on it, ignore this as I can't see it anywhere. If not, get rid of SGA_TARGET and PGA_AGGREGATE_TARGET and replace it with a single MEMORY_TARGET parameter. However you may have a minimum threshold set for different SGA pools so that they won't shrink beyond that point.
    Having said that, setting MEMORY_TARGET is not a guarantee to avoid ORA-4030. Just a single bad PL/SQL code could go and exploit the untunable part of your process memory and even go and blow up the physical memory. If you are using FORALL and BULK load, see if you can cut it down into few chunks rather than running as a single process.
    What does your V$PGASTAT say?

Maybe you are looking for

  • I want to download the "FREE" iPhoto duplicate remover software, but the download process keeps asking me for my payment information.

    I want to download the "FREE" iPhoto duplicate remover software, but the download process keeps asking me for my payment information. I have tried it several times.. But it says I cannot download this app unless I give my payment information.. So I w

  • Font Title Not Displaying in Character Panel Font Menu

    Just updated to OS X Yosemite and noticed that the font titles don't display in the Character Panel > Font Menu.  However, they do display when rolled over with the cursor.  This is only happening in Illustrator.  All other Adobe apps are correctly d

  • Quicktime Movie imports as a Single Clip

    I shot a short movie with my digital camera which imports into Imovie as a single clip. How do I break it into separate clips for editing? I think its raw format must be mpeg-4. Thanks!

  • Patching Solaris 10

    I am unable to patch solaris 10 through the smc console. I keep getting the following error UnsupportedClassVersionError: com/sun/patchpro/model/PatchProListener (Unsupported major.minor version 49.0) Does anyone know of a fix for this?

  • Apple Bluetooth Keyboard Not Pairing

    Hello, My sister in law's bluetooth apple keyboard is not working. Last night it kept loosing its signal. This morning it stopped working. She has reset it and put new batteries in. It sees the keyboard and the mouse is working, but it gives the foll