- 最后登录
- 2018-9-14
- 在线时间
- 103 小时
- 威望
- 0
- 金钱
- 1829
- 注册时间
- 2012-12-17
- 阅读权限
- 10
- 帖子
- 139
- 精华
- 1
- 积分
- 0
- UID
- 820
|
4#
发表于 2013-4-28 19:15:23
本帖最后由 lory 于 2013-4-28 19:18 编辑
Maclean Liu(刘相兵 发表于 2013-4-28 16:55
你为什么要调优log_buffer?
因为要从9i升级到10g,现在9i设定的是log_buffer=2m
不知道10g上是否需要修改。我尝试了设置成2m在10g,但是查了mos,发现这个是不能改不了2m,instance开起来自己就默认成了14m。
然后又查到资料说10m就可以了,大了也不好。所以有点理解上有点混乱了,不知道咋个设定了
这个是9i的stats 报告现在环境的wait event里面有log file sync
- Instance Efficiency Percentages (Target 100%)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Buffer Nowait %: 100.00 Redo NoWait %: 100.00
- Buffer Hit %: 99.23 In-memory Sort %: 100.00
- Library Hit %: 99.99 Soft Parse %: 99.96
- Execute to Parse %: 62.08 Latch Hit %: 99.95
- Parse CPU to Parse Elapsd %: 55.79 % Non-Parse CPU: 97.43
- Shared Pool Statistics Begin End
- ------ ------
- Memory Usage %: 94.16 76.07
- % SQL with executions>1: 48.26 59.07
- % Memory for SQL w/exec>1: 49.97 59.78
- Top 5 Timed Events
- ~~~~~~~~~~~~~~~~~~ % Total
- Event Waits Time (s) Ela Time
- -------------------------------------------- ------------ ----------- --------
- CPU time 1,343 44.66
- db file sequential read 395,998 988 32.86
- SQL*Net message from dblink 6,944 464 15.44
- db file scattered read 112,355 117 3.90
- log file sync 80,871 52 1.71
- -------------------------------------------------------------
- Wait Events for DB: SFCDB Instance: sfcdb Snaps: 47270 -47271
- -> s - second
- -> cs - centisecond - 100th of a second
- -> ms - millisecond - 1000th of a second
- -> us - microsecond - 1000000th of a second
- -> ordered by wait time desc, waits desc (idle events last)
- Avg
- Total Wait wait Waits
- Event Waits Timeouts Time (s) (ms) /txn
- ---------------------------- ------------ ---------- ---------- ------ --------
- db file sequential read 395,998 0 988 2 4.2
- SQL*Net message from dblink 6,944 0 464 67 0.1
- db file scattered read 112,355 0 117 1 1.2
- log file sync 80,871 0 52 1 0.9
- log file parallel write 92,729 91,167 14 0 1.0
- enqueue 320 0 8 24 0.0
- log file sequential read 1,362 0 7 5 0.0
- buffer busy waits 2,620 0 5 2 0.0
- SQL*Net more data to client 44,948 0 4 0 0.5
- latch free 2,578 232 1 0 0.0
- db file parallel write 971 0 1 1 0.0
- control file sequential read 1,048 0 1 1 0.0
- control file parallel write 659 0 1 1 0.0
- SQL*Net more data from dblin 53 0 0 8 0.0
- log file switch completion 15 0 0 16 0.0
- db file parallel read 20 0 0 7 0.0
- direct path read 658 0 0 0 0.0
- LGWR wait for redo copy 557 1 0 0 0.0
- async disk IO 684 0 0 0 0.0
- SQL*Net break/reset to clien 36 0 0 0 0.0
- SQL*Net message to dblink 6,944 0 0 0 0.1
- direct path write 164 0 0 0 0.0
- log file single write 12 0 0 0 0.0
- db file single write 4 0 0 0 0.0
- undo segment extension 63 63 0 0 0.0
- buffer deadlock 4 4 0 0 0.0
- SQL*Net message from client 2,544,935 0 180,338 71 27.0
- virtual circuit status 1,276,952 2,592 88,209 69 13.6
- jobq slave wait 2,062 1,967 6,248 3030 0.0
- wakeup time manager 56 56 1,721 30732 0.0
- SQL*Net message to client 2,544,933 0 3 0 27.0
- SQL*Net more data from clien 14,328 0 2 0 0.2
- -------------------------------------------------------------
- Background Wait Events for DB: SFCDB Instance: sfcdb Snaps: 47270 -47271
- -> ordered by wait time desc, waits desc (idle events last)
- Avg
- Total Wait wait Waits
- Event Waits Timeouts Time (s) (ms) /txn
- ---------------------------- ------------ ---------- ---------- ------ --------
- log file parallel write 92,764 91,194 14 0 1.0
- log file sequential read 1,447 0 7 5 0.0
- db file parallel write 972 0 1 1 0.0
- control file parallel write 660 0 1 1 0.0
- control file sequential read 366 0 1 1 0.0
- db file scattered read 41 0 0 5 0.0
- db file sequential read 93 0 0 2 0.0
- rdbms ipc reply 6 0 0 11 0.0
- direct path read 232 0 0 0 0.0
- LGWR wait for redo copy 558 1 0 0 0.0
- async disk IO 726 0 0 0 0.0
- direct path write 160 0 0 0 0.0
- log file single write 12 0 0 0 0.0
- db file single write 4 0 0 0 0.0
- latch free 2 0 0 0 0.0
- buffer busy waits 2 0 0 0 0.0
- rdbms ipc message 265,201 166,925 11,049 42 2.8
- smon timer 12 5 2,032 ###### 0.0
- pmon timer 807 807 1,803 2234 0.0
- -------------------------------------------------------------
复制代码 |
|