1. Partition the disk
Fdisk-l view disk status
Fdisk/dev/SDB partitioning
2. Configure bare devices (modify the/etc/udev/rules. d/60-raw.rules file)
In redhat5
1) Load bare Devices
Action = "add", kernel = "/dev/sdb1", run + = "/bin/raw/dev/raw/raw1% N"-accumulate multiple times
2) Set raw device users and permissions
Action = "add", kernel = "Raw [1-4]", owner = "oracle", group = "dba", mode = "660 ″
3) restart the service
Start_udev
4) view raw Devices
Ls-LRT/dev/raw or raw-AQ
In redhat4
1) edit/etc/sysconfig/rawdevices
VI/etc/sysconfig/rawdevices
/Dev/raw/raw31/dev/sdc5
/Dev/raw/raw32/dev/sdc6
/Dev/raw/raw33/dev/sdc7
/Dev/raw/raw34/dev/sdc8
2) perform the binding operation
/Sbin/service rawdevices restart
3) Set permissions
Add in VI/etc/rc. Local
Chown ORACLE: DBA/dev/raw/raw31
Chown ORACLE: DBA/dev/raw/raw32
Chown ORACLE: DBA/dev/raw/raw33
Chown ORACLE: DBA/dev/raw/raw34
Chmod 775/dev/raw/raw31
Chmod 775/dev/raw/raw32.
Chmod 775/dev/raw/raw32.
Chmod 775/dev/raw/raw34
3. Use in Oracle
1) tablespace
Create tablespace raw1 datafile '/dev/raw/raw31' size 450 m;
2) Online logs
Alter database add logfile Group 4 ('/dev/raw/raw32') size 100 m;
3) undo Space
Create undo tablespace undo2 datafile '/dev/raw/raw33' size 100 m reuse;
4. Considerations
1) One bare device can only store one Oracle File
2) The Oracle file size is slightly smaller than the bare device size.
From: http://www.xifenfei.com/611.html
RedHat 4 Modify permissions:
VI/etc/udev/permissions. d/50-udev.permissions
# Raw Devices
Ram *: Root: Disk: 0660
# Raw/*: Root: Disk: 0660
Raw/*: oracle: DBA: 0660