ASM磁盘组创建Grid Infrastructure 12安装图解(二)

来源:互联网 发布:家乡汕头 知乎 编辑:程序博客网 时间:2024/04/30 02:19

装ASM和grid Infrastructure 12C

相关软件的信息如下

名称

版本号

RedHat 

rhel-server-6.7-x86_64-dvd

Oracle VM VirtualBox

5.0.2

Grid Infrastructure

12.1.0.2


使用oracle用户安装grid Infrastructure 网格基础设施

创建;三个组asmadmin 和asmoper并将oracle用户加入这三个组,加完以后需要注销下主机

[root@12C ~]# groupadd asmoper
[root@12C ~]# groupadd asmadmin
[root@12C ~]# groupadd asmdba

[root@12C ~]# usermod -a -G asmoper oracle[root@12C ~]# usermod -a -G asmadmin oracle
[root@12C ~]# usermod -a -G asmdba oracle
注销下,看下是否添加成功,切换主组为oinstall组否则在检查时会报错,组ID错误

[oracle@12C 桌面]$ groupsdba oinstall oper asmadmin asmoper asmdba
[oracle@12C 桌面]$ newgrp oinstall

安装开始,首先选择仅安装GI软件


选择语言,选择您需要的语言


这里会默认刚刚创建的三个组即可,如果没有创建一般会有警告,可以根据需要自己决定是否需要创建


定义一下安装目录


先决条件检查会有一些失败和警告,点击修复并再次检查


使用sudo或者root 执行修复脚本

[oracle@12C 桌面]$ sudo /tmp/CVU_12.1.0.2.0_oracle/runfixup.sh [sudo] password for oracle: All Fix-up operations were completed successfully.[oracle@12C 桌面]$ 

物理内存警告可以忽略,网络时间NTP我没有配置这里也可以忽略


然后就是安装


执行root脚本


[oracle@12C 桌面]$ sudo /u01/app/12.1.0/grid/root.sh [sudo] password for oracle: Performing root user operation.The following environment variables are set as:    ORACLE_OWNER= oracle    ORACLE_HOME=  /u01/app/12.1.0/gridEnter the full pathname of the local bin directory: [/usr/local/bin]: The contents of "dbhome" have not changed. No need to overwrite.The contents of "oraenv" have not changed. No need to overwrite.The contents of "coraenv" have not changed. No need to overwrite.Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root script.Now product-specific root actions will be performed.To configure Grid Infrastructure for a Stand-Alone Server run the following command as the root user:/u01/app/12.1.0/grid/perl/bin/perl -I/u01/app/12.1.0/grid/perl/lib -I/u01/app/12.1.0/grid/crs/install /u01/app/12.1.0/grid/crs/install/roothas.plTo configure Grid Infrastructure for a Cluster execute the following command as oracle user:/u01/app/12.1.0/grid/crs/config/config.shThis command launches the Grid Infrastructure Configuration Wizard. The wizard also supports silent operation, and the parameters can be passed through the response file that is available in the installation media.


安装完毕!

0 0