Raw Devices and Oracle - 20 Common Questions and Answers

2016-01-29 14:49 3 1 收藏

Raw Devices and Oracle - 20 Common Questions and Answers,Raw Devices and Oracle - 20 Common Questions and Answers

【 tulaoshi.com - Oracle教程 】

1. What is a raw device?

(本文来源于图老师网站,更多请访问https://www.tulaoshi.com)

   A raw device, also known as a raw partition, is a disk partition that is

   not mounted and written to via the UNIX filesystem, but is accessed via

   a character-special device driver. It is up to the application how the

   data is written since there is no filesystem to do this on the

   applications behalf.

2. How can a raw device be recognised?

   In the /dev directory, there are essentially two type of files: block

   special and character special. Block special files are used when data is

   transferred to or from a device in fixed size amounts (blocks), whereas 

   character special files are used when data is transferred in varying 

(本文来源于图老师网站,更多请访问https://www.tulaoshi.com)

   size amounts. Raw devices use character special files; a long listing

   of the /dev directory shows them with a c at the leftmost position of

   the permissions field, e.g.

   crw-rw-rw-   1 root     system    15,  0 Mar 12 09:45 rfd0

   In addition, character special files usually have names beginning with 

   an r, as shown in the above example. Some devices, principally disks,

   have both a block special device and a character special device

   associated with them; for the floppy diskette shown above, there is also

   a device

   brw-rw-rw-   1 root     system    15,  0 Apr 16 15:42 /dev/fd0

   So the presence of a c in a device does NOT necessarily mean this is a

   raw device suitable for use by Oracle (or another application).

   Generally, a raw device needs to be created and set aside for Oracle (or

   whatever application is going to use it) when the UNIX system is set

   up - therefore, this needs to be done with close cooperation between

   the DBA and UNIX system administrator.

   Once a raw device is in use by Oracle, it must be owned by the oracle

   account, and may be identified in this way.

3. What are the benefits of raw devices?

   There can be a performance benefit from using raw devices, since a write

   to a raw device bypasses the UNIX buffer cache, the data is transferred

   directly from the Oracle buffer cache to the disk. This is not guaranteed,

   though. If there is no I/O bottleneck, raw devices will not help. The

   performance benefit if there is a bottleneck can vary between a few

   percent to something like 40%. Note that the overall amount of I/O is

   not reduced; it is just done more efficiently.

   Another lesser benefit of raw devices is that no filesystem overhead

   is incurred in terms of inode allocation and maintenance or free block

   allocation and maintenance. 

4. How can I tell if I will benefit from using raw devices?

   There are two distinct parts to this: first, the Oracle database and

   application should be examined and tuned as necessary, using one or both

   of the following:

   -UTLBstat and UTLestat utilities (in $ORACLE_HOME/rdbms/admin)

   There are several strategies for improving performance with an existing

来源:https://www.tulaoshi.com/n/20160129/1494329.html

延伸阅读
拍照为何要RAW档储存?   仔细注意现今的相机潮流,不管是否为专业摄影师,还是单纯只想要纪录生活,走在街头可以发现大家手上的相机等级愈来愈专业。虽然人人称它们为「 高阶 DC 」或微单反,但为何拍出来的照片画质成像,似乎没有大家说的那么好?检查一下你的照片档案的储存格式,是不是Raw档呢?后面告诉你Raw档的妙用及各家解Raw...
《辐射3》g.o.a.t questions完全修正翻译 会员:ZAKU (原创撰写) 游戏我今天才正式开始的,所以可能晚了些,随手翻译了一下,这些问题翻译以后作用就很显而易见了,不过这些问题也无所谓,虽然系统会根据你选择的问题来决定你初始的三个技能,但是最后你仍然可以自行修改,翻译只是为了让大家了解问题的意思,也算是体会辐射里的真实内容。...
标签: Web开发
如需转载,请注明出处,谢谢! 以8.1.7.4.0为例说明: 8:版本号 1:新特性版本号 7:维护版本号 4:普通的补丁设置号码 0:特殊的平台补丁设置号码 另外有关Oracle是32bit/64bit的问题,说明如下: 在windows/linux系统中由于操作系统是32bit的,所以oracle肯定是32bit的; 在tru64中oracle肯定是64bit的; 在hpux/aix/solaris中要看具体情况了,...
RAW格式打造黑白媚态人像 去彩色的浮华,黑白的图像更让人认真地去品味,反复地观察。 脱离了色彩之后,人物个性的表现需要拍摄者通过自己的智慧和经验,通过敏锐的洞察力控制按下快门的一刹那,用自己的镜头来诠释这种感觉。低调照片能给人肃穆、忧郁、含蓄、稳重之类的感觉,在表现魅态时更适合使用。 选择黑白 保留色彩感...
拍RAW格式的疑惑解析   回想笔者当初初接触数码摄影时,对RAW档存在很多疑问,后来透过书本、网络及个人经验才渐渐明白它为何物。 以下我列出数个我还是新手时,希望有人能即时解答的几个疑问︰ 我拍JPG时照片是没问题的,但转拍RAW后,无论颜色、对比等等都一榻糊涂,比手机拍的更不堪,不是说拍RAW才是王道吗? RAW...