Chinaunix首页 | 论坛 | 博客
  • 博客访问: 173567
  • 博文数量: 33
  • 博客积分: 1411
  • 博客等级: 上尉
  • 技术积分: 342
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-04 13:04
文章存档

2008年(33)

我的朋友

分类:

2008-09-04 14:08:01

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

阅读(1013) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~