所有的动态性能视图在 v$fixed_table
系统级别:
V$sysstat v$sgastat v$event_name v$system_event
查看系统中是否有全表扫描:
Select name,valuefrom v$sysstat where name like ‘%table scan%’
会话级别:
V$statname v$sesstat v$session v$session_event v$event_name v$session_wait v$session_longops
检测操作的完成情况:
Select sid, serial#,opname, to_char(start_time,’HH24:mi:ss’)as “start”,
(sofar/totalwork)*100as percent_complete from v$session_longops;
Instance/database:
V$database V$instance V$option V$parameter V$backup
V$px_process_sysstat V$process V$waitstat V$system_event
Disk:
V$datafile V$filestat V$log V$log_history V$dbfile
V$tempfile V$tempstat V$segment_statistics
性能优化思路:减少文件之间的读写竞争,可以把有竞争的文件分磁盘。通过查看V$filestat ,找出热点。
Contention:
V$lock V$rollname V$rollstat V$waitstat V$latch
Memory:
V$buffer_pool_statistics V$db_object_cache V$libraycache V$rowcache
V$sysstat V$sgastat
User/session
V$lock V$open_cursor V$process V$transatcion V$px_sesstat
V$px_session V$sesstat V$session_event V$sort_usage V$session
V$session_object_cache V$session_wait