- 浏览: 44356 次
- 性别:
- 来自: 上海
http://hi.baidu.com/tantea/blog/item/dba61bce3b4bd230f9dc6151.html
ORACLE I/O 性能分析浅析
2010-06-25 17:48
ORACLE I/O性能分析步骤:
1,性能分析的几个原则:
a, 检查消息的成功率。(成功率必须>99%,否则测试无意义)
b, 监测日志,不应出现异常。
2,分析CPU负荷。(mpstat可看多CPU情况,top->1可查看cpu情况)
命令:mpstat -P ALL 2 10
3,再查找哪个磁盘I/O吃紧 (iostat -x 1)
命令:iostat -x 1
注意:r/s+w/s,await, svctm, %util 四者之间的关系。(见后面描述)
4,然后查找 ORACLE 系统表 v$filestat 得知表空间的访问频率。
命令:Select phyrds,phywrts,d.name from v$datafile d,v$filestat f where f.file#=d.file# order by d.name
============
下面是实验室的测试结果:
1,看下面输出,其中iowait非常高,说明 oracle 可能存在 I/O 瓶颈。
[oracle@BJ-WAP-SA-1 ~]$ mpstat -P ALL 2 100
Linux 2.6.9-78.ELsmp (BJ-WAP-SA-1) 06/25/2010
09:02:59 AM CPU %user %nice %sys %iowait %irq %soft %steal %idle intr/s
09:03:01 AM all 1.25 0.00 0.94 13.56 0.00 0.00 0.00 84.25 5902.50
09:03:01 AM 0 0.00 0.00 0.50 0.50 0.00 0.00 0.00 99.00 0.00
09:03:01 AM 1 1.00 0.00 1.50 1.00 0.00 0.00 0.00 97.00 4.50
09:03:01 AM 2 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.50
09:03:01 AM 3 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00
09:03:01 AM 4 8.50 0.00 4.00 5.00 0.00 0.00 0.00 82.00 5460.00
09:03:01 AM 5 0.50 0.00 1.50 98.00 0.00 0.00 0.00 0.50 428.00
09:03:01 AM 6 0.00 0.00 0.00 3.50 0.00 0.00 0.00 96.00 0.00
09:03:01 AM 7 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 9.00
09:03:01 AM CPU %user %nice %sys %iowait %irq %soft %steal %idle intr/s
09:03:03 AM all 0.06 0.00 0.12 12.41 0.06 0.00 0.00 87.34 1333.50
09:03:03 AM 0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00
09:03:03 AM 1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 4.50
09:03:03 AM 2 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.50
09:03:03 AM 3 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00
09:03:03 AM 4 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 1014.50
09:03:03 AM 5 0.00 0.00 0.50 99.50 0.00 0.00 0.00 0.00 305.00
09:03:03 AM 6 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00
09:03:03 AM 7 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 9.00
2,看下面输出,可以得到如下结论:
a, cciss/c0d0p3 的 %util 为90.40%,说明CPU时间均用于排队了。
b, 继续分析:(w/s+r/s)*svctm 表明在1秒内总的服务时间,如果它略等于1秒,说明消息过来比较均速。否则,说明消息非常不均速。
c, 看其 await = 排队时间+svctm,相差较大,说明排队时间较长。
iostat -x 1
avg-cpu: %user %nice %system %iowait %steal %idle
0.75 0.00 0.25 12.50 0.00 86.75
Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s rkB/s wkB/s avgrq-sz avgqu-sz await svctm %util
cciss/c0d0 0.00 194.06 0.00 182.18 0.00 3009.90 0.00 1504.95 16.52 1.25 6.89 5.41 98.61
cciss/c0d0p1
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
cciss/c0d0p2
0.00 27.72 0.00 29.70 0.00 459.41 0.00 229.70 15.47 0.33 11.23 10.30 30.59
cciss/c0d0p3
0.00 150.50 0.00 150.50 0.00 2407.92 0.00 1203.96 16.00 0.90 6.02 6.01 90.40
cciss/c0d0p5
0.00 15.84 0.00 1.98 0.00 142.57 0.00 71.29 72.00 0.02 8.00 8.00 1.58
cciss/c0d0p6
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
cciss/c0d0p7
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
avg-cpu: %user %nice %system %iowait %steal %idle
0.00 0.00 0.12 12.50 0.00 87.38
Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s rkB/s wkB/s avgrq-sz avgqu-sz await svctm %util
cciss/c0d0 0.00 158.00 0.00 157.00 0.00 2528.00 0.00 1264.00 16.10 1.67 10.64 6.37 100.00
cciss/c0d0p1
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
cciss/c0d0p2
0.00 41.00 0.00 44.00 0.00 688.00 0.00 344.00 15.64 0.57 12.77 12.73 56.00
cciss/c0d0p3
0.00 117.00 0.00 113.00 0.00 1840.00 0.00 920.00 16.28 1.11 9.81 8.09 91.40
cciss/c0d0p5
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
cciss/c0d0p6
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
cciss/c0d0p7
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
3, 看下面输出,在三个表空间 undotbs01.dbf,system01.dbf 和 wapgw_data_tablespace.dbf 访问非常频繁。尤以undotbs01.dbf为最繁忙。
SQL> select phyrds,phywrts,d.name from v$datafile d,v$filestat f where f.file#=d.file# order by d.name;
PHYRDS PHYWRTS NAME
------ ------- --------------------------------------------------------------------------------
37583 35088 /bases/oradata/wapgw_data_tablespace.dbf
64 22 /opt/oracle/oradata/CMCCWAP/120100624_21.dbf
64 22 /opt/oracle/oradata/CMCCWAP/120100624_22.dbf
74 22 /opt/oracle/oradata/CMCCWAP/120100624_23.dbf
44 22 /opt/oracle/oradata/CMCCWAP/120100625_00.dbf
44 22 /opt/oracle/oradata/CMCCWAP/120100625_01.dbf
44 22 /opt/oracle/oradata/CMCCWAP/120100625_02.dbf
44 22 /opt/oracle/oradata/CMCCWAP/120100625_03.dbf
44 22 /opt/oracle/oradata/CMCCWAP/120100625_04.dbf
44 22 /opt/oracle/oradata/CMCCWAP/120100625_05.dbf
44 22 /opt/oracle/oradata/CMCCWAP/120100625_06.dbf
44 22 /opt/oracle/oradata/CMCCWAP/120100625_07.dbf
44 22 /opt/oracle/oradata/CMCCWAP/120100625_08.dbf
44 22 /opt/oracle/oradata/CMCCWAP/120100625_09.dbf
44 22 /opt/oracle/oradata/CMCCWAP/120100625_10.dbf
44 22 /opt/oracle/oradata/CMCCWAP/120100625_11.dbf
44 22 /opt/oracle/oradata/CMCCWAP/120100625_12.dbf
64 22 /opt/oracle/oradata/CMCCWAP/120100625_13.dbf
64 22 /opt/oracle/oradata/CMCCWAP/120100625_14.dbf
64 22 /opt/oracle/oradata/CMCCWAP/120100625_15.dbf
PHYRDS PHYWRTS NAME
------ ------- --------------------------------------------------------------------------------
64 22 /opt/oracle/oradata/CMCCWAP/120100625_16.dbf
64 22 /opt/oracle/oradata/CMCCWAP/120100625_17.dbf
64 22 /opt/oracle/oradata/CMCCWAP/120100625_18.dbf
64 22 /opt/oracle/oradata/CMCCWAP/120100625_19.dbf
64 22 /opt/oracle/oradata/CMCCWAP/120100625_20.dbf
64 22 /opt/oracle/oradata/CMCCWAP/120100625_21.dbf
64 22 /opt/oracle/oradata/CMCCWAP/120100625_22.dbf
64 22 /opt/oracle/oradata/CMCCWAP/120100625_23.dbf
84 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_04.dbf
84 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_05.dbf
94 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_06.dbf
94 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_07.dbf
104 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_08.dbf
104 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_09.dbf
104 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_10.dbf
104 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_11.dbf
104 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_12.dbf
104 12 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_13.dbf
24 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_14.dbf
24 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_15.dbf
24 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_16.dbf
PHYRDS PHYWRTS NAME
------ ------- --------------------------------------------------------------------------------
24 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_17.dbf
24 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_18.dbf
24 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_19.dbf
24 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_20.dbf
24 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_21.dbf
24 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_22.dbf
24 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_23.dbf
64 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100625_00.dbf
64 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100625_01.dbf
64 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100625_02.dbf
64 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100625_03.dbf
64 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100625_04.dbf
64 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100625_05.dbf
84 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100625_06.dbf
84 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100625_07.dbf
84 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100625_08.dbf
84 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100625_09.dbf
84 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100625_10.dbf
24 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_04.dbf
24 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_05.dbf
44 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_06.dbf
PHYRDS PHYWRTS NAME
------ ------- --------------------------------------------------------------------------------
104 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_07.dbf
24 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_08.dbf
24 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_09.dbf
24 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_10.dbf
24 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_11.dbf
24 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_12.dbf
24 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_13.dbf
24 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_14.dbf
34 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_15.dbf
44 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_16.dbf
44 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_17.dbf
44 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_18.dbf
44 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_19.dbf
44 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_20.dbf
44 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_21.dbf
44 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_22.dbf
44 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_23.dbf
84 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_00.dbf
44 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_01.dbf
84 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_02.dbf
84 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_03.dbf
PHYRDS PHYWRTS NAME
------ ------- --------------------------------------------------------------------------------
84 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_04.dbf
84 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_05.dbf
84 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_06.dbf
84 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_07.dbf
84 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_08.dbf
84 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_09.dbf
84 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_10.dbf
104 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_11.dbf
104 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_12.dbf
104 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_13.dbf
104 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_14.dbf
104 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_15.dbf
104 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_16.dbf
104 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_17.dbf
104 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_18.dbf
104 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_19.dbf
104 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_20.dbf
104 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_21.dbf
104 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_22.dbf
104 12 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_23.dbf
44 22 /opt/oracle/oradata/CMCCWAP/cmcc_user_data_tablespace_1.dbf
PHYRDS PHYWRTS NAME
------ ------- --------------------------------------------------------------------------------
44 22 /opt/oracle/oradata/CMCCWAP/cmcc_user_data_tablespace_2.dbf
44 22 /opt/oracle/oradata/CMCCWAP/cmcc_user_data_tablespace_3.dbf
44 22 /opt/oracle/oradata/CMCCWAP/cmcc_user_data_tablespace_4.dbf
44 22 /opt/oracle/oradata/CMCCWAP/cmcc_user_data_tablespace_5.dbf
24 22 /opt/oracle/oradata/CMCCWAP/cwmlite01.dbf
24 22 /opt/oracle/oradata/CMCCWAP/drsys01.dbf
173 22 /opt/oracle/oradata/CMCCWAP/example01.dbf
24 22 /opt/oracle/oradata/CMCCWAP/indx01.dbf
34 22 /opt/oracle/oradata/CMCCWAP/odm01.dbf
10566 451 /opt/oracle/oradata/CMCCWAP/system01.dbf
24 22 /opt/oracle/oradata/CMCCWAP/tools01.dbf
5152 115890 /opt/oracle/oradata/CMCCWAP/undotbs01.dbf
24 22 /opt/oracle/oradata/CMCCWAP/users01.dbf
24 22 /opt/oracle/oradata/CMCCWAP/wap_archiving_data_1.dbf
24 22 /opt/oracle/oradata/CMCCWAP/wap_archiving_data_2.dbf
24 22 /opt/oracle/oradata/CMCCWAP/wap_archiving_data_3.dbf
24 22 /opt/oracle/oradata/CMCCWAP/wap_archiving_data_4.dbf
24 22 /opt/oracle/oradata/CMCCWAP/wap_archiving_data_5.dbf
32 22 /opt/oracle/oradata/CMCCWAP/wap_user_data_tablespace_1.dbf
24 22 /opt/oracle/oradata/CMCCWAP/wap_user_data_tablespace_2.dbf
24 22 /opt/oracle/oradata/CMCCWAP/wap_user_data_tablespace_3.dbf
PHYRDS PHYWRTS NAME
------ ------- --------------------------------------------------------------------------------
35 35 /opt/oracle/oradata/CMCCWAP/wap_user_data_tablespace_4.dbf
24 22 /opt/oracle/oradata/CMCCWAP/wap_user_data_tablespace_5.dbf
28 22 /opt/oracle/oradata/CMCCWAP/xdb01.dbf
ORACLE I/O 性能分析浅析
2010-06-25 17:48
ORACLE I/O性能分析步骤:
1,性能分析的几个原则:
a, 检查消息的成功率。(成功率必须>99%,否则测试无意义)
b, 监测日志,不应出现异常。
2,分析CPU负荷。(mpstat可看多CPU情况,top->1可查看cpu情况)
命令:mpstat -P ALL 2 10
3,再查找哪个磁盘I/O吃紧 (iostat -x 1)
命令:iostat -x 1
注意:r/s+w/s,await, svctm, %util 四者之间的关系。(见后面描述)
4,然后查找 ORACLE 系统表 v$filestat 得知表空间的访问频率。
命令:Select phyrds,phywrts,d.name from v$datafile d,v$filestat f where f.file#=d.file# order by d.name
============
下面是实验室的测试结果:
1,看下面输出,其中iowait非常高,说明 oracle 可能存在 I/O 瓶颈。
[oracle@BJ-WAP-SA-1 ~]$ mpstat -P ALL 2 100
Linux 2.6.9-78.ELsmp (BJ-WAP-SA-1) 06/25/2010
09:02:59 AM CPU %user %nice %sys %iowait %irq %soft %steal %idle intr/s
09:03:01 AM all 1.25 0.00 0.94 13.56 0.00 0.00 0.00 84.25 5902.50
09:03:01 AM 0 0.00 0.00 0.50 0.50 0.00 0.00 0.00 99.00 0.00
09:03:01 AM 1 1.00 0.00 1.50 1.00 0.00 0.00 0.00 97.00 4.50
09:03:01 AM 2 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.50
09:03:01 AM 3 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00
09:03:01 AM 4 8.50 0.00 4.00 5.00 0.00 0.00 0.00 82.00 5460.00
09:03:01 AM 5 0.50 0.00 1.50 98.00 0.00 0.00 0.00 0.50 428.00
09:03:01 AM 6 0.00 0.00 0.00 3.50 0.00 0.00 0.00 96.00 0.00
09:03:01 AM 7 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 9.00
09:03:01 AM CPU %user %nice %sys %iowait %irq %soft %steal %idle intr/s
09:03:03 AM all 0.06 0.00 0.12 12.41 0.06 0.00 0.00 87.34 1333.50
09:03:03 AM 0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00
09:03:03 AM 1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 4.50
09:03:03 AM 2 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.50
09:03:03 AM 3 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00
09:03:03 AM 4 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 1014.50
09:03:03 AM 5 0.00 0.00 0.50 99.50 0.00 0.00 0.00 0.00 305.00
09:03:03 AM 6 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00
09:03:03 AM 7 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 9.00
2,看下面输出,可以得到如下结论:
a, cciss/c0d0p3 的 %util 为90.40%,说明CPU时间均用于排队了。
b, 继续分析:(w/s+r/s)*svctm 表明在1秒内总的服务时间,如果它略等于1秒,说明消息过来比较均速。否则,说明消息非常不均速。
c, 看其 await = 排队时间+svctm,相差较大,说明排队时间较长。
iostat -x 1
avg-cpu: %user %nice %system %iowait %steal %idle
0.75 0.00 0.25 12.50 0.00 86.75
Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s rkB/s wkB/s avgrq-sz avgqu-sz await svctm %util
cciss/c0d0 0.00 194.06 0.00 182.18 0.00 3009.90 0.00 1504.95 16.52 1.25 6.89 5.41 98.61
cciss/c0d0p1
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
cciss/c0d0p2
0.00 27.72 0.00 29.70 0.00 459.41 0.00 229.70 15.47 0.33 11.23 10.30 30.59
cciss/c0d0p3
0.00 150.50 0.00 150.50 0.00 2407.92 0.00 1203.96 16.00 0.90 6.02 6.01 90.40
cciss/c0d0p5
0.00 15.84 0.00 1.98 0.00 142.57 0.00 71.29 72.00 0.02 8.00 8.00 1.58
cciss/c0d0p6
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
cciss/c0d0p7
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
avg-cpu: %user %nice %system %iowait %steal %idle
0.00 0.00 0.12 12.50 0.00 87.38
Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s rkB/s wkB/s avgrq-sz avgqu-sz await svctm %util
cciss/c0d0 0.00 158.00 0.00 157.00 0.00 2528.00 0.00 1264.00 16.10 1.67 10.64 6.37 100.00
cciss/c0d0p1
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
cciss/c0d0p2
0.00 41.00 0.00 44.00 0.00 688.00 0.00 344.00 15.64 0.57 12.77 12.73 56.00
cciss/c0d0p3
0.00 117.00 0.00 113.00 0.00 1840.00 0.00 920.00 16.28 1.11 9.81 8.09 91.40
cciss/c0d0p5
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
cciss/c0d0p6
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
cciss/c0d0p7
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
3, 看下面输出,在三个表空间 undotbs01.dbf,system01.dbf 和 wapgw_data_tablespace.dbf 访问非常频繁。尤以undotbs01.dbf为最繁忙。
SQL> select phyrds,phywrts,d.name from v$datafile d,v$filestat f where f.file#=d.file# order by d.name;
PHYRDS PHYWRTS NAME
------ ------- --------------------------------------------------------------------------------
37583 35088 /bases/oradata/wapgw_data_tablespace.dbf
64 22 /opt/oracle/oradata/CMCCWAP/120100624_21.dbf
64 22 /opt/oracle/oradata/CMCCWAP/120100624_22.dbf
74 22 /opt/oracle/oradata/CMCCWAP/120100624_23.dbf
44 22 /opt/oracle/oradata/CMCCWAP/120100625_00.dbf
44 22 /opt/oracle/oradata/CMCCWAP/120100625_01.dbf
44 22 /opt/oracle/oradata/CMCCWAP/120100625_02.dbf
44 22 /opt/oracle/oradata/CMCCWAP/120100625_03.dbf
44 22 /opt/oracle/oradata/CMCCWAP/120100625_04.dbf
44 22 /opt/oracle/oradata/CMCCWAP/120100625_05.dbf
44 22 /opt/oracle/oradata/CMCCWAP/120100625_06.dbf
44 22 /opt/oracle/oradata/CMCCWAP/120100625_07.dbf
44 22 /opt/oracle/oradata/CMCCWAP/120100625_08.dbf
44 22 /opt/oracle/oradata/CMCCWAP/120100625_09.dbf
44 22 /opt/oracle/oradata/CMCCWAP/120100625_10.dbf
44 22 /opt/oracle/oradata/CMCCWAP/120100625_11.dbf
44 22 /opt/oracle/oradata/CMCCWAP/120100625_12.dbf
64 22 /opt/oracle/oradata/CMCCWAP/120100625_13.dbf
64 22 /opt/oracle/oradata/CMCCWAP/120100625_14.dbf
64 22 /opt/oracle/oradata/CMCCWAP/120100625_15.dbf
PHYRDS PHYWRTS NAME
------ ------- --------------------------------------------------------------------------------
64 22 /opt/oracle/oradata/CMCCWAP/120100625_16.dbf
64 22 /opt/oracle/oradata/CMCCWAP/120100625_17.dbf
64 22 /opt/oracle/oradata/CMCCWAP/120100625_18.dbf
64 22 /opt/oracle/oradata/CMCCWAP/120100625_19.dbf
64 22 /opt/oracle/oradata/CMCCWAP/120100625_20.dbf
64 22 /opt/oracle/oradata/CMCCWAP/120100625_21.dbf
64 22 /opt/oracle/oradata/CMCCWAP/120100625_22.dbf
64 22 /opt/oracle/oradata/CMCCWAP/120100625_23.dbf
84 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_04.dbf
84 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_05.dbf
94 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_06.dbf
94 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_07.dbf
104 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_08.dbf
104 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_09.dbf
104 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_10.dbf
104 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_11.dbf
104 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_12.dbf
104 12 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_13.dbf
24 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_14.dbf
24 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_15.dbf
24 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_16.dbf
PHYRDS PHYWRTS NAME
------ ------- --------------------------------------------------------------------------------
24 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_17.dbf
24 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_18.dbf
24 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_19.dbf
24 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_20.dbf
24 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_21.dbf
24 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_22.dbf
24 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100624_23.dbf
64 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100625_00.dbf
64 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100625_01.dbf
64 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100625_02.dbf
64 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100625_03.dbf
64 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100625_04.dbf
64 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100625_05.dbf
84 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100625_06.dbf
84 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100625_07.dbf
84 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100625_08.dbf
84 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100625_09.dbf
84 22 /opt/oracle/oradata/CMCCWAP/RADIUS120100625_10.dbf
24 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_04.dbf
24 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_05.dbf
44 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_06.dbf
PHYRDS PHYWRTS NAME
------ ------- --------------------------------------------------------------------------------
104 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_07.dbf
24 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_08.dbf
24 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_09.dbf
24 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_10.dbf
24 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_11.dbf
24 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_12.dbf
24 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_13.dbf
24 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_14.dbf
34 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_15.dbf
44 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_16.dbf
44 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_17.dbf
44 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_18.dbf
44 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_19.dbf
44 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_20.dbf
44 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_21.dbf
44 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_22.dbf
44 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100624_23.dbf
84 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_00.dbf
44 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_01.dbf
84 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_02.dbf
84 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_03.dbf
PHYRDS PHYWRTS NAME
------ ------- --------------------------------------------------------------------------------
84 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_04.dbf
84 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_05.dbf
84 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_06.dbf
84 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_07.dbf
84 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_08.dbf
84 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_09.dbf
84 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_10.dbf
104 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_11.dbf
104 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_12.dbf
104 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_13.dbf
104 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_14.dbf
104 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_15.dbf
104 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_16.dbf
104 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_17.dbf
104 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_18.dbf
104 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_19.dbf
104 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_20.dbf
104 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_21.dbf
104 22 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_22.dbf
104 12 /opt/oracle/oradata/CMCCWAP/SOCKET120100625_23.dbf
44 22 /opt/oracle/oradata/CMCCWAP/cmcc_user_data_tablespace_1.dbf
PHYRDS PHYWRTS NAME
------ ------- --------------------------------------------------------------------------------
44 22 /opt/oracle/oradata/CMCCWAP/cmcc_user_data_tablespace_2.dbf
44 22 /opt/oracle/oradata/CMCCWAP/cmcc_user_data_tablespace_3.dbf
44 22 /opt/oracle/oradata/CMCCWAP/cmcc_user_data_tablespace_4.dbf
44 22 /opt/oracle/oradata/CMCCWAP/cmcc_user_data_tablespace_5.dbf
24 22 /opt/oracle/oradata/CMCCWAP/cwmlite01.dbf
24 22 /opt/oracle/oradata/CMCCWAP/drsys01.dbf
173 22 /opt/oracle/oradata/CMCCWAP/example01.dbf
24 22 /opt/oracle/oradata/CMCCWAP/indx01.dbf
34 22 /opt/oracle/oradata/CMCCWAP/odm01.dbf
10566 451 /opt/oracle/oradata/CMCCWAP/system01.dbf
24 22 /opt/oracle/oradata/CMCCWAP/tools01.dbf
5152 115890 /opt/oracle/oradata/CMCCWAP/undotbs01.dbf
24 22 /opt/oracle/oradata/CMCCWAP/users01.dbf
24 22 /opt/oracle/oradata/CMCCWAP/wap_archiving_data_1.dbf
24 22 /opt/oracle/oradata/CMCCWAP/wap_archiving_data_2.dbf
24 22 /opt/oracle/oradata/CMCCWAP/wap_archiving_data_3.dbf
24 22 /opt/oracle/oradata/CMCCWAP/wap_archiving_data_4.dbf
24 22 /opt/oracle/oradata/CMCCWAP/wap_archiving_data_5.dbf
32 22 /opt/oracle/oradata/CMCCWAP/wap_user_data_tablespace_1.dbf
24 22 /opt/oracle/oradata/CMCCWAP/wap_user_data_tablespace_2.dbf
24 22 /opt/oracle/oradata/CMCCWAP/wap_user_data_tablespace_3.dbf
PHYRDS PHYWRTS NAME
------ ------- --------------------------------------------------------------------------------
35 35 /opt/oracle/oradata/CMCCWAP/wap_user_data_tablespace_4.dbf
24 22 /opt/oracle/oradata/CMCCWAP/wap_user_data_tablespace_5.dbf
28 22 /opt/oracle/oradata/CMCCWAP/xdb01.dbf
相关推荐
第三,磁盘I/O的调整对Oracle数据库性能同样具有重要影响。磁盘I/O是指数据库与磁盘进行数据交换的效率,如果I/O操作缓慢,那么整个数据库的响应时间就会受到负面影响。优化磁盘I/O可以通过调整Oracle参数来实现,如...
应用程序与数据库服务器之间的通信依赖于网络,网络延迟和I/O性能会直接影响数据交互的效率。因此,优化网络架构,减少网络瓶颈,可以提高系统整体响应速度。 最后,应用程序设计对数据库性能的影响也不可忽视。...
### Oracle数据库性能优化浅析 #### 一、引言 SQL作为数据库查询语言,其编写质量直接影响着数据库系统的整体性能。对于Oracle数据库而言,优化SQL查询不仅能够提高查询效率,还能减少系统资源消耗,进而提升整个...
例如,CPU、内存、磁盘I/O和网络带宽等硬件资源的合理配置,对于提升数据库性能同样至关重要。 除了上述提到的技术手段,SQL语句的优化也是提升Oracle数据库性能的关键。据统计,80%以上的以数据库为中心的应用程序...
磁盘I/O性能的高低直接影响着数据库的操作效率。合理地分配数据文件和事务日志文件的位置,可以有效地减少磁盘之间的竞争,从而提升系统的响应速度。一些专业的工具和方法可以帮助DBA识别出性能瓶颈并作出相应调整。...
Oracle数据库性能优化是一个系统性的工程,涉及到数据库的多个核心组件,包括系统全局区域(SGA)、共享池、数据缓冲区高速缓存、重做日志缓冲区、PGA(程序全局区域)以及磁盘I/O等多个方面。下面将根据提供的文件...
此外,监控数据库的性能指标,如CPU使用率、I/O延迟、内存使用等,也是优化过程中的重要环节。通过对这些指标的分析,可以发现性能瓶颈并采取相应的措施。 在应用程序层面,还可以考虑使用存储过程、绑定变量、预...
如果一个数据行位于同一数据块内,那么访问此行不会影响I/O性能,因为访问此行不会带来额外的I/O开销。无论链接或非链接的行片段,都包含一个行头,及此行部分或全部的数据。一行内某一列的数据也有可能跨多个行片段...
### Oracle基本数据类型存储格式浅析 —— 字符类型 #### 概述 在Oracle数据库中,字符类型是非常常见的数据类型之一,它主要用于存储文本信息。本文将详细探讨Oracle数据库中几种基本字符类型的存储格式,包括`...
Oracle不断发展,如1984年将关系型数据库引入桌面系统,1992年的Oracle7引入了多线索服务器结构,1997年的Oracle8实现了对象关系数据库管理,以及现在的Oracle 10g,它专为网格计算设计,集成了多种管理和性能增强...
如果行的所有数据都在同一数据块内,那么访问该行不会有额外的I/O开销,对性能的影响较小。 总结来说,Oracle中表数据的存储涉及到数据块、数据段、行片段等多个层次,通过PCTFREE和PCTUSED参数实现空间管理,确保...
Data Buffer Cache用于存储Data Block,减少磁盘I/O,提高数据访问速度。Shared Pool存放缓存的SQL语句、执行计划和数据字典,优化SQL执行效率。Java Pool存储Java对象,Large Pool处理大块内存需求,如并行执行和...
- **Data Buffer Cache**: 存储数据Block,用于减少I/O操作,提高性能。优化Data Buffer Cache的命中率能有效提升系统性能。 - **Shared Pool**: 缓存SQL语句、执行计划和数据字典视图,确保SQL执行的高效性和一致...
- 减少磁盘I/O操作次数,提高性能。 - 简化数据库管理任务,如备份、恢复等。 **缺点**: - 文件越大,单个文件损坏时的数据损失风险越大。 - 大文件可能导致备份和恢复时间延长。 - 某些旧版工具和技术可能不支持...
正确配置存储层次和使用高性能的存储解决方案可以提高I/O性能。 8. **频繁的数据库连接操作**:在传统的C/S架构中,频繁的数据库连接和断开会增加额外的开销。使用连接池或者持久化连接可以缓解这个问题。 9. **...
这有助于减少磁盘I/O,因为不必立即清除旧版本的数据。 然而,当一个数据块中的旧版本数据长时间未被清理,可能会占用大量存储空间,特别是在回滚段的undo表空间中。这不仅会导致undo表空间利用率接近100%,而且还...
这种方法比INDEX FULL SCAN更快,因为它避免了额外的I/O操作。 在实际应用中,理解这些索引访问方法可以帮助DBA和开发人员编写更高效的SQL语句,合理利用索引,提高数据库性能。同时,定期更新统计信息以确保CBO...