oracle 裸设备 块设备,【Oracle】裸设备和块设备的区别

raw device 与 block device有什么区别呢?

以下内容引自 401132.1 文档 •What is a raw device? Raw device are character devices...

[@more@]

•What is a raw device? Raw device are character devices which allows byte level access to the device. Character devices (/dev/raw/raw9) are *UN-BUFFERRED** devices. This means that there is not need to pass attributes like O_DIRECT when accessing character devices since all I/O is unbufferred IO.

•What is block device? Block devices provide block level access to the device. Block devices unlike character devices (/dev/sde9) are **BUFFERED** devices. This means the application program has to explicitly pass the O_DIRECT attribute to turn off caching. If the O_DIRECT attribute is not passed, I/O will be cached (linux buffer cache).

•How are raw devices created?  On linux, raw devices have to be created before it can be used. This is done by mapping the block device to the raw device by adding an entry in the /etc/sysconfig/rawdevices file and bind the mapping. Detailed instructions are in the Oracle installation guide.

•So which one (RAW or Block) is recommended? Oracle 10g supports both raw devices and block devices for OCR, Voting disk & Database files so it is really a matter of choice. Raw devices need to be manually created each time a new file needs to be added. There is no performance benefits of Raw devices versus Block devices or vice versa. It should be pointed out that Linux vendors are planning on removing raw devices from future linux distributions and hence for the long term, Customers may want to go with block devices.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值