WRH$** tables, Need to know by which user SQL Query has been executed

Hi,
From the AWR data (WRH$) tables , I need to know how many sql code is using some specific indexes, I found that information by using the mentioned code. but I need to find out by which user this code has been executed ( not the PARSING_SCHEMA_NAME). Can someone please help me, how can I get that info?
select a.operation,a.OBJECT_OWNER,a.OBJECT_NAME ,dbms_lob.substr(b.SQL_TEXT,4000,1) from WRH$_SQL_PLAN a,WRH$_SQLTEXT b
where a.operation='INDEX' and a.SNAP_ID=b.SNAP_ID and a.SQL_ID=b.SQL_ID and a.OBJECT_NAME in (
'I_CUSTORDER_STAT_CHG_DTM',
'I_LINE_ITEM_STAT_CHG_DTM',
'I_SHOPCART_MODIFIEDDTM',
'I_VISITOR_CART_UPDATED_DTM',
'R_ORDER_LOG_EVENT_DTM',
'I_LI_STATUS_HISTORY_EVENT_DTM',
'I_SHOPPING_CART_CREATEDDTM',
'I_VISITOR_CART_CREATED_DTM',
'I_LINE_ITEM_CREATED_DTM_FTM')

872903 wrote:
Hi,
From the AWR data (WRH$) tables , I need to know how many sql code is using some specific indexes, I found that information by using the mentioned code. but I need to find out by which user this code has been executed ( not the PARSING_SCHEMA_NAME). Can someone please help me, how can I get that info?
select a.operation,a.OBJECT_OWNER,a.OBJECT_NAME ,dbms_lob.substr(b.SQL_TEXT,4000,1) from WRH$_SQL_PLAN a,WRH$_SQLTEXT b
where a.operation='INDEX' and a.SNAP_ID=b.SNAP_ID and a.SQL_ID=b.SQL_ID and a.OBJECT_NAME in (
'I_CUSTORDER_STAT_CHG_DTM',
'I_LINE_ITEM_STAT_CHG_DTM',
'I_SHOPCART_MODIFIEDDTM',
'I_VISITOR_CART_UPDATED_DTM',
'R_ORDER_LOG_EVENT_DTM',
'I_LI_STATUS_HISTORY_EVENT_DTM',
'I_SHOPPING_CART_CREATEDDTM',
'I_VISITOR_CART_CREATED_DTM',
'I_LINE_ITEM_CREATED_DTM_FTM')consider enabling AUDIT SELECT FROM TABLE upon which INDEX is based.

Similar Messages

  • I need to know in which table the long text is stored

    Using the transaction code 'AC03' , I go to the ' Create Service Master Page '.  Navigating through the page , I could see a ' long text ' button . Once it is being clicked , the white space for text entry comes .
    My query is this -> <b>I need to know in which table the long text is stored and the name of the field ??</b>
    If one goes to the table 'ASMDT' , one can find a field  'KZLTX' , which is a long text indicator, but not a long text storage field ......  plz help

    Hi
    Use the function module READ_TEXT for fetching the long text..
    I came across similar situation in my project where i need to fetch the long text for Notification no.I have used the following code for fetching the Notificatin long text,you can just compare this logic and change accordingly.
          CALL FUNCTION 'READ_TEXT'
               EXPORTING
                    CLIENT   = SY-MANDT
                    ID       = 'LTXT'
                    LANGUAGE = WA_STRUCT12-KZMLA
                    NAME     = QMNUM
                    OBJECT   = 'QMEL'
               TABLES
                    LINES    = INT_TAB13.
    Specify LANGUAGE if you wanna fetch the long text regardless of the log on lang.The resulting long text will be stored in the itab INT_TAB13 which can be defined with reference to the structure TLINE.
    Hope this helps.
    Regards,
    Hakim

  • After installing new operating system software, my user account name has been changed and i don't know the password.

    i need help!
    I just installed Mac OS Maverick in my laptop, but when i checked the Users&Groups There are only 2 User name 1 is  "Apple(admin) and 2 is Guest, my user account name has been changed even the password. how can i retrieve my old user account name and password or how can i changed it?

    Here's an updated set of instructions you can try:
    Make sure you are signed into iMessage and FaceTime with your current ID.  If they are signed into the old ID, go to Settings>Messages>Send & Receive and Settings>FaceTime, tap the ID, sign out, then sign back in with your current ID.
    Then temporarily recreate the old ID by going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  (You should not have to verify the old email account so it doesn’t matter if you no longer have access to it.)  Now go to Settings>iCloud, turn off Find My iDevice and enter your current password when prompted (even though it prompts you for the password for your old ID).  Then save any photo stream photos that you wish to keep to your camera roll (unless using iCloud Photo Library).  When finished go to Settings>iCloud, tap Sign Out (or Delete Account if you are not running iOS 8) and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address back to the way it was.  Now you can go to Settings>iCloud and sign back in with your current iCloud ID and password (your data will download back to your device).

  • Need to find all clips to which a certain filter has been applied

    Other than going through the entire timeline and opening each of my clips in the viewer, is there a way to determine all the clips on the timeline to which a certain filter has been applied?
    Thanks,
    John Link

    Not really John, at least not that I can think of off the top of my head ... but you can make the task easier by changing your Playhead Sync mode to Open (View menu > Playhead Sync > Open) that way you can zip through the timeline and as the playhead moves from clip to clip it will automatically open the clip under the playhead into the Viewer window. If you set the Viewer window so that it is showing the Filters tab then you can pretty easily see at a glance whether a specific filter is applied on a specific clip.
    Or, if there are no other filters applied, then you can turn on the timeline's Clip Keyframe overlays (toggle on/off with Option T) ... wherever you see a green line displayed then you know that a filter is applied.

  • When i run Time Machine to back up my computer onto an external hard drive, i have no way of knowing when the back up process has been completed. I don't know when it is safe to disconnect the external hard drive - which is store in a separate location.

    When i run Time Machine to back up my computer on to an external hard drive, i have no way of knowing when the back up process has been completed.  This is necessary to know because i don't leave my external hard drive connected to the computer.  I routinely disconnect it after backing up the hard drive, and then i store the external hard drive in a different location from the computer.  So, knowing when the back up process has been completed would be a very helpful thing to have the computer specify. 

    Just enable Time Machine's menu extra (System Preferences -> Time Machine -> Show Time Machine in menu bar.
    This will add a little Time Machine icon to your menubar. When Time Machine is actively backing up your data, the icon will spin as a visual indicator. You can also click the menu icon to see the backup status, including how much data is left to back up.

  • Which are the quires has been build by using this ODS.

    Hi,
    Please some one tell me how to find out  The any ODS has been using in which are the queries .
    Or which are the quires has been build by using this ODS.
    Thanks,
    GAL

    Hi GAL BI,
    You check in the meta data repository, you can get the list of queries build on that particular DSO.
    The table RSRREPDIR (directory of all queries) - it will display the queries developed on the top of IC and MP.
    If you want to know particular query where it is used click on where used list it will display .
    Regards
    KP

  • Report for the List of Vendor for which no Purchase order has been created

    Hi ALL
    Please let me know if there is any Report for the List of Vendor for which no Purchase order has been created
    regards,

    Hi Prateksha Vaid ,
    Go to transaction S_ALR_87012093
    Select accounts with no purchases checkbox and execute
    Diwakar
    reward if useful

  • E-mailing users when data has been loaded.

    Does anyone have some information on setting up FDM to e-mail certain users when data has been loaded for certain locations? Not sure what steps need to be taken to setup the FDM server, FDM and just wondering if there are any generic scripts that can be used.

    You would need to write a custom script to do this. You can use the E-mail Accelerator to do this, and it would need to be included in an event that fires after load.

  • How to display which folders a photo has been assigned to

    If you select a photo in an Event and want to know which folders you've previously added that photo to, can you tell? I've looked at the iPhoto shortcuts page and don't see anything there. In Address Book, if you want to know which Groups a contact has been assigned to, you highlight the Contact and press Command-Option. But that doesn't work in iPhoto.

    This sure would be a handy feature! iTunes has it so that you can easily tell which playlists a song is in. It would be convenient for iPhoto as well.

  • How to repair my macbook pro when i had delete the app store file and know it telling that appstore file has been damage or incomplete and i had the version 10.6.8

    how to repair my macbook pro when i had delete the app store file and know it telling that appstore file has been damage or incomplete and i had the version 10.6.8

    so is their is any way that i can solve this matter

  • How can I know if malicious spyware or malware has been downloaded to my iphone 4?

    How can I know if malicious spyware or malware has been downloaded to my iPhone 4? And if so, how do I remove it?

    If your device has not been jailbroken, there can't be viruses or malware on the phone.

  • How do I know if the Maverick software update has been installed on my mac?

    How do I know if the Maverick software update has been installed on my mac?

    It will not download if you already have it.
    Just to be 100% clear …
    Look in /Applications for "Install OS X Mavericks"
    Use the Finders Go menu > Applications. To open it.
    You may have an Applications folder in your Home directory too, it shouldn't be in there but it is possible.
    Also try Spotlight to see if it can find that filename.
    Can you also tell us what system you have?
    Apple menu > About this Mac > more info button… What is the Model (under the Overview tab).
    10.9 doesn't install on all systems, so it could explain why you can't get it, however it usually displays a dialog stating that fact.

  • How do I know if security hotfix APSB13-13 has been applied?  My version is 9.0.1.274733

    How do I know if security hotfix APSB13-13 has been applied?  My version is 9.0.1.274733

    With APBS13-13 applied CFAdmin System Information would report:
    Server Details 
    Server Product  ColdFusion 
    Version  9,0,1,274733   
    Update Level  /C:/ColdFusion9/lib/updates/hf901-00010.jar   
    HTH, Carl.

  • Error while calling the function which returns SQL Query!!!

    Hi,
    I have a Function which returns SQL query. I am calling this function in my APEX report region source.
    The query is dynamic SQL and its size varies based on the dynamic "where clause" condition.
    But I am not able to execute this function.It gives me the following error in APEX region source.
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Even in SQL* Plus or SQL developer also same error .
    The length of my query is more than 4000. I tried changing the variable size which holds my query in the function.
    Earlier it was
    l_query varchar2(4000)
    Now I changed to
    l_query varchar2(32767).
    Still it is throwing the same error.
    Can anybody help me to resolve this.???
    Thanks
    Alaka

    Hi Varad,
    I am already using 32k of varchar2. Then also it is not working.
    It is giving the same error. I think there is something to do with buffer size.
    My query size is not more than 4200. Even if i give 32k of varchar2 also buffer is able to hold only 3997 size of the query only.
    Error is
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Tried CLOB also. It is not working.
    Any other solution for this.
    Thanks
    Alaka

  • Hi guys, my ipad2 says that it needs to cool down before using. It has been sitting in a cool place over a day now but the message still pops up. Any other ideas? or help?

    Hi guys, my ipad2 says that it needs to cool down before using. It has been sitting in a cool place over a day now but the message still pops up. Any other ideas? or help?

    Is the iPad Off and not connected to the charger?
     Cheers, Tom

Maybe you are looking for

  • Bit of a problem

    Whenever I start up my computer I get the following message: Error- Could not find java machine-Class not registered Everything about Java works fine. Just wondering how to get rid of this error message. Any help would be appreciated.

  • Mac OS X File Sharing not working over WiFi

    I have 3 computers, all Macs. Two are hooked into my WRT54GP2 via ethernet cables, and one is using WiFi (Airport Extreme). All get an IP number from the router via DCHP (no hard numbers). The router is also hooked up to a Motorola Surfboard cable mo

  • How can I book additional segments on customer master?

    Hello expoerts, I get customer master data from a external system via IDoc DEBMAS. There are a additional segment inside for email address, fax and so on. I have changed the customizing and the processing of the idoc works fine. My problem is: Who ca

  • Integrating Workflow with WebDynpro

    Hi Guys,               I am making some altrations to the Workflow integrated with WebDynpro ABAP. Once we maintain the Task and WebDynpro application in SWFVISU and Register in UWL, Is that the context has been genarated automatically in component c

  • Help with calculated dimension member

    I am trying to create a (custom) dimension member using a simple calculation (subtraction e.g. member1 - member2) in AWM 9.2.0.4 following the example given in the Oracle OLAP DML Reference 10g (using DML). I could not find any articles relating to t