11 g rac 安裝 5,6步

本文详细介绍了Oracle 11g RAC安装配置过程中的关键步骤,包括创建目录结构、设置目录权限及创建磁盘分区等。特别针对ASM磁盘组的设计进行了说明。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

五. 創建目錄
5.1 創建目錄
[root@poland-rac01 ~]# mkdir -p /u01/product/grid/11.2.0(grid 軟件目錄)
[root@poland-rac01 ~]# mkdir -p /u01/product/grid/crs(grid Trace目錄)
[root@poland-rac01 ~]# mkdir -p /u01/product/oracle/11.2.0/db_1
注意:
11g 單實例如果需要使用ASM,grid也必須安裝,且ORACLE_HOME在ORACLE_BASE目錄之下,
11g RAC 則不同,ORACLE_HOME與ORACLE_BASE在目錄上不能存在父子關系.
5.2 修改目錄屬性
[root@poland-rac01 ~]# chown -R grid.oinstall /u01
[root@poland-rac01 ~]# chown -R oracle.oinstall /u01/product/oracle/
[root@poland-rac01 ~]# chmod -R 775 /u01/

六. 創建磁盤分區
6.1 磁盤分區設計
為Oracle ASM 准備一組原始磁盤﹐如下﹕
physical logical
diskgroup_number RAID_type LVM_number disk_lable disk_group size redundancy function
1 RAID10 4 DATAV1 DATA About 1400G external data
   DATAV2   
   INDXV1 INDX About 1400G external index
   INDXV2   
6.2 創建磁盤分區
在wmrac01上﹐以root用戶身份執行
[root@wmrac01 ~]# cd /dev/mapper/
[root@wmrac01 mapper]# ll
total 0
crw------- 1 root root  10, 63 Feb 23 14:43 control
brw-rw---- 1 root disk 253,  0 Feb 23 14:44 data_v01
brw-rw---- 1 root disk 253,  1 Feb 23 14:44 data_v02
brw-rw---- 1 root disk 253,  2 Feb 23 14:44 indx_v01
brw-rw---- 1 root disk 253,  3 Feb 23 14:44 indx_v02
[root@wmrac01 mapper]# fdisk data_v01
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
The number of cylinders for this disk is set to 91379.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-91379, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-91379, default 91379):
Using default value 91379
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
[root@wmrac01 mapper]# fdisk data_v02
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
The number of cylinders for this disk is set to 91379.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-91379, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-91379, default 91379):
Using default value 91379
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
[root@wmrac01 mapper]# fdisk indx_v01
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
The number of cylinders for this disk is set to 91379.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-91379, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-91379, default 91379):
Using default value 91379
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
[root@wmrac01 mapper]# fdisk indx_v02
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
The number of cylinders for this disk is set to 91379.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-91379, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-91379, default 91379):
Using default value 91379
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.

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

转载于:http://blog.itpub.net/25850100/viewspace-704180/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值