绑定完请刷新页面
取消
刷新

分享好友

×
取消 复制
RedhatLinux7.8安装12.2.0.1遇到的各章坑(存储多路径配置,udev)
2022-01-14 17:35:45

在版本操作系统安装12.2遇到很多bug ,建议在RedHat Linux7.7以上还是用19C吧,不过安装处理过程还是可以学习到很多东西,下面记录了遇到的bug或者遇到的问题,希望对大家学习有用。


1 安装报错
PRVG-0802 : Storage type for path "/dev/dm-7" could not be determined on node "w-pc-x3650m5-239". PRVG-0801 : invalid internal command tags - Cause: An error occurred while attempting to determine the storage type of the indicated path. Accompanying messages provide further details. - Action: Resolve the issues described in any accompanying messages and retry.
-
PRVG-0802 : Storage type for path "/dev/dm-16" could not be determined on node "w-pc-x3650m5-239". PRVG-0801 : invalid internal command tags - Cause: An error occurred while attempting to determine the storage type of the indicated path. Accompanying messages provide further details. - Action: Resolve the issues described in any accompanying messages and retry.

这个问题开始以为是bug导致,但是打补丁后依然报错,排除这个问题,后续忽略错误直接跑,后在1节点执行root.sh脚本报错如下
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Oracle High Availability Services has been started.
2022/01/14 10:28:47 CLSRSC-400: A system reboot is required to continue installing.
The command '/grid/12.2/perl/bin/perl -I/grid/12.2/perl/lib -I/grid/12.2/crs/install /grid/12.2/crs/install/rootcrs.pl ' execution failed

这个是bug25078431导致

./gridSetup.sh -applyOneOffs /u01/patch/25078431/25078431

后续我们提前打了新的RU
[grid@m5-168 /grid/12.2]$./gridSetup.sh -applyPSU /tmp/33290750
Preparing the home to patch...
Applying the patch /tmp/33290750...
Successfully applied the patch.
The log can be found at: /tmp/GridSetupActions2022-01-14_09-01-27AM/installerPatchActions_2022-01-14_09-01-27AM.log
Launching Oracle Grid Infrastructure Setup Wizard...

此安装过程报错又有如下报错
[INS-42505] The installer has detected that the Oracle Grid Infrastructure home software at ($GRID_HOME) is not complete.

ause - Following files are missing: [/grid/12.2/jdk/.manifest,
/grid/12.2/jdk/lib/missioncontrol, /grid/12.2/jdk/lib/missioncontrol/artifacts.xml,
/grid/12.2/jdk/lib/missioncontrol/.eclipseproduct, /grid/12.2/jdk/lib/missioncontrol/mc.jar,

....

/grid/12.2/jdk/lib/missioncontrol/plugins/org.eclipse.core.resources_3.9.1.v20140825-1431.jar, ...]
Action - Ensure that the Oracle Grid Infrastructure home at (/grid/12.2) includes the files listed above.


原因
GRIDSETUP.SH -APPLYPSU
This issue has been reported to the following internal bug which has fixed 18.3
BUG 31579347 - AIX:JDK FILES GOT REMOVED AFTER GRIDSETUP.SH -APPLYPSU APR2020 GI (30920127 ) RESULTED INS-32829

这也是bug,解决方式如下
Workaround :

1. Either (a) proceed with the installation by clicking "Yes" or (b) click "No,

2. Then immediately rename <OH>/install/files.lst to<OH>/install/files.lst.bak and click "Next" again.

后续执行执行脚本有19步骤有报错如下

问题
2022/01/14 11:24:37 CLSRSC-594: Executing installation step 19 of 19: 'PostConfig'.
2022/01/14 11:30:11 CLSRSC-614: failed to get the list of configured diskgroups
Died at /grid/12.2/crs/install/oraasm.pm line 2069.
The command '/grid/12.2/perl/bin/perl -I/grid/12.2/perl/lib -I/grid/12.2/crs/install /grid/12.2/crs/install/rootcrs.pl ' execution failed
解决方法
[root@m5-108 ~]#export ORACLE_HOME=/grid/12.2
[root@m5-108 ~]#cd /grid/12.2/rdbms/lib
[root@m5-108 /grid/12.2/rdbms/lib]#
/usr/bin/make -f ins_rdbms.mk client_sharedlib libasmclntsh12.ohso libasmperl12.ohso ORACLE_HOME=$ORACLE_HOME

还要注意安装数据库时,找集群节点有如下报错
echo $HOME failed on 'Oracle Clusterware infrastructure warning in OLSNODES (OS PID 47810): Non-fatal error (22) during NLS data loading initialization'

原因是oracle用户的.bash_profile中变量ORA_NLS10=$ORACLE_HOME/nls/data配置不对,这里需要设置grid_home目录,需要修改如下
修改如下 ORA_NLS10到grid家目录
export ORA_NLS10=$ORACLE_HOME/nls/data===> export ORA_NLS10=/grid/12.2/nls/data

由于19步骤报错,只在个节点执行make操作,导致第二,三个 redo 无法创建,报错为CRS-5017 CRS-01618 redo thread 3 is not enabled -cann't mount

手工执行make后,手工添加日志组,注意后 enable thread .否则依然报错
alter database add logfile
thread 2 group 5
('+DATA1/wfz1/redo021.log') size 1G;

alter database add logfile
thread 2 group 6
('+DATA1/wfz1/redo022.log') size 1G;

alter database add logfile
thread 2 group 7
('+DATA1/wfz1/redo023.log') size 1G;

alter database add logfile
thread 2 group 8
('+DATA1/wfz1/redo024.log') size 1G;


****************

alter database add logfile
thread 3 group 9
('+DATA1/wfz1/redo031.log') size 1G;

alter database add logfile
thread 3 group 10
('+DATA1/wfz1/redo032.log') size 1G;

alter database add logfile
thread 3 group 11
('+DATA1/wfz1/redo033.log') size 1G;

alter database add logfile
thread 3 group 12
('+DATA1/wfz1/redo034.log') size 1G;

enable thread 操作
alter database enable public thread 2;
alter database enable public thread 3;

启动数据库正常

分享好友

分享这个小栈给你的朋友们,一起进步吧。

Oracle运维新鲜事-技术与管理各占半边天
创建时间:2020-08-04 11:34:57
本技术栈旨在分享技术心得,运维趣事,故障处理经验,调优案例,故障处理涉及集群,DG,OGG,大家生产中遇到的问题基本都会囊括了,我会发布生产库遇到的故障,希望在交流中互助互益,共同提高,也希望大家讨论,如果您有生产中遇到的集群问题,也可以在这里提出来,一起讨论,现实中也帮助不少同学解决了生产库的故障。
展开
订阅须知

• 所有用户可根据关注领域订阅专区或所有专区

• 付费订阅:虚拟交易,一经交易不退款;若特殊情况,可3日内客服咨询

• 专区发布评论属默认订阅所评论专区(除付费小栈外)

栈主、嘉宾

查看更多
  • Abraham林老师
    栈主
  • 小雨滴
    嘉宾
  • hawkliu
    嘉宾
  • u_97a59a25246404
    嘉宾

小栈成员

查看更多
  • 栈栈
  • dapan
  • 小菜鸟___
  • hwayw
戳我,来吐槽~