My Oracle Support Banner

使用 -dryRunForUpgrade 后 19c 升级失败,由于错误的 rootconfig.sh 属主导致 OUI-10166 和 OUI-10175 (Doc ID 2639904.1)

Last updated on FEBRUARY 24, 2020

适用于:

Oracle Database - Enterprise Edition - 版本 19.3.0.0.0 和更高版本
本文档所含信息适用于所有平台

症状

升级就绪性检查后 (gridSetup.sh -dryRunForUpgrade) ,升级到 19c 失败,报以下错误 OUI-10166 & OUI-10175

gridSetupActions<timestamp>.log 摘要

INFO: [Jun 3, 2019 12:03:34 PM] Error while instantiating the file.
Refer associated stacktrace #oracle.install.library.util.FunctionsUtil:60242
SEVERE: [Jun 3, 2019 12:03:34 PM] [FATAL] [INS-00001] Unknown irrecoverable error
CAUSE: No additional information available.
ACTION: Refer to the logs or contact Oracle Support Services
SUMMARY:
- OUI-10166:The permissions 0755 cannot be set for the file /u01/app/19.0.0/grid/crs/config/rootconfig.sh. OUI-10175:The effective user ID does not match the owner of the file, or the process is not the super-user; the system indicates that super-user privilege is required..

 使用 -dryRunForUpgrade 时运行 gridSetup.sh,会发生以下改变。

1. Central inventory 更新了新的 home 信息。

<INVENTORY>
<VERSION_INFO>
<SAVED_WITH>12.2.0.7.0</SAVED_WITH>
<MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
</VERSION_INFO>
<HOME_LIST>
<HOME NAME="OraGI18Home1" LOC="/u01/app/18.0.0/grid" TYPE="O" IDX="1" CRS="true"/>
<HOME NAME="OraDB18Home1" LOC="/u01/app/oracle/product/18.0.0/dbhome_1" TYPE="O" IDX="2"/>
<HOME NAME="OraGI19Home1" LOC="/u01/app/19.0.0/grid" TYPE="O" IDX="3"/>        <<<<<<
</HOME_LIST>
<COMPOSITEHOME_LIST>
</COMPOSITEHOME_LIST>
</INVENTORY>

 2. GRID_HOME 下的文件夹属主会变成 root:oinstall 来替代 grid:oinstall

[grid@<nodename> ~]$ ll /u01/app/19.0.0/grid/
drwxrwxrwt. 6 root oinstall 52 Jun 3 11:29 auth
drwxr-xr-x. 2 root oinstall 12288 Jun 3 11:29 bin
drwxr-x---. 3 root oinstall 19 Jun 3 11:29 crf
drwxr-xr-x. 14 root oinstall 4096 Jun 3 11:29 crs
drwxr-xr-x. 3 root oinstall 18 Jun 3 11:29 ctss
drwxr-xr-x. 6 root oinstall 4096 Apr 18 08:37 jdk
drwxr-xr-x. 4 root oinstall 12288 Jun 3 11:28 lib
drwxr-xr-x. 3 root oinstall 18 Jun 3 11:29 ologgerd
drwxr-xr-x. 3 root oinstall 18 Jun 3 11:29 osysmond
drwxr-xr-x. 5 root oinstall 39 Apr 17 11:56 perl
-rwxr-xr-x. 1 root oinstall 405 Jun 3 11:20 root.sh
-rwxr-xr-x. 1 root oinstall 414 Jun 3 11:20 rootupgrade.sh
drwxr-x---. 5 root oinstall 45 Apr 17 11:56 suptools

 3. rootconfig.sh 属主会改变

[grid@<nodename> ~]$ ll /u01/app/19.0.0/grid/crs/config/rootconfig.sh
-rwxr-x---. 1 root oinstall 6248 Jun 3 11:20 /u01/app/19.0.0/grid/crs/config/rootconfig.sh

 

更改

在真正升级前,解压19c gold image,然后使用 '-dryRunForUpgrade' 启动安装来检查升级就绪性。

原因

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


文档内容
症状
更改
原因
解决方案
参考

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.