Configure raw in RedHat and use it in Oracle

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.