oracle 11gR2 RAC安装中重新执行root.sh
当第一次执行root.sh失败后,再次启动执行会报如下错误:
# /opt/data/app/11.2.0/grid/root.sh
Running Oracle 11g root.sh script…
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /opt/data/app/11.2.0/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file “dbhome” already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying dbhome to /usr/local/bin …
The file “oraenv” already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying oraenv to /usr/local/bin …
The file “coraenv” already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying coraenv to /usr/local/bin …
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.sh script.
Now product-specific root actions will be performed.
2017–08–26 14:03:13: Parsing the host name
2017–08–26 14:03:13: Checking for super user privileges
2017–08–26 14:03:13: User has super user privileges
Using configuration parameter file: /opt/data/app/11.2.0/grid/crs/install/crsconfig_params
CRS is already configured on this node for crshome=0
Cannot configure two CRS instances on the same cluster.
Please deconfigure before proceeding with the configuration of new home.
加粗地方显示,已经存在配置信息需要重新指定位置,我们一般不会重新指定,还是选择原来的位置,只需要执行以下命令即可清除原配置信息,再重新执行就会成功。
解决:
在执行失败的节点上找到的目录文件crs/install/roothas.pl
执行:./roothas.pl -delete -force -verbose
旧配置文件清除完毕可以执行root.sh了。
