AWR Report for period of 30 min
All,
It would be glad if anyone has any job that would take AWR Report for 30 min.
Regards,
ORA
Thanks hawk,
sorry for the confusion..
Ok i shall modify my question...when i took the report manually the "Elapsed time" was for 1 min...(Everything was successful)
How can i take the same for about 15-30 min.
Regards,
ORA
Similar Messages
-
How can I have a collective AWR report for RAC database in 10gR2 and 11gR1?
Plz correct me here
awrrpt.sql takes the snapshot at the instance level and incase we have 5 instances we have to take 5 awr reports for a particular period.correct???
If above is true ,any wayout to collect a single collective AWR report for RAC database which includes information on all the instances in Oracle 10g R2 or 11gR1 ?
Thanks in advance
GaganI have never come across a way for this. though I can n't say it is not there.
But I guess it may not be feasible too becuase as we know the current AWR report contains data which is specific for one instance.
Various hit ratios, top events, instance effeciency reports.... what not ..
It would be really nice to see something is a new format where it lists values from each instance in a single report.. I guess such a thing Does not exiist as of now. -
Balance Sheet G/L-PL reporting for period range by debit and credit amounts
Hi, good afternoon
This report displays period intervals. One column must display G/L accounts and the others must perform: Initial balance, total debit and total credit.
Example:
<b>Period: mm.dd.yyyy to mm.dd.yyyy</b>
Columns:
G/L Account - Initial Balance - debit - credit - Current Balance
Thanks for attention, ragards!Hi, I do not get what exactly your question is, but I think you are looking for a "report"
I do not remember any that meets exactly your requirements. I have seen similar reports... but you can only define the periods, not the dates.
Check this one:
S_ALR_87012277
You should take a look to these too:
S_PL0_86000030
S_PL0_86000031
Regards -
Standard report for period end stock report
Hi all,
My client is looking for a SAP standard report for material.Their req is as follows.
Open Bal (Stock)
Add: Purchase/Production
Less: Sales/Consumption
Closing Bal(Stock)
I have sugegested them MC.9,MB51,etc....but they are not satified.
They are not willing to go for a 'Z' report too....
Can any one suggest me whether their is any function module or bapi or badi thro' which i can fullfill my clients req. or any other better alternative like report painter,set,etc which suit my requirement.
(can you please let me know from table i can get these datas......just for knowledge purpose)
hope that anybody will guide me...
We are in 6.0 version
God Bless
RegardsTry Standard Report MB5B once.
Regards,
Ashok -
Commitment report for limit order - by period
I am not sure whether this query should falls under this category or Finance. So, please let me know if you think that this question should be moved to the Finance section.
Anyway, my query is I have created a limit/framework purchase order from period 01.10.2008 to 31.11.2008. The delivery date is set to 01.10.2008 by default by the system. When I run the cost center commitment report for period 01.10.2008 to 31.11.2008, I can see the commitments for this PO. However, if I change the period to be from 01.11.208 to 31.11.2008, the commitments are no longer shown on the report. It seems that the system is using the delivery date as the date to show the commitments. Is it correct to say that this is standard behavior? Is there a way to show the commitments running through the validity period set in the PO rather than by the delivery date? Anyone has other options relating to this?
Interested to hear your comments on this.
Cheers!
SFhi,
As per my knowledge the delivery date shown by the system comes from the planned delivery date entered at the material master record...You can check the MMR in MM03...
Pls check ....this would be the one reason...
hope it helps..
Regards
Priyanka.P -
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 -
Automation of AWR report.
Hi All,
I want to automate for awr report generating for every 30 min. For this I am creating a script which is not working properly. Script given below.
1. Declaring an variable
2. Giving value to the variable by running sql query
3. Executing dbms_workload_repository procedure.
Please help me proper steps.
SET SERVEROUTPUT ON
Declare
DBID_NUM NUMBER;
INST_NUMBER NUMBER;
MAX_SNAP_ID NUMBER;
MIN_SNAP_ID NUMBER;
DBID_NUM := select DBID into DBID_NUM from dba_hist_snapshot WHERE ROWNUM=1;
INS_NUMBER := select INSTANCE_NUMBER into INST_NUMBER from dba_hist_snapshot WHERE ROWNUM=1;
MAX_SNAP_ID := select MAX(SNAP_ID) into MAX_SNAP_ID from dba_hist_snapshot;
MIN_SNAP_ID =: select MAX(SNAP_ID)-1 into MIN_SNAP_ID from dba_hist_snapshot;
Begin
SELECT output FROM TABLE (dbms_workload_repository.awr_report_html(DBID_NUM,INST_NUMBER,MAX_SNAP_ID,MIN_SNAP_ID));
End;
/Hi,
I am trying to help, however it's hard because you haven't clarified your end goal. What time period do you need to generate the AWR report for? Generating an AWR report from the entire range of available snap_id's is utterly useless. It's like measuring your average body temperature from the moment of birth up to now.
How are you planning to generate it -- into a database table, into a file, to terminal output? You didn't mention that and it's impossible to deduce it from your script.
Most importantly, why do you need to produce all these AWR reports for each 30 mins? Every 30 days, I would understand, but every 30 mins?! Do you realize that if you want to look at some trends, it much easier to do that using AWR views directly, rather than trying to extract data from html codes? And if you want your performance history just in case -- why don't you increase your SYSAUX tablespace and AWR retention, so that you can go back and generate a retrospective AWR report when needed?
I wrote an anonymous to autogenerate an AWR report for the last snapshot and dump it to the screen, hope this helps:
declare
l_dbid number;
l_inst_id number;
l_last_snap_id number;
l_output clob;
begin
select dbid into l_dbid from v$database;
select instance_number into l_inst_id from v$instance;
select max(snap_id) into l_last_snap_id from dba_hist_snapshot;
for rec in (select * from table(dbms_workload_repository.awr_report_text(l_dbid,l_inst_id, l_last_snap_id - 1, l_last_snap_id))) loop
dbms_output.put_line(rec.output);
end loop;
end;
/Best regards,
Nikolay
P.S. You have 17 out of 21 questions unresolved. Has the forum been really this unhelpful for you? -
Hello!
I use the Oracle EM GC 11 for monitoring of databases .
I need to form the AWR report for some of databases and send it once a day by e-mail automatically.
How to realize it?Hi,
I am trying to help, however it's hard because you haven't clarified your end goal. What time period do you need to generate the AWR report for? Generating an AWR report from the entire range of available snap_id's is utterly useless. It's like measuring your average body temperature from the moment of birth up to now.
How are you planning to generate it -- into a database table, into a file, to terminal output? You didn't mention that and it's impossible to deduce it from your script.
Most importantly, why do you need to produce all these AWR reports for each 30 mins? Every 30 days, I would understand, but every 30 mins?! Do you realize that if you want to look at some trends, it much easier to do that using AWR views directly, rather than trying to extract data from html codes? And if you want your performance history just in case -- why don't you increase your SYSAUX tablespace and AWR retention, so that you can go back and generate a retrospective AWR report when needed?
I wrote an anonymous to autogenerate an AWR report for the last snapshot and dump it to the screen, hope this helps:
declare
l_dbid number;
l_inst_id number;
l_last_snap_id number;
l_output clob;
begin
select dbid into l_dbid from v$database;
select instance_number into l_inst_id from v$instance;
select max(snap_id) into l_last_snap_id from dba_hist_snapshot;
for rec in (select * from table(dbms_workload_repository.awr_report_text(l_dbid,l_inst_id, l_last_snap_id - 1, l_last_snap_id))) loop
dbms_output.put_line(rec.output);
end loop;
end;
/Best regards,
Nikolay
P.S. You have 17 out of 21 questions unresolved. Has the forum been really this unhelpful for you? -
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 -
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 -
Generate AWR Report automatically every day
Hi Friends,
I would like to generate AWR Report automatically every day. How do i do it.
The Start Time will be 00:00 of Previous day and the end Time will be : 00:00 of current day. The File format is html.
Currently i am using awrrpt.sql to generate report manually and i would like to achieve it automatically,I am not sure how to pass the values of start and end time (From which table i can get the values)?
Regards,
DBHi, DB.
You may use the below sql script , the sql script generates the AWR report for the duration of 2 days in HTML.
So you change
1) the where condition as per your requirement,
2) report name in sql script,
3) and convert it as shell or bat script based on your environment, and schedule it in your OS job scheduler / crontab.
=-=-=-=-
connect / as sysdba
REM set termout off
variable snap1 number
variable snap2 number
COLUMN starthr new_value bhr
COLUMN endhr new_value ehr
COLUMN crdate new_value cdt
begin
select
distinct min(s.snap_id)
into :snap1
from dba_hist_snapshot s
where to_char(trunc(end_interval_time,'HH24'),'HH24') = to_char(trunc(sysdate,'HH24'),'HH24')-2 and trunc(end_interval_time)=trunc(sysdate);
select
distinct max(s.snap_id)
into :snap2
from dba_hist_snapshot s
where to_char(trunc(end_interval_time,'HH24'),'HH24') =to_char(trunc(sysdate,'HH24'),'HH24') and trunc(end_interval_time)=trunc(sysdate);
end;
COLUMN starthr new_value bhr
COLUMN endhr new_value ehr
COLUMN crdate new_value cdt
select to_char(trunc(sysdate, 'HH24'),'HH24')-2 starthr,
to_char(trunc(sysdate, 'HH24'),'HH24') endhr,
to_char(trunc(sysdate),'DD-MON-YYYY') crdate
from dual;
define begin_snap=:snap1
define end_snap=:snap2
define report_name=/orashare1/reports/awrreport/AWRRPT_PROD_1_${1^^}_${EXDATE}_mor.html
define report_type = 'html';
@@?/rdbms/admin/awrrpt.sql
exit -
ADDM and AWR report interpretation
Hi,
I have some confusion regarding the understanding of ADDM and AWR report.
I have created AWR reports for various period. All report indicated that all Instance efficiency checklists at their high 90s.
I have also created ADDM report during the same intervals. ADDM reports suggesting a higher SGA value.
When I am trying to correlate the ADDM and AWR then the findings seems self contradictory. On one hand AWR reflecting high instance efficiency ratios and on the other ADDM suggesting for higher SGA value. Please help me to get a better idea regarding this.
There is one more confusion. Due to some product related compulsion we have to use CURSOR_SHARING=EXACT. But the AWR report reflects 98 against Soft Parse %. Though we are using high number of bind variable within our application. But due to the value of CURSOR_SHARING all queries should be hard parsed each time the literal change. As per my understanding there should be very less soft parsing, but the value reflects high Soft Parse.
Thanks in advance for your valuable time.
Regards,
Joy>
Just a little detail to add to Dom's comments.
If you are convinced that you have lots of code that should be doing hard parsing, but the "soft parse ratio" looks wrong, then take a look in the statspack/AWR section labelled "SQL ordered by Parse Calls". You may find that some trivial, harmless looking piece of SQL has suffered a huge number of parse calls - and if so they will almost certainly have been "soft" parse calls and could therefore be hiding your expected "hard" parse figures.
Critical point: if you look at a ratio, you've hidden the underlying scale of any potential problem.
Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com
http://www.jlcomp.demon.co.uk
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.
"Science is more than a body of knowledge; it is a way of thinking"
Carl Sagan -
Run single, consolidated AWR report on 4 adjacent snapshots?
We typically collect snapshots in 60 minute periods for our instances. Recently, a customer ran a test for 3.5 hours. I created an ADDM report spanning the 4 snapshots (useful). However, being able to generate an AWR report for the same 3.5 hour duration would add additional insight.
Currently, I can generate 4 separate AWR reports, one for each hour. However, I'd like to be able to create a single, consolidated AWR report. This way, I don't have to manually sum useful numbers like Executions contained in 4 separate AWR reports for SQL ordered by Elapsed Time, etc.
Can I create one, aggregated AWR report? Or is my only other option to revise the snapshot collection duration before the next scheduled load test occurs (e.g. to 3.5 hours for a 3.5 hour load test)? Would prefer not to have to do this. But is it the only available option to accomplish what I need?
Thanks very much.Thanks Rob. I'm able to run an ADDM report for the 3.5 hour duration I need. No problem there. I want to run a consolidated "AWR report" on multiple snapshots, e.g:
Performance > Snapshots > Click a snapshot ID > Click Report tab (by default you are on the Details tab).
This AWR report gives a lot more information than an ADDM report.
Can I select multiple snapshots for the AWR report? I'm already doing so with ADDM reports.
The title for the "AWR" report I'm interested in is: "WORKLOAD REPOSITORY report for." It doesn't have ADDM findings in it because it's not making recommendations--just reporting a large amount of snapshot details.
I'm guessing now that the answer is "no" to what I'm asking. Hope this makes sense. -
Hi,
Can any one know how to pull AWR Reports for 15th day back from today.
My retention period is set to 7 days. Let me know ASAP.
Thanks
Kuldeepsql> @?/rdbms/admin/awrrptGives you a list of available snapshots from which you can pick two with no instance shutdown between.
Of course, if you have set the (default) retention of 7 days, than it is extremely unlikely that you will see
snapshots from "15th day back from today".
That was as ASAP as I could write, by the way, and should have been obvious :-) -
Help in Analyzing AWR Report.....
We have faced a performance issue in particular two programs which usually takes only seconds to run (it ran 0.8 and 0.6 sec respectively last month). But it took 2 and 1.4 hrs respectively and when took the AWR report for the run period I could see all looks fine in the report, as we don't have an option to re-run it again till next month end we would like to figure out the cause for the same.
The explain plan for that particular statement looks fine and it gets completed with in seconds. The only doubt I have is we see "CPU Time" in the Top 5 times events and it consumed most of time. Please help me in finding is the normal scenario or not.
Event Waits Time(s) Avg Wait(ms) % Total Call Time Wait Class
CPU time 46,585 97.4
db file sequential read 1,082,128 859 1 1.8 User I/O
db file scattered read 540,320 667 1 1.4 User I/O
log file parallel write 21,817 79 4 .2 System I/O
db file parallel read 14,111 37 3 .1 User I/O
Thanks,
Jay
+65-81620312user13338899 wrote:
Mohammad,
Appreciate the update. Please find below the following details,
SQL> column NAMESPACE form a9;
SQL> /
VERSION BUNDLE_SER NAMESPACE ACTION ACTION_TIME ID
10.2.0.5 PSU SERVER APPLY 26-APR-11 03.01.16.118430 PM 3
SQL>
$ uname -a
SunOS DSOFSAOS01 5.10 Generic_142909-17 sun4u sparc SUNW,SPARC-Enterprise
$ sqlplus '/ as sysdba'
SQL*Plus: Release 10.2.0.5.0 - Production on Mon Jul 18 11:15:17 2011
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
PL/SQL Release 10.2.0.5.0 - Production
CORE 10.2.0.5.0 Production
TNS for Solaris: Version 10.2.0.5.0 - Production
NLSRTL Version 10.2.0.5.0 - Production
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
$ opatch lsinv -bugs_fixed | grep PSU
9952230 11724962 Tue Apr 26 14:53:15 MYT 2011 DATABASE PSU 10.2.0.5.1 (INCLUDES CPUOCT2010)
10248542 11724962 Tue Apr 26 14:53:15 MYT 2011 DATABASE PSU 10.2.0.5.2 (INCLUDES CPUJAN2011)
11724962 11724962 Tue Apr 26 14:53:15 MYT 2011 DATABASE PSU 10.2.0.5.3 (INCLUDES CPUAPR2011)
$
$ vmstat
kthr memory page disk faults cpu
r b w swap free re mf pi po fr de sr m0 m1 m3 m4 in sy cs us sy id
0 0 0 16622560 5455776 29 14 127 0 0 0 0 0 19 8 16 604 3281 402 0 0 100
$
The only thing I would like to know is we faced an performance issue with two programs which took so long to run than usual, as we do not have an option to re-run and could not find any issues in the awr apart from the particular sql took long time to run, what could be the possible causes for a sql behaving badly only at a certain time.
If we run the same sql now, it gets completed in seconds. Also how to calculate the CPU used in that partuclar period?
Thanks,
Jay
the particular sql took long time to run,does this SQL utilize bind variable & therefore subject to bind variable peeking?
Maybe you are looking for
-
Difference b/w index and key
can you please tell me the difference between the follwing UI elements 1.dropdownbykey and dropdownbyindex 2.radiobutton group by key and radio button group by index and also tell me in which case which UI need to be used Thanks rahul
-
Internet access works from one jack only
I recently moved to a new apartment that has three phone jacks, the phone works fine on all three but my router will work only from the jack where the main feed comes into my apartment. I have tried different cables, rebooting, unplugging, etc. Do I
-
How can I get an up to date Verisign certificate??
For an app I need the Verisign certificate. I downloaded one from a link provided in this forum but once installed I see it valid until "15-07-2009" -- no good for me, I'm in August. Trawling the Verisign site didn't help ease the frustration. Any po
-
Does changing the SQL Server Service Account impact FILESTREAM data?
I have a stand-alone SQL Server 2008 instance that I need to change the SQL Server service account from LocalSystem to a domain account. However, I was wondering if there was any impact on FILESTREAM enabled databases that are hosted on the SQL Serv
-
Different deployment.properties for Multiversion
Hi Folks, I need to run JRE 1.6 and 1.7 on the same machine. Problem is, that MIXCODE must be disabled in deployment.properties. But only for JRE 1.6 (intalled as STATIC). The JRE 1.7 as standard JRE should normally run in MIXCODE ENABLE Mode. Is the