要查看Oracle數據庫的物理讀寫情況,可以使用以下方法之一:
SELECT * FROM dba_hist_sysmetric_summary
WHERE metric_name IN ('Physical Read Total IO Requests Per Sec', 'Physical Write Total IO Requests Per Sec');
SELECT name, value
FROM v$sysstat
WHERE name IN ('physical reads', 'physical writes');
SELECT file_id, phyrds, phywrts
FROM v$filestat;
通過以上方法,可以查看Oracle數據庫的物理讀寫情況,幫助進行性能優化和故障排除。