脚踏实地、勇往直前!
全部博文(1005)
分类: Oracle
2011-06-29 16:13:32
V$OSSTAT:
V$OSSTAT view gives information about the operating system on which the Oracle database resides.
V$OSSTAT view has the following columns:
STAT_NAME – Name of the statistic
VALUE – Instantaneous statistic value
OSSTAT_ID – Statistic ID
List of Statistics that this view keeps track of
Statistic Name
NUM_CPUS
Number of CPUs or processors available
IDLE_TIME
Number of hundredths of a second that a processor has been idle, totalled over all processors
BUSY_TIME
Number of hundredths of a second that a processor has been busy executing user or kernel code, totalled over all processors
USER_TIME
Number of hundredths of a second that a processor has been busy executing user code, totalled over all processors
SYS_TIME
Number of hundredths of a second that a processor has been busy executing kernel code, totalled over all processors
IOWAIT_TIME
Number of hundredths of a second that a processor has been waiting for I/O to complete, totalled over all processors
NICE_TIME
Number of hundredths of a second that a processor has been busy executing low-priority user code, totalled over all processors
AVG_IDLE_TIME
Number of hundredths of a second that a processor has been idle, averaged over all processors
AVG_BUSY_TIME
Number of hundredths of a second that a processor has been busy executing user or kernel code, averaged over all processors
AVG_USER_TIME
Number of hundredths of a second that a processor has been busy executing user code, averaged over all processors
AVG_SYS_TIME
Number of hundredths of a second that a processor has been busy executing kernel code, averaged over all processors
AVG_IOWAIT_TIME
Number of hundredths of a second that a processor has been waiting for I/O to complete, averaged over all processors
AVG_NICE_TIME
Number of hundredths of a second that a processor has been busy executing low-priority user code, averaged over all processors
OS_CPU_WAIT_TIME
Total number of hundredths of a second that processes have been in a ready state, waiting to be selected by the operating system scheduler to run
RSRC_MGR_CPU_WAIT_TIME
Total number of hundredths of a second that Oracle processes have been in a ready state, waiting for CPU to be available for their consumer group in the currently active resource plan
VM_PAGE_IN_BYTES
Total number of bytes of data that have been paged in due to virtual memory paging
VM_PAGE_OUT_BYTES
Total number of bytes of data that have been paged out due to virtual memory paging
PHYSICAL_MEMORY_BYTES
Total number of bytes of physical memory
LOAD
Current number of processes that are either running or in the ready state, waiting to be selected by the operating-system scheduler to run. On many platforms, this statistic reflects the average load over the past minute.
NUM_CPU_CORES
Number of CPU cores available (includes subcores of multicore CPUs as well as single-core CPUs)
NUM_CPU_SOCKETS
Number of CPU sockets available (represents an absolute count of CPU chips on the system, regardless of multithreading or multi-core architectures)
All historical values of V$OSSTAT view are stored in DBA_HIST_OSSTAT
SQL> SELECT snap_id, dbid, stat_name, value
FROM dba_hist_osstat
WHERE stat_name = ‘LOAD’
ORDER BY snap_id;