All the queries running by user

Hi,
Is there a way we can get all the queries run by different users on database?

You can check using V$SESSION & V$SQLAREA
as
select a.sid, a.serial#, b.sql_text from v$session a, v$sqlarea b where a.sql_address=b.address and a.username='USERNAME';for all the users you can exclude where clause for username as
select a.sid, a.serial#, b.sql_text from v$session a, v$sqlarea b where a.sql_address=b.address;here you can find for each and every user by mentioning the username.
Edited by: CKPT on Dec 7, 2010 10:15 PM

Similar Messages

  • How to View Queries run by Users in Enterprise Manager 10g?

    I want to view all the queries as an Administrator, being run by all the Users on Oracle Database, where can I view in Enterprise Manager 10g ?
    In Microsoft Sql Server 2000, there is a utility called "Sql Profiler" which does this purpose, any idea please ?
    Best Regards,
    Luqman

    The "Performance" tab is part of the Tuning Pack, list price USD3000 per CPU or something to that effect. So I use good ole SQLPLUS and this sql(below). This sql includes global views for RAC which can just be changed to v$ for sinlge instance:
    column osuser format a10;
    set linesize 500;
    set pagesize 0;
    select sid, serial#, to_char(logon_time, ' YYYYMMDD, HH24:MI:SS'),
    osuser, sql_text
    from gv$session, gv$sqltext
    where gv$session.sql_address=gv$sqltext.address
    order by sid, piece;

  • I want to copy all the objects from one user to another... Please help

    Hii Experts.... I have a problem here. Please give me solution for this...
    I am using Oracle 11g on my windows XP system.
    I created a new user named "some"
    I want to copy all the objects from scott user to some user... Please help me
    Please Explain me in detailed way
    Thank you

    SowmyRaj wrote:
    Hii Experts.... I have a problem here. Please give me solution for this...
    I am using Oracle 11g on my windows XP system.
    I created a new user named "some"
    I want to copy all the objects from scott user to some user... Please help me
    If all what you are interested is Scott schema than no need to use the datapump or CTAS. Run demobld.sql in your schema and it would have all the objects of Scott.
    http://www.oracle.com/technology/sample_code/tech/sql_plus/htdocs/demobld.html
    HTH
    Aman....

  • My IPhone4 is secretly using alot of data even though I have double tapped Home button and closed all the apps running in the background.

    My Iphone4 is secretly using alot of data even after I have double tapped the home button and closed all the apps running in the background.
    This just started happening 3 days ago.
    When im out of home, the phone drains battery REALLY FAST, I lose 6% battery in 5 minutes.
    The phone also heats up and feels very warm after a few minutes.
    When I turn the data plan off, it becomes normal again, like I lose 1% every 30minutes even while listening to mp3.
    I can conclude that its secretly using the 3G at an alarming rate which causes the battery to die so quickly
    I have uploaded 2 pictures showing what happens before and after I turn on my WIFI.
    Notice that the ping spikes like crazy on my home network once I turn on my WIFI on my IP4
    WIFI OFF:
    WIFI ON:
    I hope someone can assist me with this!
    Thanks!!

    chuuburg wrote:
    My Iphone4 is secretly using alot of data even after I have double tapped the home button and closed all the apps running in the background.
    This just started happening 3 days ago.
    There is a common misconception that closing an app on the Quick Launch screen (it's real name) also kills the app's background process. This is not the case. First, all built in apps (mail, contacts, calendar, game center, notes, reminders, Genius, Photo Stream, etc) continue running their background processes even if killed in the Quick Launch screen. For apps from the App Store killing the foreground process also gives the app the option of killing its background process, but it doesn't have to. In addition, any app that has Notifications enabled can restart its background process if it receives a Notification.
    iOS 7 gives the user more control over background processes; you can selectively allow or deny any app to run in background. As you apparently have not upgraded this option is not available to you.
    As Chris has already told you, there's an app on your phone that is stuck in a loop. As you discovered killing foreground processes did not resolve the problem. One trick that sometimes resolves this is to let the battery run down until the phone shuts off and will not restart. Then charge to 100%.

  • Is there a way to delete all the messages for a user in CUC 8.6 ?

    With Unity it was possible as an administrator, to delete all the messages in a user's mailbox, directly from the server (Windows).  Now, with Unity Connection (8.6.1) is there a way to do the same ?  When I'm logged as an administrator, I can see, for every user, the number of messages and the size (Mailbox menu) that they have in their mailbox, but what I want to do is to be able to delete all the messages for a specific user... Is it possible with CUC 8.6.1 ?

    Hi there,
    The best way with Unity Connection is with the use of this excellent tool from
    the great suite of Unity Tools (** "reset" feature);
    Unity Connection Bulk User Delete   
    For resetting users you have the option of emptying the mailbox, resetting greetings, deleting voice names, resetting passwords, removing private lists and a number of other options you may choose.  For installations where the user base “changes over” frequently such as schools this may be a nicer option.  This option is also allowed for CoRes installations since it does not involve the removal of user objects from the Connection database.
    http://www.ciscounitytools.com/Applications/CxN/BulkUserDelete/BulkUserDelete.html
    Cheers!
    Rob

  • Make all the forms at a user level or responsibility level to be read only

    Hi,
    Please suggest me to make all the forms at a user level or responsibility level to be read only. So that when a particular user logs in, he gets all the form in read only mode or at a particular responsibility all the forms are read only so that we can attach this responsibility to the user for the same purpose.
    Any ideas will be highly appreciated.

    check this blog,
    http://www.oracleappshub.com/11i/oracleapps-responsibility-vs-sap-functions/
    Re: How to change OM responsibility as read-only in oracle applications 11i
    read only responsibility-user

  • [Forum FAQ] Group Policy Preferences Scheduled Tasks Item not working when the option Run whether user is logged on or not is selected

    Scenario:
    We use one of the following Group Policy Preferences Scheduled Tasks item to deploy a task to clients:
    Computer Configuration -> Control Panel Settings -> Scheduled Tasks -> New -> Scheduled Task (At least Windows 7)
    Computer Configuration -> Control Panel Settings -> Scheduled Tasks -> New -> Immediate Task (At least Windows 7)
    User Configuration -> Control Panel Settings -> Scheduled Tasks -> New -> Scheduled Task (At least Windows 7)
    User Configuration -> Control Panel Settings -> Scheduled Tasks -> New -> Immediate Task (At least Windows 7)
    (Note that on some platforms, "At least Windows 7" is replaced with "Windows Vista and later.")
    After designating a user account to run the task, we select “Run whether user is logged on or not” option, and “The Do not store password…”
    check box is automatically grayed out (See Figure 1).
    Figure 1
    After finishing configuring the task item, on a client, we run command
    gpupdate/force to forcefully update group policy. However, on the client, when we check if the task is listed in Task Scheduler snap-in, the task is not displayed, and when we run
    gpresult/h report.html to collect group policy result for troubleshooting, we see an error as similar as shown in the following figure (Figure 2).
    Figure 2
    Cause:
    To make the scheduled task run whether the user is logged on or not, we need to store the password of the designated user account. However, for the content of the scheduled
    task item is stored in Sysvol where it’s not safe to store passwords, this function has been deprecated.
    Workaround:
    We can run the task with system account
    NT Authority\System, or we can use specific user accounts to run the task when the given user is logged on. (See Figure 3)
    Figure 3
    Reference:
    MS14-025: Vulnerability in Group Policy Preferences could allow elevation of privilege: May 13, 2014
    http://support.microsoft.com/kb/2962486
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Hello Everyone,
    Succeeded !!!!!!!
    Even i was struggling with this same Problem to execute a batch via Window scheduler and set the setting to "Run whether the user is logged in or not".
    I tried many time but the batch runs with " Run
    whether user is logged on" and not with "Run
    whether user is logged on or not".
    what i discovered is that there was one mapped drive
    path in my batch file which was not the complete path like y:/AR.qvw actually what i did i changed that map path to the complete path like \\servnamename\d$\AR.qvw and the batch executed successfully with the setting "Run
    whether user is logged on or not"
    The
    conclusion is that check the dependency of the script on external resources because when you check this option "Run
    whether user is logged on or not" It actually conflicts. This my discovery.
    If
    you have any question write me on [email protected]
    Thanks
    & Regards,
    Arun

  • Recordcount for all the tables in my user

    How I will get recordcount for all the tables in my user
    with a single query??
    Plz help.
    Thanx in advance.

    Not possible. As there can be any number of tables with any names, this requires dynamic SQL.
    SQL given to the Oracle SQL Engine cannot be dynamic ito scope and references - it must be static. For example, one cannot do this:
    SELECT count(*) FROM :table
    For the SQL Engine to parse the SQL, determine if it is valid, determine the scope and security, determine an execution plan, it needs to know the actual object names. Objects like tables and columns and functions cannot be variable.
    You will therefore need to write a user function (in PL/SQL) that dynamically creates a [SELECT COUNT] SQL for a table, execute that SQL and return the row count - and then use SQL to iterate through USER_TABLES for example and sum the results of this function.
    Note that object tables are not listed in USER_TABLES - thus a more comprehensive list of all table objects in your schema can be found in USER_OBJECTS.

  • My delete button in my to do's closes the app. I've closed all the background running apps and have restarted my phone and even tried syncing to my iTunes. It's driving me nuts. Please help!

    My delete button in my to do's closes the app. I've closed all the background running apps and have restarted my phone and even tried syncing to my iTunes. It's driving me nuts. Please help!

    Will not complete a sync without crashing and saying cannot read to the device or something to that effect.
    That sounds familiar.
    Just doublechecking ... have you worked through the suggestions from the following document in the course of your troubleshooting to date?
    [What to do when Windows displays a blue screen error message or restarts when syncing the iPhone or iPod touch|http://support.apple.com/kb/TS1502]
    (The stuff I was worried about in my initial reply has since been documented in its own troubleshooting document. Some of the symptoms of that are covered in: [iTunes for Windows: System restarts, blue screen, or quits unexpectedly when accessing iTunes Store|http://support.apple.com/kb/TS3441] )

  • How can i find out all the different meanings of  User ID Paramtrs (USR05)?

    Dear Gurus
    How can i find out all the different meanings of  User ID Parameters (table USR05)?
    Thanks
    Nuno Natividade

    hi,
       the values are stored in the table tpara and they are used to put the landscape of the system,and to know the log of the system.
      FORM DETERMINE_LANDSCAPE .
        SELECT SINGLE * FROM USR05
                        WHERE BNAME = SY-UNAME
                            AND PARID = 'ZLANDSCAPE'.
        IF SY-SUBRC = 0.
          IF NOT USR05-PARVA IS INITIAL.
       REPLACE
          ELSE.
            PERFORM DETERMINE_FROM_CENTRAL_SYSTEM.
          ENDIF.
        ELSE.
          PERFORM DETERMINE_FROM_CENTRAL_SYSTEM.
        ENDIF.
      ENDFORM.                    " determine_landscape
      FORM DETERMINE_LOG_PARAMETER.
        SELECT SINGLE * FROM USR05 WHERE BNAME = SY-UNAME
                            AND PARID = 'ZLOG_USER'
                            AND PARVA = 'X'.
        IF SY-SUBRC = 0.
          WITH_LOG = 'X'.
        ENDIF.
    <REMOVED BY MODERATOR>
    venkat.
    Edited by: Alvaro Tejada Galindo on Mar 4, 2008 12:47 PM

  • Want to get all the services running in the network

    I wish to get the details of all the services running in a Lan.
    I wish to get them through JSP headers. How to make it possible?
    From the server, just by running one JSP programme, i have to
    get all the details of all the services running in that network.
    Please help me to work it out.
    Thanking You.
    Faithfully
    Sathish Prabu C.K.

    hai if u got then please mail me immediately!
    bye,
    mega.

  • Getting all the threads running in one JVM from another JVM ...

    I want to get all the threads running in one JVM from another JVM.
    Is it possible ?
    namanc

    I am going to write a java application that prints all the java application running at the background. And this application has a control over all the threads. means killing the threads, restart the thread etc
    namanc

  • Problems installing update 11.1.4 please help I have tried all the fixes that other users have suggested with no joy

    Hi I am having problems with the latest update (11.1.4), I have unistalled and reinstalled that many times now I have lost count, I have also tried all the fixes that other users have suggested with no joy.
    What is this msvcr80.dll file that is missing, also after unistalling and rebooting computer I get another message that states icudt49.dll is missing. 
    Please help

    Oh, and I checked here http://support.apple.com/kb/HT3939 and you are correct!
    I do have an iPhone 3G not a 3GS.
    So does that mean that I cannot get any later software than iOS 4.2?

  • Oracle dictionary view 2 find the queries run and it's execution time

    Hi All,
    I s there any oracle dictionary view which captures the queries being run by users on the database and time taken to execute those queries?
    We need to find out the OS user not the database user since we have to identify the users who are executing long running queries.
    We require this basically to monitor the long running queries on the database.
    Thanks in Advance

    Hi,
    welcome to the forum!
    Oracle doesn't store information about individual executions of SQL queries (that would've been too expensive), but you can find cumulative query execution stats in V$SQL. If you are interested in queries by a specific OS user, then Active Session History can help you (provided you have the Diagnostic Pack License).
    Best regards,
    Nikolay

  • How to giv diff varible values for all the queries in a Workbook?

    Hello BI Gurus,
              I have an issue with the variable in a the workbook,
    I have a workbook in which 4 queries are inserted in the same sheet one below the other and all these queries has same hierarchy variable (same technical name). In all these queries uses different hierarchies but same selection variable.
              Now the issue is , when I refresh the workbook the first queryu2019s variable pops up selection option for the hier variable and when I enter the value this first query runs fine but it carries the same value to another query and fails as the 2nd query uses diff hier.
    All I need is, is there any way by which these queries pop up selection screen separately for every query in workbook?
    Thanks a lot..! have a great day!

    Hi,
    You should open workbook settings and remove tick for display dubplicate veriables omly once.
    Regards,
    Veronika.

Maybe you are looking for