如何修改hostname,环境AIX下oracle 11gr2 asm gridcontrol环境
发布网友
发布时间:2022-04-24 02:11
我来回答
共2个回答
热心网友
时间:2022-05-06 00:22
先看Oracle 官方文档上的两段说明:
(1)Can I change the public hostname in my Oracle Database 10g Cluster using Oracle Clusterware?
Hostname changes are not supported in Oracle Clusterware (CRS), unless you want to perform a deletenode followed by a new addnode operation.
The hostname is used to store among other things the flag files and Oracle Clusterware stack will not start if hostname is changed.
(2)Does the hostname have to match the public name or can it be anything else?
When there is no vendor clusterware, only Oracle Clusterware, then the public node name must match the host name. When vendor clusterware is present, it determines the public node names, and the installer doesn't present an opportunity to change them. So, when you have a choice, always choose the hostname.
From: Metalink Note 220970.1 RAC Frequently Asked Questions:
根据官网上的这2段文字,我们可以看出2点:
(1). RAC 环境一旦安装好后, 主机名就不能修改,除非先删除节点,修改Hostname, 在添加节点。
(2). 主机名必须和public 名一致。这一点在安装文档中有特别强调。
在Oracle 的Metalink 上没有找到相关的修改方法,除了上面提到的删除节点在添加节点。 其实还有一种很简单的方法,就是重新运行CRS的配置文件(/u01/app/oracle/proct/crs/install/rootconfig),重新格式化OCR和Voting disk,然后重新创建CRS的资源。
这些操作需要先关闭CRS。 所以在生产库上,一般不会去做这样的操作。 生产系统维护稳定第一。
热心网友
时间:2022-05-06 01:40
smitty hostname