Find out queries running in Database at somepoint of time

Hi All,
We have oracle 10g database running on solaris platform.Actually CPU utilization at specific point of time is very high.So I want to know all sql's running in Database at specific point of time.
Could you please help me out with the query to find out all sql's running at some point of time in database?
Thanks a lot

pgoel wrote:
Run AWR as below: I assume you (and the other 2 posters with the same advice) are prepared to indemnify the OP if they haven't paid the extra to take your advice. See Maurice's questions earlier.
AWR is an excellent tool, but isn't available for a large number of customers. statspack would be an appropriate choice in that case.
Niall

Similar Messages

  • How can find out long run quries?

    Hi,
    I have some question
    how can find out long run queries , i have use v$session but i have not find out,pls how can find out
    these queries.

    v$session_longops has some limitations, for example it records only some operations see more [url http://www.gplivna.eu/papers/v$session_longops.htm]here
    Another possibility might be using statspack and/or [url http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14211/autostat.htm#PFGRF02601]AWR
    From docs:
    The most current instructions and information on installing and using the Statspack package are contained in the spdoc.txt file installed with your database. Refer to that file for Statspack information. On Unix systems, the file is located in the ORACLE_HOME/rdbms/admin directory. On Windows systems, the file is located in the ORACLE_HOME\rdbms\admin directory.
    Gints Plivna
    http://www.gplivna.eu

  • How to find out  Locks on the database objects

    how to find out Locks on the database objects

    The following notes should be helpful:
    Note: 200590.1 - bde_session_locks.sql - Locks for given Session ID
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=200590.1
    Note: 1039273.6 - SCRIPT: VIEWING LOCKS ON OBJECTS HELD BY SPECIFIC USER
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=1039273.6
    You can also search Metalink, there are many notes/scripts published there which would be also helpful.

  • How we can find out the running window application ?

    hi all,
    how can i find out the running windows application through my java program?
    if anyone know any methods or classes please inform me soon...........
    one way to ask is "how one can trap the running window's application through java code"?
    Please do inform, if you have any valuable guidelines to achieve this
    Thanks in advance

    I pretty sure this isn't possible. You could write something which uses JNI to call native methods, but you'd have to have methods avaliable to call. So suppose you wanted a process on a Windows machine to read the text in an instance of IE's address text box you'd first need a way to do this with Windows specific code. And I can't think how you'd do that - unless you are directly interacting with the OS. So I'm afraid there is no easy way to do this in Java, and even the very difficult way with JNI may not even be possible.

  • 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 find out if running 64 bit jvm

    Hi all,
    I have an application which can be run using 64 bit JNI libraries, or 32 bit libraries depending on the command line parameters. I want to know if there is any way for me to find out if the JVM is running in 64 bit mode (the -d64 parameter was sent to it) or 32 bit mode. If I could find out the command line parameters sent to the JVM it would be as useful.
    Thanks in advance for your help.

    D'oh answered my own question about 5 mins after posting :) If anyone is interested there is, starting in jdk1.4, a property called sun.arch.data.model which will be "64" for a when -d64 is used as a command line argument. This property has 3 states, "64", "32" and "unknown" I don't know on what occasion "unknown" will be used

  • How will you find out no of standby databases configured for primary database from OS level

    How can find the number of standby databases configured for primary database from os level

    Check the alert log.
    The Alert log will always have Data Guard messages in it.
    Example
    cd /u01/app/oracle/diag/rdbms/primary/PRIMARY/trace
    tail -1700 alert_PRIMARY.log | more
    Wed Nov 13 13:35:26 2013
    ARC7: Standby redo logfile selected for thread 1 sequence 1164 for destination LOG_ARCHIVE_DEST_2
    LNS: Standby redo logfile selected for thread 1 sequence 1165 for destination LOG_ARCHIVE_DEST_2
    If you don't see messages like this it's probably not a Data Guard system.
    Or search it for :
    System parameters with non-default values:
    Which on Data Guard system will show things like:
    log_archive_dest_1 = "LOCATION=USE_DB_RECOVERY_FILE_DEST VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=PRIMARY"
    log_archive_dest_2 = "SERVICE=STANDBY LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=STANDBY"
    log_archive_dest_state_1 = "ENABLE"
    log_archive_dest_state_2 = "ENABLE"
    fal_server = "STANDBY"
    Best Regards
    mseberg

  • Find out queries which contain user-exit variable

    Hello.
    I want to get a list of BEX queries, which contain my user-exit variable, defined in ZXRSRU01. Could anybody tell me how I can achieve this?

    Hello, Konstantin.
    You can use differnet methods to do this.
    Method №1.
    You can open one (any) query, that uses your variable in Metadata repository (active objects). If you don't know such  query - you can create it.
    In the description of your query you can find which variable is used by this query.
    Open your variable.
    There you can find all queries, that uses you variable.
    Method №2.
    Open SE11.  Choose table RSZELTDIR.
    Determine ELTUID of your variable (OBJVERS='A',MAPNAME=Variable ID).
    Open SE11.  Choose table RSZELTXREF.
    Select ALL SELTUID with OBJVERS='A', TELTUID=ELTUID (see above), LAYTP=VAR
    Open SE11.  Choose table RSZELTDIR.
    Select all MAPNAME with OBJVERS='A', ELTUID=lists of SELTUID (see above)
    You can take texts from table RSZELTTXT.
    Best regards,
    Alexander Kuzmich

  • How to find out the top 10 data loads based on time duration?.

    Hi,
    We are working on performance tuning. so we want to find out the top 10 loads which had run long time in date wise.
    We need the load start time and end time of the load process, Infosource and datatarget name.
    There are nearly 1000 loads, So it is very difficult to collect the load's timings in RSMO.
    Is there any another alternative to collect the top 10 loads based on time duration in date wise?
    Thanks & Regards,
    Raju

    Hi Gangaraju,
    You can install BI Statistics for getting these type of data.
    Or you check in RSDDSTAT or RSMDATASTATE_EXT or  table for the Load process time.
    Or goto t-code ST13 to get detailed analysis of a Process chain for a given period.
    Hope this helps.
    Regards,
    Ravi Kanth

  • Is it possible to find out when was ipod nano 6th gen last time connected to the iTunes?

    Hi
    I would like to know is it possible to trace this information using serial number or is it possible to get this info from some authorized personal?
    Thanks in advance

    You may not be able to show "When" the iPod nano was plugged in, but you can find out when the last sync was.  Open the desktop iTunes app (you don't need to plug the nano in), choose the iTunes drop down menu, select "Preferences" {or after opening iTunes, use Command-Comma to show the Preferences, select the "Devices" icon.  It will show all devices which have been synced.  This may or may not show if logged in under another user.  This is only the easiest way.  Jim

  • I need to find out how to have Speakable Items available each time I boot up.

    I use Mavericks Speakable Items every day to open and close applications without using my mouse if function keys.
    The only way I get it to start is to calibrate it AFTER boot up.
    I need to find out how to have it available each time I boot up my Mac Mini with OS 10.9.4,
    Suggestions.

    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")

  • How to find out the reasion that database have a lot of archivelog files?

    Hi All
    Yesterday and Today , my database have a lot of archivelog files. So much so that I set remove archive every 2 hours in crontab. I don't know the reason.
    I just set audit the user but I set noaudit this user later.
    I made the AWR for 2 days but I didn't find any unsual things.
    Somebody please help me because my database is a production
    Thanks

    924728 wrote:
    Hi All
    Yesterday and Today , my database have a lot of archivelog files. So much so that I set remove archive every 2 hours in crontab. I don't know the reason.I hope you backed them up before removing!
    >
    I just set audit the user but I set noaudit this user later.Which user? If you know which, you can investigate what he is doing
    >
    I made the AWR for 2 days but I didn't find any unsual things.The AWR report will tell you at the top the redo generated per second, and lower in the body of the report the redo generated throughout the entire period. Have these figures changed from what is "usual"?
    >
    Somebody please help me because my database is a productionDo you actually have a problem? Have any users complained about anything?
    >
    Thanks

  • Find out current running application

    I am using Oracle 8i running on NT.
    The V$session view shows a lot of information about the current oracle but not the current application unless the application is running from the local PC. Most of our apps are on another server. Is there any way to see this application name?

    Hi,
    Following query gives application , osuser,database user , terminal for the perticular database.
    select a.sid,spid,status,substr(a.program,1,10) prog,
    a.terminal,a.username,osuser,value/60/100 value
    from v$session a,v$process b,v$sesstat c
    where c.statistic# = 12 AND
    c.sid = a.sid AND
    a.paddr = b.addr
    order by value desc
    Prashant Pathak

  • How To Find Out Table Name At Database Level Trigger

    Table Name
    How do I will come to know the name of table on which currently DML statement is fired ?
    e. g. My current user is SCOTT. So Scott should realize the event of DML Statement fired. Hence my question is how the trigger on User Level is to be written & how to catch the event & table name on which the statement is being executed.
    Suppose my table is as follows
    Table Name : EMP
    EMPNO number
    ENAME varchar2(10)
    JOB varchar2(9)
    MGR number
    HIREDATE date
    SAL number
    COMM number
    DEPTNO number
    Bcd number
    Brcd number
    Rec_id number
    Scn_no number
    Sequences for above table
    1. EMP_REC_ID - minimum value is 1 increment by 1 & max value is unlimited
    2. EMP_SCN_NO - minimum value is 1 increment by 1 & max value is unlimited
    I have written a trigger as follows :
    CREATE OR REPLACE TRIGGER UPD_EMP_REC_SCN BEFORE INSERT OR UPDATE OR DELETE ON EMP REFERENCING NEW AS NEW OLD AS OLD FOR EACH ROW
    DECLARE
    BEGIN
    IF (INSERTING) THEN
    SELECT EMP_REC_ID.NEXTVAL INTO :NEW.REC_ID FROM DUAL;
    ELSIF (UPDATING) THEN
    SELECT EMP_SCN_NO.NEXTVAL INTO :NEW.SCN_NO FROM DUAL;
    ELSIF (DELETING) THEN
    INSERT INTO DELETED_ROWS (TAB_NAME, BCD, BRCD, REC_ID)
    VALUES (‘EMP’, :OLD.BCD, :OLD.BRCD, :OLD.REC_ID);
    END IF;
    END;
    Hence My problem is
    If my database user contains 800 tables then I have to write down 800 triggers (i.e. for each table).
    I want to write only one trigger at database level so that I can dynamically take actions, for this I need table name and the event on which the dml event has taken place.
    Any help in this matter will be greatly appreceiated.
    Regards
    Vikrant

    You cannot write a single trigger that applies to multiple tables. If you need a trigger for every table, you will need to generate 800 triggers.
    Rather than manually generating 800 triggers, you might write a code generator that generates triggers for each of the tables by querying the data dictionary (i.e. DBA_TABLES, DBA_TAB_COLS, etc).
    Justin

  • Standard report to find out retro run employees list

    Dear Gurus,
    I would like to know know list of employees to whom retro has been run.
    I have tried the following.
    1.PC00_M99_CWTR----> I got the total amount of arrears to be paid not the list of employees.
    2.Adhoc query for Infotype 0003----> I tried this before running the payroll I got the list of employees whose master data
                                                                 got changed.
    My client requirement is he wants to know after running the payroll how to know list of employees to whom retro has been run.
    Thanks In advance
    Regards
    Ramesh

    Hi Ramesh,
    As of my Knowledge at a glance by generating wage type reporter for wage type /552 (Arrears)and /561, 563 (Claims). we can say retro has been run or not.
    Friends, Please correct me in this.
    I suppose, there will be a functional  module which calls the schema XPRO to check the retro run for the employee. Please search for that.
    MVR
    Edited by: MVRmvr on Oct 12, 2010 9:36 AM

Maybe you are looking for

  • Mac mini doesn't wake after ram upgrade

    Hi I recently upgraded my mac mini from 2gb ram to 8gb ram and noticed that when the mac goes to sleep and the tv ( through hdmi wire) goes into standby that the mac mini will not send a signal to the tv anymore to wake up the tv from standby when I

  • I just bought a new mac and want to transfer my old files. I haven't had any luck with migration. any ideas?

    I have not been able to recover any of my files, primarily my music. I tried using migration and I still havent been able to find it. I used an external hard drive to back up using TimeMachine. any ideas would be great

  • SBLive! 5.1 Record without monitor

    Hi,Does the SBLi've! 5. support this record without monitoring? I've searched the archi'ves here with no luck. Also wiped my install and freshly installed the latest drivers and s/w but all to to no avail. Maybe I'm not looking in the right place?Int

  • Infoareas do not at Query Designer and Analyzer

    Dear frieds, We are do not see the infoareas at Query designer and analyzer ( BW Quality ), in DEV is all right, what's happening ? OBS: The user autority is equal in all clients. Thanks. Fabrício

  • ORA-01547 :warning recover succeeded but open resetlogs......

    Hai All, In a standby database I put a command sql> recover standby database auto then error comes... ORA-01547 :warning recover succeeded but open resetlogs...... ora-01152 : file1 was not restored from a sufficiently old bcakup ora-01110 : datafile