Euler搭建Oracle19C RAC+ADG 踩坑

问题1:

在grid执行预检查时报错:

PRVG-0282 : failed to retrieve the operating system distribution ID

 

Oracle本身不支持该操作系统故修改 /opt/app/grid/ghome/cv/admin/cvu_config ,在文件末尾添加CV_ASSUME_DISTID=RHEL7,以RHEL7为安装标准。(后续Oracle安装也需在其安装目录修改)

问题2:

在进行安装前检查时缺少环境libnsl.so.1查询可知该系统libnsl.so.2 -> libnsl.so.2.0.1等效于libnsl.so.1,故创建软连接ln -s /usr/lib64/libnsl.so.2.0.1 /usr/lib64/libnsl.so.1以解决此问题。

注意!! 千万不要mv原来的软连接,否则会导致远程ssh于用户登录认证不可用,引发严重后果。

问题3:

GI安装报错:

SEVERE:  [Jan 31, 2024 3:03:14 PM] [FATAL] [INS-44000] Passwordless SSH connectivity is not setup from the local node nod1 to the following nodes:
[nod2]
These nodes will be ignored and not participate in the configured Grid Infrastructure.
ACTION: Refer to the logs for more details or contact Oracle Support Services.
*ADDITIONAL INFORMATION:*
Summary of node specific errors
nod2
- [INS-06006] Passwordless SSH connectivity not set up between the following node(s): [nod2].

是scp在安装时有问题,做如下操作:

# Rename the original scp. 
mv /usr/bin/scp /usr/bin/scp.orig 
# Create a new file </usr/bin/scp>. 
vi /usr/bin/scp 
# Add the below line to the new created file </usr/bin/scp>.
/usr/bin/scp.orig -T $* 
# Change the file permission. 
chmod 555 /usr/bin/scp
mv /usr/bin/scp.orig /usr/bin/scp

问题4:

由于Euler操作系统的原因。其bond网卡与vlan绑定后bond网卡名会变为类似:VLAN15@Bond-mgmt,安装的时候安装项选择如下,不然会报错

oracle.install.crs.config.networkInterfaceList=VLAN288:192.168.0.0:1,VLAN15:188.188.1.0:5 

问题5

GI安装报错:

[FATAL] Error in invoking target 'libasmclntsh19.ohso libasmperl19.ohso client_sharedlib' of makefile '/opt/app/grid/ghome/rdbms/lib/ins_rdbms.mk'. 

openEuler 20.03 LTS SP3尝试安装Oracle数据库19c版本时,提示缺少静态库libpthread_nonshared.a,当前openEuler没有包提供静态库libpthread_nonshared.a。

解决方法

或者找一个 相同内核版本的 redhat或者centos 7.6 . 然后将安装好的几个lib文件复制过去。

问题6

由于上述失败的安装已经开始向asm磁盘文件头中写入信息,所以重新安装需要格式化安装项中的OCR磁盘。

dd if=/dev/zero of=/dev/mapper/asm/asm-diskc bs=1M count=1024

格式化后若还报错,则查看日志是否与下述图片相同:

 

Oracle目录下的libclntshcore.so.19.1移动到GI下的lib目录。

 

 

 

 

 

posted @ 2024-02-29 16:24  guapisama  阅读(1562)  评论(0)    收藏  举报