REDHAT5.6+ORACLE11GR2 RAC+PCSERVER+DS8100儲存安裝日誌(7)

djb1008發表於2012-10-09

軟體

使用者安裝oracle db軟體,首先配置oracle使用者的ssh信任關係

這裡的ssh配置與grid使用者ssh配置步驟相同,不再累述.

安裝DB軟體

$./runInstaller

[@more@]

建立RAC資料庫

磁碟

[root@dnlgl1 mapper]# ls -lt

total 0

brw-rw---- 1 root disk 253, 19 Aug 13 11:35 ds8100_ocr_2p1

brw-rw---- 1 root disk 253, 21 Aug 13 09:43 ds8100_flash_1p1

brw-rw---- 1 root disk 253, 8 Aug 13 09:42 ds8100_flash_1

brw-rw---- 1 root disk 253, 20 Aug 13 09:37 ds8100_ocr_1p1

brw-rw---- 1 root disk 253, 0 Aug 13 09:23 VolGroup00-LogVol00

brw-rw---- 1 root disk 253, 9 Aug 13 09:23 ds8100_data_01

brw-rw---- 1 root disk 253, 10 Aug 13 09:23 ds8100_data_02

brw-rw---- 1 root disk 253, 11 Aug 13 09:23 ds8100_data_03

brw-rw---- 1 root disk 253, 12 Aug 13 09:23 ds8100_data_04

brw-rw---- 1 root disk 253, 13 Aug 13 09:23 ds8100_data_05

brw-rw---- 1 root disk 253, 16 Aug 13 09:23 ds8100_data_06

brw-rw---- 1 root disk 253, 17 Aug 13 09:23 ds8100_data_07

brw-rw---- 1 root disk 253, 18 Aug 13 09:23 ds8100_data_08

brw-rw---- 1 root disk 253, 5 Aug 13 09:23 ds8100_data_09

brw-rw---- 1 root disk 253, 6 Aug 13 09:23 ds8100_data_10

brw-rw---- 1 root disk 253, 15 Aug 13 09:23 ds8100_flash_2

brw-rw---- 1 root disk 253, 7 Aug 13 09:23 ds8100_ocr_1

brw-rw---- 1 root disk 253, 14 Aug 13 09:23 ds8100_ocr_2

brw-rw---- 1 root disk 253, 4 Aug 13 09:23 VolGroup00-archivelog

brw-rw---- 1 root disk 253, 3 Aug 13 09:23 VolGroup00-lv_grid

brw-rw---- 1 root disk 253, 2 Aug 13 09:23 VolGroup00-lv_oracle

brw-rw---- 1 root disk 253, 1 Aug 13 09:23 VolGroup00-LogVol01

crw------- 1 root root 10, 63 Aug 13 09:23 control

[root@dnlgl1 mapper]# /etc/rc.d/init.d/oracleasm createdisk FLASH1 /dev/mapper/ds8100_flash_2

Marking disk "FLASH1" as an ASM disk: [ OK ]

[root@dnlgl1 mapper]# cd /dev/oracleasm/disk

-bash: cd: /dev/oracleasm/disk: No such file or directory

[root@dnlgl1 mapper]# cd /dev/oracleasm/disks

[root@dnlgl1 disks]# ls

FLASH1 OCRVG OCRVG2

[root@dnlgl1 disks]# ls -lt

total 0

brw-rw---- 1 grid asmadmin 253, 20 Aug 13 15:49 OCRVG

brw-rw---- 1 grid asmadmin 253, 15 Aug 13 15:49 FLASH1

brw-rw---- 1 grid asmadmin 253, 19 Aug 13 15:35 OCRVG2

不化分割槽,直接交給asm使用

/etc/rc.d/init.d/oracleasm createdisk FLASH_2 /dev/mapper/ds8100_flash_2

/etc/rc.d/init.d/oracleasm createdisk FLASH_1 /dev/mapper/ds8100_flash_1

/etc/rc.d/init.d/oracleasm createdisk DATA_01 /dev/mapper/ds8100_data_01

/etc/rc.d/init.d/oracleasm createdisk DATA_02 /dev/mapper/ds8100_data_02

/etc/rc.d/init.d/oracleasm createdisk DATA_03 /dev/mapper/ds8100_data_03

/etc/rc.d/init.d/oracleasm createdisk DATA_04 /dev/mapper/ds8100_data_04

/etc/rc.d/init.d/oracleasm createdisk DATA_05 /dev/mapper/ds8100_data_05

/etc/rc.d/init.d/oracleasm createdisk DATA_06 /dev/mapper/ds8100_data_06

/etc/rc.d/init.d/oracleasm createdisk DATA_07 /dev/mapper/ds8100_data_07

/etc/rc.d/init.d/oracleasm createdisk DATA_08 /dev/mapper/ds8100_data_08

/etc/rc.d/init.d/oracleasm createdisk DATA_09 /dev/mapper/ds8100_data_09

/etc/rc.d/init.d/oracleasm createdisk DATA_10 /dev/mapper/ds8100_data_10

[root@dnlgl2 .ssh]# /etc/rc.d/init.d/oracleasm listdisks

DATA_01

DATA_02

DATA_03

DATA_04

DATA_05

DATA_06

DATA_07

DATA_08

DATA_09

DATA_10

FLASH_2

OCRVG

OCRVG2

[root@dnlgl2 .ssh]# cd /dev/oracleasm/disks

[root@dnlgl2 disks]# ls

DATA_01 DATA_02 DATA_03 DATA_04 DATA_05 DATA_06 DATA_07 DATA_08 DATA_09 DATA_10 FLASH_2 OCRVG OCRVG2

[root@dnlgl2 disks]# ls -lt

total 0

brw-rw---- 1 grid asmadmin 253, 21 Aug 13 16:31 OCRVG

brw-rw---- 1 grid asmadmin 253, 18 Aug 13 16:31 DATA_07

brw-rw---- 1 grid asmadmin 253, 17 Aug 13 16:31 DATA_06

brw-rw---- 1 grid asmadmin 253, 16 Aug 13 16:31 FLASH_2

brw-rw---- 1 grid asmadmin 253, 14 Aug 13 16:31 DATA_05

brw-rw---- 1 grid asmadmin 253, 13 Aug 13 16:31 DATA_04

brw-rw---- 1 grid asmadmin 253, 12 Aug 13 16:31 DATA_03

brw-rw---- 1 grid asmadmin 253, 11 Aug 13 16:31 DATA_02

brw-rw---- 1 grid asmadmin 253, 10 Aug 13 16:31 DATA_01

brw-rw---- 1 grid asmadmin 253, 7 Aug 13 16:31 DATA_10

brw-rw---- 1 grid asmadmin 253, 6 Aug 13 16:31 DATA_09

brw-rw---- 1 grid asmadmin 253, 5 Aug 13 16:31 DATA_08

brw-rw---- 1 grid asmadmin 253, 20 Aug 13 15:33 OCRVG2

[root@dnlgl2 disks]#

然後使用dbca工具進行資料庫的建立.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/32980/viewspace-1059553/,如需轉載,請註明出處,否則將追究法律責任。

相關文章