Install bare devices on centos5

Source: Internet
Author: User
Install the bare device-Linux Enterprise Application-Linux server application on centos5. For more information, see. After the centos5 device is installed, it is found that there is no bare device service, no file rawdevices, raw, and the bare device cannot be installed. Fortunately, there is another rhel4 server with these files, the process is:

1. Copy the/usr/bin/raw,/etc/sysconfig/rawdevice,/etc/init. d/rawdevices files on rhel4 to the corresponding centos5 directory. Pay attention to its permissions

2. Run the fdisk/dev/sda command to add a new partition, run the command w to save the partition, and then exit q.

3. Modify the/etc/sysconfig/rawdevice file and add the following:
/Dev/raw/raw1/dev/sdb6
/Dev/raw/raw2/dev/sdb7
/Dev/raw/raw3/dev/sdb8
/Dev/raw/raw4/dev/sdb9
/Dev/raw/raw5/dev/sdb10
/Dev/raw/raw6/dev/sdb11
/Dev/raw/raw7/dev/sdb12
/Dev/raw/raw8/dev/sdb13
/Dev/raw/raw9/dev/sdb14

4. Create the/dev/raw directory, mkdir-p/dev/raw

5. Enable the bare device service rawdevices start

6. Make the service automatically start. chkconfig -- add rawdevices; chkconfig -- level 0123456 rawdevices on

So far, the bare device has been created.

7. su-oracle

8. Create a link
Ln-s/dev/raw/raw1 $ DB_HOME/$ DB_NAME/system01.dbf
Ln-s/dev/raw/raw2 $ DB_HOME/$ DB_NAME/sysaux01.dbf
...
Ln-s/dev/raw/raw3 $ DB_HOME/$ DB_NAME/undo01.dbf
Ln-s/dev/raw/raw4 $ DB_HOME/$ DB_NAME/tmpdbs. dbf
Ln-s/dev/raw/raw5 $ DB_HOME/$ DB_NAME/control01.dbf

9. Create a database manually.

Author: topgtian

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.