Question: I use your STATSPACK extension
table for vmstat (stats$vmstat)
and I have been quite happy with my IS stats. I now understand
that Oracle offers a view with limited OS data, called v$osstat.
Is v$osstat better than a custom OS statistics collection?
Answer: Traditionally, Oracle ran in a
vacuum, and you had to go "outside" of Oracle to measure CPU, RAM,
Network and disk spindle I/O bottlenecks. However, Oracle has
now advanced and an instance samples its external environment
placing OS data into v$osstat, dba_hist_system_event.
The v$osstat is created by querying the
gv$osstat view, slicing-off data for each specific instance on
the server:
select
stat_name,
value,
osstat_id,
comments,
cumulative
from
gv$osstat
where
inst_id = userenv('instance')
Oracle has several views that collect OS information, namely
v$osstat, stats$osstat, stats$osstatname and
dba_hist_osstat.
Still, many DBAs will write custom scripts to gather
OS statistics, collecting from OS tools such as vmstat and
placing the data into STATSPACK extension tables for trend analysis.
Querying from v$osstat ensures that an Oracle
performance problem is not constrained by an external ODS
bottleneck.
select * from v$osstat;
select * from
dba_hist_osstat;
select * from dba_hist_sytatem_event;
-- If you don't want to pay the fee to purchase
AWR, use my vmstat table
select * from stats$vmstat
In addition to using v$osstat if you buy are extra cost AWR
you can query the
dba_hist_system_event table.
If you don't want to write your own OS monitoring scripts you
can download a full set of Oracle
OS monitoring
scripts.
Advanced DBAs can
use the techniques from my book
Oracle Tuning: The Definitive Reference to enhance the v$osstat
data with easy OS statistics collection.
|
|
|
|
Guarantee your Success!
Oracle is the
world's most complex, robust and flexible database, considered
impossible to master without a mentor.
That's why all BC
Oracle trainers are working professionals, experts in Oracle who
share their tips and secrets. |
|
| |
|
Burleson is the American Team

Note:
This Oracle
documentation was created as a support and Oracle training reference for use by our
DBA performance tuning consulting professionals.
Feel free to ask questions on our
Oracle forum.
Verify
experience!
Anyone
considering using the services of an Oracle support expert should
independently investigate their credentials and experience, and not rely on
advertisements and self-proclaimed expertise. All legitimate Oracle experts
publish
their Oracle
qualifications.
Errata?
Oracle technology is changing and we
strive to update our BC Oracle support information. If you find an error
or have a suggestion for improving our content, we would appreciate your
feedback. Just
e-mail:
and include the URL for the page.
Copyright ? 1996 - 2012
All rights reserved.
Oracle ?
is the registered trademark of Oracle Corporation.
|
|