redhat 6.4安装oracle11g RAC (二)

news/2024/11/20 10:37:43/
创建一个asm Disk Group Name 组,并给一个名称ORC,并选择下面的三块盘,然后 Next

在这里插入图片描述错误的原因是由于磁盘数和冗余层级不匹配:

如果创建用来存放OCR和VOTEDISK的ASM磁盘组,那么External、Normal、High三种冗余级别对应的Failgroup个数是1、3、5。也就是说,创建这三种冗余级别的磁盘组至少分别需要1、3、5个ASM磁盘。

如果创建用于非OCR和VOTEDISK存储的ASM磁盘组,那么External、Normal、High三种冗余级别对应的Failgroup至少是1、2、3。也就是说,创建这三种冗余级别的磁盘组至少分别需要1、2、3个ASM磁盘。
在这里插入图片描述
*给这个组,设置一个密码
在这里插入图片描述


在这里插入图片描述
这里选择不使用用IPMI
在这里插入图片描述
指定不同的ASM组,这里默认

在这里插入图片描述
这里安装向导会帮你填写集群软件的安装路径,我们继续next,这里我们需要注意的是oracle_Home不能是oracle_base的子目录
在这里插入图片描述
选择grid安装清单目录
在这里插入图片描述
环境检测出现resolv.conf错误,是因为没有配置DNS,可以忽略在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
Install 继续安装
在这里插入图片描述
在这里插入图片描述
安装grid完成,提示需要root用户依次执行脚本orainstRoot.sh ,root.sh (一定要先在rac1执行完脚本后,才能在其他节点执行)
在这里插入图片描述
/u01/app/oraInventory/orainstRoot.sh
节点一

Last login: Tue Jun 20 00:01:19 2023 from 192.168.186.1
[root@rac1 ~]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
[root@rac1 ~]# /u01/app/11.2.0/grid/root.sh
Performing root user operation for Oracle 11g The following environment variables are set as:ORACLE_OWNER= gridORACLE_HOME=  /u01/app/11.2.0/gridEnter the full pathname of the local bin directory: [/usr/local/bin]: Copying dbhome to /usr/local/bin ...Copying oraenv to /usr/local/bin ...Copying coraenv to /usr/local/bin ...Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
Installing Trace File AnalyzerOLR initialization - successfulroot walletroot wallet certroot cert exportpeer walletprofile reader walletpa walletpeer wallet keyspa wallet keyspeer cert requestpa cert requestpeer certpa certpeer root cert TPprofile reader root cert TPpa root cert TPpeer pa cert TPpa peer cert TPprofile reader pa cert TPprofile reader peer cert TPpeer user certpa user cert
Adding Clusterware entries to upstart
CRS-2672: Attempting to start 'ora.mdnsd' on 'rac1'
CRS-2676: Start of 'ora.mdnsd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'rac1'
CRS-2676: Start of 'ora.gpnpd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac1'
CRS-2672: Attempting to start 'ora.gipcd' on 'rac1'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac1' succeeded
CRS-2676: Start of 'ora.gipcd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac1'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac1'
CRS-2676: Start of 'ora.diskmon' on 'rac1' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac1' succeededASM created and started successfully.Disk Group ORC created successfully.clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4256: Updating the profile
Successful addition of voting disk 4e637956089a4f36bf208b0aa3d15441.
Successfully replaced voting disk group with +ORC.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------1. ONLINE   4e637956089a4f36bf208b0aa3d15441 (ORCL:CRS01) [ORC]
Located 1 voting disk(s).
CRS-2672: Attempting to start 'ora.asm' on 'rac1'
CRS-2676: Start of 'ora.asm' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.ORC.dg' on 'rac1'
CRS-2676: Start of 'ora.ORC.dg' on 'rac1' succeeded
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
[root@rac1 ~]# 
[root@rac1 ~]# 

节点二在这里插入代码片

Nothing to do
[root@rac2 software]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
[root@rac2 software]# /u01/app/11.2.0/grid/root.sh
Performing root user operation for Oracle 11g The following environment variables are set as:ORACLE_OWNER= gridORACLE_HOME=  /u01/app/11.2.0/gridEnter the full pathname of the local bin directory: [/usr/local/bin]: Copying dbhome to /usr/local/bin ...Copying oraenv to /usr/local/bin ...Copying coraenv to /usr/local/bin ...Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
Installing Trace File Analyzer
OLR initialization - successful
Adding Clusterware entries to upstart
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node rac1, number 1, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
[root@rac2 software]# 

回到图形化安装界面
这个报错不用去管,不影响使用,点击ok ,在next
在这里插入图片描述
点击yes
在这里插入图片描述
安装完成
在这里插入图片描述
到这里oracle RAC 就部署完成!!!
验证,基于oracle RAC的特性,查看IP地址,会发现 hosts文件里面的与节点对应的IP都有,VIP和scan IP会启动成功后自动出现在网卡上

[root@rac1 ~]# ifconfig 
eth1      Link encap:Ethernet  HWaddr 00:0C:29:51:B8:59  inet addr:192.168.186.128  Bcast:192.168.186.255  Mask:255.255.255.0inet6 addr: fe80::20c:29ff:fe51:b859/64 Scope:LinkUP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1RX packets:2897409 errors:0 dropped:0 overruns:0 frame:0TX packets:1211909 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:1000 RX bytes:3969304024 (3.6 GiB)  TX bytes:117982027 (112.5 MiB)eth1:1    Link encap:Ethernet  HWaddr 00:0C:29:51:B8:59  inet addr:169.254.211.232  Bcast:169.254.255.255  Mask:255.255.0.0UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1eth2      Link encap:Ethernet  HWaddr 00:0C:29:51:B8:63  inet addr:192.168.182.145  Bcast:192.168.182.255  Mask:255.255.255.0inet6 addr: fe80::20c:29ff:fe51:b863/64 Scope:LinkUP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1RX packets:1704057 errors:0 dropped:0 overruns:0 frame:0TX packets:3640272 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:1000 RX bytes:152470031 (145.4 MiB)  TX bytes:4639969576 (4.3 GiB)eth2:1    Link encap:Ethernet  HWaddr 00:0C:29:51:B8:63  inet addr:192.168.182.101  Bcast:192.168.182.255  Mask:255.255.255.0UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1eth2:2    Link encap:Ethernet  HWaddr 00:0C:29:51:B8:63  inet addr:192.168.182.120  Bcast:192.168.182.255  Mask:255.255.255.0UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1lo        Link encap:Local Loopback  inet addr:127.0.0.1  Mask:255.0.0.0inet6 addr: ::1/128 Scope:HostUP LOOPBACK RUNNING  MTU:16436  Metric:1RX packets:32558 errors:0 dropped:0 overruns:0 frame:0TX packets:32558 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:0 RX bytes:24282862 (23.1 MiB)  TX bytes:24282862 (23.1 MiB)[root@rac1 ~]# 
[grid@rac1 grid]$ crs_stat -t -v
Name           Type           R/RA   F/FT   Target    State     Host        
----------------------------------------------------------------------
ora....ER.lsnr ora....er.type 0/5    0/     ONLINE    ONLINE    rac1        
ora....N1.lsnr ora....er.type 0/5    0/0    ONLINE    ONLINE    rac1        
ora.ORC.dg     ora....up.type 0/5    0/     ONLINE    ONLINE    rac1        
ora.asm        ora.asm.type   0/5    0/     ONLINE    ONLINE    rac1        
ora.cvu        ora.cvu.type   0/5    0/0    ONLINE    ONLINE    rac1        
ora.gsd        ora.gsd.type   0/5    0/     OFFLINE   OFFLINE               
ora....network ora....rk.type 0/5    0/     ONLINE    ONLINE    rac1        
ora.oc4j       ora.oc4j.type  0/1    0/2    ONLINE    ONLINE    rac1        
ora.ons        ora.ons.type   0/3    0/     ONLINE    ONLINE    rac1        
ora....SM1.asm application    0/5    0/0    ONLINE    ONLINE    rac1        
ora....C1.lsnr application    0/5    0/0    ONLINE    ONLINE    rac1        
ora.rac1.gsd   application    0/5    0/0    OFFLINE   OFFLINE               
ora.rac1.ons   application    0/3    0/0    ONLINE    ONLINE    rac1        
ora.rac1.vip   ora....t1.type 0/0    0/0    ONLINE    ONLINE    rac1        
ora....SM2.asm application    0/5    0/0    ONLINE    ONLINE    rac2        
ora....C2.lsnr application    0/5    0/0    ONLINE    ONLINE    rac2        
ora.rac2.gsd   application    0/5    0/0    OFFLINE   OFFLINE               
ora.rac2.ons   application    0/3    0/0    ONLINE    ONLINE    rac2        
ora.rac2.vip   ora....t1.type 0/0    0/0    ONLINE    ONLINE    rac2        
ora....ry.acfs ora....fs.type 0/5    0/     ONLINE    ONLINE    rac1        
ora.scan1.vip  ora....ip.type 0/0    0/0    ONLINE    ONLINE    rac1        
[grid@rac1 grid]$ olsnodes -n
rac1    1
rac2    2
[grid@rac1 grid]$ https://blog.csdn.net/u014595668/article/details/51160783#:~:text=ps%20%2Def%7Cgrep%20lsnr%7Cgrep%20%2Dv%20%27grep%27%7Cgrep%20%2Dv%20%27ocfs%27%7Cawk%20%27%7Bprint%249%7D%27^C
[grid@rac1 grid]$ ps -ef|grep lsnr|grep -v 'grep'|grep -v 'ocfs'|awk '{print$9}'
LISTENER_SCAN1
LISTENER
[grid@rac1 grid]$ srvctl status asm -a
ASM is running on rac2,rac1
ASM is enabled.
[grid@rac1 grid]$ 

http://www.ppmy.cn/news/471038.html

相关文章

Gof23设计模式之简单工厂/静态工厂模式

在java中,万物皆对象,这些对象都需要创建,如果创建的时候直接new该对象,就会对该对象耦合严重,假如我们要更换对象,所有new对象的地方都需要修改一遍,这显然违背了软件设计的开闭原则。如果我们…

三星note升级android9,Verizon版三星Note 9正式升级Android 10

IT之家 2月20日消息 Verizon是继AT&T之后,美国第二家为三星Galaxy Note 9更新Android 10的主要运营商。AT&T大约在两周前推出了相同的更新,该更新包括2月安全补。 Verizon并未提及更新的大小,但明确表示最多需要10分钟就能通过WiFi下…

note9更新android10吗,三星Note10参数对比Note9 到底有哪些地方升级了?

原标题:三星Note10参数对比Note9 到底有哪些地方升级了? 【手机中国新闻】去年8月份,三星给我们带来了Note9系列。今年8月8日,三星在纽约正式发布了Note10系列。时隔一年,三星Note10有什么样的配置?对比Not…

三星note5 android9,【极光ROM】-【三星NOTE9 N960X-845】-【V16.0 Android-Q-TD5】

● 支持机型: ● N9600(国/港行NOTE9) 主要更新内容: 1、基于N9600官方最新安卓Q底包N9600ZCS4DTD5制作。 2、基于官方最新DTD5内核源码重新编译内核。 3、所有APP升级至官方最新版本。 4、修正单击HOME稍有延迟问题(如果在开启自定义双击HOME键功能后将会产生延迟)。 5、主题…

三星note9刷Android9,【极光ROM】-【三星NOTE9 N960X-9810】-【V21.0 Android-Q-THB】

● 支持机型: ● N960F/FD(欧版) ● N960N(韩版) 主要更新内容: 1、基于N960F官方最新安卓Q底包N960FXXS6ETHB(OneUI2.1)制作。 2、基于官方最新ETH4内核源码重新编译内核。 3、所有APP升级至官方最新版本。 4、修复主题商店NOTE20锁屏壁纸设置问题。 刷机前注意事项: 1、先…

三星note9刷Android9,三星Note9官方韩版安卓9固件rom线刷刷机包:N960NKSU2CSE3

三星Galaxy Note9的韩版手机是SM-N960N,这个在国内用的人也是少数的,看到近日官方发布了有关这个手机的最新的系统rom线刷包,也就是完整版本的固件包了,具体的版本号是N960NKSU2CSE3,是官方的多件套形式的rom线刷包,有需要的小伙伴可以下载下来采用odin工具来刷入了。 三…

三星 9810 android 9,【极光ROM】-【三星NOTE9 N960X-9810】-【V17.0 Android-Q-TB9】

● 支持机型: ● N960F/FD(欧版) ● N960N(韩版) 主要更新内容: 1、基于N960F官方最新安卓Q底包N960FXXS5DTB9制作。 2、基于官方最新DTA5内核源码重新编译内核。 3、修复浮动信息开关无效问题。 4、优化重启后直接指纹解锁。 5、增加S20U壁纸。 6、ROM不…

6.19实训笔记

6.19实训笔记 6.19一、座右铭二、知识回顾2.1 Java集合体系2.2 工具类Utils 三、JavaIO流3.1 File类3.2 File类的使用3.2.1 File文件/文件夹类的创建3.2.2 File类的获取操作3.2.3 File类判断操作--boolean3.2.4 File类对文件/文件夹的增删改3.2.5 、File类的获取子文件夹以及子…