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
Similar Messages
-
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, -
Hi,
I have created AWR report .But I can not identify excat problem of the database because it is taking more time to insert data into table.
How to identify this from AWR report?Database insertion problem in table
Are these threads related? If yes, did you go through the suggestions in that thread? -
How to identify BOM items in the report
Hi,
I have a requirement from the user that they want to exclude all BOM items from the report which is showing all the Items.So how can i identify those items from the report query??
ThanksSELECT DISTINCT
DECODE (ooh.flow_status_code,
'PENDING_CUSTOMER_ACCEPTANCE', NULL,
'DRAFT', NULL,
'DRAFT_CUSTOMER_REJECTED', NULL,
'DRAFT_SUBMITTED', NULL,
ooh.order_number)
Ord,
ottt.name ord_type,
ooh.ordered_date Order_Date,
ooh.quote_number quote_no,
ool.line_number LNum,
ooh.flow_status_code Order_status,
-- hca.account_number Customer_number ,
ool.flow_status_code line_status,
PAB.PARTY_NAME bill_Customer_Name,
ACB.ACCOUNT_NUMBER bill_Customer_number,
PAS.PARTY_NAME ship_Customer_name,
ACS.ACCOUNT_NUMBER ship_to_Customer_Number,
ool.unit_selling_price selling_price,
ool.unit_list_price list_price,
ool.ORDERED_ITEM pNum,
ooh.booked_date Date_booked,
ool.Actual_shipment_date Ship_date,
ooh.header_id header_id,
mtl.description pDesc,
gcc.segment4 Revenue_account,
-- ooh.shipping_instructions,
REPLACE (ooh.SHIPPING_INSTRUCTIONS, CHR (10), ',')
shipping_instructions,
ool.schedule_ship_date SSD,
DECODE (ool.flow_status_code,
'BOOKED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_FULFILLMENT', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_RETURN_DISPOSITION', ool.ordered_quantity,
NULL, ool.flow_status_code,
'DRAFT', ool.ordered_quantity,
NULL, ool.flow_status_code,
'ENTERED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_RETURN', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_RECEIPT', ool.ordered_quantity,
NULL, ool.flow_status_code,
'SHIPPED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'PENDING_CUSTOMER_ACCEPTANCE', ool.ordered_quantity,
NULL, ool.flow_status_code,
'DRAFT_INTERNAL_REJECTED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_SHIPPING', ool.ordered_quantity,
NULL, ool.flow_status_code,
'OFFER_EXPIRED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'SUPPLY_ELIGIBLE_I', ool.ordered_quantity,
NULL, ool.flow_status_code,
'XXMI_WAIT_MSA', ool.ordered_quantity,
NULL, ool.flow_status_code,
'EXTERNAL_REQ_REQUESTED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'DRAFT_SUBMITTED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'LOST', ool.ordered_quantity,
NULL, ool.flow_status_code,
'SUPPLY_ELIGIBLE', ool.ordered_quantity,
NULL, ool.flow_status_code,
'INTERNAL_REQ_OPEN', ool.ordered_quantity,
NULL, ool.flow_status_code,
'INTERNAL_REQ_REQUESTED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'EXTERNAL_REQ_OPEN', ool.ordered_quantity,
NULL, ool.flow_status_code,
'PO_OPEN', ool.ordered_quantity,
NULL, ool.flow_status_code,
'SUPPLY_ELIGIBLE_E', ool.ordered_quantity,
NULL)
Qty_Remning,
DECODE (ool.flow_status_code,
'CLOSED', (ool.ordered_quantity * ool.unit_selling_price),
NULL)
INV_AMOUNT,
ool.ordered_quantity - NVL (ool.cancelled_quantity, 0) qua_ord,
(NVL (ool.ordered_quantity, 0)) * NVL (ool.unit_selling_price, 0)
Ext_value,
-- DECODE (Hod_def.Name,'Credit Card Auth Failure', 'Y','N',Hod_def.NAME,'Credit Card High Risk', 'Y','N',Hod_def.NAME,'Credit Check Failure', 'Y','N',Hod_def.NAME,'Credit Note Hold','Y', 'N') Credit_Hold ,
ooh.cust_po_number PONUm
FROM apps.oe_order_headers_all ooh,
apps.oe_order_lines_all ool,
apps.mtl_system_items_b mtl,
apps.org_organization_definitions ood,
apps.gl_code_combinations gcc,
AR.HZ_PARTIES PAH,
AR.HZ_CUST_ACCOUNTS ACH,
AR.HZ_CUST_SITE_USES_ALL SUB,
AR.HZ_CUST_ACCT_SITES_ALL STB,
AR.HZ_CUST_ACCOUNTS ACB,
AR.HZ_PARTIES PAB,
AR.HZ_CUST_SITE_USES_ALL SUS,
AR.HZ_CUST_ACCT_SITES_ALL STS,
AR.HZ_CUST_ACCOUNTS ACS,
AR.HZ_PARTIES PAS,
apps.oe_transaction_types_tl ottt,
apps.per_all_people_f papf
-- apps.OE_ORDER_HOLDS_ALL ooha,
-- apps.OE_HOLD_SOURCES_ALL ohsa
-- ,apps.OE_HOLD_DEFINITIONS Hod_def
WHERE ooh.header_id = ool.header_id
AND ool.org_id = NVL (:p_org_id, ool.org_id)
AND ool.flow_status_code != 'CLOSED'
--and ooha.header_id(+) = ooh.header_id
--and ooha.line_id(+) = ool.line_id
--and ohsa.hold_source_id = ooha.hold_source_id
--and ohsa.hold_id = Hod_def.hold_id
--and ohsa.RELEASED_FLAG = 'N'
AND ooh.attribute2 = papf.person_id(+)
AND ottt.language = 'US'
AND ooh.order_type_id = ottt.transaction_type_id(+)
AND ooh.open_flag = 'Y'
--and ooh.order_number = '40000791'
AND ooh.SOLD_TO_ORG_ID = ACH.CUST_ACCOUNT_ID
AND ACH.PARTY_ID = PAH.PARTY_ID
AND oOH.INVOICE_TO_ORG_ID = SUB.SITE_USE_ID(+)
AND SUB.CUST_ACCT_SITE_ID = STB.CUST_ACCT_SITE_ID(+)
AND STB.CUST_ACCOUNT_ID = ACB.CUST_ACCOUNT_ID(+)
AND ACB.PARTY_ID = PAB.PARTY_ID(+)
AND oOH.SHIP_TO_ORG_ID = SUS.SITE_USE_ID
AND SUS.CUST_ACCT_SITE_ID = STS.CUST_ACCT_SITE_ID
AND STS.CUST_ACCOUNT_ID = ACS.CUST_ACCOUNT_ID
AND ACS.PARTY_ID = PAS.PARTY_ID
-- and SOH.CANCELLED_FLAG ='N'
AND ool.inventory_item_id = mtl.inventory_item_id
AND ool.org_id = mtl.organization_id
AND mtl.sales_account = gcc.code_combination_id
AND ool.org_id = ood.organization_id
--and ooh.salesrep_id = jrs.salesrep_id
--&LP_INCL_QUOTES
GROUP BY DECODE (ooh.flow_status_code,
'PENDING_CUSTOMER_ACCEPTANCE', NULL,
'DRAFT', NULL,
'DRAFT_CUSTOMER_REJECTED', NULL,
'DRAFT_SUBMITTED', NULL,
ooh.order_number),
ottt.name,
ooh.ordered_date,
ooh.quote_number,
ool.line_number,
ooh.flow_status_code,
--- hca.account_number ,
ool.flow_status_code,
PAB.PARTY_NAME,
ACB.ACCOUNT_NUMBER,
PAS.PARTY_NAME,
ACS.ACCOUNT_NUMBER,
ool.unit_selling_price,
ool.unit_list_price,
ooh.shipping_instructions,
ool.ORDERED_ITEM,
ooh.booked_date,
ool.Actual_shipment_date,
ooh.header_id,
mtl.description,
gcc.segment4,
ooh.cust_po_number,
(NVL (ool.ordered_quantity, 0)) * NVL (ool.unit_selling_price, 0),
ool.schedule_ship_date,
DECODE (ool.flow_status_code,
'BOOKED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_FULFILLMENT', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_RETURN_DISPOSITION', ool.ordered_quantity,
NULL, ool.flow_status_code,
'DRAFT', ool.ordered_quantity,
NULL, ool.flow_status_code,
'ENTERED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_RETURN', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_RECEIPT', ool.ordered_quantity,
NULL, ool.flow_status_code,
'SHIPPED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'PENDING_CUSTOMER_ACCEPTANCE', ool.ordered_quantity,
NULL, ool.flow_status_code,
'DRAFT_INTERNAL_REJECTED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_SHIPPING', ool.ordered_quantity,
NULL, ool.flow_status_code,
'OFFER_EXPIRED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'SUPPLY_ELIGIBLE_I', ool.ordered_quantity,
NULL, ool.flow_status_code,
'XXMI_WAIT_MSA', ool.ordered_quantity,
NULL, ool.flow_status_code,
'EXTERNAL_REQ_REQUESTED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'DRAFT_SUBMITTED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'LOST', ool.ordered_quantity,
NULL, ool.flow_status_code,
'SUPPLY_ELIGIBLE', ool.ordered_quantity,
NULL, ool.flow_status_code,
'INTERNAL_REQ_OPEN', ool.ordered_quantity,
NULL, ool.flow_status_code,
'INTERNAL_REQ_REQUESTED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'EXTERNAL_REQ_OPEN', ool.ordered_quantity,
NULL, ool.flow_status_code,
'PO_OPEN', ool.ordered_quantity,
NULL, ool.flow_status_code,
'SUPPLY_ELIGIBLE_E', ool.ordered_quantity,
NULL),
DECODE (ool.flow_status_code,
'CLOSED', (ool.ordered_quantity * ool.unit_selling_price),
NULL),
ool.ordered_quantity - NVL (ool.cancelled_quantity, 0)
-- DECODE (Hod_def.Name,'Credit Card Auth Failure', 'Y','N',Hod_def.NAME,'Credit Card High Risk', 'Y','N',Hod_def.NAME,'Credit Check Failure', 'Y','N',Hod_def.NAME,'Credit Note Hold','Y', 'N')
-- (hz_loc.Address1||','||hz_loc.Address2||','||hz_loc.City||','||hz_loc.State)
HAVING (ool.ordered_quantity - NVL (ool.cancelled_quantity, 0)) >
SUM (NVL (ool.shipped_quantity, 0))
ORDER BY 1, 2, 3; -
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. -
User I/O and db file parallel read is high in AWR report
Hi,
We have one performance issue during a job execution.
From the awr report we have identified one query with a table having millions of records causing problems and then we had also fine tuned that query by changing it's code and by using the optmizer hints. It is being executed in plsql batches. After fine tuning, On the first batch execution(first 5000 records) the query is taking only 5 mins, but on the consecutive batches it is consuming more time( more than 30 mins).
From the awr report I got the statistics as
Release : 11.2.0.2.0
Instance Efficiency Percentages (Target 100%)
Buffer Nowait %: 100.00 Redo NoWait %: 100.00
Buffer Hit %: 85.44 In-memory Sort %: 99.98
Library Hit %: 99.76 Soft Parse %: 99.15
Execute to Parse %: 88.91 Latch Hit %: 100.00
Parse CPU to Parse Elapsd %: 87.32 % Non-Parse CPU: 98.65
The buffer hit % is good. On each batch execution it is taking different set of records.
Top 5 Timed Foreground Events
Event Waits Time(s) Avg wait (ms) % DB time Wait Class
db file parallel read 120,485 42,540 353 89.60 User I/O
DB CPU 3,794 7.99
db file sequential read 145,074 606 4 1.28 User I/O
db file scattered read 70,030 556 8 1.17 User I/O
direct path write temp 12,423 21 2 0.04 User I/O
So the I/O is our main concern since that query contains one table with millions of records.
Host CPU (CPUs: 24 Cores: 24 Sockets: 4)
Load Average Begin Load Average End %User %System %WIO %Idle
1.40 1.45 0.6 0.3 3.7 99.0
Load is also normal.
From the Time model statistics , sql execute elapsed time is 98.27% of db time and only 7.99% is that of DB CPU.
Memory Statistics
Begin End
Host Mem (MB): 64,318.0 64,318.0
SGA use (MB): 30,720.0 30,720.0
PGA use (MB): 488.2 497.1
% Host Mem used for SGA+PGA: 48.52 48.54
Both the size of sga_max_size and sga_target are 32,212,254,720(32gb) bytes and that of
pga_aggregate target is 629,145,600(600mb)
from this it is evident that the memory is still available(so increase in memory size is not an option).
The sql statistics for that query shows like that
Elapsed Time (s) Executions Elapsed Time per Exec (s) %Total %CPU %IO SQL Id SQL Text
44,950.03 55 817.27 94.67 6.99 94.72 79dgmrxh4kv74 SELECT /*+ index(cdr_data cdr_...
I can't understand whether the problem is in the database side or with the query?
If the problem is with the query, then how it has been executed in 5 mins for the first batch ?
(all the batches are having 5000 records each).
And how can we reduce the db file parallel read ?
Your valuable advice will be greatly appreciated.
Thanks in advance
Manoj Kumar N"db file parallel read" is likely to be associated with something like index prefetching.
See:
http://www.freelists.org/post/oracle-l/RE-Calculating-LIOs,11
http://aprakash.wordpress.com/2012/05/29/index-range-scan-and-db-file-scattered-read-as-session-wait-event/
http://jonathanlewis.wordpress.com/2006/12/15/index-operations/
Tune the SQL.
Review the execution plan.
Check whether the statistics are accurate.
Review whether the index hint (and others that we can't see) is appropriate. -
Steps to generate AWR report from Oracle 11g OEM
I have gone through online documentation for generating an AWR report from Oracle 11g OEM but the documentation is more focused on generating the AWR report manually. I would request if there is a link or documentation to go through for generating AWR report from Oracle 11g enterprise manager.
I hope my question is clear.
Please revert with the reply to my query.
RegardsHI ,
Please check following link: Siva Oracle: How to generate AWR Report from OEM Grid
Thank you -
AWR Report - no data!!
Oracle Version: 11.1.0.7 64x
OS Version: Windows 2008 Server 64x
Hi There,
We're just trying to generate a awr report for one of our databases and the report is coming out with no data.
statistics_level parameter is set to "TYPICAL"; any idea to what's going on please?
Thanks
SQL>
SQL> @?/rdbms/admin/awrrpt.sql
Current Instance
~~~~~~~~~~~~~~~~
DB Id DB Name Inst Num Instance
1391811405 WEBTST 1 webtst
Specify the Report Type
~~~~~~~~~~~~~~~~~~~~~~~
Would you like an HTML report, or a plain text report?
Enter 'html' for an HTML report, or 'text' for plain text
Defaults to 'html'
Enter value for report_type: text
Type Specified: text
Instances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DB Id Inst Num DB Name Instance Host
* 1391811405 1 WEBTST webtst WEBDBTST
Using 1391811405 for database Id
Using 1 for instance number
Specify the number of days of snapshots to choose from
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Entering the number of days (n) will result in the most recent
(n) days of snapshots being listed. Pressing <return> without
specifying a number lists all completed snapshots.
Enter value for num_days: 1
Listing the last day's Completed Snapshots
Snap
Instance DB Name Snap Id Snap Started Level
webtst WEBTST 43973 12 May 2011 00:00 1
43974 12 May 2011 01:00 1
43975 12 May 2011 02:00 1
43976 12 May 2011 03:00 1
43977 12 May 2011 04:00 1
43978 12 May 2011 05:00 1
43979 12 May 2011 06:00 1
43980 12 May 2011 07:00 1
43981 12 May 2011 08:00 1
43982 12 May 2011 09:00 1
43983 12 May 2011 10:00 1
43984 12 May 2011 11:00 1
43985 12 May 2011 11:02 1
Specify the Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter value for begin_snap: 43984
Begin Snapshot Id specified: 43984
Enter value for end_snap: 43985
End Snapshot Id specified: 43985
Specify the Report Name
~~~~~~~~~~~~~~~~~~~~~~~
The default report file name is awrrpt_1_43984_43985.txt. To use this name,
press <return> to continue, otherwise enter an alternative.
Enter value for report_name:
Using the report name awrrpt_1_43984_43985.txt
WARNING (-20023)
ORA-20023: Missing start and end values for time model stat: parse time elapsed
WARNING (-20023)
ORA-20023: Missing start and end values for time model stat: DB CPU
WARNING (-20016)
ORA-20016: Missing value for SGASTAT: free memory
WARNING (-20016)
ORA-20016: Missing value for SGASTAT: free memory
WARNING (-20009)
ORA-20009: Missing System Statistic logons current
WARNING (-20009)
ORA-20009: Missing System Statistic logons current
WARNING (-20009)
ORA-20009: Missing System Statistic opened cursors current
WARNING (-20009)
ORA-20009: Missing System Statistic opened cursors current
WARNING (-20023)
ORA-20023: Missing start and end values for time model stat: sql execute elapsed
WARNING (-20008)
ORA-20008: Missing Init.ora parameter undo_management
WARNING (-20008)
ORA-20008: Missing Init.ora parameter db_block_size
WARNING (-20016)
ORA-20016: Missing value for SGASTAT: log_buffer
WARNING (-20023)
ORA-20023: Missing start and end values for time model stat: DB time
WARNING (-20008)
ORA-20008: Missing Init.ora parameter timed_statistics
WARNING (-20008)
ORA-20008: Missing Init.ora parameter timed_statistics
WARNING (-20008)
ORA-20008: Missing Init.ora parameter statistics_level
WARNING (-20008)
ORA-20008: Missing Init.ora parameter statistics_level
WARNING (-20008)
ORA-20008: Missing Init.ora parameter sga_target
WARNING (-20008)
ORA-20008: Missing Init.ora parameter pga_aggregate_target
WARNING (-20023)
ORA-20023: Missing start and end values for time model stat: background cpu time
WARNING (-20023)
ORA-20023: Missing start and end values for time model stat: background elapsed
WARNING (-20023)
ORA-20023: Missing start and end values for time model stat: connection manageme
WARNING (-20016)
ORA-20016: Missing value for SGASTAT: buffer_cache
WARNING (-20016)
ORA-20016: Missing value for SGASTAT: buffer_cache
WARNING: Since the DB Time is less than one second, there was
minimal foreground activity in the snapshot period.
Some of the percentage values will be invalid.
WORKLOAD REPOSITORY report for
DB Name DB Id Instance Inst Num Startup Time Release RAC
WEBTST 1391811405 webtst 1 29-Apr-11 04:50 11.1.0.7.0 NO
Host Name Platform CPUs Cores Sockets Memory(GB)
WEBDBTST Microsoft Windows x86 64-bit .00
Snap Id Snap Time Sessions Curs/Sess
Begin Snap: 43984 12-May-11 11:00:01
End Snap: 43985 12-May-11 11:02:00
Elapsed: 1.98 (mins)
DB Time: 0.00 (mins)
Cache Sizes Begin End
~~~~~~~~~~~ ---------- ----------
Buffer Cache:MM Std Block Size:K
Shared Pool Size: 0M 0M Log Buffer:K
ORA-01403: no data found
Error encountered in Report Summary
Continuing to Report Sections
Time Model Statistics DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Operating System Statistics DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Operating System Statistics - DetailDB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Foreground Wait Class DB/Inst: WEBTST/webtst Snaps: 43984-43985
-> s - second, ms - millisecond - 1000th of a second
-> ordered by wait time desc, waits desc
-> %Timeouts: value of 0 indicates value was < .5%. Value of null is truly 0
-> Captured Time accounts for % of Total DB time .00 (s)
-> Total FG Wait Time: (s) DB CPU time: .00 (s)
Avg
%Time Total Wait wait
Wait Class Waits -outs Time (s) (ms) %DB time
DB CPU 0 100.0
Foreground Wait Events DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Background Wait Events DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Wait Event Histogram DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Service Statistics DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Service Wait Class Stats DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
SQL ordered by Elapsed Time DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
SQL ordered by CPU Time DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
SQL ordered by Gets DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
SQL ordered by Reads DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
SQL ordered by Executions DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
SQL ordered by Parse Calls DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
SQL ordered by Sharable Memory DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
SQL ordered by Version Count DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Instance Activity Stats DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Instance Activity Stats - Absolute ValuesDB/Inst: WEBTST/webtst Snaps: 43984
No data exists for this section of the report.
Instance Activity Stats - Thread ActivityDB/Inst: WEBTST/webtst Snaps: 43984-
No data exists for this section of the report.
Tablespace IO Stats DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
File IO Stats DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Buffer Pool Statistics DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Instance Recovery Stats DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Buffer Pool Advisory DB/Inst: WEBTST/webtst Snap: 43985
No data exists for this section of the report.
PGA Aggr Summary DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
PGA Aggr Target Stats DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
PGA Aggr Target Histogram DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
PGA Memory Advisory DB/Inst: WEBTST/webtst Snap: 43985
No data exists for this section of the report.
Shared Pool Advisory DB/Inst: WEBTST/webtst Snap: 43985
No data exists for this section of the report.
SGA Target Advisory DB/Inst: WEBTST/webtst Snap: 43985
No data exists for this section of the report.
Streams Pool Advisory DB/Inst: WEBTST/webtst Snap: 43985
No data exists for this section of the report.
Java Pool Advisory DB/Inst: WEBTST/webtst Snap: 43985
No data exists for this section of the report.
Buffer Wait Statistics DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Enqueue Activity DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Undo Segment Summary DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Undo Segment Stats DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Latch Activity DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Latch Sleep Breakdown DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Latch Miss Sources DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Mutex Sleep Summary DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Parent Latch Statistics DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Child Latch Statistics DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Segments by Row Lock Waits DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Segments by ITL Waits DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Segments by Buffer Busy Waits DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Dictionary Cache Stats DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Library Cache Activity DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Memory Dynamic Components DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Memory Resize Operations Summary DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Memory Resize Ops DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Process Memory Summary DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
sum
SGA breakdown difference DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Streams CPU/IO Usage DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Streams Capture DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Streams Apply DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Buffered Queues DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Buffered Subscribers DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Rule Set DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Persistent Queues DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Persistent Subscribers DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
Resource Limit Stats DB/Inst: WEBTST/webtst Snap: 43985
No data exists for this section of the report.
init.ora Parameters DB/Inst: WEBTST/webtst Snaps: 43984-43985
No data exists for this section of the report.
End of ReportSQL> show parameter statistics
NAME TYPE VALUE
optimizer_use_pending_statistics boolean FALSE
statistics_level string TYPICAL
timed_os_statistics integer 0
timed_statistics boolean TRUE
SQL>
SQL> SELECT statistics_name,
2 session_status,
3 system_status,
4 activation_level,
5 session_settable
6 FROM v$statistics_level
7 ORDER BY statistics_name;
STATISTICS_NAME SESSION_ SYSTEM_S ACTIVAT SES
Active Session History ENABLED ENABLED TYPICAL NO
Adaptive Thresholds Enabled ENABLED ENABLED TYPICAL NO
Automated Maintenance Tasks ENABLED ENABLED TYPICAL NO
Bind Data Capture ENABLED ENABLED TYPICAL NO
Buffer Cache Advice ENABLED ENABLED TYPICAL NO
Global Cache Statistics ENABLED ENABLED TYPICAL NO
Longops Statistics ENABLED ENABLED TYPICAL NO
MTTR Advice DISABLED DISABLED TYPICAL NO
Modification Monitoring ENABLED ENABLED TYPICAL NO
PGA Advice ENABLED ENABLED TYPICAL NO
Plan Execution Sampling ENABLED ENABLED TYPICAL YES
Plan Execution Statistics DISABLED DISABLED ALL YES
SQL Monitoring ENABLED ENABLED TYPICAL YES
Segment Level Statistics ENABLED ENABLED TYPICAL NO
Shared Pool Advice ENABLED ENABLED TYPICAL NO
Streams Pool Advice ENABLED ENABLED TYPICAL NO
Threshold-based Alerts ENABLED ENABLED TYPICAL NO
Time Model Events ENABLED ENABLED TYPICAL YES
Timed OS Statistics DISABLED DISABLED ALL YES
Timed Statistics ENABLED ENABLED TYPICAL YES
Ultrafast Latch Statistics ENABLED ENABLED TYPICAL NO
Undo Advisor, Alerts and Fast Ramp up ENABLED ENABLED TYPICAL NO
V$IOSTAT_* statistics ENABLED ENABLED TYPICAL NO
23 rows selected.
SQL>Thanks
Edited by: rsar001 on May 12, 2011 11:33 AM -
It's hard to present AWR report content here as if i go for copy paste the content alinment and format get changed. Is there any better way to present AWR report in my query.
Here is my query.
In a 2 hour AWR reports for a database I can see the below top 5 wait event's
the database is running on high CPU consumption (there are very less physical reads on database and Logical read is high i suppose ) so I also gather the Segments by Logical Reads. Please provide any suggestion how can i avoid logical reads I/o for the dataabse. If you see at bottom only two segments are responsible for high logical reads.
Please let me know if more content of AWR report is required.
Per Second Per Transaction
Redo size: 12,765.52 2,030.27
Logical reads: 324,030.64 51,534.93
Block changes: 71.62 11.39
Physical reads: 28.26 4.49
Physical writes: 3.84 0.61
User calls: 333.61 53.06
Parses: 157.16 24.99
Hard parses: 0.17 0.03
Sorts: 30.07 4.78
Logons: 1.71 0.27
Executes: 156.35 24.87
Transactions: 6.29
% Blocks changed per Read: 0.02 Recursive Call %: 28.05
Rollback per transaction %: 16.17 Rows per Sort: 29.99
Top 5 Timed Events
Event Waits Time(s) Avg Wait(ms) % Total Call TimeWait Class
CPU time 4,711 88.0
db file sequential read 190,548 356 2 6.7 User I/O
gc current block 2-way 172,948 151 1 2.8 Cluster
gc cr grant 2-way 128,668 67 1 1.2 Cluster
log file sync 37,920 54 1 1.0 Commit
Segments by Logical Reads
Total Logical Reads: 2,342,983,880
Captured Segments account for 99.8% of Total
Owner Tablespace Name Object Name Subobject Name Obj. Type Logical Reads %Total
web_dc DECOINDX D_1F01BC958000013B INDEX 909,141,504 38.80
web_dc DECODATA DM_RELATION_TYPE_S TABLE 908,104,384 38.76
web_dc DECOINDX D_1F01BC9580000518 INDEX 165,716,752 7.07
web_dc DECODATA DM_RELATION_S TABLE 136,235,504 5.81
web_dc DECOINDX D_1F01BC9580000024 INDEX 62,935,008 2.69
Regards
balvindarIn a 2 hour AWR reports for a database I can see the below top 5 wait event's
Comment: 2 hour is a too big interval to draw any conclusion. It should be 15-30 mins maximum.
Apart from that: 88 percent of the wall time is devoted to CPU, so do you have a problem? Not at all!!! Your database is doing pretty nothing.
the database is running on high CPU consumption (there are very less physical reads on database and Logical read is high i suppose ) so I also gather the Segments by Logical Reads. Please provide any suggestion how can i avoid logical reads I/o for the dataabse. If you see at bottom only two segments are responsible for high logical reads.
Comment: the database is not running on high CPU consumption. You would need to run an ADDM report to be able to ascertain that. We have no data on the CPU load of the server, nor how much Oracle is contributing to the load.
You cannot avoid logical read I/O, other than just stopping the application. You can tune them by tuning statements.
In the future, please wrap the output in tags (no spaces, lowercase), or I will need new glasses ;)
Sybrand Bakker
Senior Oracle DBA -
AWR reports DBMS_ALERT_INFO queries using significant elapsed time
Hi
10.1.0.3 / OpenVMS 8.2
Has anyone encountered AWR reporting significant resource consumption on queries relating to DBMS_ALERT_INFO (via calls to dbms_alert.register)? The buffer busy waits % from AWR is high as well (see AWR snippets below). Oracle are suggesting this is "expected behaviour for the objects owned by
the SYS user".
The query takes (on average) 2.3 seconds elapsed, using 1.63 CPU seconds and is responsible for 94% of all Buffer Busy Waits.
Elapsed CPU Elap per % Total
Time (s) Time (s) Executions Exec (s) DB Time SQL Id
10,965 7,746 4,756 2.3 4.7 57w71dgk5qbtx
Module: DSA103:[CSC_ENV_1.APPLIC.][SPICE.LIB]SPC_PFS1_MA
SELECT DISTINCT SUBSTR(KGLNAOBJ,11) SID FROM X$KGLOB WHERE KGLHDNSP = 7 AND KGLN
AOBJ LIKE 'ORA$ALERT$%' AND BITAND(KGLHDFLG,128)!=0 UNION SELECT DISTINCT SID FR
OM DBMS_ALERT_INFO
Segments by Buffer Busy Waits DB/Inst: SPICE/ONLINE Snaps: 4930-5026
Buffer
Tablespace Subobject Obj. Busy
Owner Name Object Name Name Type Waits %Total
SYS SYSTEM DBMS_ALERT_INFO TABLE 130,626 93.76
CliveChristophe Lize wrote:
Closing this thread even if it's not answered...Sorry, I don't have time to test this myself now, but you shouldn't mark this thread as answered if it is not, because other people might find it and think they find an answer if they have a similar question.
I suggest you try the following to narrow down things:
1. Open the RAW trace file and check the cursor numbers of the "direct path reads" - check if you can find any references for those cursor numbers manually. The cursor numbers are those numbers behind the WAIT #<xx>, and you can check if you find any other entry unequal to WAIT #<xx> with the same #<xx>, for example EXEC #<xx> or FETCH #<xx>
A short primer on how to interpret the raw trace file can also be found in MOS document 39817.1
2. Run the RAW trace file through alternative free trace file analyzers like SQLDeveloper (yes it can process raw trace files), OraSRP or Christian Antognini's TVD$XTAT. If you have My Oracle Support access you can also try Oracle's own extended Trace Analyzer (TRCA / TRCANLZR). See MOS Note 224270.1
Check if these tools tell you more about your specific wait event and oddities with the trace file in general.
Regards,
Randolf
Oracle related stuff blog:
http://oracle-randolf.blogspot.com/
Co-author of the "OakTable Expert Oracle Practices" book:
http://www.apress.com/book/view/1430226684
http://www.amazon.com/Expert-Oracle-Practices-Database-Administration/dp/1430226684 -
Hi All,
Not very much experienced in performance tunning that why need your help, i generate AWR report for different times what to check, i started with top 5 events and trying to understand the portion of the report. Can anyone help me to understand the same
In case if AWR requires for the 3 snap shot i will provide the sameHi,
If you have a performance issue on your system look for causes of that performance issue in the AWR. eg. compare the awr report for the period with bad performance with that of a one taken when performance was good. AWR taken during bad time would have "things" that weren't in the awr taken when performance was good or have "high values" for some "things". Start from that point and drill down.
If you don't have performance issues then confirm everything is running as it shoud be. Compare several awr reports and there shoulnd't me "anything" out of the ordinary.
You can start with
Instance Efficiency Percentages (Target 100%)
Top 5 Timed Foreground Events
Time Model Statistics
There are no hard and fast rules as to how you go about interpreting an awr. It depends on type of problem you have, your system, your applicaiton, time of day etc.
http://www.dba-oracle.com/t_rac_statspack_awr_report_tips.htm -
AWR report not getting generated hourly
Hi
We have an Oracle EE 11.2.0.1, on which i see that the AWR reports are being generated randomly not every hour , would anyone know if i am missing any config
My renetention interval specified
SQL> select SNAP_INTERVAL,RETENTION from DBA_HIST_WR_CONTROL;
SNAP_INTERVAL RETENTION
+00000 01:00:00.0 +00007 00:00:00.0
Snapshot got from the awr report
Instance DB Name Snap Id Snap Started Level
EXX001 EXX 30941 27 Dec 2010 01:10 1
30942 27 Dec 2010 04:22 1
30943 27 Dec 2010 05:00 1
30944 27 Dec 2010 06:00 1
30945 27 Dec 2010 07:00 1
30946 27 Dec 2010 08:01 1
30947 28 Dec 2010 01:08 1
30948 28 Dec 2010 06:25 1
30949 28 Dec 2010 07:00 1
30950 28 Dec 2010 08:00 1
30951 28 Dec 2010 09:00 1
30952 28 Dec 2010 10:00 1
30954 29 Dec 2010 08:28 1
30955 29 Dec 2010 09:00 1
30956 29 Dec 2010 10:00 1
30957 29 Dec 2010 11:00 1
30958 29 Dec 2010 12:00 1
thank you
JonuJust saw this in an oracle note regarding the mmon process suspending message (this might be due to our DB's heavy usage)
ORA-12751 cpu time or run time policy violation [ID 761298.1]
If the system is so over-loaded that it takes over 15 minutes to gather statistics or other MMON tasks, this error is expected.It is a functionality enhancement in 11g, as it prevents MMON from locking resources those other processes might be waiting for. In 10g , mmon slaves are allowed to run indefinitely.
This is at database level, as many users are in contention for resources when load is high. This is a new code that will kill the MMON slave if it takes too long to complete so that normal sessions do not have
to wait for these resources.
Solution
If the load on the system is extremely high, this is expected, and error can be ignored. -
How to monitor on disk i/o on healthcheck and awr report on biweekly health
can you explain how to monitor from disk i/o and awr report from old snap shot to new snap shot
how to check and analyze .,,,,,,,,,,,,,,,,,,,,,can any one tell few points which we can **regularly maintain for health check**
thanks in advance
SQL> SELECT group_number ,disk_number ,mount_status ,total_mb/1024 ,free_mb/1024
2 ,reads, (bytes_read / (1024*1024*1024)) mb_read ,read_errs ,read_time,writes
3 ,write_errs ,write_time FROM v$asm_disk;
GROUP_NUMBER DISK_NUMBER MOUNT_S TOTAL_MB/1024 FREE_MB/1024 READS
MB_READ READ_ERRS READ_TIME WRITES WRITE_ERRS WRITE_TIME
2 0 OPENED 199.989258 0 13697147
402.589765 0 44542.38 4358669 0 8883.86
2 1 OPENED 199.989258 0 13653653
405.503195 0 46014.33 4805783 0 11138.13
2 2 OPENED 199.989258 0 15272350
415.620874 0 45524.7 4571038 0 9806.01
GROUP_NUMBER DISK_NUMBER MOUNT_S TOTAL_MB/1024 FREE_MB/1024 READS
MB_READ READ_ERRS READ_TIME WRITES WRITE_ERRS WRITE_TIME
2 3 OPENED 199.989258 0 22713630
533.380945 0 48105.68 4692729 0 9994.31
2 4 OPENED 199.99707 0 23986390
547.804756 0 57601.79 5788565 0 11073.44
1 0 OPENED 199.989258 0 310810
47.4352741 0 9652.12 1877994 0 3490.5
GROUP_NUMBER DISK_NUMBER MOUNT_S TOTAL_MB/1024 FREE_MB/1024 READS
MB_READ READ_ERRS READ_TIME WRITES WRITE_ERRS WRITE_TIME
1 1 OPENED 199.99707 0 137665
44.7837362 0 9155.21 751099 0 3092.96
1 2 OPENED 199.99707 0 139561
44.7904587 0 9424.26 753116 0 2858.23
1 3 OPENED 199.99707 0 141139
44.7718539 0 9506.27 802414 0 2768.22
9 rows selected.
can you please tell me how to monitor on disk i/os which is as shown above and
please tell me AWR report to analyze some basic points for health check
please give some details for health check of database.
thanks in advanceHi;
What is DB version?
Please check below doc:
http://download.oracle.com/docs/cd/B28359_01/server.111/b28275/tdppt_degrade.htm#CACGCJDC
Also see:
What is AWR( Automatic workload repository ) and How to generate the AWR report? [ID 748642.1]
How To Understand AWR Report / Statspack Report [ID 842884.1]
Regard
Helios -
Unable to genereate AWR report
HI Experts,
I was unable to generate AWR report on my database..
While generating i am getting below error..
Enter value for report_name: awr_sggebpu1_1
Using the report name awr_sggebpu1_1
select output from table(dbms_workload_repository.awr_report_html( :dbid,
ERROR at line 1:
ORA-00904: : invalid identifier
i am connecting as emp1 user to my database ORCL2.
conn emp1/emp1@ORCL2 -- > Oracle version 10.2.0.5.0user11175946 wrote:
HI Experts,
I was unable to generate AWR report on my database..
While generating i am getting below error..
Enter value for report_name: awr_sggebpu1_1
Using the report name awr_sggebpu1_1
select output from table(dbms_workload_repository.awr_report_html( :dbid,
ERROR at line 1:
ORA-00904: : invalid identifier
i am connecting as emp1 user to my database ORCL2.
conn emp1/emp1@ORCL2 -- > Oracle version 10.2.0.5.0Are you executing from emp1 user? Does it have privilege to execute?
try as below
$sqlplus / as sysdba -- connect as sysdba
SQL> grant execute on dbms_workload_repository to emp1;
SQL> conn emp/emp1
SQL> @?/rdbms/admin/awrrpt.sql
post if any errors
Maybe you are looking for
-
In ALV- Save layout is not holding sorting values..
hello expert. in ALV-> Change Layout -> filter Material -> 89* and save as default. but not working when i execute the 2nd time from starting onwards..! my alv is able to save screen but not filtering values . my alv unable to hold filter value as de
-
Hi, I am transporting the content from dev to qa. I was looking into pcdstartup.properties.. found a couple which i didnt understand. 1. Pcd.TransportApplication.Export.ExcludeSystemObjects in doc, it is said that it decides whether or not the o
-
Compaq Presario Bios Password Error
Help!!!! I need to reset my admin password for my bios. I have the error message: System Disabled [ 51194371 ] Thanks, This question was solved. View Solution.
-
Recovery CD - clean install and new partitions or install over old OS?
I have a T400s running Windows 7. While using the factory recovery tool, the restore was interrupted. The OS wouldn't boot and the F11 function was disabled. I ordered the recovery CDs, which will arive today. Now, there are 3 partitions on my ThinkP
-
For training purpose, I want to setup a portal on a sandbox. Is it possible to install EP and WAS on a single machine without netweaver 2004s ? If yes, can you tell me from experience what is the minimum hardware requirement. Thank you