RHEL7.6安装oracle巨坑记录

19 篇文章 0 订阅
8 篇文章 0 订阅

rhel 7安装oracle 11gr2 rac 遇到的问题https://my.oschina.net/u/3862440/blog/3007442/print 

 

 

2020/9/4  CENTOS7.6+ORALCE11gR2单机 攀枝花

[INS-20802] Oracle Net Configuration Assistant failed。

oracle11gr2 netca 无法启动 报错

安装oracle软件后,必须要先配置listener才能dbca建库,但是netca却报下面的错误。

 

Oracle Net Services Configuration:
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0xa4bf5f4e, pid=11819, tid=3086902976
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_17-b02 mixed mode)
# Problematic frame:
# C [libclntsh.so.11.1+0x421f4e] snlinGetAddrInfo+0x1b2
#
# An error report file with more information is saved as hs_err_pid11819.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
{PATH}/oracle/bin/netca: line 178: 11819 Aborted                 $JRE $JRE_OPTIONS -classpath $CLASSPATH oracle.net.ca.NetCA $*

 

是由于默认的主机名导致的,修改2处(加粗字体处可自定义)

[oracle@jc11g ~]$ cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=oracle11g

 

[oracle@jc11g ~]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               localhost.localdomain localhost oracle11g

再执行

hostname oracle11g

让oracle用户退出重新登录就可以正常启动netca了

 

转自:http://blog.sina.com.cn/s/blog_470504830100s2fz.html

 

 

 

 

 

oracle图形化安装过程中启动乱码及弹框显示不全的问题解决

启动安装乱码需要指定系统LANG参数启动:#LANG=en_US ./runInstaller

安装过程弹窗显示bug需要指定jdk路径启动(注意空格)./runInstaller -jreLoc /usr/local/jdk1.7.0_8

 

2020/9/10 西藏

ORACLE LINUX7.2+ORACLE RAC 11gR2

 

CentOS7修改系统中文语言为英语
(最小化安装排除问题时journalctl 一行错误信息显示不全可以直接用左右箭头左移或者右移)
1、修改配置文件   /etc/locale.conf
2、将LANG字段的zh_CN.UTF-8 修改为  zh_US.UTF-8  (或者直接将其注释)reboot重启即可解决问题

临时指定语言环境法:
LANG=en_US ./runInstaller


安装ORACLE RAC时修改ssh端口导致CRS无法安装

为了安全起见,服务器的ssh端口从默认的22修改为了22222
在安装RAC时,oracle用户间做了互信,但是并不能通过ssh直接连接,必须要加上-p 22222才能
这就会导致在安装crs时验证不通过,表现为:
Caught Cluster ExceptionPRKC-1044 : Failed to check remote command execution setup for node tgdb1 using shells /usr/bin/ssh and /usr/bin/rsh 
tgdb1: Connection refused
  [PRKC-1044 : Failed to check remote command execution setup for node tgdb1 using shells /usr/bin/ssh and /usr/bin/rsh 
tgdb1: Connection refused]
  [PRKC-1044 : Failed to check remote command execution setup for node tgdb1 using shells /usr/bin/ssh and /usr/bin/rsh 
tgdb1: Connection refused
  [PRKC-1044 : Failed to check remote command execution setup for node tgdb1 using shells /usr/bin/ssh and /usr/bin/rsh 
tgdb1: Connection refused]]
看来oracle是直接调用的ssh命令,并不会加上-p 22222,这就导致了节点间不能通信的假象

解决办法:
修改/etc/service
把其中ssh   22222/tcp         # SSH Remote Login Protocol
的端口修改为22222解决

 

 

 

在跑脚本时 :/u01/app/11.2.0/grid/root.sh 
出现如下错误 :

CRS-4046: Invalid Oracle Clusterware configuration.
CRS-4000: Command Create failed, or completed with errors.
Failure initializing entries in /etc/oracle/scls_scr/rac1
/u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/rootcrs.pl execution failed

解决方法:
  # <grid-home>/crs/install/rootcrs.pl -deconfig -force -verbose

 /u01/app/11.2.0/grid/crs/install/rootcrs.pl -deconfig -force -verbose

can't locate env.pm

Can’t locate Env.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perlusr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /u01/app/11.2.0/grid/crs/install) at /u01/app/11.2.0/gd/crs/install/crsconfig_lib.pm line 703.
BEGIN failed–compilation aborted at /u01/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 703.
Compilation failed in require at /u01/app/11.2.0/grid/crs/install/rootcrs.pl line 305.
BEGIN failed–compilation aborted at /u01/app/11.2.0/grid/crs/install/rootcrs.pl line 305.

centos7 系统执行 yum install perl-Env

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

末点

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值