Solved

I have oracle 11g enterprise edition. My current server time stamp is 2:00 PM EST . When i run awrrpt.sql .The last snapshot time is showing as 11:00 AM EST .How can i correct awr setting so to gather

Posted on 2014-12-09
1
213 Views
Last Modified: 2015-02-18
I have oracle 11g enterprise edition. My current server time stamp is 2:00 PM EST . When i run awrrpt.sql .The last snapshot time is showing as 11:00 AM EST .How can i correct awr setting so to gather the report upto 1 hr before the current server time
0
Comment
Question by:gaurav kumar sinha
1 Comment
 
LVL 35

Accepted Solution

by:
Mark Geerlings earned 500 total points
ID: 40490002
The default snapshot interval in Oracle11 is 30 minutes.  So, someone has changed the snapshot interval in your database from the default value (possibly to reduce the amount of space consumed by the tables that hold this snapshot data).  
You can either initiate a snapshot manually at a particular time or you can change the interval to a shorter time period (but then be aware that you may need more space to accomodate this data).

To create a snapshot manually, run:
execute dbms_workload_repository.create_snapshot;

Or to change the interval and the retention period, you could use this command:

In this example the retention period is specified as 3 years (1,576,800 minutes) and the interval between each snapshot is 60 minutes.

execute dbms_workload_repository.modify_snapshot_settings (interval => 60, retention => 1576800);

(Thanks to Don Burleson for these tips.  See: http://www.dba-oracle.com/t_awr_automatic_snapshot_settings_modify.htm)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question