queries executed by the user

Hello
RDBMS: 10.2 standard edition

I have a thbaig of the user. I want to display the queries run by thbaig. I tried v$ sql, V$ sqlarea and v$ session, but not found results.

is someone can you please tell me how I can accomplish this task?

Try v$ sqlarea also.

If you don't find anything, then, I guess the SQL user analyzed either got pushed off shared pool OR the user has not run any sql in the database?

Experts here would be better able to respond here.

Tags: Database

Similar Questions

  • Fill in the select list with two different queries depending on the user's group

    Hello

    I finished my first production application using apex. I have a Select list that takes its values from a sql query. Now, I want this different query for each user based on the group. Basically each user sees only the projects they are responsible - that works fine. But I want all the people of the admin group to see all the projects - how can I do this?

    Thank you very much!!!
    Henrik

    Hello

    Try this

    SELECT s.caption || ' - ' || s.sapnr display_value
          ,s.sharedservice_id return_value
    FROM   sharedservices s, sharedservicelead l
    WHERE  (   s.sharedservicelead_id = l.sharedservicelead_id
            OR s.ssldeputy_id = l.sharedservicelead_id
           )
    AND    l.username = :app_user
    UNION
    SELECT s.caption || ' - ' || s.sapnr display_value
          ,s.sharedservice_id return_value
    FROM   sharedservices s
    WHERE  HTMLDB_UTIL.get_groups_user_belongs_to(:APP_USER) = 'capacitymanagement'
    

    See you soon

    Ben

  • How can I find out what queries executed in the SCT TEMP (Oracle 9i and 10g)?

    Dear friends, you have a query that can watch what instructions are currently running in the TEMP tablespace?

    Many thanks in advance, Marcelo.

    Dear Marcelo!

    What exactly do you mean with "what instructions are running currently in the TEMP tablespace". Do you mean: what statement uses the TEMP tablespace for big sortoperations instead of PGA?

    If Yes, then you can use tempseg_usage $ v and v$ sqlstats to gather the information.

    SELECT username, session_addr, sqladdr, tu.sql_id, tablespace, sql_fulltext
    FROM   v$tempseg_usage tu, v$sqlstats ss
    WHERE  tu.sql_id = ss.sql_id
    

    Yours sincerely

    Florian W.

    Published by: Florian W. the 17.06.2009 11:44

  • SERVERERROR trigger fires from the user of the SYSTEM

    We use the Oracle 10 g on Linux platform. The following trigger is created for the mistakes of trace:
    CREATE OR REPLACE TRIGGER test.error_log
       AFTER SERVERERROR ON test.SCHEMA
    DECLARE
       v_errnum    NUMBER;
       v_counter   NUMBER := 1;
       v_errmsg    VARCHAR2(1000); -- stack counter
       v_errnumparam  NUMBER;
       v_errparam  VARCHAR2(1000);
    BEGIN
       LOOP
          -- get the error number off the stack
          v_errnum := server_error (v_counter);
    
          -- get the error number off the stack
          v_errmsg := server_error_msg (v_counter);
          -- if the error number is zero then exit.
          v_errnumparam := server_error_num_params(v_counter);
          v_errparam := server_error_param(v_counter, v_errnumparam);
    
          EXIT WHEN v_errnum = 0;
          -- commit is required because we are in an
          -- autonomous transaction
          INSERT INTO error_audit(SID, ORA_NUMBER, DESCRIPTION, STATUS, CREATED_BY_USER, CREATED_ON_DATE, MODIFIED_BY_USER, MODIFIED_ON_DATE)
               VALUES (sys_context('USERENV','SID'),v_errnum, TRANSLATE(v_errmsg||';'||v_errnumparam||';'||v_errparam, 'x'||CHR(10)||CHR(13), 'x'), 'Y', USER, SYSDATE, USER, SYSDATE);
    
          -- increment the counter and try again
          v_counter := v_counter + 1;
       END LOOP;
    END;
    The problem is that when to connect us from an outline of the TEST, the following select statement error logs in the audit table. However, the following statement executed from the user of the SYSTEM does not record the error. Can any body guide me to fix this error?
    ALTER SESSION SET CURRENT_SCHEMA = test;
    select * from error_audi
                  *
    ERROR at line 1:
    ORA-00942: table or view does not exist

    Why is it? Trigger when the current user is TESTING and not someone else. ALTER SYSTEM SET CURRENT_SCHEMA does not change the current user.

    SY.

  • How to know all queries executed by users of the database?

    Hi all
    I am new to Oracle. I created a database (version 10.2) and several users in this database. I would like to know how to record in a database table all queries executed by users of the database.
    Thank you.

    I would like to know how to record in a database table all queries executed by users of the database.

    activate SQL_TRACE for each session, but such an effort cost more than any advantage gained.

  • Problems with the opening of attachments when the user has restristed privilege to run executable code from Program Files and Windows folders.

    I'm trying to prevent users from running potentially dangerous files. According to the Windows policies so I put. Users can run any application Program Files, files (x 86), windows, and folder to all users of the program office. Users have no permission to write anything in this files. When the user double clicks for example document.doc on his desk - document opens fine with MS Word. But when the user tries to open this document in attachment directly (by selecting open with MS Word, instead of the economy) - he sees an error - "this action is limited by local politics. Ask your system administrator. "(not exact text).

     So I want, users able to open attachments from Thunderbird automatically, but not able to run any application or link, except Program Files, Program Files (x86), Windows and all users' desktop folder. How can I get this result?
    

    Thanks in advance.
    Calvo is serious.

    PS Sorry for my bad English. It is not my mother tongue.

    Thanks for responding.
    I discovered what was going on.
    This strange "bug" affects multiple computers with Windows 7 Ultimate in my case.
    When you create a SRP (software restriction policies) it creates two rules by default to run programs: windows folder and the Program Files folder. I manually add "C:\Program Files (x 86)" in places without restriction. BUT Windows and Program Files folder to default rules directly, but through registry keys. And this part seems difficult. You CAN run the executable files of Program Files. You CAN run the Program Files (x 86) executables. But if Thunderbird or Firefox try to run MS Word or excel or editor for.doc or *.odt opening or another file - downloaded files running programs blocked by SRP.
    In order to fix this, simply replace the rules for indirect paths like % HKLM/software/microsoft/windows... etc % with direct, for example "C:/Windows" and "C:/Program Files /". After that, everything works fine. Attachments and downloaded files automatically opens without a problem.

  • universal time is not displayed on the computer of the user executable

    I have setup an indicator timestamp to be bound to data from a shared Variable.  The shared Variable contains the universal time. When I build the executable and run it on my PC shows universal time indicator development correctly.  When I install the executable file on the user's PC, it displays the local time. Why?  I use LabVIEW Application Builder to build the installer.  The runtime LabVIEW VIs, subVIs, Variable shared libraries are all installed and deployed on the PC using the user Setup.  Is this a Windows problem?  I'm using LabVIEW 2011 on PC Windows XP.

    certainly a computer problem on the side of the user - thank you

  • intermittent connection problem: 'the user profile Service service has no logon. The remote procedure call failed and did not execute. »

    Hello, I'm having intermittent problems with logging in my Windows 7 computer.

    Often after reboot due to applications of Windows Update or any simply restart after the holidays, I have the following message on trying to connect:

    "The service user profile Service has no logon. The remote procedure call failed and did not execute. "

    When I click 'OK', the machine disconnects and try to restart.  This can occur 2 to 5 times before _works_ .  But sometimes it happens at all.  And sometimes he _partially_ connects, but my "reminder" and the "Sidebar Gadgets' not loading not correctly and I get a different RPC error - for example, I lived once a message RPC over Skype cannot work because the remote procedure call failed.

    I'm fairly certain that it is different from the frequently reported issue 'profile of corruption', which was experienced by others.  This problem manifests itself as 'the user profile Service does not log. The user profile could not be loaded "and is reported as a blocking problem consistently reproducible which is set by the 'fixing' of the profile.

    However, the issue I feel is clearly related to an RPC problem is intermittent and not consistent - maybe one of my devices is not reset properly?  Where I can look in the logs of Windows, to provide relevant information on this subject?

    Because my computer was still under warranty, I have raised the issue of Dell and they removed the damaged system file (user account) last week.

    I hope that this will finally fix the problem (previously the error message disappear and reappear after a few weeks later.)  I'll give it a few more weeks to be sure.

  • Error message is "launch the user interface and to reinstall the application" after executing the quick backup.

    Original title: speedy

    My pc tells me to open the settings of the user interface on my windows laptop 8. I currently have

    has ran a quick backup, and now iiiimy pc asks me to open the user interface and I have to reinstall the application

    not known were and how to find what to do.

    Hello

    Please contact Microsoft Community. I've surely you will help solve this problem.

    To better understand the issue, let me know if you get this error when executing quick backup?

    If you get this error message when running fast backup software, you can visit the article to uninstall and reinstall the software.

    http://TechSupport.SpeedyPC.com/system/templates/selfservice/speedybackup/#Portal/1013/article/8478/how-do-I-uninstall-and-reinstall-the-program

    Hope this information helps. Reply to the post with an up-to-date report of the issue so that we can help you further.

  • How to find the sql queries executed in one day with the sql and runtime text

    Hi Experts,

    Please tell me the sql query to find out the queries executed on a particular day and the runtime and the sql text of the query.

    Please reply urgent.

    Thanks in advance

    Database instance 'A' may have run 100 SQL queries today.  As for the instance of database 'B' could have exploited queries SQL 1 million today.  Instance of database 'B' to 'keep' the 1 million SQL statements - in memory or on disk do you expect?  Of course not.  There the age or flush or invalidate memory SQL statements.  He can't keep them on the disk (imagine running a completely different set of 1.2million SQL statements tomorrow and 1.3 the next day).

    AWR and StatsPack can make counts the number of "n" top of the page ("n" default to 30) SQL statements which are still present in the cache of the library (not years, rinsed, invalidated) when a snapshot was taken.  They can't declare "all" SQL statements.

    To return to your needs.  WHY do you need all the SQL statements?  Or are there only certain operations specific SQL would you be interested?  Could they have been treated by allowing audit (for example, UPDATE and DELETE with EXTENDED verification instructions)?

    Hemant K Collette

  • Get the user that is executing Action in the Validation event handler

    I know you can get UserLogin actor using ContextManager.

    I would like to know if there is another for the user who executes the action (the actor) in a validation event handler.

    Ideally I'd like the usr_key of the actor.

    using the AuthenticatedSelfService api you can do. There is a methodgetProfileDetails(java.util.Set retAttrs)

  • How to execute a method after the user login

    Hello
    I have an application with a public and non-public part. When a connection from the user to the application, I want to execute a method in a session bean to load default data in certain properties in the session bean. How can I execute a method after a connection/disconnection from the user of the application using the ADF security? Is the only Posibility to write a custom plug-in? If so,... How can I easily extend an existing connection module?

    Kind regards
    André

    Hello

    How is that you are relying on the login? You can connect to WLS FRO m backing bean (see this ) and if everything is ok, call your session bean method.
    You just need the reference of session bean in your backing bean (@EJB injection (yet?) does not work for the safeguarding of the beans, so either do the JNDI research or expose the method in the pageDef and then solve / execute it in the bean to support).

    Another possibility would be to place - the method call activity after your login to the adfc - config.xml, but this page depends on how you set up logging. So, the first solution should work.

    Pedja

  • Set if the users or business owner may approve of their own queries-IOM

    I have a scenario where if a user replaces his manager as an agent and made a request for a resource, the approval triggered task goes to the user and the user can approve. I want to disable this feature.

    I was told that BP12 having been applied, IOM, allows us to define if the users or business owner can approve their own requests. Is this possible and if yes then how to on this subject?

    Thanks in advance.

    By BP11 for 10g IOM documentation:

    9649346 a user could approve or update the user's request. This function could not be disabled. Of from this release, this feature can be enabled or disabled according to your requirement.

    See Section 3.10, "using the XL. AllowBeneficiaryToApprove system property"for more information on the implementation of the correction to this article. >

    It is also present in BP11:

    9271449 applicants may reassign tasks for approval to themselves.

    See Section 3.9, "using the XL. RequesterCanBeApprover system property"for more information on the implementation of the correction to this article. >

    System in 10g configuration variables are in the console design. 11g, they are part of the web console.

    -Kevin

  • Error updating the user organization

    Hello

    We have a problem in changing the Organization of the user through the console of Administration of IOM. For some organizations of problem, when a user is to be moved to one of the organisations problem, an error dialog box on the admin console is displayed:

    "An error has occurred. The corresponding error code is IAM-0080001 "."

    Checking the logs, the error itself stackdump begins with:
    < 3 October 2012 9:50:44 CEST > < WARNING > < org.eclipse.persistence.session.oim > < BEA-000000 > <
    Exception [EclipseLink-4002] (Eclipse - 2.1.3.v20110304 persistence Services - r9073): org.eclipse.persistence.exceptions.DatabaseException
    Inner exception: java.sql.SQLIntegrityConstraintViolationException: ORA-02291: integrity constraint (IAMTEST_OIM. FK_ORC_ORD) violated - parent key n
    OT found
    ORA-06512: at "IAMTEST_OIM. OIM_USER_MGMT', line 858
    ORA-06512: at line 1

    Error code: 2291
    Call: BEGIN OIM_USER_MGMT. BulkUserModify (p_intUserKey = >?, p_arUSRList = >?, p_arColumnlist = >?, p_arColumnValue = >?, p_arMLSColLocaleValue = >?, p_intReturnC)
    ode_out = >?, p_strErrMessage_out = >?) ; END;
    link = > [1, oracle.sql.ARRAY@199c54c1, oracle.sql.ARRAY@199c6768, oracle.sql.ARRAY@199c489c, oracle.sql.ARRAY@199c6167, = > p_intReturnCode_out,]
    [= > p_strErrMessage_out]
    Query: DataReadQuery()
    at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:324)
    at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:797)
    at org.eclipse.persistence.internal.databaseaccess.DatabasePlatform.executeStoredProcedure(DatabasePlatform.java:1991)
    at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:593)
    at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:526)
    at org.eclipse.persistence.sessions.server.ServerSession.executeCall(ServerSession.java:529)
    at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:206)
    at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:192)
    at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:263)
    at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeSelect(DatasourceCallQueryMechanism.java:245)
    at org.eclipse.persistence.queries.DataReadQuery.executeNonCursor(DataReadQuery.java:192)
    at org.eclipse.persistence.queries.DataReadQuery.executeDatabaseQuery(DataReadQuery.java:148)
    at org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:740)
    at org.eclipse.persistence.queries.DataReadQuery.execute(DataReadQuery.java:134)
    at org.eclipse.persistence.internal.sessions.AbstractSession.internalExecuteQuery(AbstractSession.java:2392)
    at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1291)
    at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1273)
    at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1233)
    at org.eclipse.persistence.internal.sessions.AbstractSession.executeSelectingCall(AbstractSession.java:1397)
    at oracle.iam.oimdataproviders.impl.OIMUserDataProvider.modifyProcedureCall(OIMUserDataProvider.java:721)
    at oracle.iam.oimdataproviders.impl.OIMUserDataProvider.modify(OIMUserDataProvider.java:578)
    at oracle.iam.platform.entitymgr.impl.EntityManagerImpl.modifyEntity(EntityManagerImpl.java:388)
    at oracle.iam.platform.kernel.impl.EntityDefaultActionHandler.execute(EntityDefaultActionHandler.java:41)
    at oracle.iam.platform.kernel.impl.DefaultActionHandler.execute(DefaultActionHandler.java:41)
    at oracle.iam.identity.usermgmt.impl.handlers.modify.ModifyUserActionHandler.execute(ModifyUserActionHandler.java:108)
    at oracle.iam.identity.usermgmt.impl.handlers.modify.ModifyUserActionHandler.execute(ModifyUserActionHandler.java:56)
    at sun.reflect.GeneratedMethodAccessor685.invoke (unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at oracle.iam.platform.kernel.impl.EventHandlerDynamicProxy.invoke(EventHandlerDynamicProxy.java:30)
    ...

    The error does not occur if a user is created in the Organization of the problem, but when the user is moved out of the Organization of the problem and tried to be postponed in the Organization of matter, the same error occurs.

    We use the OIM 11 g Release 1 (11.1.1.5.0)

    I have not found references to this error in my research for some suggestions on how we can recover/fix the it are appreciated. As mentioned, only some organizations have this problem, but I can't find all the differences between these problem and other organizations are normal.

    Thank you.

    Published by: user10929505 on October 2, 2012 23:50

    I doubt that the individual values themselves are the issue, there is no reason that I can see why an ord_key must necessarily correspond to an act_key, although it can normally, so fix that probably would not help. Most likely the different numbers are somehow the symptom of something that was wrong.

    I would definitely say it's safer to delete and recreate your organizations, but bear in mind organization names must be unique. I don't know if this applies even with deleted organizations, but in case it does, it may be better to rename the former organizations, create new ones with the required names, move users across, then delete 'old'.

  • history of SQLs executed by a user?

    env: 11.2.0.1 linux

    I am responsible to me to retain all of the SQL executed by a particular db user last week.
    Do you know guys if it would be possible to trace the activity of the user so far back (no additional active audit). ?

    Thank you.

    Hi AJ,.

    Check dba_hist_active_sess_history. You will find that the top-n queries, but I think it's a good starting point. You need Diag/Tuning pack activated for this.

    Lukasz

Maybe you are looking for