How to trace a particular database user  ?

Everyone knows that there is an Oracle username "SCOTT" in all the database installation.
How to enable tracing for the SCOTT user, so I can can get all the tracing info of the user SQL's
Note: I know I can get the sid,serial# info and trace a particular session id, but here i wanted to trace the entire user SCOTT, no matter how many Sessions he opens.
Help me with this !!!!

Phil,
The one what you listed tracing by service name is interesting, correct me if I understood it wrong way.
Lets say:
Database Host name: ABC_HOST
Database Instance & DB: ABC
Port 1521
Now I have 3 computers connecting to this database using the following TNSnames.ora
====================================
ABC =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = tcp.world)
(PROTOCOL = TCP)
(Host = abc_host)
(Port = 1521)
(CONNECT_DATA = (SID = ABC)
======================================
Now based on your suggestion you are saying that one computer from which I wanted to trace
the database sessions, I can create a new entry in the tnsnames.ora as follows:
====================================
ABCTRACE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = tcp.world)
(PROTOCOL = TCP)
(Host = abc_host)
(Port = 1521)
(CONNECT_DATA = (SID = ABC)
======================================
Now using the DBMS monitor package i can do this to start tracing DBMS_MONITOR.serv_mod_act_trace_enable('ABCTRACE') )
Correct me if I am wrong

Similar Messages

  • How to start a particular database in unix/linux

    Hi,
    Could any one tell me how to start a particular database in Unix/Linux assuming that my server consists of 10 databases.
    Can we use LSNRCTL tool for this??
    Regards,
    Nagarjun.

    > Could any one tell me how to start a particular database in Unix/Linux
    assuming that my server consists of 10 databases.
    There is something very wrong in basic understanding of Oracle RDBMS architecture, when running 10 Oracle instances on a single server.
    10x temp space. 10x redo space. 10x SGA. 10x system processes footprint. This is NOT how one scales Oracle and NOT how one uses Oracle optimally.

  • How to create a valid database User/Group for installing Linux 5,3

    HI:
    I am trying to install E-Business Suite on LINUX and gave me the following error report
    Unable to validate Database User/Group :oralce /dba
    Provide a valid Database User/Group for the installation.
    when I was installiing on Windows, it did not gave me this error.
    How do I have to crate a user/Group to install eBusiness on my Linux/
    Please help
    Ali

    Hi user;
    hi Ali;
    Yes I run as a root userKeep using root
    When I use the following at the terminal
    It gave me a error message
    " Provide a valid Database User/Group for the installation. "
    Here is what I type at the terminalIts seems normal becouse u try to create same user!
    root@vis groupadd dba
    root@vis useradd -g dba -d /home/oracle vis
    root@vis useradd -g dba -d /home/oracle oracle Try this plz:
    groupadd dba << i think this group already created!
    useradd -g dba -d /home/applmgr applmgr << for apps node
    useradd -g dba -d /home/oramgr oramgr << for db node
    As you notice we define 2 different user under /home path!
    Regards
    helios

  • How to trace out inactive email user?

    Dear Sun,
    In there anyway we can trace out the last login date for the webmail user?
    Thanks

    elson.vhliu wrote:
    thanks for your help Shane, finally i able to set the parameter
    but how long times it take to show in the table?When a user logs in, information will be recorded e.g.
    -bash-3.00# ./imsconnutil -a
    UID                   IMAP last access                 HTTP  last access              POP last access
    ===================================================================================================
    shjorth               16/Jul/2010:04:58:46              ----NOT-RECORDED----               ----NOT-RECORDED----
    testuser1               27/May/2010:09:52:00              ----NOT-RECORDED----               ----NOT-RECORDED----NOTE: In MS6.3 and above the store data for a user is accessed using the IMAP protocol (in earlier releases the mshttpd process accessed the store data directly) so the "IMAP last access" time applies for both webmail and IMAP-client access.
    am i need to restart the services after the change?Yes.
    Regards,
    Shane.

  • How to Manage Group of database users

    hellooooo
    how i can create user(application administrator) who have responsability of group of user as a follow:
    user administrator1
    The group of users only (user1_1, user1_2, user1_3 ..... etc)
    And also user administrator2
    The group of users only (user2_1, user2_2, user2_3 ..... etc)
    And so on
    So that any one of them (administrator1, administrator2, ... etc) can create or delete or modify users and
    set roles and read all roles and privileges ,only on users that belong to them (administrator1, administrator2, ... etc).

    Hi Forstmanon,
    As far as I know, there is no way with SQL to restrict CREATE USER or ALTER USER statements to specific user accounts.
    So what you intend to do seems impossible with SQL.Correct me, what could be the problem.. ?? As they are privi's too which are assigned to specific user. :-) I agree that grouping can't be carried out.
    OP,
    hellooooo
    how i can create user(application administrator) who have responsability of group of user as a follow:
    user administrator1
    The group of users only (user1_1, user1_2, user1_3 ..... etc)
    And also user administrator2
    The group of users only (user2_1, user2_2, user2_3 ..... etc)
    And so on
    So that any one of them (administrator1, administrator2, ... etc) can create or delete or modify users and
    set roles and read all roles and privileges ,only on users that belong to them (administrator1, administrator2, ... etc).As you have stated, try to check the what all roles (Privileges required - precisely by User..) and assigned that privs to a specific role. Next have to two different Administrators Accounts (Perhaps, if you are providing sysdba to them, then can perform any thing across the users - grouping might not possible).
    - Pavan Kumar N
    - ORACLE OCP - 9i/10g
    https://www.oracleinternals.blogspot.com

  • How to trace that particular Sales Order is changed (amended)

    Dear All,
    The issue is to know whether the particular Sales Order is Changed (amended).
    Is there any concept in Sales Order like amendement.
    Requirement is, once the order is created n later the customer specifications are changed n accordingly they have made changes in Sales Order (VA02) too.
    However, now client wanted to track the record of this particular Sales Order which is Changed they call it as Amended & they even wanted to know how many times its changed. For eg., If suppose 100 is the Sales Order No. after the changes in VA02 it should have some version of 100.
    i/p will be helpful n rewarded too.
    With Regards,
    Vijayashree

    Hi
    Go to VA02 -
    In menu path ENVIRONMENT -- Changes---
    this is available in all versions
    And available in sales, delivry, billing documents
    also in customer and material master
    Reward if helpfull
    Muthupandiyan

  • How to trace particular path in portal

    Hello,
    I would like to know how to trace a particular path in sap portal for instance I would like to see the portal activity report and i suppose it gets saved at location - com.sap.portal.activityreport.frontend ...so how do i find this path in the portal?
    Search seems to be a little difficult for me at times when iam unsure of  what object am looking at( i.e. whether it is a an iview, workset, role etc )
    So also I would like to know when we customize a particular theme it gets stored in the portal_content/themes folder.
    However the theme is visible only when we go to portal display-under desktop and display rules-portal content-themes.
    Why is it not directly visible in the pcd?
    Edited by: mmpooja on Feb 9, 2012 12:14 PM

    Hey Anja,
    I think you almost got my question... i  did intend to ask  something similar but it does  bear strong  relevance to the question i intended to ask...I wud b obliged if u  could elaborate a little more.
    I am new to EP so  also could you just tell me dat when a certain object for instance say  when i download  the portal activity report  a certain file viz;  "com.sap.portal.activityreport.frontend"   got saved.
    Now from what i have understood is that com.sap.portal.activityreport.frontend  represents the  path to  frontend  which probably could be any object .
    Could you just confirm that is my understanding of how portal works correct  or clouded.
    I have seen com.sap.portal being used as a prefix for many objects.
    So is this some sort  of a path or just a norm to be followed for certain objects.
    Could you just provide me with certain links for better understanding.
    Thanks for your precious time and kindly bear with my ignorance as I am raw in EP.
    Regards
    Pooja

  • 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 find the number of users  connected to database from OS level(Linux)

    Hi All,
    Could anyone know , how to find the number of users connected to database without connecting with sql*plus
    is there any command to find it?
    example we have 10 databases in one server, how to find the number of users connected to particular database without connecting to database(v$session)?
    oracle version:- 10g,11g
    Operating System:- OEL4/OEL5/AIX/Solaris
    any help will be appreciated.
    Thanks in advance.
    Thank you.
    Regards,
    Rajesh.

    Excellent.
    Tested, works as long as you set the ORACLE_SID first ( to change databases )
    ps -ef | grep $ORACLE_SID | grep "LOCAL=NO" | awk '{print $2}' | wc -l
    Thanks!
    select OSUSER
        from V$SESSION
    where AUDSID = SYS_CONTEXT('userenv','sessionid')
        and rownum=1;Best Regards
    mseberg

  • 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 particular T.code

    hi friends,
    how to trace out the particular T.Code used by user.
    --- Lee

    sorry for inconveniance..
    What the t.code used by the particular user in that day ?
    then i have 1 more ques.
    how to find the login details for end users for 1 months.
    the report must be login data , login time , end of session.
    in simple word.  .... How many hours they worked per day for one month. ?
    Lee

  • How to find the oracle home directory of a particular database ?

    Hi all,
    There are multiple databases in our machine server ; there are many oracle9i and many oracle10g databases.
    I forgot the directory where I installed a particular database so I want to know how to know the directory path where its oracle_home was. For example C:\Orant\Bin.
    Thank you very much indeed

    Yea friend .
    I m agree with u . Because In my Linux server There are 2 database . I have to use Automatic run script (use dbstart) for Database so that Datbase will be auto up during startup. My default oracle Home for Oracle user is "/ORACLE" and also mention it i Oracle ".bash_profile" .
    I give the entry into "/etc/oratab " Like following :
    vi /etc/oratab
    test1::/oracle:Y
    test2::/oracle:Y
    But One database (test1) is up during startup the server but another (test2) is not . I dont understand the problem .... can anybody give me some suggestion ?
    In this pint , If Oracle Home is the problem then How can I find the Oracle Home regarding these two databases ?

  • 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 manage HTML DB end users in Oracle Database 10g Express Edition?

    I successfully installed Oracle XE on my Windows/XP PC.
    I followed 'Getting Started Guide' and created a new application using the hr.employees table.
    I could run this application by logging in as hr/hr.
    How can I create other HTML DB end users to run this application?
    I can only create database users in Oracle XE environment.
    Help needed....

    This MyApp application (Application 100) was created by the HR Oracle account.
    I could use
    http://127.0.0.1:8080/htmldb/f?p=100
    to run this application by logging in as hr/hr .
    For the above URL, if I logged in as anotherOracleAccount/password, I got the 'Invalid Login Credentials' message.
    As you said, I could use
    http://127.0.0.1:8080/htmldb/f?p=4550
    to get into HTML DB of the Oracle XE environment by logging in as anotherOracleAccount/password.
    Since MyApp is using the HR-owned 'employees' table, should we grant some privileges on hr.employees to anotherOracleAccount?
    I tried this, I still got the 'Invalid Login Credentials' message.

  • How Do I Share My Database Between More Than One User Account on the Same Mac?

    How Do I Share My Database Between More Than One User Account on the Same Mac?

    How to use multiple iPhone, iPad, or iPod devices with one computer. The only way is for you to have a separate user account to log into on that computer.

Maybe you are looking for

  • Problem since reset to factory setting

    last day I was reset my mac to factory setting, bur after restart instruction I lost information coz display just viewed "?". what must can i do to continiu the action ? after internet connected, display viewed "apple.com/support-2002F", what it mean

  • U0093Auto-draftu0094 Payment Run

    Hi all ! Can please some one throw some light on Auto draft payment run... Basically what I want is , is it possible to clear the open recievebles by the Automatic Payment Run and create the corresponding file automatically transmitted to the bank to

  • Workspace Contents Report not working

    - Navigate to https://beehiveonline.oracle.com/BOLAdmin.html - Select Workspace Contents Report - A new window pops up with only the header line of the report

  • Read XML root element tag in Java

    Is there any way I can read the tag of the root element? Based on the tag, I process the XML differently. Thank you.

  • How to use CVS in NWDS for MDK

    Hi All, We are working on customizing MAM3.0, we need help on using CVS to manage developments. We in the team are 3 members and the development is depending on each other. We are using NWDS 7.XX, can somebody help us in using CVS / DTR to resolve co