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.

Similar Messages

  • 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 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 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

  • 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 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 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 Use  Connected-User DBLink in a trigger??

    In the trigger body,I need to call a remote procedure through a Connected-User dblink.But error occurs when the trigger is compiled.
    ORA-01005:null password given;logon denied
    Can't a Connected-User dblink be used in a trigger?
    Thanks.

    Hi,
    I don't know if this helps, but you can create a DBLink with the username and password and the SID to connect to. Then try using this DBLink in trigger.

  • How to monitor connected users on filesharing in OS 10.9.1

    I'm trying to identify connected users to my  Mac running OS 10.9.1.  I know there are users logged on via filesharing since I get a message saying that there are (e.g. 2) users logged on when I try to restart.  In the past I used AFPstatus 1.5, but doesn't seem to provide information on connected users like it did in earlier OS's.
    Is there a simple terminal command since netstat command gives a long list of stuff which is mostly gibberish to me.
    thanks

    My Mac IT guru here called Apple Support and their only recommendation was to buy Mavericks Server, which is now only $20, and use as a utility to monitor logged-on users.  Seems like overkill plus our IT doesn't like us to run our own server.  I suspect this could be done through the terminal?
    I hope AFPstatus is updated.

  • How to trace communication users in system & build a role

    Hi all
    I have a requirement in my compnay to create a role for communication users currently assigned to SAP_ALL
    we have 20 communication id's & turning on trace is not feasible option due to the impact on system performance.
    Plz let me know what is the approach i need to have inorder to find neccessary tcodes & objects into my role.
    thank you in advance.
    Best Regards
    NaveenMurthy_

    What I meant is that good "housekeeping" and securing of these sensitive RFC connections is hard to do properly if you are "far away" from them.
    Go figure why SAP delivers many of their connection wizards with SAP_ALL... they don't know either what the customer will be using and which data will be transfered and when you might need to temporarily debug the connection or when someone will try to use an existing connection for a new application without thinking about developing a new role to go with it, or which checks an SP might introduce which then pop up as a problem in a remote program or system, etc.
    Really, it is not an easy thing to do properly (both technically and procedurally) and the further you are away from it, the more hassle it will be.
    No inflamatory hype intended toward any specific type or location of "offshoring".
    Cheers,
    Julius

  • How to trace a user who entered/dropped a table in a shared DataBase

    Hai, I have a doubt plz help me
    when working in a shared DataBase environment, different users will create or drop
    tables from the DataBase. Is it possible to trace who has created/altered a particular table in the DB. If yes plz tell me the procedure.
    Thanks in advance.
    SrihariKrishna

    Maybe this link provides some help?
    http://asktom.oracle.com/pls/ask/f?p=4950:8:5395923770553724381::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:6399608034075
    C.

  • How can I handle user's action on UIStatusBar area

    Hi all.
    My program needs to hide the UIStatusbar at the top of area, so I set the UIStatusBarHidden property YES.
    But I can't handle any user action on this area.
    How can I control the user's action on UIStatusbar area.
    If anybody knows , please help me.
    Message was edited by: anti RMB
    Message was edited by: anti RMB

    Aashil,
    have a look at the Forms product section on otn. There is a java bean "getClientInfo" that can give you the name and ip address of the connected client.
    The serverside pid of the Forms process is out of reach (on Unix you may be able to do a host command to get the Unix process).
    Check the database documentation on how to find connected users.
    Frank

  • 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 can I specific user's right ?

    I have studied ACS4 working flow from sample shop and document. But I still have some question about right to download ebook.
    After sample shop generate GBLink and user download acsm file. Is it possible to specific that acsm file can only open
    by specific user or device ID ? If yes how can I do ?
    I have read on document but don't understand yet because in technical document it's only have xml structure but don't have
    any sample value. And where is value come from.

    Aashil,
    have a look at the Forms product section on otn. There is a java bean "getClientInfo" that can give you the name and ip address of the connected client.
    The serverside pid of the Forms process is out of reach (on Unix you may be able to do a host command to get the Unix process).
    Check the database documentation on how to find connected users.
    Frank

  • Disconnect Connected Users

    Dear
    How to kill the connected users' session.
    I need to do some activities on Production System and need to disconnet all connected users.
    I used SM10 to lock all users but this will disallow new connection.
    however, some users are also connected.
    kindly advice, I am following the correct steps and how to disconnect connected users.
    Regards:

    Dear
    When I select any user and click on Session, there would be a popup I click on end Session. I got a error "Make a Selection".
    what does it mean????????
    regards:

Maybe you are looking for