ITPub博客

首页 > 数据库 > 数据库开发技术 > 配置数据库异步I/O参数

配置数据库异步I/O参数

原创 数据库开发技术 作者:sonsunny 时间:2008-08-20 13:41:39 0 删除 编辑

调整前收集某一时段或某一类业务时段的服务器性能状态便于同调整后进行比较:

Sar –b 10 360 (按1小时统计)

Sar –d 10 360 (按1小时统计)

Sar –u 10 360 (按1小时统计)

Sar –w 10 360 (按1小时统计)

数据库信息收集:

做Statspack统计磁盘读写命中率、IO等情况。

[@more@]

数据库迁移过程中调整以下参数:

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 检查数据库用户是否打开使用。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/15192459/viewspace-1009207/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 工作日志总结一
请登录后发表评论 登录
全部评论

注册时间:2008-08-25

  • 博文量
    18
  • 访问量
    25407