Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Statistics tab is primarily intended for instance tuning. You can also use the tab to periodically monitor the health of your instance. It lets you provide answers to the following types of questions: Is Oracle using resources efficiently? Is the SGA correctly sized? Do our systems have enough memory to enable us to keep adding dedicated server processes? Are we performing too many logical I/Os?.

With each release of the database, Oracle introduces new statistics. For example, operating system-related statistics were introduced in Oracle 10g. Precise for Oracle displays this information when available.

...

If you want detailed information on a wait event, in the Association area, click the row of the event that you want to view detailed information for. The Tab heading indicates the newly selected entity, and the Main area displays over time graphs for the wait event you drilled down to. There is no Association Area data for a wait event. See “How How most tabs are structured” on page 22structured.

Anchor
Abouttheentitiesyoucanexamine
Abouttheentitiesyoucanexamine
About the entities you can examine

...

The following graphs are displayed:

Table 10- 1 Graphs of the RAC Database Cache view

GraphDescription
GC Blocks TransferIt displays the total aggregated number of global cache current blocks and global cache CR blocks that have been transferred.
Avg. GC Blocks Access Latency (Msec.)

It displays the following average end-to-end elapsed time, or latency for a global cache block request:

  • Average current blocks receive time (in milliseconds)
  • Average CR blocks receive time (in milliseconds)
CR Blocks Request Latency (Avg.)

It displays the following breakdown of the average end-to-end elapsed time, or latency for a CR block request:

  • Average global cache CR block send time
  • Average global cache CR block flush time
  • Average global cache CR block build time
Current Blocks Request Latency (Avg.)

It displays the following breakdown of the average end-to-end elapsed time, or latency for a current block request:

  • Average global cache current block send time
  • Average global cache current block flush time
  • Average global cache current block pin time

About information on instances in the RAC database

The Instance in Database view, in the Statistics tab, displays the following additional RAC database information:

Table 10- 2 Additional RAC database information

InformationDescription
DatabaseDisplays the logical name of the RAC database.
DB NameDisplays the Oracle database ID for the instance.
DB IDDisplays the Oracle database ID.
Instance NumberDisplays the number of the instance in the RAC database.
InstancesDisplays the number of instances that share the same RAC database with the selected instance.
Instance SessionsNumber of current instance sessions in the database.
Database SessionsNumber of total database sessions.
Time Non-Idle Wait EventPie chart comparing the amount of non-idle wait time experienced by the selected instance vs. the entire database.
LatchesPie chart comparing the amount of latch wait time experienced by the selected instance vs. the entire database.
Logical I/OPie chart comparing the amount of logical I/O experienced by the selected instance vs. the entire database.
Statement ExecutionsPie chart comparing the number of statements executed by the selected instance vs. the entire database.

About the load of a Tier, instance, or database

...

The following table shows Wait event information in the Association area.

Table 10- 3 Wait event information in the Association area

ColumnDescription
Wait EventName of the Oracle wait event.
In Oracle Sub-StateEquivalent Precise for Oracle wait sub-state. See
“Wait States” on page 35.*
Wait States.
IdleIndicates whether Precise for Oracle categorizes the wait event as an idle event. Precise for Oracle considers certain events, such as sql*net message from client, rdbms ipc message or pmon timer, as idle because Oracle is effectively sleeping and not consuming any resources. The categorization affects the top 10 wait events displayed in the Wait Event view of the Tier or an instance.
WaitsTotal number of occurrences of the wait event.
TimeoutsTotal number of occurrences of the wait event that exceeded the timeout. Some events have a timeout associated with them.
Times Waited (Sum.)Total time waited, displayed as a duration and bar graph.

About the Block Contentions entity

...

When you view information on block contentions in the Association area, the following information is displayed in the table:

Table 10- 4 Block contention information in the Association area

ColumnDescription
Block ContentionName of the block contention.
WaitsTotal number of block contention waits.
Times Waited (Sum.)Total time waited, displayed as a duration and bar graph.

About the Latch entity

The Latch entity, in the Statistics tab, displays information that is derived from the V$LATCH table.

...

When you view information on latches in the Association area, the following information is displayed in the table:

Table 10- 5 Latch information in the Association area

ColumnDescription
LatchName of the latch.
ClassPrecise for Oracle categorization of the latch. Precise for Oracle uses these categories to display a breakdown of latch types in the Latching view of a Tier or instance.
MissesBar graph showing the number of Willing to Wait misses and No Wait misses. Willing to Wait misses is equivalent to MISSES in V$LATCH; No Wait misses is equivalent to IMMEDIATE_MISSES in V$LATCH.
Willing to Wait Miss RadioPercentage of requests to get a latch that were unsuccessful but the caller was willing to wait. Equivalent to the ratio of MISSES to GETS in V$LATCH.
No Wait Miss RadioPercentage of requests to get a latch that were unsuccessful but the caller was not willing to wait. Equivalent to the ratio of IMMEDIATE_MISSES to IMMEDIATE_GETS in V$LATCH.
Wait Times (Sum.)Total time Oracle spent sleeping, waiting on the latch to become available, displayed as a duration and bar graph.

About the Statistics entity

...

When you view statistics information in the Association area, the following information is displayed in the table:

Table 10- 6 Statistics information in the Association area

ColumnDescription
StatisticName of the Oracle statistic.
ClassOracle class of statistic.
ValueStatistic value.

You can use the More... option in the Association controls to populate the association area with a subset of statistics based on class. For example, you can click Statistics>Cache or Statistics>Debug Statistics > Cache or Statistics > Debug. Some statistics are classified more than once. For example, Buffer is Pinned Count is classified as both Cache and SQL.

...

When you view database time statistics information in the Association area, the following information is displayed in the table:

Table 10- 7 Database time statistics information in the Association area

ColumnDescription
StatisticName of the statistic.
Times Waited (Sum.)Total time waited, displayed as a duration and bar graph.

About the Operating System Statistics entity

...

When you view database time statistics information in the Association area, the following information is displayed in the table:

Table 10- 8 Operating system statistics information in the Association area

ColumnDescription
StatisticName of the statistic.
TypeType of statistic. Values are Processor or Paging
Processor TimeAmount of CPU time consumed. This and the Utilization column are only available for Processor-related statistics.
UtilizationCPU utilization.
Paged BytesTotal number of bytes paged in or out. This and the Paged Bytes/sec column are only available for Paging-related statistics.
Paged Bytes/Sec.Average number of bytes paged in or out per second.
DescriptionProvides a description of the statistic.

Anchor
HowtheStatisticstabcanhelpyouidentifyperformanceproblems
HowtheStatisticstabcanhelpyouidentifyperformanceproblems
How the Statistics tab can help you identify performance problems

...

You can identify a performance problem by doing one or more of the following:

Anchor
Examiningtop10waitevents
Examiningtop10waitevents
Examining top 10 wait events

We should begin our analysis with the Instance overview. This view displays the Top 10 Wait Events in a pie chart.

Info

The pie chart will not display what are considered to be idle events.

See “Examining latches” on page 176 Examining latches.

To examine top 10 wait events

  1. In the Time Frame list, choose the period of time you want to analyze.
  2. In the Instance list, choose the item you want to analyze.
  3. In the Association area, click Wait Events to observe the wait events that are associated with the selected instance and their wait duration.

Anchor
Examininglatches
Examininglatches
Examining latches

After we have examined the top 10 wait events, we now need to determine which latch or latches are contributing to the latch free event.

To examine latches, in the Association area, click Latches from the Association controls. The Statistics tab displays the latches that are associated with this instance.

Anchor
AboutexamininglogicalIOs
AboutexamininglogicalIOs
About examining logical I/Os

One of the recommended ways to tune statements is to reduce the number of logical I/Os, because logical I/Os tend to dominate response time. It is important to understand how the number of logical I/Os varies over time. The instance statistics in the Statistics tab re-enforce the resource consumption figures observed in the Activity tab.

Anchor
Examiningconsistentgets
Examiningconsistentgets
Examining consistent gets

We can tune statements by examining the current number of consistent gets for a period of time.

...

  1. In the Time Frame list, choose the period of time you want to analyze.
  2. Open the statement you want to analyze in the Statistics tab. For our example, the Statistics tab shows the logical I/O for All Oracle Instances. We can see that the number of logical I/Os remained fairly constant on the evening of September 22nd. The logical I/Os are nearly all made up of Consistent Gets (that is, fetching read-consistent copies of data).
    In the Association area, you see that the logical I/O count is dominated by ora920 on linuxi4o2. This is the instance we should look at when considering tuning of logical I/Os. Observe the number of logical/Os per execution. Notice the upward trend. This, together with the total number of logical I/Os, indicates that fewer statements are being run, but each statement is processing more data. This may indicate that the application is I/O bound because it cannot handle more than a certain number of I/Os.

Examining DB block gets

We can also tune statements by examining the number of DB block gets.

...

  1. In the Time Frame list, choose the period of time you want to analyze.
  2. Open the statement you want to analyze in the Statistics tab. In our example, we observe two major peaks in I/O activity, one on the 13th of September and one on the 17th. For our example, the Logical I/O Operations graph shows an increase on the 17th and that the logical I/O was split fairly evenly. The logical I/O was split between DB Block Gets, which are fetching the current version of the data, and DB Block Changes, which are updating the current version of the data. This indicates that there was heavy DML activity on these two days.
    The Logical I/O Operations per Execution graph shows that the number of logical I/O operations per execution remained roughly constant on these two days. Together, both graphs will imply that approximately twice as many statements were executed on the 17th.

Anchor
ExaminingphysicalIOs
ExaminingphysicalIOs
Examining physical I/Os

It is usually good practice to examine logical I/Os first because it is a more reliable measure than physical I/Os, due to caching effects that can complicate an analysis of physical I/Os.

...

  1. First examine logical I/Os. See “Examining consistent gets” on page 176. Examining consistent gets.
  2. Now examine physical I/Os. For our example, the Statistics tab shows sampled data from the same time period as that shown for consistent gets over time. We can see that the average read and write time follows the number of physical I/O operations reasonably close, particularly the first peak on September 22nd. This indicates that there is some contention between I/O operations, perhaps because they are all reading from different points on the same disk, causing a rise in seek time.

Anchor
Examiningmemory
Examiningmemory
Examining memory

If you are looking to reduce the amount of memory used by Oracle, or looking to increase one of the memory buffers without increasing the overall memory footprint, you can use the memory view.

...

For this example, the Aggregated PGA Target has been set to 24 MB and a maximum of 19 MB has been used. This leaves us with very little scope by which to reduce total PGA memory.

Anchor
Examiningparsetimes
Examiningparsetimes
Examining parse times

Oracle 10g provides even more statistics than were provided by previous versions. Precise for Oracle displays graphs of some of the more important statistics, such as CPU utilization and parse times.

...

For our example, we will examine how a number of hard parses affects the parse time. If we look at the Hard Parse Ratio graph in the Main area, we can observe that the hard parse ratio increased to around 50% at 6 PM, meaning that some new statements were executed or required reloading. Consequently, the total parse time increased to around 15 minutes. Then the number of statements that required parsing remained fairly constant (shown on the Soft Parse graph), but the hard parses fell away and so did the parse times. This example explains why it is a good idea to use bind variables or cursor sharing.

 

Precise. Performance intelligence from click to storage. Learn more > >

...


Scroll Ignore
scroll-pdftrue
scroll-officetrue
scroll-chmtrue
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtrue
scroll-htmltrue
Newtabfooter
aliasIDERA
urlhttp://www.idera.com
 | 
Newtabfooter
aliasProducts
urlhttps://www.idera.com/productssolutions/sqlserver
 
Newtabfooter
aliasPurchase
urlhttps://www.idera.com/buynow/onlinestore
 | 
Newtabfooter
aliasSupport
urlhttps://idera.secure.force.com/precise/
 | 
Newtabfooter
aliasCommunity
urlhttp://community.idera.com
 
|
 
Newtabfooter
aliasResources
urlhttp://www.idera.com/resourcecentral
 | 
Newtabfooter
aliasAbout Us
urlhttp://www.idera.com/about/aboutus
 
Newtabfooter
aliasLegal
urlhttps://www.idera.com/legal/termsofuse

...