ORACLE 10g创建单实例 ASM

1、启动CSS服务

bash-3.2# /export/home/oracle/app/ora10g/product/10gr2/bin/localconfig add

2、创建初始化实例文件

[oracle@Solarisora10g ~/app/ora10g/product/10gr2/dbs 12:33:48]$cat asmpfile.ora

instance_type=asm

processes=100

3、修改磁盘临时归属

[root@localhost dev]# ll /dev/sd*

brw-r----- 1 root disk 8, 0 09-20 09:28 /dev/sda

brw-r----- 1 root disk 8, 1 09-20 09:29 /dev/sda1

brw-r----- 1 root disk 8, 2 09-20 09:28 /dev/sda2

brw-r----- 1 root disk 8, 3 09-20 09:29 /dev/sda3

brw-r----- 1 oracle oinstall 8, 16 09-20 09:28 /dev/sdb

brw-r----- 1 oracle oinstall 8, 32 09-20 09:28 /dev/sdc

brw-r----- 1 oracle oinstall 8, 48 09-20 09:28 /dev/sdd

brw-r----- 1 oracle oinstall 8, 64 09-20 09:28 /dev/sde

brw-r----- 1 oracle oinstall 8, 80 09-20 09:28 /dev/sdf

4、修改磁盘永久归属

root@localhost ~]# cd /dev/disk/by-id/

[root@localhost by-id]# ll

总计 0

lrwxrwxrwx 1 root root 9 09-21 10:08 scsi-SATA_VBOX_HARDDISK_VB0000af62-dccaad4e -> ../../sda

lrwxrwxrwx 1 root root 10 09-21 10:08 scsi-SATA_VBOX_HARDDISK_VB0000af62-dccaad4e-part1 -> ../../sda1

lrwxrwxrwx 1 root root 10 09-21 10:08 scsi-SATA_VBOX_HARDDISK_VB0000af62-dccaad4e-part2 -> ../../sda2

lrwxrwxrwx 1 root root 10 09-21 10:08 scsi-SATA_VBOX_HARDDISK_VB0000af62-dccaad4e-part3 -> ../../sda3

lrwxrwxrwx 1 root root 9 09-21 10:08 scsi-SATA_VBOX_HARDDISK_VB1b9a7262-2935ca32 -> ../../sdc

lrwxrwxrwx 1 root root 9 09-21 10:08 scsi-SATA_VBOX_HARDDISK_VB28964494-77102e5f -> ../../sdb

lrwxrwxrwx 1 root root 9 09-21 10:08 scsi-SATA_VBOX_HARDDISK_VB40f9ab9c-3c85ccbd -> ../../sde

lrwxrwxrwx 1 root root 9 09-21 10:08 scsi-SATA_VBOX_HARDDISK_VB5fbccb0f-8346180f -> ../../sdd

lrwxrwxrwx 1 root root 9 09-21 10:08 scsi-SATA_VBOX_HARDDISK_VBf28664f8-5466eeb9 -> ../../sdf

[root@localhost udev]# cd /etc/udev/rules.d/

[root@localhost rules.d]# ls

05-udev-early.rules 51-hotplug.rules 60-pcmcia.rules 61-uinput-stddev.rules 88-clock.rules 90-hal.rules 99-oracle-asmdevices.rules

40-multipath.rules 60-libsane.rules 60-raw.rules 61-uinput-wacom.rules 90-alsa.rules 95-pam-console.rules bluetooth.rules

50-udev.rules 60-net.rules 60-wacom.rules 85-pcscd_ccid.rules 90-dm.rules 98-kexec.rules

[root@localhost rules.d]# cat 99-oracle-asmdevices.rules

KERNEL=="sd*",BUS=="scsi",ENV{ID_SERIAL}=="SATA_VBOX_HARDDISK_VB28964494-77102e5f", NAME="sdb", OWNER="oracle", GROUP="dba", MODE="0660"

KERNEL=="sd*",BUS=="scsi",ENV{ID_SERIAL}=="SATA_VBOX_HARDDISK_VB1b9a7262-2935ca32", NAME="sdc", OWNER="oracle", GROUP="dba", MODE="0660"

KERNEL=="sd*",BUS=="scsi",ENV{ID_SERIAL}=="SATA_VBOX_HARDDISK_VB5fbccb0f-8346180f", NAME="sdd", OWNER="oracle", GROUP="dba", MODE="0660"

KERNEL=="sd*",BUS=="scsi",ENV{ID_SERIAL}=="SATA_VBOX_HARDDISK_VB40f9ab9c-3c85ccbd", NAME="sde", OWNER="oracle", GROUP="dba", MODE="0660"

KERNEL=="sd*",BUS=="scsi",ENV{ID_SERIAL}=="SATA_VBOX_HARDDISK_VBf28664f8-5466eeb9", NAME="sdf", OWNER="oracle", GROUP="dba", MODE="0660"

[root@localhost rules.d]# start_udev restart

启动 udev: [确定]

 

5、修改asm_diskstring、asm_diskgroups、asm_power_limit参数

SQL> alter system set asm_diskstring='/dev/sd*';

SQL>CREATE DISKGROUP data EXTERNAL REDUNDANCY DISK '/dev/sdb';

SQL>alter system set asm_diskgroups='DATA';

你可能感兴趣的:(ORACLE 10g创建单实例 ASM)