How to find the contents of proc from top command

I had a doubt related to how to find the contents of a procedure or the statements from the PID displayed in top command if it can be done from TOAD or
sqlplus. If we can find out the details from top like:-
21211 oracle 16 0 3228 1012 764 R 0 0.0 0:07.68 top
1 root 16 0 1732 552 472 S 0 0.0 0:01.29 init
say, what is the process with PID 21211 and 1 are doing?
I hope, my question is clear.
Please, help in solving the doubt.
regards

Join v$process, v$session, and v$sql
SQL> ed
Zapisano file afiedt.buf
  1  SELECT p.pid, s.sid, s.serial#, sq.sql_text
  2    FROM v$session s,
  3      v$process p,
  4      v$sql sq
  5    WHERE s.paddr = p.addr
  6*   AND sq.address = s.sql_address
SQL> /
       PID        SID    SERIAL# SQL_TEXT
        37        128          2 BEGIN EMD_NOTIFICATION.QUEUE_READY(:1, :
                                 2, :3); END;
        19        149       4566 SELECT p.pid, s.sid, s.serial#, sq.sql_t
                                 ext   FROM v$session s,     v$process p,
                                      v$sql sq   WHERE s.paddr = p.addr
                                  AND sq.address = s.sql_address
SQL>Edited by: Łukasz Mastalerz on Feb 12, 2009 1:27 PM

Similar Messages

  • How to find the third highest salary from deptno20,from employee table

    how to find the third highest salary from deptno20,from employee table

    SELECT *
      FROM emp;
    EMPNO
    ENAME
    JOB
    MGR
    HIREDATE
    SAL
    COMM
    DEPTNO
    7369
    SMITH
    CLERK
    7902
    12/17/1980
    1000
    3
    20
    7499
    FEDERAL
    SALESMAN
    7654
    2/20/1981
    2000
    4
    30
    7521
    WARD
    SALESMAN
    7698
    2/22/1981
    3000
    4
    30
    7566
    JONES
    MANAGER
    7839
    4/2/1981
    4000
    3
    20
    7839
    MARTIN
    SALESMAN
    7698
    9/28/1981
    5421
    4
    30
    7698
    BLAKE
    MANAGER
    7698
    5/1/1981
    6222
    4
    30
    7782
    CLARK
    MANAGER
    7839
    6/9/1981
    5222
    2
    10
    7788
    SCOTT
    ANALYST
    7566
    12/9/1982
    5463
    3
    20
    7839
    KING
    PRESIDENT
    7902
    11/17/1981
    8543
    2
    10
    7844
    TURNER
    SALESMAN
    7698
    9/8/1981
    2124
    4
    30
    7876
    ADAMS
    CLERK
    7788
    1/12/1983
    2125
    3
    20
    7900
    JAMES
    CLERK
    7698
    12/3/1981
    5462
    4
    30
    7902
    FORD
    ANALYST
    7566
    12/3/1981
    2132
    3
    20
    7934
    MILLER
    CLERK
    7782
    1/23/1982
    5165
    2
    10
    SELECT sal, deptno
      FROM (SELECT   a.*,
                     DENSE_RANK () OVER (PARTITION BY deptno ORDER BY sal DESC) r
                FROM emp a
          ----  ORDER BY sal DESC
    WHERE r = 3;
    SAL
    DEPTNO
    5421
    30
    5165
    10
    2132
    20
    Regards ,
    Friend
    Message was edited by: MostWanted!!!!

  • How to find the file that delete from time capsule?

    How to find the file that delete from time capsule?

    I mean I saved JPEG file in Time capsule and unfortunately delete the file. Can I get it back
    IF.... .no other backups have occured since you deleted the file, you might be able to retrieve it using an application like Disk Warrior. It's about $100 as I recall, and there are no guarantees that it will work.
    DiskWarrior 4 - The Disk Utility for Mac  Disk Repair, Mac Directory ...
    Any of the free or low priced utilities that you might see or try will not be able to retrieve a deleted file from a Time Capsule.
    If any backups have occured since you deleted the file, the deleted file has almost certainly been overwritten. No way to retrieve it in that case.

  • How to reset the network IP address from terminal/command line in Mac OSX?

    Do anyone knows how to set the network IP address from terminal/command line in Mac OS X?

    how about a GUI, ever heard of a GUI? it's this really neat thing, where you don't have to worry about remembering long strings of text to do something. Mac OS X actually has a rather decent one (that was sarcasm by the way, Mac is the best) you could have it done in like 30 sec, if you use the network pane of system preferences.

  • How to find the cost center group from cycle/ segment in CO module?

    Hi All,
    I need to fetch the list of cost centers in the cost center group against the cycle.
    Is there any table which will store the list of cost centers against the cycle?
    or else, what I was thinking is use of BAPI BAPI_COSTCENTERGROUP_GETDETAIL, which will give me the list of cost centers,
    but we need to pass the controlling area + cost center grp to fetch the cost centers from BAPI, I have controlling area with me but not the cost center grp name, only I have Cycle info lke cycle name, segment name, seq number. so how to find the cost center grp name from the cycle name?
    Regards,
    Mrunal

    FM: RK_AL_CYCLE_READ
    CHECK TABLE: T811K

  • How to find the contents of a file that is suddenly empty

    I created a folder 2 months ago on the left hand side of the email under TRASH and then Under 2013. I have been loading it with emails (maybe 20-30 at last count) and all of a sudden the contents of the folder is gone. Once, when I clicked on it, it came back and I thought it was here to stay, but then everything in it disappeared again and I have not been able to find the contents for several days now. It is not in TRASH or 2013 - can't locate the emails anywhere. Just before this happened, it was no longer accepting emails from my inbox when I tried to transfer them over. I figured it had run out of space, and was ready to open a new file, but there is nothing there either. Any ideas?

    If you logon to webmail account via a browser, can you see the missing folders and emails?

  • How to find the related PI document from a material document

    Dear All experts,
        If I know the materil document number, how to find the related PI document?
    Thanks!
    Xinling

    Hello Xinling,
    You can extract the details from table MSEG.
    Regards
    Kalpana

  • How to find the AK Region name from JSP

    I have the requirement to hide some of the fields/regions in Oracle Sales Online.
    To do that from AK Developer Region Name/Code and Region Item is required. How to find this Region Code.

    When you are on the webpage, right click and select "VIEW SOURCE". When the notepad opens up, find the string "TOP REGION". This will give the top region for that page. Query for this page in the AK Developer resp with "Define Regions". Then click on "Region Items". This will give all the Attribute Names and Nested Regions within the TOP REGION. You just have to dig into each one of 'em to find the one you need.

  • How to find the contents of the SAPMF05A for a particular session?

    i have a session say trail1 which is running transaction fb01 ...
    now i need to knw thru a seperate program wht are the contents of the the transaction that has ben filled for trial1 say the cmpny code n the posting period?
    can anybdy give me some clues related to it...

    Hi Arvind,
    1. In the Bex you can fild the list of queries under a data target, by opening 'Queries'.
    In the dialog box that appears, select the Infoarea button which is in the left pane.
    You will get list of all Data targets. If you expand it you can find the queries built on those data target.
    2. If you want to get the list of queries from Tables, you have to link the following tables:
    RSZRANGE
    RSZELTXREF
    RSZELTTXT
    RSRREPDIR
    RSZSELECT
    RSZCOMPDIR
    Regards,
    Prema

  • How to find the Web Dnpro component from the Source code ?

    Hi Gurus,
    Please help me to find out the WD Component Name from the Source Code?
    Regards
    Anil

    Hi Thomos,
    When i right clik on the screen i see the following line by line.
    -Back
    -forward
    -save background as
    -set as background
    -copy background
    -set as desktop item
    -select all
    -Paste
    -create shotcut
    -add to favorites
    -view source
    -encoding
    -print
    -refresh
    -export to microsoft excel
    -properties
    I have mentioned every thing i see when ever i right click on the screen.
    --Anil

  • How to find the Web AS Port from ABAP program

    Hi
    I have an ABAP program which passes an URL for a BSP page to the Alert Framework. While creating the URL I need to find out the Hostname and port number for the Web service for that server. Hostname comes from sy-host but I am not able to find the port number.
    Please help...
    Thanks in advance

    Hi,
    consider this little code snippet:
    data:  l_urls       type tihttpurls2.
    call method cl_http_server=>get_extension_info
       EXPORTING
        extension_class = 'cl_http_ext_bsp'                  
       IMPORTING
            urls            = l_urls.
    l_urls contains a table of configured ports. maybe that helps.
    regards, Ulli

  • How to find the CX event bound to a command event string

    I have a UI button that has the button action 'Raise Command Event' which has the command string 'item details'.
    What is the easy way to locate the CX event associated with this command string. Do I have to search through all the rules to find out which one is tied to this event string? I have checked the search functionality within rules, but cant find a way to search for this?
    Any input appreciated. Thanks.

    If you are trying to find the CX rule that has a specific command name, then you would have to look through each rule separately to review the bindings. I am doubtful whether the search buttons in the rules section of OCD would search against command names.
    I am sure there is a SQL statement that you could execute to show this information as well. I once pieced together a SQL statement to show me all CX rules, the event they were bound to and the parameters that were passed into the rule. The SQL seemed to work fine for me at the time, but it was a convoluted mess and was not certain whether all the joins were correct. I cannot find that SQL right now. It would be great if someone out there had a SQL statement that would give all the information associated with a specific binding.
    Thanks,
    Jason

  • How to find the original RAW file # from a Lightroom exported JPG?

    Hello, this is in regards to a Lightroom 3.5 exported JPG. This was a year ago when I had been told it was best to export files with simple renumbering of them from 1 to x... instead of retaining the original RAW 4-digit file name.
    I've currently lost the original files, and need to do a search for them via these 4 digits to see if I have them tucked away in any of my drives. I downloaded a metadata explorer, and it's telling me all the lightroom editing information, and everything else, but somehow does not have the simplest of information — that 4 digit original file name.
    Am I grasping at straws or is there likely to be any way to find this information out? I don't work with metadata, so there wouldn't have been any customizations to how Lightroom configures this....hoping that's in my favor. Any help is much appreciated!!!!

    A note about security (context: downloaded apps & plugins...).
    Anatomy of a URL:
    protocol://stuff.stuff.stuff.domain.domain-suffix/stuff/stuff?stuff=stuff
    None of this stuff matters much except:
    domain.domain-suffix (and protocol, to some extent).
    So if you download something from:
    http://ignafradifcawhatyousay.toolonganyway.my.server.com/gogafnoics...
    It's coming from server.com using http (web) protocol.
    But, if you download it from:
    http://my.server.com.badguy.tv/...
    It's coming from badguy.tv, NOT server.com, so if you want it from server.com - danger will robins...
    And, if you download from
    http://216.195.245.134/my.server.com
    It's coming from an unregistered internet address (216.195.245.134) - again: danger...
    (4 groups of up-to-3 digits separated by dots is the format for a literal internet (IP) address, instead of domain-name...)
    Summary: if you learn the anatomy of a URL, and pay attention to the URL's you are clicking on, or entering directly, you can take more responsibility for security, and assure (to a greater extent) you don't download from an unfriendly source.
    Disclaimer: I accept no legal responsibility for anything that happens as a result of anything written above...
    Rob

  • How to find the physical Host Name from a short host name?

    Hi,
      I meet a problem that in RFC destination setting I see some people maintain the
    short name in 'HOST NAME' field. But I need the long phiscial name.
      For example, the short one 'bsw6107', the phisical name is 'bsw6107.wdf.sap.corp'. It there a table or FM to look for it?
      Thank you.
    Regards,
    Yan

    Hi,
    Changing a host name on a central instance is a BIG thing, I personally would rather reinstall instead of changing a hostname...
    What comes immediately to my mind is:
    - SAP profiles
    - .sapenv* .dbenv* scripts
    - OPS$ users
    - /etc/hostname*
    - /etc/hosts
    - TMS (/usr/sap/trans)
    - Backup clients (and backup server changes if you use a central backup system)
    - RFC destination of external systems
    - SAP printers
    - other external systems connecting to the server (Fax, Archiving etc.)
    Regards,
    Sankar

  • How to fecth the contents of a mail from the server by using jsp

    hi
    Can any body tell me how to fetch the contents of mail from the server by using javamail api...please send me code if some one have
    bye.

    hi
    Can any body tell me how to fetch the contents of mail from the server by using javamail api...please send me code if some one have
    bye.

Maybe you are looking for

  • Calendar Display Issue / Unable to render component: ORA-00936: missing exp

    I am trying to display a range of dates in an APEX calendar, where the start and end date are in the record being selected. The SQL statement works fine in sqlplus, however when put into the calendar renders the error message "Unable to render compon

  • Enterprise Portal Log off Issue for External User

    Hello We are facing a Enterprise Portal log off issue for one of our external users. User is logged in and clicks on the "Log Off" link . User is prompted as seen below: Are you sure you want to logg off? Choose Yes or No Click on Yes and popup windo

  • Which Is Better Time Machine or Backup

    So I just got a new iMac plus a 1T external drive. I have been using backup on my old mini-mac with an external drive plus I used the drive for iTunes and iPhoto. So which is better TM or the old backup (which I had no problems with). I really do not

  • I have difficulty authorizing my new computer.

    The instructions in the Apple support site suggests I only need to go into iTunes, go to the Store menu and then choose Authorize this Computer.  The trouble is, when I look in iTunes, I don't find a "Store" menu anywhere.  I've checked every availab

  • Replicate Hyper-V cluster VMs to Windows Azure

    Hello, I'm wondering if there is a possibility that we can create a replication from our hyper-v cluster to windows azure. So we have a hyper-v cluster. We are now replicating to an other site. Can we replace this site with windows azure? So that we