ITPub博客

首页 > 数据库 > Oracle > REDHAT5.6+ORACLE11GR2 RAC+PCSERVER+DS8100存储安装日志(7)

REDHAT5.6+ORACLE11GR2 RAC+PCSERVER+DS8100存储安装日志(7)

原创 Oracle 作者:djb1008 时间:2012-10-09 16:05:34 0 删除 编辑

1 安装ORACLE DB 软件

1.1 使用oracle用户安装oracle db软件,首先配置oracle用户的ssh信任关系

这里的ssh配置与grid用户ssh配置步骤相同,不再累述.

安装DB软件

$./runInstaller

[@more@]

1 DBCA创建RAC数据库

1.1 规划和创建asm磁盘

[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

1.2 数据磁盘,不化分区,直接交给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]#

Grid用户身份运行asmca,创建ASM数据卷

然后使用dbca工具进行数据库的创建.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/32980/viewspace-1059553/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2010-07-27

  • 博文量
    175
  • 访问量
    695728