How to trace other user's session?

Dear Experts,
I would like to trace other user's session, I am on Oracle 10g R2 (10.2.0.4) on a Windows box. I did search on google and found tons of articles explaining about tracing techniques. But unfortunately, trace file is not getting generated in my case. Below are the steps I am following:
SQL> conn /as sysdba
Connected.
SQL>
SQL> select sid, serial# from v$session where username = 'TEST';
       SID    SERIAL#
        38         17
SQL> show parameter user_d
NAME                                 TYPE        VALUE
user_dump_dest                       string      C:\DB10G\UDUMP
SQL> show parameter timed_s
NAME                                 TYPE        VALUE
timed_statistics                     boolean     TRUE
SQL>Connect a new SQL*Plus session as TEST and then
SQL> show user
USER is "SYS"
SQL>
SQL> select sid, serial# from v$session where username = 'TEST';
       SID    SERIAL#
        19      24465
        38         17
SQL> exec dbms_system.set_ev(38,17, 10046, 12, '');
PL/SQL procedure successfully completed.
SQL> exec dbms_system.set_ev(38,17, 10046, 0, '');
PL/SQL procedure successfully completed.
SQL> grant execute on dbms_system to test;
Grant succeeded.
SQL> exec dbms_system.set_ev(38,17, 10046, 12, '');
PL/SQL procedure successfully completed.in the new session (TEST):
SQL> select * from tab;
TNAME                          TABTYPE  CLUSTERID
T                              TABLE
T3                             TABLE
T1                             TABLE
T2                             TABLE
MYEMP                          TABLE
SQL>Yet, no trace file is generated in "C:\db10g\udump" folder.
C:\db10g\udump>dir
Volume in drive C is SYSTEM
Volume Serial Number is AC21-0462
Directory of C:\db10g\udump
12/15/2008  12:36 PM    <DIR>          .
12/15/2008  12:36 PM    <DIR>          ..
               0 File(s)              0 bytes
               2 Dir(s)   9,891,508,224 bytes free
C:\db10g\udump>Your help/advice in this regard will be very helpful.
Regards

You must be using shared server.
You can verify this by referring to the SERVER column of v$session.
In shared server several servers will execute your code, so that's why you don't find a trace file.
The method described in this article should work in your case also:
http://technology.amis.nl/blog/1794/how-to-trace-a-java-application-through-a-connection-pool-using-dbms_monitor-6
Hth
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • How to edit other user's session from a session id?

    I want to ban a person on real time for example. Website's database ban checking is on the login level. So if i ban someone the user's session must be expired and relogin. But if i change user's session attiributes it will be real time ban.
    Shortly how can i edit some user's session from their session ids.
    Thanks
    null

    Use a filter and have it check with every page load (as one obvious solution).

  • How to trace other email from bookmark

    how to trace other user email from bookmark

    Yes, you can pick which account, right on the email you want to send.
    The From: field lists the available accounts. Click and select.

  • How to trace someone else's session

    Hello,
    How do I trace a user's session. A user is complaining of an error and I want to trace the user's session. Thank you.

    You will need to get the sid and the serial# from v$session. Once you have them, issue one of the following:
    You can use dbms_support to enable and disable the trace. If it is not installed, you will need run $ORACLE_HOME/rdbms/admin/dbmssupp.sql
    To enable a level 1 trace, like setting sql_trace=true
    exec dbms_support.start_trace_in_session(<sid>,<serial#>);
    To enable trace with binds
    exec dbms_support.start_trace_in_session(<sid>,<serial#>,binds=true);
    Toe enable trace with binds and waits
    exec dbms_support.start_trace_in_session(<sid>,<serial#>,waits=true,binds=true);
    To stop tracing
    exec dbms_support.stop_trace_in_session(<sid>,<serial#>);
    It is better to end the session instead of disabling the trace. Some cursor stat lines may not be written to the trace when disabling trace that would have been written if the session terminated.

  • How to see other users gift list in atg

    Hi Guys,
    As Giftlist are public we can see other user giftlists also
    could  you please tell me how to see other users giftlists in atg ?

    There is an example of this in the demo CRS application (Page store.war/giftlists/giftListSerach.jsp)From the docs:
    The /atg/commerce/gifts/GiftlistSearch form handler searches the repository for gift lists. The form handler uses input from the customer, such as owner name, event name, event type and state, to find gift lists published by other customers. It returns a list of gift lists that match the given criteria.
    GiftlistSearch should be session-scoped because multiple pages are typically involved in gathering and displaying information for gift list searching (for example, you might want to maintain a list of results for paging purposes). This form handler uses supporting servlet beans to add the retrieved gift lists to the customer’s profile and to display gift list contents.

  • How to trace a user System or I.P address

    Hi Experts,
    Had to ask how to trace a User's System or I.p address whom  has performed changes over a BEX Query.
    I have a situation where a user has done some changes in report it displays in last changed by user name:-****and last change date  but i would like to trace the system from which these changes have been applied over a the bex Query.
    Thanks in advance
    Aman

    Hi Aman,
    Please have a quick look at the note 368048 which explains why the terminal ids are blank in some cases and gives the solutions where applicable.
    If you want to see the current workstation with IP Addresses you can have a look at table USR41 which contains this information but this is not contained within the security audit log.
    539404     FAQ: Answers to questions about the Security Audit
    39418      Logging user actions
    As for your query, about viewing user's IP, you might need to get user's Terminal ID from STAT/AL08 and manually use tracert in MS-DOS command to see particular user's IP. EG:tracert myl5005500.
    Tracing route to <hostname>[10.10.10.10]
    over a maximum of 30 hops:
      1    <1 ms    <1 ms    <1 ms  <FQDN> [10.10.10.10]
    Trace complete.
    Note : I personally tested from logging in via query designer but my connections were not displayed in USR41. Once I connect to backend system my terminal IP could be traced.
    Regards,
    Naveen.

  • How to disable other users from changing the status

    Hi,
    The status entry field can be changed irrespective of ownership in Documents.
    I was able to change the status on the document created by other user.
    Example: The status of document was In-Work. The document owner was X. But I was able to change it to Inspection Check.
    How to disable other users from changing the status?
    Regards,
    Shashi

    This is a frequently discussed topic.Please use the search feature.It has been discussed in [previous posts|CV01N: Filter documents by role; in various contexts.
    Regards,
    Pradeepkumar Haragoldavar

  • How to trace a user session?

    Hi DBA,
    OS: Linux 5
    DB Ver: 10.2.0.1
    can any one tell me how to trace a session of user in oracle 10g?
    Regards,
    BK

    user12942781 wrote:
    Hi DBA,
    OS: Linux 5
    DB Ver: 10.2.0.1
    can any one tell me how to trace a session of user in oracle 10g?
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/sqltrace.htm#CHDDGCCB
    HTH
    Aman....

  • How to trace an already running session

    Hi,
    Sometime I come across following situation.
    Queries/SQL statements keep on running for a long time and users complain about the same.
    But since they have already started I am not able do anything about it.
    So please guide me "how can I trace already running session."
    Thanks,
    Rushi

    Rushi Shah wrote:
    Hi,
    Sometime I come across following situation.
    Queries/SQL statements keep on running for a long time and users complain about the same.
    But since they have already started I am not able do anything about it.
    So please guide me "how can I trace already running session."
    http://www.petefinnigan.com/ramblings/how_to_set_trace.htm
    Use DBMS_SUPPORT to set trace in another users session
    Next use the interface to again set trace for SCOTT's session that we found earlier. here it is:
         SQL> exec dbms_support.start_trace_in_session(10,20,waits=>true,binds=>false);
         PL/SQL procedure successfully completed.
         SQL> -- execute some code
         SQL> exec dbms_support.stop_trace_in_session(10,20);
         PL/SQL procedure successfully completed.
         SQL>                          
                                  

  • How to trace an user access

    Even if I've got no DBA permission (for example I don't see the v$session table), have I got any way to trace the users accessing the DB? How can I do? I was told about trace but can someone tell me more? I'd like to know the user accessing the DB and the operation that he's launching. Is it possible?
    Thanks!

    Anything is possible if you have the correct privileges. But then you probably don't have those privileges, and probably for a reason, as you probably also don't have the DBA role for a reason.
    If you are to enable trace in a different session, you would need execute access on an Oracle provided package, which differs by version, and of course you assume Oracle never changes, and there is only one version out there: yours.
    For a DBA it would be the easiest to grant you the select_catalog_role and the execute_catalog_role.
    But then again one would ask why you think you should spy on him, and why you don't cooperate with him and/or try to convince him.
    Sybrand Bakker
    Senior Oracle DBA

  • How to trace a USER in oracle?

    Hi Sir,
    I have a rquirement that I need to Trace a session created through the Application. The only data I have is that I know the application will connect to a Database schema and nothing else. How is it possilbe that I can create a trace file for it.
    Also is it possilble, that i can trace complete user. how to find all the trace as it create number of process inturn number of trace, how do I find it and combine. I read the documentation but can't understand it clearly?
    Any help will be great.

    sanora600 wrote:
    Aman, thanks for replying. This is the problem, they have not implemented dbms_application_info.
    That is the reason I want to know how to trace user(all session of a schema) and combine all the session generated trace(something like trcsess) and then generate tkprof. I am on Oracle 10g.Well, first off, users connect to databases, they don't connect to schemas. And as a follow on, users have sessions, schemas don't.
    That said, you might investigate a logon trigger that initiates a 1046 trace. Something like this:
    -- create a logon trigger for capturing extended trace data
    -- NOTE: must be run as SYS
    -- NOTE: Be sure to change both occurances of the target username
    -- ('user = xxx' and 'TRACEFILE_IDENTIFIER=') to the
    -- correct value for the session you want to trace.
    create or replace trigger logon_trigger
    after logon on database
    begin
    if (user = 'SCOTT' ) then
    execute immediate 'ALTER SESSION SET TRACEFILE_IDENTIFIER=''SCOTT_APP''';
    execute immediate 'alter session set timed_statistics=true';
    execute immediate 'ALTER SESSION SET EVENTS ''10046 TRACE NAME CONTEXT FOREVER, LEVEL 12''';
    end if;
    exception
    when others then
    null;
    end;
    end;
    Of course, you can play around with the 'if' condition, and delete or disable the trigger when it is no longer needed. The resulting trace file can be run through tkprof.
    Edited by: EdStevens on Dec 19, 2008 9:03 AM

  • How to trace which user shutdown oracle database in unix OS?

    our organization is having 10 DBA with sysdba priviladge. We are using UNIX operating system. At morning say for example if some one (SYSDBA user) shutdown the oracle database how other sysdba user trace the user who shutdown the database? the information i need is terminal from where oracle got shutdown and the username? Please help...

    Hello,
    You are right Sybrand, SYSDBA connections are always audited.
    My answer was about enabling auditing to any connections, which may give informations about who access to the Database in general. And, this is true, it was not the scope of the OP question.
    However, so as to enlarge audit of SYS/SYSDBA/SYSOPER operations, setting the parameter audit_sys_operations=TRUE may be interesting:
    http://download.oracle.com/docs/cd/E11882_01/network.112/e16543/auditing.htm#DBSEG0611
    To the OP:
    Where the audit tracefile get genareted for sys user?You may execute this:
    show parameter audit_file_destThank again Sybrand for correcting me.
    Best regards,
    Jean-Valentin

  • How to trace connect user ?

    Hi,
    How can I trace all user connection in a file ?
    I would like to know who connected (user oracle) and when.
    Thanks for your help,
    gnom92.

    You can see the figure how many connection made since the db starts up quering v$sysstat;
    select name,value from v$sysstat where name like '%logon%';
    NAME VALUE
    logons cumulative 132671
    logons current 175
    Generally, Oracle doesn't keep this information. You have to enable audit to keep this info.

  • How to let other users use my customization?

    Hello,
    I have a few nice dynamic pages with bind variables.
    I use the user PORTAL to customize my bind variables, but what I customize is not for other users, they see the result of the default bind variables.
    Surely there is a way to set the customization from a designer for the whole comunity. My question is how to pull that off.
    Thanks for any information in advance.
    Kind Regards,
    Arnoud M. Barth

    Hi,
    You can set customizations at the system level by clicking on the edit defaults link of the portlet. This changes the default values of the portlet. In 309 or release 1 clicking on the edit page will show you the edit defaults link on the right hand corner of the portlet. In case of 902 or release 2 each portlet has a actions icon. Clicking on that will bring you a list of actions you can perform on a portlet. You will have "Edit Defaults" link here.
    Thanks,
    Sharmila

  • How to access other user's inbox work items?

    Hi,
    I have to view what all work items are avaialble in a particular user's inbox. How to achieve this?
    Is it possible?
    -Nick

    Hi Nick,
    So you would need all the other users inbox items to be displayed in your SBWP rite?
    You can do this by substitution. Please follow the below steps.
    Go to SBWP of the user whose inbox you want to see.
    SBWP -> settings -> office settings  ->  Substitution -> Add ur inbox in the substitute field and substitute all authorizations .(Check for the End date as well).
    You need to follow the same for all the other users.
    After this, Log in your SBWP and check if you are able to see all the user's inboxes or not.
    Thanks,
    Nick S

Maybe you are looking for

  • Mid-2011 MacBook Air EFI still messed up 8-9-14

    Ok, so now my MacBook Air reboots itself while the clamshell is shut.  Last time it had been shut for a couple of hours when I heard the OS X reboot noise.  Now, I'm getting a Sleep Error...

  • SAP XI  and WBI adapters

    I have a customer who wants to integrate their SAP systems with the EAI solution (WebSphere Message Broker 5*) using XI 3.0 in the future. They basically would like to go: SAP System -> IDOC adapter -> SAP XI 3.0 -> IDOC adapter -> WebSphere Business

  • How can I download and install Camera Raw 8.6?

    I am trying to download NEF files from my Nikon D 810 camera.  I understand I need Camera Raw 8.6 to do this.  How do I get Camera Raw 8.6?

  • How to use daemon

    Hi all, I have to automatically schedule DTP right after loading to PSA.Can anybody suggest me how to use this daemon ? Regards    KK

  • Backup time when updating iPhone to IOS 5?

    How long did it take for your iPhone/ iPads to finish the backup proccess??