免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2598 | 回复: 0
打印 上一主题 下一主题

配置数据库异步I/O参数 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-09-04 14:08 |只看该作者 |倒序浏览

配置数据库异步I/O参数
调整前收集某一时段或某一类业务时段的服务器性能状态便于同调整后进行比较:
Sar –b 10 360 (按1小时统计)
Sar –d 10 360 (按1小时统计)
Sar –u 10 360 (按1小时统计)
Sar –w 10 360 (按1小时统计)
数据库信息收集:
做Statspack统计磁盘读写命中率、IO等情况。
数据库迁移过程中调整以下参数:
1、调整HPUX_SCHED_NOAGE参数:
Touch /etc/privgroup
Vi /etc/privgroup
添加一行:
dba RTSCHED RTPRIO MLOCK
修改$ORACLE_HOME/dbs/initxxreport.ora
HPUX_SCHED_NOAGE=178
2 、开启异步IO
# sam
Choose the Kernel Configuration area.
Choose the Drivers area.
Choose the asynchronous disk driver (asyncdsk).
Select Actions>Add Driver to Kernel.
Select List>Configurable Parameters.
Choose the MAX_ASYNC_PORTS parameter.
Select Action>Modify Configurable Parameter.
Specify a new value for the parameter, then choose OK.
异步IO MAX_ASYNC_PORTS设置为:(一般,此值可以不调整)
Set this parameter to the sum of 'processes' from initxxreport.ora + 64
修改完成重启后,建设备文件:
# /sbin/mknod /dev/async c 101 0x0
# 修改权限为oracle:dba:
# chown oracle:dba /dev/async
# /usr/bin/chmod 660 /dev/async
# ls -l /dev/async
Crw-rw--- 1 oracle dba 101 0x000000 Oct 28 10:32 /dev/async
检查异步开启的方法: 数据库启动后,fuser /dev/async 检查数据库用户是否打开使用。


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/78315/showart_1164276.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP