Oracle  query from awr report

Hi,
I need to run an Oracle query with the following fields in the AWR report:
First Query:
DB Name
Begin Snap Time
End Snap Time
Begin Snap
End Snap
Event
Waits
Time(s)
Avg wait (ms)
% DB time
Wait Class
Second Query:
DB Name
Begin Snap Time
End Snap Time
Begin Snap
End Snap
Elapsed Time (s)
Executions
Elapsed Time per Exec(s)
%Total
%CPU
%IO
SQL Id
SQL Module
SQL Text
How Can I write this query?
Thanks in advance!

R.Royal wrote:
Thanks,
I know how to generate an AWR report but I would like to write a query that takes these fields from oracle views. (DBA_ or V$)
And the link I sent to you shows you the views required to do that.
Cheers,

Similar Messages

  • See sql query from crystal report without crystal report

    see sql query from crystal report without crystal report 

    Hi,
    Depends on datasource type but you could have a look at ODBC trace or if you have access to the SQL Server you could use profiler to monitor the session.
    Regards,
    Craig
    And this will only be of use if you know which Server/Insstance/Database the Report is connecting to...
    Please click "Mark As Answer" if my post helped. Tony C.

  • ORACLE query FROM TOAD TOOL  TO XL

    hi,
    i want to export all the o/p of the ORACLE query FROM TOAD TOOL into an EXCEL-SHEET.
    FOR EX: SELECT EMPNO,ENAME FROM EMP
    EMPNO ENAME
    1 X
    2 Y
    THANKS IN ADVANCE

    Even if it's not a Toad forum here... run your query, right click on the result sheet, then "Save As", and choose "XLS File"...
    Nicolas.

  • Execute a Query from a report sending it parameters and capture the result

    Hello everybody,
    Greetings from Peru, I want your help, Do you know how to execute a query from a report sending parameteres and capture the result in a internal table?
    The attached imaged has in red square the parameteres I want to send from a report.
    The idea is to have a JOB that executes everyday and parameters like DATE PERIOD will change automatically.
    Thanks for your time.

    Hi Enrique,
    You can call a query from a report by using submit statement.
    Every query has a corresponding program associated with it.
    Execute the query from SQ01. On te selection screen of query, goto SYSTEM  from menu and then click on STATUS, you will get program name (In this case aqzzzent_struct=zmm_ent_struc1). Use this program to call the query from your custom program.
    Also populate the rspar int table as per the selection criteria you want to pass to query.
       DATA: rspar     TYPE TABLE OF rsparams,
        wa_rspar  LIKE LINE OF rspar.
          wa_rspar-selname = 'SP$00001'.
          wa_rspar-kind = 'S'.
          wa_rspar-sign = 'I'.
          wa_rspar-option = 'BT'.
          wa_rspar-low  = s_cmp_cd-low.
          wa_rspar-high = s_cmp_cd-high.
          APPEND wa_rspar TO rspar.
       SUBMIT aqzzzent_struct=zmm_ent_struc1 WITH SELECTION-TABLE rspar AND RETURN.
    Thanks,
    Sachin

  • Oracle 11gR2 froms and reports And weblogic 11g

    Hi,
      I am new to Weblogic,we are using Oracle 11gR2 froms and reports and weblogic 11g. How can I deployee my reports in weblogic and where and what is the procedure.
                        thank you.

    Its custom reports or standard ones?
    If custom then are you developed as application?

  • How do I reference columns in a report query from another report query?

    In Apex 3.1 it is possible to generate a report on more than one query. I have read that these queries can be correlated, but I cannot find how in the documentation.
    I go the Shared Components and create a new Report Query:
    select * from dept
    Then I click Add Query and I add:
    select * from emp
    How do I correlate these two queries (I want to join emp.deptno to dept.deptno) and have a nice hierarchicle XML-file.
    Is it possible in Apex 3.1?
    Dik Dral

    Dik,
    This type of query can't be build. The two queries are independent, you can't reference values in the first query from the second query. However you can reference page and application items - which won't help you all that much with this scenario though. You could also try combining the two queries into one, and then take care of the proper presentation in your template.
    Regards,
    Marc

  • How to pass runtime parameters to Oracle Query from xMII server

    Please can anybody  help me that how to pass runtime parameter to Orcle Query  from xMII server.

    It works the same way as I described in this thread [How to pass runtime parameters to MySQL Query from xMII server].  It does not matter the datasource MII will work the same for all queries, at least for passing in parameters.  How to write those queries and their datatypes will be the differences.

  • Identify high workload from awr report

    Hi All,
    Yesterday, our well-tuned the batch ran very slowly. Most of jobs ran for 30 mins that usually cost 15-20mins. And the colletion of statistics took much longer than before.
    After reading the awr report, I noticed that all top SQLs didn't belong to our batch. Most of them are MV refreshing and bitmap index building.
    So I think it is this unexpected high workload who is the culprit of the bad performance. But I want to know which section of awr report can show this or let management accept it?
    Best regards,
    Leon

    HI,
    And I noticed the CPU section in awr looks like:
    Host CPU (CPUs: 24 Cores: 12 Sockets: 6)
    Load Average Begin Load Average End %User %System %WIO %Idle
    1.07 2.22 73.4 8.8 0.9 17.8
    Instance CPU
    %Total CPU %Busy CPU %DB time waiting for CPU (Resource Manager)
    67.9 82.7 0.0 It seems that CPU is not 100% busy. So can I say the workload is not CPU-bound?
    My RAC is 11.1 and have 4 nodes. But the service I used for my batch just contains two nodes.
    In light of this, does the CPUs:24 here mean the total CPUs for all 4 nodes or the CPUs for this service (2 nodes)?
    Best regards,
    Leon

  • Unable to see Oracle driver from Crystal Report's Database Expert

    I have installed Oracle client (version 10g) on my laptop that also has Crystal Reports 2008 ver 1 SP3.  I then installed data driver 5.3 (Datadirect ODBC database driver) but I canu2019t see the Oracle driver nor the Oracle wire protocol driver from crystal reportsu2019 database expert.  I have checked the path and it correctly  points to the oracle client (c:\orant\bin).  I am running Windows 7 professional.
    Kindly assist.

    Hi Serah Muiruri
    In Windows 7 64 bit ODBC Drivers 32-bit is stored under "C:\Windows\SysWOW64"
    DIRECT PATH   C:\Windows\SysWOW64\ODBC.EXE
    Right click ODBC.EXE
    Create a shortcut and place it on the desktop/Right Click and Pin to Task bar/Start Menu.
    It is easy to access.
    CR Oracle ODBC Driver 5.3 CONNECT CREATION STEPS
    In ODBC Data Source Administrator  Select CR Oracle ODBC Driver 5.3
    DataSource name: Give any name to identify
    Description:(Optional)
    ServerName: IP ADRESS:PORT NUMBER/ SERVICE NAME
    Eg:   192.168.0.120:1521/orcl
    Client Version: slect the client version From the list
    To know the connection is correct
    Click the button Test Connection
    Provide the username/password(Eg: scott/ tiger)
    Press OK
    Finally Click Apply button. Next OK
    Thank you
    Pardhu
    Edited by: pardhasaradhi.t on Sep 26, 2011 2:41 PM

  • Execute query from OBIEE report

    Hi,
    Is it possible from an OBIEE report, after filtering records, to simply execute a (insert) query/function/stored procedure with this subset of filtered records (only id's are enough) as parameter ?
    Regards

    I'm first trying to count the checked boxes, to see if it is really doing the right thing.
    HTMLDB_APPLICATION.G_F01.COUNT counts the checked ones, right?
    so in my process i have:
    begin
    if HTMLDB_APPLICATION.G_F01.COUNT is not null then
    :P80_TEST := HTMLDB_APPLICATION.G_F01.COUNT;
    end if;
    end;
    but nothing is displayed in the field P80_TEST...
    what is wrong?
    Regards,
    Sofie
    PS: this seems to be a topic only for me :-)

  • Oracle Query From ABAP Program

    Hello everybody,
    I have a doubt about if I can do a Query to a External Oracle Database to get some records and then process them in my ABAP Program, is this possible?, if this is the case can anyone help me with some documentation, thanks in advance for your answers.
    Regards,
    Julio

    Hi Julio,
    you can use the open SQL connect statement
    EXEC SQL.
      CONNECT TO dbs [AS con]
    ENDEXEC.
    or even you can define the DB in the FROM with the option CONNECTION
    ... FROM { {dbtab [AS tabalias]}
             | join
             | {(dbtab_syntax) [AS tabalias]} }
             [UP TO n ROWS]
             [CLIENT SPECIFIED]
             [BYPASSING BUFFER]
             [CONNECTION {con|(con_syntax)}] ... .
    Hope it helps,
    Edgar

  • BI Web Query from Portal, report cells are too large

    Hello,
    We have created the BI JAVA to query the BI ABAP through BI Web Query. There is no connection problems or configuration problems per my BI Portal Dianostics tests.
    We have created test iview> bi 7.0 Web APplication IVEIW>Template=0ANALYSIS_PATTERN.
    I have clicked the preview and entered the year value to limit the data.
    The report is displayed but it is showing up to be ver large CELLS (I mean ROWS or Colums), but if we query the same BI ABAP System with another Portal System's Iview,
    the report is displayed Normally.
    I am not sure where this needs to be addressed.
    -Manny.

    Self, applied NW 7.01 SP3 PATCH 6.

  • Retrieve SQL Query from report without RAS.

    We have a fat client application which uses Crystal Reports.  We upgraded from the RDC/ActiveX viewer to the .Net SDK/.Net Viewer.  One feature that we miss is that we used to read the SQL Query that a report used and wrote it to our log file.  This helped with debugging and with troubleshooting problems in the field.
    Since we only deploy the freely distributable Crystal Reports model and I don't think that RAS falls into this category is there a way which we can read the SQL Query from a report?  If not, could you add this to a list of requested features for future versions.
    I understand why you removed the ability to set the SQL query, but simply reading it does add value.  Maybe it is difficult for you to return this before the report is run in which case giving us the ability to read the value after the report has been run would also be fine.
    Alternatively some sort of event that is fired each time a query is executed would also be helpful as this would allow Crystal Reports clients to monitor SQL from sub-reports.  You could even build a robust logging mechanism which could report additional information (i.e. number of rows returned, formula evaluations, or anything related to report execution).  All of this would make troubleshooting report issues easier for those of us who use Crystal Reports.

    Need to know what version of CR you are using?
    You can use InProc RAS, it comes with CR and is distributed with the runtime files.
    If you are using CR Basic or the version that comes with Visual Studio .NET then no this will not be added to that product line. It is basic functionality only. You will need to upgrade to a Developer version of Crystal reports to take advantage of the the RCAPI features as well as more general API's.
    There is logging for our DB drivers but the log files get very large. If you use ODBC then you have the option to turn on tracing also. Using RAS you don't need to turn on logging as you can get the SQL. This won't be added either.
    Thank you
    Don

  • Measure performance of disk from AWR

    We are using Oracle 10.2.0.4.0 on Linux platform.
    This is a development database. After replacing the disk for database, my manager has asked me to find if the new disk is performing slow or fast. Can i gauge disk performance from AWR report by comparing the reports with old and new disks. I think I can use IO STATS section for comparison using average reads and writes per second. Is this a correct way?

    Top 5 Timed Events (On new disk)
    Event
    Waits
    Time(s)
    Avg Wait(ms)
    % Total Call Time
    Wait Class
    db file sequential read
      639,846
      5,530
      9
      76.9
    User I/O
    Can you please tell me as what is the average wait time. Is it the time taken by disk to serve one request. In Old disk, this time is 4 (ms). Does this suggest that the performance of old disk is better than this new one.

  • How to retrieve 'top 5 timed events' from AWR

    Hello,
    I have a 10g database and awr is running every hour. How do I get the 'Top 5 Timed Events' from the awr report for every single hour on the last five days worth of awr reports? I can see the awr reports through GRID but where is the actual location of the snapshots? Instead of getting this information from awr reports, can I get 'Top 5 timed events' from the data dictionary for every hour for the last five days? Thank you in advance.

    watson2000 wrote:
    Hello,
    I have a 10g database and awr is running every hour. How do I get the 'Top 5 Timed Events' from the awr report for every single hour on the last five days worth of awr reports? I can see the awr reports through GRID but where is the actual location of the snapshots? Instead of getting this information from awr reports, can I get 'Top 5 timed events' from the data dictionary for every hour for the last five days? The "Top 5" comes from combining information about system events and the time model statistics. The information is stored in a number of tables in the SYS schema with names starting with WRH$, but also exposed in a set of views starting with DBA_HIST.
    To reconstruct the Top 5 hourly for the last five days, you will need to access DBA_HIST_SYSTEM_EVENTS (system events) DBA_HIST_SYS_TIME_MODEL (time model) and DBA_HIST_SNAPSHOT (list of snapshot ids and times).
    It won't be a trivial query, as you need to collect the "DB CPU" entry from dba_hist_system_time_model, union it with the dba_hist_system_events, then take the top 5 for each snapshot from the result. You'll probably need to look at subquery factoring and analytic functions to make this as efficient as possible.
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    "Science is more than a body of knowledge; it is a way of thinking"
    Carl Sagan
    To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • Public SharePoint Online Site with External User Portal

    Hello Everyone,<o:p></o:p> My company switched over to Office 365 a few months ago, and now would like to start using our Public SharePoint site to share information (documents pertaining to their orders/drawings/etc.) with our customers (external us

  • Clean Way To Prevent Signature Collision Of Mounting VHDX In Parallel PowerShell Scripting

    I have multiple Virtual Machines I am to build from a Sysprepped VHDX. (All this is done automatically via Powershell) For each of these Virtual Machines, I copy this VHDX and create a new one unique to the Virtual Machine. However, I wish to mount e

  • Iphone 3g ios4 fast now

    so i did an update to ios4 and like most people here it sucked badly so slow apps took forever battery life sucked basically all the problems. i read everything i could find, and in the end here is what fixed it i put my phone into recovery mode by t

  • Strange problem with movies...

    I downloaded a few movies from a friend and they dont completely play all the way through. They finish on the counter, but there is supposed to be more movie. The strange thing is, if I move the tick for the counter with my mouse almost to the end, i

  • Uninstalling the drivers and programs for Windows 7 SP1 64 bit of the OfficeJet 7410 All-In-One

    Hi Which utility should be used to properly and completely uninstall the drivers and programs for Windows 7 SP1 64 bit installed with the OfficeJet 7410 All-In-One printer? Thanks Bye balubeto