How to find sid,serial# for sql in v$sqlarea

Hi,
10gR2
in order to dig down the session which is running particular sql
say querying v$sqlarea and getting sql_id
now how to map it to v$session

thanks for the reponse
Join v$sqlarea's address with v$session's sql_address.
does this always mapped, even if sql has completed execution
say i have made a session of user scott
and ran this statement
===================================
SQL> create table my_obj as select * from obj;
Table created.
now i jhave another session of sys to find session details
============================================
SQL> select SQL_ID,EXECUTIONS,DISK_READS,BUFFER_GETS,ADDRESS,CPU_TIME,PROGRAM_ID,SQL_TEXT
FROM GV$SQLAREA WHERE SQL_TEXT LIKE ' 2 %MY_OBJ%';
SQL_ID     EXECUTIONS DISK_READS BUFFER_GETS ADDRESS      CPU_TIME
PROGRAM_ID
SQL_TEXT
4hshv4csmh7d8     1     0     14 000000007ECDF248 2899
     0
select SQL_ID,EXECUTIONS,DISK_READS,BUFFER_GETS,ADDRESS,CPU_TIME,PROGRAM_ID,SQL_
TEXT FROM GV$SQLAREA WHERE SQL_TEXT LIKE '%MY_OBJ%'
SQL> select sql_address ,sid,serial#,username from v$session where sql_address='000000007ECDF248';
no rows selected
SQL> select sql_id ,prev_sql_id ,sql_address ,sid,serial#,username from v$session where sql_id='4hshv4csmh7d8';
no rows selected
SQL> select sql_id ,prev_sql_id ,sql_address ,sid,serial#,username from v$session where prev_sql_id='4hshv4csmh7d8';
no rows selected
please suggest
another other view
or there may be two cases of this
case1 sql is running
case 2 sql is completed

Similar Messages

  • How do i find the serial # for my cs5.1 upgrade, my new laptop doesn't have a dvd player.

    how do i find the serial # for my cs5.1 upgrade.  my new laptop doesn't have a dvd player.

    Gmavaughn for information on how to locate your serial number please see Find your serial number quickly - http://helpx.adobe.com/x-productkb/global/find-serial-number.html.
    You can also download a fresh copy of the Creative Suite 5 installation files at http://helpx.adobe.com/creative-suite/kb/cs5-product-downloads.html.

  • How to pick up sid, serial# for a concurrent request

    I am trying to find a sid, serial# for a concurrent request; any suggestions/scripts?
    Thanks in advance,

    Found it on metalink:
    ACCEPT req_id PROMPT 'Enter the request id: '
    SELECT a.request_id, d.sid, d.serial#
    FROM apps.fnd_concurrent_requests a,
    apps.fnd_concurrent_processes b,
    v$process c,
    v$session d
    WHERE a.controlling_manager = b.concurrent_process_id
    AND c.pid = b.oracle_process_id
    AND c.serial# = d.serial#
    AND a.request_id = &req_id
    AND a.phase_code = 'R';

  • How to find ThinkPad serial number if label is worn?

    QuestionI'm having some trouble with my T500 ThinkPad and want to contact service, but am not sure how I can find out the machine type and serial number to provide to support when I call because the sticker on the bottom of the laptop is faded so I don't know what the S/N is. I do have one number though: [serial removed] was what I copied down from it before it became faded. I dont know what to do now, so if you have any ideas, that'd be great.
    Answer 
    Generally the label with type and serial information is found on the bottom of laptops and tablets and on the rear of desktop systems and on the back or along the edge of displays.   As noted by the question asked above, in some cases, the label may become worn.  To reduce / avoid this, the type / serial label was relocated to the battery compartment on some systems with removable batteries, along with the Win 7 COA.  As Win 8 does not have a COA lable, and print technologies for labels have improved, most current systems have the label on the bottom.
    Some tablets may have the type and serial information label on the inside of memory door / SD card slot covers as was the case with the ThinkPad tablet type 1838/1839.
    Here is a link to an article on the support site with examples of label locations for different model Lenovo systems.   If the system will not power up at all, finding the physical label is the best course of action when contacting service.
    If the label is missing and the system will power up, there are several ways to easily find this information as it is written into the BIOS on the system board.
    1) Command Prompt
    Run an elevated command prompt, Enter the command "wmic bios get serialnumber" (without the quotations).
    2) BIOS
    Boot to BIOS (press F1 on startup) and the model type and serial number will be listed.
    3) Diagnostics - Lenovo Solution Center (LSC) or the prior Lenovo ThinkVantage toolbox.

    wmic bios get serialnumber  does not work !!!!all your pages about how to find a serial number are disfunctuional !!! What a bed service

  • How to find my serial number in downloaded logic pro X

    how to find my serial number in downloaded logic pro X

    There is no serial number for Logic Pro X

  • How to find table information for a datasource?

    Hi,
    Can you please tell me how to find table information for a datasource. I am not getting much help from help.sap.
    I am trying to find table information for below datasources. We are creating DSO's for the below mentioned datasources, for some we have standard DSO's(0WBS_O06), for others I am trying to create
    0CO_OM_NWA_1,
    0CO_OM_NWA_2,
    0CO_OM_WBS_1,
    0CO_OM_WBS_6
    Please help me.
    Regards,
    Bob.

    Hi BOB,
    Another option to find the table information...
    inorder to get the tables names involved in that particular data source follow the below steps.
    1) ST05 --> activate the Trace
    2) RSA3 --> enter your data source (for ex: 0CO_OM_NWA_1)
    3) Execute
    4) Now goto ST05 -> deactivate the trace
    5) click on Display trace(F7) button
    6) Execute
    7) It will display the complete SQL trace
    8) Now from the Menu "Trace list" --> select "Combined Table Access"
    it will display the complete tables list involved in that data source...
    From Table name section you can get the list of tables involved in that data source.
    I had traced and took the information of tables involved in that data source 0CO_OM_NWA_1
    0CO_OM_NWA_1     
    AFKO     Order header data PP orders
    AFVC     Operation within an order
    AUFK     Order master data
    COSP     CO Object: Cost Totals for External Postings
    COSPP     Transfer of the Order in the COSP Table to the Project
    COSS     CO Object: Cost Totals for Internal Postings
    COSSP     Transfer of the Order COSS Table to the Project
    COVREF     Coverage Reference Table: All Processing Blocks
    COVRES     Table of Coverage Results
    You can follow the same steps and find the tables for the rest.
    Regards
    KP

  • How to find ipod serial number on itunes?

    i need to find out what my serial number was for a stolen ipod. how can i do this on itunes?

    See:
    iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • I have no idea how to find my serial number to launch Lightroom. I have the student teacher edition and I'm using a mac

    I have no idea how to find my serial number to launch Lightroom. I have the student teacher edition and I'm using a mac.

    How did you purchase Lightroom? Download? Package?
    Have you followed the instructions to verify that you qualify for academic discount?

  • How to find Info objects for particular filed??

    Hi
    I hav doubt Can anyone tel me???
    My Query s <b>How to find Info objects for particular filed??</b>
    For example i hav some table fileds, how to find Info objects for that fields??
    Pls explain me detaily
    Points wil be given for all answers.
    Thanks
    Senthil

    Hi Senthil ,
    You have your field description along with your Field right.
    For example:MATNR - Material Number
    Now take this description and go to your BW side Tcode:RSA1
    1)Search in Modelling >> Infoobjects >> Material Number
    Then you get few hits (matches)  which have description matched.
    For Example: 0material  - Material Number
    Check for the Length and type match.
    You will understand once you get those hits as to which is related to yours.
    2)Go to BI content and search in the infoobjects this has all active and inactive objects but this takes a little time (not much  though).
    3) You have meta data search / simple search also where you can search for the objects with field description as matching criteria.
    Hope your doubt is cleared atleast to some extent.
    Assign Points if helpful.
    Thanks,
    Priyanka

  • How to find session information in sql plus

    Can someone please tell me how to find session information in sql plus? I specifically want to know my privileges for the current session. Thanks in advance.

    SELECT * FROM session_privs;
    SELECT * FROM session_roles;

  • HT2452 How to find the serial number of your Apple hardware product

    How to find the serial number of your Apple hardware product

    This works for any Mac provided that the logic board has not been replaced.
    I recently had the logic board replaced in my iMac. After the tech left (on site repair thanks to Applecare), I went to about the Mac and found jibberish numbers. I called Apple and the AASP and found that he had forgotten to register the serial number. So he came back and, with a special tool (as he called it - looked a little like a USB stick) he contacted Apple and then entered my original serial number as I read it to him.
    So, I assume they changed the process since I still have the same serial number as before.

  • TS1702 how to find the serial number, after purchase Pages online?

    how to find the serial number, after purchase Pages online?

    If you downloaded the standalone trial version of Lightroom, it will be necessary for you to uninstall that version. Then you will be able to install Lightroom through the creative cloud application manager. After you install Lightroom that way, just double-click on the catalog that you have already started.

  • How to find backend user for sap bw on Hana

    Hi expert,
              how to find backend user for sap bw on Hana , which are used to communicate with Hana.
    Many Thanks.

    Hi There,
    Goto DB02,
    Click on SQL Editor:
    Execute the below Query:
    select :session_user from dummy;
    Regards,
    Krishna Tangudu

  • How to find function code for buttons on toolbar in oops alv

    Hi experts,
    I want to remove some buttons from toolbar in oops alv, i know the procedure like get function code and pass the value in a table and pass that table to IT_TOOLBAR_EXCLUDING of
    method set_table_for_first_display but I WANT TO KNOW HOW TO FIND FUNCTION CODE FOR BUTTONS ON TOOLBAR IN OOPS ALV

    Hi Prakash,
    -->First you have to set the pf status in your alv program by,
    {FORM pf_status USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'FIRST'.
    ENDFORM.                    "PF_STATUS}
    -->Pass this Subroutine name in the Function module, Reuse_alv_grid_display's parameters i.e,
          i_callback_pf_status_set          = 'PF_STATUS'}
    *-->Then doble click on that pf status,
    From the menu bar, select Extras->Adjust Template->List Viewer,
    This will give you the existing statndard gui status of the program*
    ->Then catch that function codes in the User command Parameter of the Function module Reuse.. i.e,
          i_callback_user_command           = 'COMM'
    And make a subroutine of the name 'COMM'i.e,
    FORM comm USING ucomm LIKE sy-ucomm selfield TYPE slis_selfield.
      DATA: okcode TYPE sy-ucomm.
      okcode = ucomm.
      CASE okcode.
        WHEN 'REF'.
        CALL FUNCTION 'POPUP_TO_INFORM'
          EXPORTING
            titel         = 'MANSI'
            txt1          = 'CREATED BY'
            txt2          = SY-UNAME
          TXT3          = ' '
          TXT4          = ' '
    endcase.
    Hope it helps you
    Regrds
    Mansi

  • How to find workarea ID for the work area name.

    Hi Experts..
    How to find workarea ID for the work area name.(Work area name CCIHT_WAH-WAID and I want to fetch characteristic data from table AUSP matching the OBJEK field,but I only have Work area name).Can anybody help me to find tables or relationship between Workarea ID and Workarea name for the same.I am using TCODE - CHIB02.Once I select a workarea and click on IHS Data button,I get data for that workarea.I need to find where this data comes from and How is this fetched.
    Points would be rewarded for helpful answers..
    Thanks
    Kunal Halarnakar

    U want to fetch the workarea description ?
    we can fetch it from CCIHT_WALD table with the RECN value.
    The informations are stored in AUSP table with the characterstic(ATINN) value.

Maybe you are looking for

  • Syncing iPhone and iPad with Mac Book Pro

    Is it possible to sync my iPhone and iPad to my Mac Book Pro and have the same screens and apps? I see where all apps appear in my iPad syncing window, but I cannot make it exactly like my iPhone... Is this possible? Thank you!

  • Help! When I try to reinstall CS6 Design and Web Prem i get message that my serial number is invalid

    When I try to reinstall CS6 Design and Web Prem i get message that my serial number (Design and Web Prem <serial number removed>) is not valid? Why???? I have it installed now on just one computer only. It was installed also on a computer and a lapto

  • Input Tax code

    Hello How to define Input tax code for I/P ED 5.15% & CST2% regards

  • Commit after n rows while update

    i have 1 update query UPDATE security SET display_security_alias = CONCAT ('BAD_ALIAS_', display_security_alias) WHERE security_id IN ( SELECT DISTINCT security_id FROM security_xref WHERE security_alias_type IN ('BADSYMBOL', 'ERRORSYMBOL', 'BADCUSIP

  • How to design a program which determines cyclomatic complexity-advice plz!

    Hi there, I've been asked to design a program to detect the cyclomatic complexity of a module read in from a text file. The program should then display whether or not the module is far too complex or not. The problem I am having is as follows: In wha