trace level of the user in the database.

Hello

I need emergency assistance. I wanted to take the trace of a perticular user sessions in the database. Could you please provide me with the steps to generate the trace of the user when the user connecting. In my case, when the connection of the user by the application, there are many session generated in the database. So I wanted to take the trace to the user level. I have Oracle 9i server.

Thanks and greetings

Probably the best for you would be to create a database trigger after the logon.

CREATE OR REPLACE TRIGGER set_trace after logon on DATABASE
BEGIN

If the user = ('username') then
run immediately "alter session set sql_trace = true";
immediate ' alter events set "trace 10046 name context of session forever, level 12". "
end if;

EXCEPTION
WHILE OTHERS THEN
-Consider recording the error and then re-raise
NULL;
END set_trace;

/

You can read this thread as well:
Oracle 9i - SQL Trace & Bind Variables

Tags: Database

Similar Questions

  • permission level on the database account

    Hi all!

    About to install RoboHelp Server 8.

    We have created a database of SQL and RoboHelp user name and password for this database.

    For installing RoboHelp Server 8 I guess that on behalf of the db need DBO permissions (full owner).

    However, our DBA group dislikes leave Auditors with the permission of DBO.

    After installation, the permission level for the database account can be lowered? to say change or read/write?

    Thanks for the info!

    Frank

    Hi Frank, and welcome to the HR forums.

    When you start the game RIGHT, he is not connected to the DB. You must specify information to logon for a user with full administrator rights. It is used to create a Group Admin and user has permissions admin rights are certainly used. You would then create other users, groups, permissions that require administrative rights on the opening of the session.

    Perhaps (I'm not sure) you could get away with access read/write if all you were doing was maintenance of zones, run reports, etc.. However, you will need administrative privileges whenever you need to create/modify/delete users or contexts. Personally I would have not thought that it was worth the hassle.

    If you return to your DBA and remind them that you only has access to the Config Manager, where DB security can be compromised, would appease them?

  • Users on the application and the database

    Hi all

    Today a doubt struck in mind, same as I do my own research it doesn't. Well, my doubt is

    Gmail, facebook, OTN as these applications will undergo millions of uses, is what it means at the level of the database as we have same count of users...?

    How it will work. could you please let me know...

    Thank you

    Dedicated server means that there will be a dedicated process running on the server for each session opened by a customer.  The client application servers can open hundreds or thousands of connections at the base, all having the same shared database user to Oracle, to serve users accessing the site.  You would not channel all users through a single database connection and a single server process.

    Justin

  • You can set utl_http.set_transfer_timeout value globally or in the database

    Hello

    We have about 25 web called from many procedures for package services. Lately we are seeing time-out errors more than usual. So we started to add the value of utl_http.set_transfer_timeout to a value greater than the value default 60 seconds before making calls. I was wondering if the time-out value is adjustable to the level of the database or in the world to avoid changing each procedure.

    Thanks in advance.

    Elcaro wrote:

    BTW, the package for SYS.utl_http body is wrapped. How could I manage the implementation of the package body when it is wrapped?

    You do not replace SYS. UTL_HTTP. So no need to know the wrapped (coded) / private parts of the package.

    For example

    create or replace package UTL_HTTP as
      .. // copied, pasted and modified from real SYS.UTL_HTTP header
      -- The HTTP protocol versions that can be used in the function begin_request
      HTTP_VERSION_1_0  CONSTANT VARCHAR2(64) := SYS.UTL_HTTP.HTTP_VERSION_1_0;
      HTTP_VERSION_1_1  CONSTANT VARCHAR2(64) := SYS.UTL_HTTP.HTTP_VERSION_1_1;
      ..
      procedure set_proxy(proxy IN VARCHAR2, no_proxy_domains IN VARCHAR2 DEFAULT NULL);
      ..
    end;
    /
    
    create or replace package body UTL_HTTP as
      .. // wrap calls to the real SYS.UTL_HTTP
    
      procedure set_proxy(proxy IN VARCHAR2, no_proxy_domains IN VARCHAR2 DEFAULT NULL) is
      begin
        SYS.UTL_HTTP.set_proxy(proxy, no_proxy_domains);
      end;
      ..
    begin
      // code SYS.UTL_HTTP default settings here
    end;
    /
    

    With regard to the authorization DBA. No need.

    Assuming that you have a lot of code calling UTL_HTTP in your schema. You just create your UTL_HTTP package that encapsulates calls to the real SYSTEM. UTL_HTTP in your schema.

    Scheme code always call you UTL_HTTP - but now she's calling your wrapper UTL_HTTP package. And the package in turn call the real SYS. UTL_HTTP package.

    If you have 2 schemas calling UTL_HTTP - then the suggestion is to create a 3rd diagram called CODE_LIB or something. It implements the UTL_HTTP package package. It grants execute rights for 1 and 2 CODE_LIB patterns. UTL_HTTP.

    Finally, to make the code in diagrams 1 and 2 call CODE_LIB. UTL_HTTP and not SYS. UTL_HTTP, create synonyms in these patterns, for example
    create or replace the synonym UTL_HTTP for CODE_LIB. UTL_HTTP

    Concern of the DBA is simply security in this regard. Granting access to relevant application schemas to SYS. UTL_HTTPand allowing these tcp access patterns to the outside world (via network ACL in 11g and later).

  • Data synchronization after restoring the database to the Source or target

    Hi DBAs,

    I've implemented replication unidirectional flow at the level of transactional database to the database schema (excluding some tables). It works very well without any problems after doing the tuning of flow with the help of health check scripts. My question is if some reasons, if I have to recover to the level of the database on the database Source then I need rebuild flows from scratch? Database size is close to 2 TB and after recovery, even using the pump data at the same time, it could take hours and also the source won't be available even after the recovery (data pump running job - if the source is online, then I was getting ORA-01555 errors and work was not).

    Please notify by above circumstances what is the best way to re - synchronize data between the source and target.

    Thank you
    -Samar-

    I would export of the datadict (build) once again, just to avoid any MVDD, something to do directly after the restoration of the DB,.
    because I'm not sure from the perception of this restoration DB in terms of DBID. Have you checked in rman if source db is considered to be the epitome?

    Then restart what are the messages in the target error queues. I think that you will have problems to move the first_scn
    due to differences on some YVERT in source/target system.logmnr_restart_ckpt$. system will think it has holes.
    You may need to manually remove a bunch of lines to allow the flow to jump on the fate of the YVERT
    that have been sent and are not present in the source system.logmnr_restart_ckpt$

  • User passwords do not work at the level of the application after updating of the database

    Hello

    Working on the updating of the database user passwords do not work for front end users but the same passwords work at the db level.

    We backup before refresh and restraint after the update, but if the user tries to connect to db, they receive the error invalid password/username.

    but passwords are working at the level of the DB if reset us the password then it works fine, but we cannot do this for all users of all time. can someone share the knowledge or solution for this problem.

    DB version: 11.2.0.3

    operating system: AIX

    Thank you

    892574 wrote:

    Yes, the process is correct.

    We are capture passwords user via display SYS. USER$

    I didn't see any errors in the logs I see only out put modified user.

    Thank you

    Do you mean that you update the column SPARE4 of $ USER (which is a table, not a view)? I don't think it will work, because the password is salted with a random string that will be different in the two databases. It might work if you return to the use of passwords for 10g, which are salty with the user name. See here, the 10 GB hash stored in the PASSWORD column is the same in the two databases, but the 11g in SPARE4 hash is different:

    orclz >

    orclz > conn sys/oracle@orclz as sysdba

    Connected.

    orclz > create user fred identified by Ginger;

    Created by the user.

    orclz > select password, spare4 of user$ where name = 'FRED ';

    PASSWORD

    ------------------------------------------------------------------------------------------------------

    SPARE4

    ------------------------------------------------------------------------------------------------------

    9C592D45D54D1FB2

    S:DF5BEC6914DFF48B39261EAA4DCF5746A309E50E791F6F90FBF2F33A8CD5; H:22E34131E43CC3DF07440A0DC2A45F22

    orclz > conn sys/oracle@orcla as sysdba

    Connected.

    orcla > create user fred identified by Ginger;

    Created by the user.

    orcla > select password, spare4 of user$ where name = 'FRED ';

    PASSWORD

    ------------------------------------------------------------------------------------------------------

    SPARE4

    ------------------------------------------------------------------------------------------------------

    9C592D45D54D1FB2

    S:4FE5925E671719B9CA5904C42AAD965753CAC4891C31F1BA9B9DA83D3255; H:22E34131E43CC3DF07440A0DC2A45F22

    orcla >

  • The SYS user connects to the database level, is this correct?

    My senior colleague gave me following information about the user sys. I want to know, - is this correct?

    Since the SYS user connects to the database level, therefore, on the session active user SYS, to kill only the current statement is canceled. The database session does not disconnect. Instead, he continues to run the remaining in the script file instructions where we run a script file that contains a large number of SQL statements.

    Elya

    If the Oracle session was killed and the customer continued to successfully submit the following commands to the database, a new session was automatically created to replace the killed session. A feature called Of Application Transparent failover which allows the customer to switch to a session of a RAC server to another RAC server, the initial session fails (for example, RAC Server breaks down).

    TAF is part of the response to the so-called "+ the Evil Twins +"-errors and crashes. The rest of the answer are FAN (Fast Application Notification) and CLF (resumption of fast connection). This set of features about the errors and crashes - and allows an application 'seamless' continue even when his Oracle Server session fails.

    See the white paper Oracle on failover of applications with Oracle Database 11 g for the basic details.

  • How to find the number of users connected to the database of the level operating system (Linux)

    Hi all

    Could someone knows how to find the number of users connected to the database without connection with sql * more

    y at - it a command to find?

    example, we have 10 databases in a server, how to find the number of users connected to the special data base without connecting to database(v$session)?

    the Oracle version:-10g, 11g
    Operating system:-OEL4, OEL5, AIX, Solaris

    any help will be appreciated.

    Thanks in advance.

    Thank you.

    Kind regards
    Rajesh.

    but you can say total number of connection with the above given the command? It would also be useful to know.

    See you soon,.
    LKM

  • Filling of the database, users of OBIEE 11g

    Hello

    I would like to know if there is a way to fill OBIEE users and groups database.

    Assume that these users are not stored in Active Directory or LDAP, but in a third party application, within its repository.

    I want to reproduce the same level of security in OBIEE 11 g (= in weblogic?).

    OBIEE 10 g, I think I would change the "authentication" with a direct SQL query initialization block. Same for "authorization".

    But I think it does more in 11g, and everything must be done in Weblogic.

    Authorization, you go through Weblogic. This should help: http://www.rittmanmead.com/2012/03/obiee-11g-security-week-connecting-to-active-directory-and-obtaining-group-membership-from-database-tables/

  • How to display the user name for database connection using dreamweaver? [was: help]

    connect display mode database using dreamweaver user name

    LionelLionel wrote:

    OK, sorry 4 that; I use dreamweavercs6 and the script server is php.i as accurate must I set up a server (wampserver) local on my laptop for this level of competence of project.my with scripts php is very limited. and now, after you have created the database (in phpmyadmin), I want to display the user name of the user after login... I need help please.thx

    You want to display it where? On the login page of "success"?

    Add the below to each top of the page:

    Then add the following in the code where you want the ' user name to appear:

  • Duplicate validation of levels page to prevent the entry of the data in the database

    Hello

    Can someone please help me with this problem.

    I have a form with two items based on a table. I already have a validation level step to check for null. Now, I would like to create a page-level validation to verify that the duplicate data are not recorded in the database. I would check the database when the user clicks on the button 'create' to ensure that they are not insert record in doubles. If the data already exists, then display the error message and redirect them to another page. I use apex 3.2
    Thank you

    Hello

    Have you tried to write a PLSQL function to check for this?

    I've not tested this precisely, but something like this should work:

    (1) create a Page-level Validation
    (2) choose PLSQL for method
    (3) select function that returns a Boolean for the Type

    For the validation code, you could do something like this:

    DECLARE
    
        v_cnt number;
    
    BEGIN
    
        select count(*)
        into v_cnt
        from
        your_table
        where
        col1 = :P1_field1 AND
        col2 = :P2_field2;
    
        if v_cnt > 0 then return false;
        else return true;
        end if;
    
    END;
    

    If the query returns false, your error message will be displayed.

    Not sure how you would address redirection after this page well. Maybe just allow the user to try again with a different value (in case they made a mistake), or simply press a "Cancel" button to finish creating a new record.

    Amanda.

  • What is the database and user call?

    There is no stats appointed as "data call" in v$ statname, but there is a stats named as "call for the user. Are they the same? And what is the meaning of the call to the database? 10046 trace raw file, there are something like, analysis, fetch, exec, waiting. All of them are "database call"? And someone said "call database" is a BEAK function, anyone could put more information?

    Thank you
    Daniel

    You can read about the database calls in this great book, and one user call definitions is here

  • Access restriction configuration network devices with the level of the ACS 5.0 user

    Hi Experts,

    I have some configuration tasks TACAC with level of different user for all routers and switches,

    To further develop, I engineer, analyst and site engineers, so I want to configure centralized authentication with Annie tacac different levels for the various categories of network engg. Analyst, site engineer,

    can someone explain about how to proceed with ACS 5.2 and what configuration is required at the peripheral level.

    I'm particularly looking for the 5.2 acs configuration procedure.

    Looking forward to get the answer.

    http://www.Cisco.com/en/us/docs/net_mgmt/cisco_secure_access_control_system/5.2/user/guide/policy_mod.html#wp1076053

    In "default device admin" just create authorization rules.

    They should look like "If the user/group type = site engineer, then assign the shell profile X.

    You then define the profile of shell in the elements of policy and put in there all the privileges of your engineer to site.

    And so on for the other roles

  • last logon of the user to the database

    Hello

    I need to find the last logon of the user to the database, any ideas who view data dictionary can help me?

    Thank you.

    user8869798 wrote:

    Hello

    I need to find the last logon of the user to the database, any ideas who view data dictionary can help me?

    Thank you.

    What version of Oracle?

    With 12 c, it's to (drum roll, please...) DBA_USERS.

    12 c, it is not in any table/view documented .

  • How my new users access to the data in the database?

    Hello

    I created a database with new users who will need to access the database, but as soon as I connect to one of the new users can't access tables or any of the data that I had inserted previously.

    Any help would be greatly apprciated!

    Thank you

    Rory

    (Running Oracle 11 g)

    As connect you to the database by default, you can only access your objects or object that you access directly by prefixing its owner. In your case, not only you must give the user but also needs prefix synonym/owner access rights to access these objects. for example

    user that has (you) have following things:

    EMP (grant select on emp to UserB ;)

    Dept (grant select on dept to UserB ;)

    User B

    Select * from UserA.emp;

    Select * from UserA.dept;

Maybe you are looking for