11 g rac 安裝 5,6步

tom_xieym發表於2011-08-05

五. 建立目錄
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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章