当前位置: 代码迷 >> 综合 >> oraclenbsp;常见v$视图整理
  详细解决方案

oraclenbsp;常见v$视图整理

热度:56   发布时间:2023-12-20 09:57:34.0
1.查看备份,恢复性能
V$BACKUP_SYNC_IO
V$BACKUP_ASYNC_IO

2.? V$IR_FAILURE:
List of all failures, including closed ones (result of the LIST FAILUREcommand)
? V$IR_MANUAL_CHECKLIST:
  List of manual advice (result of the ADVISE FAILUREcommand)
? V$IR_REPAIR:
  List of repairs (result of the ADVISE AILUREcommand)
? V$IR_FAILURE_SET:
Cross-reference of failure and advice identifiers

3.
V$DATABASE_BLOCK_CORRUPTION
查看损坏的数据块

4.V$TRANSACTION
哪个事务正在使用的undo segment

5.V$UNDOSTAT
You can query V$UNDOSTAT.TUNED_UNDORETENTIONto determine the amount of time for which undo is retained for the current undo tablespace.

6.
V$MEMORY_TARGET_ADVISOR
Note:You can also look at the memory target advisor

7.
V$MEMORY_DYNAMIC_COMPONENTS
has the current status of all memory components
 
V$MEMORY_RESIZE_OPS
has a circular history buffer of the last 800 memory resize requests

V$MEMORY_TARGET_ADVICE
provides tuning advice for the MEMORY_TARGETinitialization parameter

8.实例统计信息
V$SGASTAT
? pool
? name
? bytes
V$SYSSTAT
? statistic#
? name
? class
? value
? stat_id
V$SYSTEM_EVENT
? event
? total_waits
? total_timeouts
? time_waited
? average_wait
? time_waited_micro
V$EVENT_NAME
? event_number
? event_id
? name
? parameter1
? parameter2
? parameter3
? wait_class
V$SYSTEM_WAIT_CLASS
? wait_class_id
? wait_class#
? wait_class
? total_waits
? time_waited


9.会话相关的统计信息
V$STATNAME
?statistic#
?name
?class

V$SESSTAT
?sid
?statistic#
?value

V$SESSION
?sid
?serial#
?username
?command
?osuser
?seq#
?event#
?event
?p1/2/3text
?p1/2/3
?p1/2/3raw
?wait_class
?wait_time
?seconds_in_wait
?state
?...

V$SESSION_EVENT
?sid
?event
?total_waits
?total_timeouts
?time_waited
?average_wait
?max_wait
?time_waited_micro
?event_id

V$EVENT_NAME
?event#
?name
?parameter1
?parameter2
?parameter3

10.服务相关的统计信息
V$SERVICE_EVENT
:Aggregated wait counts and wait times for each service, on a per event basis

? V$SERVICE_WAIT_CLASS:
Aggregated wait counts and wait times for each service on a wait class basis


11.Troubleshooting and Tuning Views
Instance/Database
V$DATABASE
V$INSTANCE
V$PARAMETER
V$SPPARAMETER
V$SYSTEM_PARAMETER
V$PROCESS
V$BGPROCESS
V$PX_PROCESS_SYSSTAT
V$SYSTEM_EVENT

Disk
V$DATAFILE
V$FILESTAT
V$LOG
V$LOG_HISTORY
V$DBFILE
V$TEMPFILE
V$TEMPSEG_USAGE
V$SEGMENT_STATISTICS

Contention
V$LOCK
V$UNDOSTAT
V$WAITSTAT
V$LATCH

Memory
V$BUFFER_POOL_STATISTICS
V$LIBRARYCACHE
V$SGAINFO
V$PGASTAT