江苏现网安装rac,在安装完毕cluster软件之后执行root.sh的时候报错如下:
Invalid node name "1PTBAK-DB1" enteredin an input argument
Invalid node name "1PTBAK-DB1" enteredin an input argument
以前安装很多边都没出现类似的错误,1PTBAK-DB1是节点的hostname,也用作cluster name,目测应该是hostname的命名问题,查了很多官方的DOC也没找到oracle对hostname的命名要求,只是在《Oracle Clusterware and Oracle Real Application Clusters Installation Guide》中有这么一段话:
When you enter the public node name, use the primary host name of each node. In
other words, use the name displayed by the hostname command. This node
name can be either the permanent or the virtual host name.
In addition, ensure that the following are true:
– Determine a cluster name with the following characteristics:
* It must be globally unique throughout your host domain. --全局唯一
* It must be at least one character long and less than 15 characters long. --长度小于15个字符
* It must consist of the same character set used for host names: underscores
(_), hyphens (-), and single-byte alphanumeric characters (a to z, A to Z, and 0 to 9). --包含_、-、a to z, A to Z, and 0 to 9
完全复合要求
通过google,发现很多人遇到相同的问题,具体总结为:数字开头、包含大写字母、包含下划线的hostname会出现这个错误。
于是果断修改hostname为:pt1bakdb1,卸载后重新安装,错误消失