Using Raw Devices for Oracle Databases
39
/dev/raw/raw100 /dev/sdz
13.3. Using Raw Devices for Oracle Databases
Many guides and documentations show instructions on using the devices in
/dev/raw/
for
configuring raw devices for data files. It is not recommend to use the raw devices in
/dev/raw/
for the following reason: When you configure raw devices for Oracle data files, you also have to
change ownership and permissions of the devices in
/dev/raw/
to allow Oracle to read and write
to these raw devices. But all device names in
/dev/raw/
are owned by the dev RPM. So when
the Linux systems administrator upgrades the
dev
RPM, which may happen as part of an operating
system update, then all device names in
/dev/raw/
will automatically be recreated. This means
that ownership and permissions must be set each time the dev RPM gets upgraded. Therefore it is
recommend to create all raw devices for Oracle datafiles in an Oracle data directory such as
/u02
.
For example, to create a new raw device for the system data file
system01.dbf
in
/u02/orcl/
,
execute the following command:
# mknod /u02/orcl/system01.dbf c 162 1
This command creates a new raw device called
/u02/orcl/system01.dbf
with minor number 1,
which is equivalent to the first raw device
/dev/raw/raw1
. The major number 162 designates the
device as a raw device. A major number always identifies the driver associated with the device.
To grant
oracle:dba
read and write permissions, execute:
# chown oracle.dba /u02/orcl/system01.dbf
# chown 660 /u02/orcl/system01.dbf
To bind this new raw device to the first partition of
/dev/sdb
, add the following line to the
/etc/
sysconfig/rawdevices
file:
/u02/orcl/system01.dbf /dev/sdb1
To activate the raw device, execute:
/etc/init.d/rawdevices start
Here is an example for creating raw devices for ASM:
# mknod /u02/oradata/asmdisks/disk01 c 162 1
# mknod /u02/oradata/asmdisks/disk02 c 162 2
# mknod /u02/oradata/asmdisks/disk03 c 162 3
# mknod /u02/oradata/asmdisks/disk03 c 162 4
# chown oracle.dba /u02/oradata/asmdisks/disk01
# chown oracle.dba /u02/oradata/asmdisks/disk02
# chown oracle.dba /u02/oradata/asmdisks/disk03
# chown oracle.dba /u02/oradata/asmdisks/disk04
# chmod 660 /u02/oradata/asmdisks/disk01
# chmod 660 /u02/oradata/asmdisks/disk02
# chmod 660 /u02/oradata/asmdisks/disk03
# chmod 660 /u02/oradata/asmdisks/disk04
Содержание CLUSTER SUITE FOR ENTERPRISE LINUX 5.1
Страница 7: ...Part I Tuning and Optimizing Red Hat Enterprise Linux for Oracle Database 9i and 10g ...
Страница 8: ......
Страница 10: ...4 ...
Страница 16: ...10 ...
Страница 28: ...22 ...
Страница 30: ...24 ...
Страница 36: ...30 ...
Страница 42: ...36 ...
Страница 54: ...48 ...
Страница 60: ...54 ...
Страница 68: ...62 ...
Страница 72: ...66 ...
Страница 88: ...82 ...
Страница 90: ...84 ...
Страница 92: ...86 ...
Страница 94: ...88 ...
Страница 98: ...92 ...
Страница 108: ...102 ...
Страница 112: ...106 ...
Страница 120: ...114 ...
Страница 122: ......
Страница 128: ...122 ...
Страница 132: ...126 ...
Страница 134: ...128 ...
Страница 142: ...136 ...
Страница 146: ...140 ...
Страница 156: ...150 ...
Страница 160: ...154 ...