Trace the statements which the user had executed

Hi all,
if i want to trace the statements which the user had executed, what should i do?

Query the v$sqlarea or v$sql view. The sql_text column
will print out the entire sql string statement.
SQL > select sql_text from v$sqlarea where parsing_user_id = <input>
But its length is restricted to 1000 characters. If the query statement exceeds 1000 characters, you can query
from the v$sqltext view
The parsing user id is the same as stored in the dba_users table
SQL > select sql_text from v$sqltext where address = ( select address from v$sqlarea where parsing_user_id = <input> ) order by piece asc;
Is this what you were looking for ???

Similar Messages

  • Capture the ALV Hot Spot column on which the user had exactly clicked

    Hello Experts,
    I have an ALV in Web Dynpro with 4 columns of which two columns have hot spot action on them.
    Now when i click on the 1st column a pop up should appear and on click of the 2nd column a different Pop-up should appear.
    Now i have an even handler which handles the ON_CLICK event..
    Whenever i click on either of the columns the control will go to this event handler method.
    Now my doubt is how to capture the column on which the user had exactly clicked so that i can define actions seperately for each column.
    Reply is Appreciated.
    Thanks in Advance,
    Shravan

    Try This
    CLASS lcl_event_handler DEFINITION.
      PUBLIC SECTION.
        METHODS:
          on_link_click FOR EVENT link_click OF cl_salv_events_table
            IMPORTING row column.
    ENDCLASS.                    "lcl_event_handler DEFINITION
    CLASS lcl_event_handler IMPLEMENTATION.
      METHOD on_link_click. 
       " Your business logic goes here. The variable *row* contains the row number and *column contains column name*.
      ENDMETHOD.
    ENDCLASS.                    "lcl_event_handler IMPLEMENTATION
    * Put this code just nefore you have used the display method of SALV.
        DATA: lo_event_handler TYPE REF TO lcl_event_handler.
        CREATE OBJECT lo_event_handler.
    * Register the event handler
        SET HANDLER lo_event_handler->on_link_click FOR lo_events.
    Hope this helps.
    Regards
    Mishra

  • Prompt the error message according to what the user had entered.

                   for(int i = 0; i<3; i++){     
                        do{                              
                             try{
                                  System.out.print("Input range for Question " +(i+1) +": ");     
                                  inputQuestionRange = Integer.parseInt(input.nextLine());
                             }     catch(NumberFormatException e){
                                       System.out.println("Error: Please enter a valid number.");
                                  if(inputQuestionRange > 5 || inputQuestionRange <2){
                                       System.out.println("Error: Please Range enter between 2 to 5.\n");
                        }     while(inputQuestionRange > 5 || inputQuestionRange <2);     
                             question[i] = new int[inputQuestionRange];
                   }//for rangeResult:
    Input range for Question 1: 2d
    Error: Please enter a valid number.
    Error: Please Range enter between 2 to 5.
    Input range for Question 1:
    I would like to prompt the error message according to what the user had input.
    However when user input *2d* it just print both error message as it went into the if-else block. how can i skip the if-else block ???

                   //Set Range
                   for(int i = 0; i<3; i++){     
                        do{                              
                             try{
                                  System.out.print("Input range for Question " +(i+1) +": ");     
                                  inputQuestionRange = Integer.parseInt(input.nextLine());
                                       if(inputQuestionRange > 5 || inputQuestionRange <2){
                                            System.out.println("Error: Please Range enter between 2 to 5.\n");
                                       }     else{
                                                 System.out.println("OK");
                             }     catch(NumberFormatException e){
                                       System.out.println("Error: Please enter a valid number.");
                        }     while(inputQuestionRange > 5 || inputQuestionRange <2);     
                             question[i] = new int[inputQuestionRange];                    
                   }//for rangeResult:
    Input range for Question *1*: 22
    Error: Please Range enter between 2 to 5.
    Input range for Question *1*: d
    Error: Please enter a valid number.
    Input range for Question *1*: 3
    OK
    Input range for Question *2*: ww
    Error: Please enter a valid number.
    Input range for Question *3*:
    Hi, thank you for your help, i just realize another problem.
    why does my Question number increment to 3, it should remain as 2 when i request for user input again. i try many ways by altering the for loop, when i insert the try & catch block in a while(!invalid), it just loop forever and crash. How can i solve this ?
    Edited by: metaroot on Feb 18, 2008 1:55 PM

  • Trace the user who has started the java instance.

    Hi Gurus,
    How can we trace the users those who restart the java instances?
    Regards,
    Ratan roy

    Hi,
    Check dev traces and java trace files
    \usr\sap\<SID>\<instance name>\work and
    usr\sap\<SID>\<instance name>\j2ee\cluster\server<n>\log
    and /usr/sap/<SID>/<Central instance name>/j2ee/JSPM/
    I am not sure wthr the user who started the instance will be traced you can also try and trace database log files . I am not sure of the path
    Rakesh

  • Find the user that executed the SQL procedure

    We are using Oracle 10g R2 on Linux.
    I want to know the OS user that executed the purging procedure (PURGE). For this, i am using the following query which is not returning any row:
    select *
    from DBA_HIST_ACTIVE_SESS_HISTORY ash, DBA_HIST_SQLTEXT s
    where ASH.SQL_ID = s.SQL_ID
    and UPPER(s.SQL_TEXT) like '%PURGE%';Is the above query fine?

    Moazzam wrote:
    We are using Oracle 10g R2 on Linux.
    I want to know the OS user that executed the purging procedure (PURGE). For this, i am using the following query which is not returning any row:Since what you are doing to get the user indirectly is not working would another approach be helpful?
    Since you want to know who is running the procedure would a log table you could insert into at the start or end of the procedure help, to store the information you are interesting in seeing?
    Or, can you get the information you want from other system views? V$SESSION has the OSUSER column as well as SQL_ID and other join columns for other views (like V$SQL).

  • How could I avoid/disable the user to execute the command /BDEL?

    I've tried to map it by SU53 but all users have this option and when the users run SM35 they delete some necessary postings.
    How can I control it? By profile or by system configuration?
    Thanks a lot,
    Elton

    I think it is acceptable for (key) users to monitor their BI sessions and even correct them.
    If they can process them online then they might as well have not posted the entry manually as well as in both cases the control is still with the user.
    Are there any commands which they do need?
    An alternative is to hand the control over to background processing and give them access to check the error logs?
    Anyway... Batch Input is antequated technology
    Cheers,
    Julius

  • To trace the users connecting to database

    Hi ,
    can any body help me on tracing the users who are connected to a database at a particular period of time.?
    thanks

    soundar wrote:
    these details on the audit where it gets recorded..?
    it's in audit trail file in the same directory as background process trace files or some where else..?It depends on the setting. If it is set to DB then it will be sent to the SYS.AUD$ table. This table doesn't need to be accessed directly. You can use the DBA_AUDIT_TRAIL view to get a more friendly look at the audit information.
    If it is set to OS it will go to the operating systems audit trail.
    It may be worth it to look at the documentation :)
    [Initialization Parameters: AUDIT_TRAIL|http://download.oracle.com/docs/cd/A84870_01/doc/server.816/a76961/ch111.htm]

  • How to Track which Super user change the License Administration

    Hi Experts,
    My client recently encounter the License was allocated from a particular user id by an super user, resulting the end user unable to perform transaction when log onto SAP B1 8.8 PL19.
    Is there any way which we can trace and control which super user edit the License Administration and allocated the license to other user?
    Thanks in advance.
    Cheers'
    Vincent

    Hi Vincent,
    1. Login through manager then Go To Administrator--> System Initialization--> Authorization--> Additional Authorization Creator
    2. Additional Authorization Creator screen appear.
    3. Select any content on right side screen and click on Add Same Level button
    4. Authorization ID : Give any Name
    5. Name : Give any Name
    6. Option : Full/None
    7. Forms ID : Click on Edit Button --> Enter ID for License Administrator 60070.
    8. Click Update and Ok.
    9. Go To Authorization--> General Authorizations--> Select User in which you have block Graph--> User Authorization
    here select No Authorization.
    Just untick supper user check box of other user and give rights
    Thanks,
    Srujal Patel

  • How to perform this?by copying the IE URL of successfully logged in to another IE Browser and the user still logs in which is wrong.

      I have a problem. the user had successfully logged in in an IE Browser. Then I copy the URL of the IE
      to another IE Browser. The output must be, the browser will ask the user to log in again which is correct.
      In my application, the output was still logged in which is wrong.
      Kindly help

    I have the Application.cfm
    I dont use parameter such as CFID and CFTOKEN for my code.
    Is it possible to do it without using this parameter?
    Can
    you give me simple code that if it is successfully logged in, then it
    will perfom that the browser will ask you to log in again.
    Thank you for the reply and knowledge.
    jepoy1

  • Trace the original iAS user

    Hi all,
    I have a web app. deployed into an iAS instance.
    The Application server connects to the database using a JDBC connection.
    Obviously I know the user that connects from the iAS to the DB, but I would like to know how to trace the user who first connects to the iAS, not the one who get connected to the DB using JDBC.
    Any help will be appreciated
    Regards,
    Luis

    The users are defined in jazn-data.xml.
    When you talk about accessing application server, generally it means that you access the applications deployed to the application server, so the user/password are the ones which you have defined and used for jndi lookup; that the securiry roles are defined in jazn config file which is located at j2ee/home/config directory.
    -Frances

  • Trace the wireless user assoication

    Hi all,
    Our company just deploy the 6 x Cisco AP1010 with Cisco WLC 2000. In the WLC web console, I can see the user is connnecting to which AP in that moment. However, is there any way to trace the user assoicated to which AP yesterday? Thanks.
    Regards,
    Murphy

    Hi Murphy,
    Controller as of now does not maintain any history of client association.
    Ankur

  • How to config the user and role in the runtime for executing in the GP?....

    Hi Experts,
    I am learning GP(Guided processor)according the document
    http://help.sap.com/saphelp_nw70/helpdata/en/44/0d5b8f250d5cfae10000000a155369/frameset.htmneed.
    I meet two question when I learn the GP.
    The first:
    This document don't tell me how to config the member framework of the company.  After I design the GP, I have to config the user and role in the runtime for executing. I hope I can use the WDA(webdynpro for java or webdynpro for java) to implement to config the user for executing in the runtime. Thus, the customer don't config the user when runing the GP. But I don't know how to do this.
    I need a document guide step by step to tell me how to do this.
    The second:
    If I use the workflow in the GP, I have to install and config the NWDI(Netweaver Development Infrastructure). Now I have installed the NWDI, but I don't know config it so that I can download it to my machine for develop the workfolw in the GP.
    Do you give me some hints? Thanks a lot.
    Thank a lot.
    Best regards,
    tao

    Hi, Mithu,
    Thanks a lot for your help in advance.
    I have carefully read the document: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6b66d7ea-0c01-0010-14af-b3ee523210b5.
    Now, I think I have to set the processor of every actions in every process if I use the GP for processing the workflow.
    I am better to hope that I can set the processor to the role for every actions in every process in the runtime through get the organizational structure in the WDA(webdynpro for java or webdynpro for java). Thus, the customer don't set the processor to the role for every action in every process when runing in the GP.   I don't know how to do this. 
    Whether the function is not supported in the GP? If so, I have to config two organizational structure: in the R/3 and in the Portal. I don't think our customer don't receipt this solution.
    Do you give me some hints? Thanks a lot.  My email: [email protected]
    Thanks again.
    Thanks & Regards,
    Tao

  • Help: How to send response to user witch executed the workitem

    Hi friends,
    I want to execute MIGO transaction by workflow. I developed it by BAPI but, I'm using the PR_NAME parameter (on BAPI_GOODSMVT_CREATE HEADER) so it will be stored as the user witch executed MIGO.
    I'm trying to send the follow variable: &_WORKITEM.EXECUTEDBYUSER.NAMEWITHLEADINGUS&, but it doesn't work. With variable can I use to do it ?
    Glauco
    Message was edited by: Glauco Kubrusly

    Hi,
    1-Check UNAME element in the WF container has both the import & export attributes checked.
    ->YES.
    2-Check in the WF log if the UNAME element in the WF container is getting popualted with the approver's id.
    ->YES. NOW IT'S BACKING WITH THE CORRECT USER.
    3-And lastly Check the BAPI independently and verify it is actually using the user id supplied or defaulting to the executing user's id.
    ->NOT FOR TASK MIGO IN BACKGROUND.
    ->NOT FOR BAPI INDENPENDENTLY RUN TOO. I run the funcion in foreground and put the user directly in the var uname. But the R/3 system stored as my user whose I logged in SAP. I know that it's wrong coz I put another user instead mine, and the MIGO document is with my sap user. I think parameter pr_name didn't work fine.
    I discovered that the pr_name (BAPI_GOODSMVT_CREATE parameter) didn't work fine. Coz even foreground it's storing my actual logged user as document creator on MIGO, I know that coz I put another user in the test, but the function simply ignored this parameter. So always in background it will always store as wf-batch.
    Message was edited by: Glauco Kubrusly

  • How will I block/restrict the user to change the payment term in FBL5N?

    Hi All,
    How will I block/restrict the user to change the payment term in FBL5N????
    I have tried on following objects:
    F_BKPF_BLA
    F_BKPF_BUK
    F_BKPF_GSB
    F_BKPF_KOA
    F_IT_ALV
    F_KNA1_BED
    F_KNA1_BUK
    F_LFA1_BUK
    S_ALV_LAYO
    But, not succeeded.
    =>Actually user runs FBL5N, double click on a record then click on Change icon.
    =>Change Payment Term.
    Please reply ASAP. Point will be awarded.
    With Best Regards
    Dharmendra

    Hi Dharmendra,
    Please set an authorization trace in ST01 and then ask the user to execute the transaction and the steps on the same application server as the o ne on which the trace has been set (valid in case we are talking about mutiple application servers for same <SID>). After this is done switch off the trace,list it and fill all the authorization objects. That might give you the perfect idea.
    Regards.
    Ruchit.

  • Regarding the user menu

    Hi Experts,
                        Can any one tell me in sap-bi i had created the role "zbcs_reports"  under this role it is having the options for to execute the consolidations reports .this role consists of the folder's like consolidations under consolidations actual reports like that .here i created the one sigle user for that user i assigned this role for this role i have to assign the consolidations reports so that the user can execute the reports from the sap gui it means that the user menu .when i added this role the particular user when i am executing the user menu options giving  that "no sufficient work books are found on server " this was the message it is giving .
    1.first can any one tell me how i have to add the report to the user menu of the role .
    2.this report should be able to add to the role like bex reports only i dont need to add like web report.
    bye.

    Hi ,
              As you told like that i had created the work book but here what happening means when i am assigning the report it is going to be add as an web item report .but here we required to add as an like bex analyser only means excel reports only we dont need the web items.
                          Apart from that when i am assiging the particular report to the particular user what evr the roles i am assiging to the particular user it is not availablr there .for ex here i had taken the user "madhu" for that madhu i had assigned the role "zbcs_reports"  this role consists of the sub folders as you told me .but when i am  trying to assigning the report to the particular user the role which i had assigned to the madhu it is not available over there .Once the role is available means i can assign the report to that the role .And that too it should be in bex format only i dont need in the web item report.
       bye.

Maybe you are looking for