Red Hat ENTERPRISE LINUX AS 2.1 - Instalační příručka Strana 45

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 160
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 44
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
Zobrazit stránku 44
1 2 ... 40 41 42 43 44 45 46 47 48 49 50 ... 159 160

Komentáře k této Příručce

Žádné komentáře