安装oracle12c时,运行root.sh报relinking rac_on failed

Jingooluo 2018-01-30 10:35:53
论坛大神们,小弟oracle小白一个,最近公司要搞装oracle12c集群,我只能硬着头皮上了。
现在在执行root.sh脚本的时候报下面的错,大神们帮帮忙看看是什么问题,要怎么解决。
Performing root user operation.

The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/app/12c.2/grid

Enter 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 by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Relinking oracle with rac_on option
Relinking rac_on failed
...全文
1672 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
Jingooluo 2018-02-01
  • 打赏
  • 举报
回复
嗯嗯,这个错误忽略了,后面还是成功了,谢谢啦,现在集群已经安装成功,数据库也安装成功了。
minsic78 2018-01-31
  • 打赏
  • 举报
回复
引用 8 楼 Jingooluo 的回复:
果然是不能在本地解压,只能放到虚机上。但是后面依然报错, oracle cluster verification utility failed
这个检测不一定准的,有时候有误报,或者可以忽略的内容,要具体看失败项为何再做决定
minsic78 2018-01-30
  • 打赏
  • 举报
回复
这个输出不完整吧,才到这一步: Enter the full pathname of the local bin directory: [/usr/local/bin]:
Jingooluo 2018-01-30
  • 打赏
  • 举报
回复
非常感谢你的回复,下面是用sh -x root.sh执行时打印的,还是没看明白具体的原因 + unset WAS_ROOTMACRO_CALL_MADE + . /u01/app/12c.2/grid/install/utl/rootmacro.sh ++ AWK=/bin/awk ++ CAT=/bin/cat ++ CHGRP=/bin/chgrp ++ CHOWN=/bin/chown ++ CHMOD=/bin/chmod ++ CP=/bin/cp ++ DIFF=/usr/bin/diff ++ ECHO=echo ++ GREP=/bin/grep ++ LBIN=/usr/local/bin ++ MKDIR=/bin/mkdir ++ ORATABLOC=/etc ++ ORATAB=/etc/oratab ++ RM=/bin/rm ++ SED=/bin/sed ++ UNAME=/bin/uname ++ DATE=/bin/date ++ TEE=/usr/bin/tee ++ TMPORATB=/var/tmp/oratab4834 +++ /bin/uname ++ '[' Linux = SunOS ']' ++ OUI_SILENT=false ++ OUI_STDOUT=false ++ ORACLE_HOME=/u01/app/12c.2/grid ++ ORACLE_OWNER=grid ++ OSDBA_GROUP=oinstall ++ MAKE=/usr/bin/make ++ INSTALL_TFA=0 ++ '[' x = x ']' ++ WAS_ROOTMACRO_CALL_MADE=YES ++ export WAS_ROOTMACRO_CALL_MADE +++ /bin/uname ++ '[' Linux = SunOS ']' +++ /bin/uname ++ '[' Linux = AIX ']' +++ /bin/uname -n +++ /bin/date +%F_%H-%M-%S-%N ++ LOG=/u01/app/12c.2/grid/install/root_node1_2018-01-30_11-03-04-217011520.log ++ export LOG ++ P_COUNTER=1 ++ '[' 1 -le 0 ']' ++ '[' x/u01/app/12c.2/grid/install/root_node1_2018-01-30_11-03-04-217011520.log = x -o /u01/app/12c.2/grid/install/root_node1_2018-01-30_11-03-04-217011520.log = '' ']' ++ /bin/cp /u01/app/12c.2/grid/install/root_node1_2018-01-30_11-03-04-217011520.log /u01/app/12c.2/grid/install/root_node1_2018-01-30_11-03-04-217011520.log0 ++ echo '' ++ '[' -f /u01/app/12c.2/grid/install/root_node1_2018-01-30_11-03-04-217011520.log0 ']' ++ '[' false = true -o '' ']' ++ SILENT=0 ++ '[' false = true -o '' ']' ++ STDOUT=0 ++ '[' 0 -eq 1 -a 0 -eq 0 ']' ++ mkfifo /u01/app/12c.2/grid/install/root_node1_2018-01-30_11-03-04-217011520.log.pipe ++ exec ++ tee /u01/app/12c.2/grid/install/root_node1_2018-01-30_11-03-04-217011520.log ++ rm /u01/app/12c.2/grid/install/root_node1_2018-01-30_11-03-04-217011520.log.pipe ++ '[' '' -a '!' -d '' ']' ++ case ${N}$C in ++ echo '\c' ++ /bin/grep c ++ N=-n +++ /usr/bin/id +++ /bin/awk '-F(' '{print $1}' +++ /bin/awk -F= '{print $2}' ++ RUID=0 ++ '[' 0 -ne 0 ']' ++ trap '$ECHO "Oracle root script execution aborted!"| $TEE -a $LOG;exit' 1 2 3 15 ++ '[' -f /u01/app/12c.2/grid/install/root_node1_2018-01-30_11-03-04-217011520.log ']' ++ /bin/chown grid:oinstall /u01/app/12c.2/grid/install/root_node1_2018-01-30_11-03-04-217011520.log ++ /bin/chmod 600 /u01/app/12c.2/grid/install/root_node1_2018-01-30_11-03-04-217011520.log ++ export SILENT ++ export ORACLE_HOME ++ export INSTALL_TFA + . /u01/app/12c.2/grid/install/utl/rootinstall.sh ++ echo 'Performing root user operation.' Performing root user operation. ++ echo '' ++ echo 'The following environment variables are set as:' The following environment variables are set as: ++ echo ' ORACLE_OWNER= grid' ORACLE_OWNER= grid ++ echo ' ORACLE_HOME= /u01/app/12c.2/grid' ORACLE_HOME= /u01/app/12c.2/grid ++ saveLBIN=/usr/local/bin ++ retry=r ++ surewrite=y ++ DBHOME=/u01/app/12c.2/grid/bin/dbhome ++ ORAENV=/u01/app/12c.2/grid/bin/oraenv ++ CORAENV=/u01/app/12c.2/grid/bin/coraenv ++ FILES='/u01/app/12c.2/grid/bin/dbhome /u01/app/12c.2/grid/bin/oraenv /u01/app/12c.2/grid/bin/coraenv' ++ '[' '!' -w /usr/local/bin ']' +++ /bin/uname ++ '[' Linux = AIX -a y = y ']' ++ '[' r = r ']' ++ '[' 0 -eq 0 ']' ++ LBIN=/usr/local/bin ++ echo '' ++ echo -n 'Enter the full pathname of the local bin directory: ' Enter the full pathname of the local bin directory: ++ DEFLT=/usr/local/bin ++ . /u01/app/12c.2/grid/install/utl/read.sh +++ : +++ case $ORACLE_DEFAULT in +++ : +++ echo -n '[/usr/local/bin]: ' [/usr/local/bin]: +++ read RDVAR
minsic78 2018-01-30
  • 打赏
  • 举报
回复
sh -x root.sh,看看具体报错在那个位置,报的是什么错误,如果调用了其他脚本,那么试着用同样的方法一步步深入,找到最终的错误,再做进一步调查
Jingooluo 2018-01-30
  • 打赏
  • 举报
回复
自己顶一下,已经搞了一段时间了,还没弄出来。领导都在不停的催,高手们出手帮帮忙。
Jingooluo 2018-01-30
  • 打赏
  • 举报
回复
果然是不能在本地解压,只能放到虚机上。但是后面依然报错, oracle cluster verification utility failed
Jingooluo 2018-01-30
  • 打赏
  • 举报
回复
都是从官网上直接下载下来的,要说我自己的操作就是把下载好的包本地解压,然后把里面的应答文件拿出来编辑(做静默安装用),然后自己再把软件打包。是不是这个软件包不允许在windows上解压的啊?
minsic78 2018-01-30
  • 打赏
  • 举报
回复
包有问题,文件损坏?
Jingooluo 2018-01-30
  • 打赏
  • 举报
回复
谢谢,是忘了按enter,没有继续往下走,执行发现是/u01/app/12c.2/grid/crs/config/rootconfig.sh报出来的, 顺着这种方式找到的原因是执行/bin/su grid -c 'echo "rootconfig.sh: Relinking oracle with rac_on option" ; /u01/app/12c.2/grid/crs/config/relink_rac_on /u01/app/12c.2/grid /usr/bin/make'报出来的,具体错误在下面。 这里其实之前也看到过,但是不明白,12c是直接放到oracle_home解压运行的,libodm12.so应该是包内自带的吧。 /usr/bin/ld:/u01/app/12c.2/grid/lib//libodm12.so: file format not recognized; treating as linker script /usr/bin/ld:/u01/app/12c.2/grid/lib//libodm12.so:1: syntax error make: *** [/u01/app/12c.2/grid/rdbms/lib/oracle] Error 1

3,492

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 高级技术相关讨论专区
社区管理员
  • 高级技术社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧