Get the App
SLTechnology News&Howtos  ›  Database  › 

RAW creation of ORACLE under linux

Shulou Source: shulou.com Published: 2022-06-01 09:03:01 10月04日 Update

1. Disk partition, create 13 partitions, corresponding to ORACLE13 files

Fdisk / dev/sdc

two。 Edit the 60.raw_ rules file

# vi / etc/udev/rules.d/60-raw.rules

ACTION== "add", KERNEL== "sdc1", RUN+= "/ bin/raw / dev/raw/raw1 N"

ACTION== "add", KERNEL== "sdc2", RUN+= "/ bin/raw / dev/raw/raw2 N"

ACTION== "add", KERNEL== "sdc3", RUN+= "/ bin/raw / dev/raw/raw3 N"

ACTION== "add", KERNEL== "sdc5", RUN+= "/ bin/raw / dev/raw/raw5 N"

ACTION== "add", KERNEL== "sdc6", RUN+= "/ bin/raw / dev/raw/raw6 N"

ACTION== "add", KERNEL== "sdc7", RUN+= "/ bin/raw / dev/raw/raw7 N"

ACTION== "add", KERNEL== "sdc8", RUN+= "/ bin/raw / dev/raw/raw8 N"

ACTION== "add", KERNEL== "sdc9", RUN+= "/ bin/raw / dev/raw/raw9 N"

ACTION== "add", KERNEL== "sdc10", RUN+= "/ bin/raw / dev/raw/raw10 N"

ACTION== "add", KERNEL== "sdc11", RUN+= "/ bin/raw / dev/raw/raw11 N"

ACTION== "add", KERNEL== "sdc12", RUN+= "/ bin/raw / dev/raw/raw12 N"

ACTION== "add", KERNEL== "sdc13", RUN+= "/ bin/raw / dev/raw/raw13 N"

KERNEL== "raw*", OWNER== "oracle", GROUP== "oinstall", MODE== "660th" / / modify ownership, group, and access permissions

3. Execute build command

# start_udev

# raw-qa / / View the created RAW

4. Modify permissions (if it is already included in step 2, you don't have to do it)

# chmod 660 / dev/raw/raw*

# chown oracle:dba / dev/raw/raw*

5. Write an ORACLE mapping RAW file so that you can specify directly when building the library

# vi mapping.txt

System=/dev/raw/raw1

Sysaux=/dev/raw/raw2

Undotbs1=/dev/raw/raw3

Temp=/dev/raw/raw5

Users=/dev/raw/raw6

Redo1_1=/dev/raw/raw7

Redo1_2=/dev/raw/raw8

Redo1_3=/dev/raw/raw9

Control1=/dev/raw/raw10

Control2=/dev/raw/raw11

Control3=/dev/raw/raw12

Spfile=/dev/raw/raw13

Tags: Files permissions commands disks generation Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker vpn MySQL macOS Huawei