Oracle rac 修改SCAN IP信息

0    330    1

Tags:

👉 本文共约4822个字,系统预计阅读时间或需19分钟。

修改SCAN主机名、端口号、增加scan ip的个数

在集群正常运行的情况下,首先修改所有节点/etc/hosts文件后,再执行如下命令,其中raclhr-scan是修改后的SCAN主机名:

如果SCAN IP的个数改变了,那么还需要执行如下命令进行更新:

需要注意的是,以上步骤也适用于修改SCAN的IP地址或增加SCAN IP的个数。

修改SCAN的端口号的命令如下所示:

示例:增加scan ip个数

对新配置的oracle RAC环境增配2个SCAN IP地址,192.168.59.175以及192.168.59.176。

配置前信息

默认情况下配置RA 只有1个scan IP,1个 scan listener。

查看scan的配置信息

查看scan的状态以及scan ip所处节点

查看scan listener

修改rac所有节点的/etc/hosts信息

停止scan 监听,注意先停监听才能停scan

配置scan,注意需要用root权限执行

修改scan信息,-n 后面接 hosts中的san ip 网络名:

添加scanIP的监听,若不执行该命令srvctl modify scan_listener -u,将只有一个listener_scan1监听,执行后将根据scan ip数自动增加listener_scan2,listener_scan3.

启动scan

示例:

查看SCAN1和SCAN2的内容

重启集群环境后,可以看到如下内容:

修改rac的默认端口号为1522

检查

How to Update the IP Address of the SCAN VIP Resources (ora.scan{n}.vip) (文档 ID 952903.1)

APPLIES TO:

Oracle Database - Enterprise Edition - Version 11.2.0.1 and later
Information in this document applies to any platform.

GOAL

The purpose of this document is to explain how to change the IP addresses associated with the VIPs in a 11gR2 Grid (CRS) environment.

The IP addresses associated with the SCAN VIP resources are initially set when the SCAN resources are created.
Any changes to the DNS entry for the SCAN are not automatically propagated to the clusterware and need to be done manually.

This applies only to installations that are not using .

The information in this note can also be helpful in cases where SCAN was originally configured with just one address and is now being expanded to accommodate three IP addresses.

SOLUTION

  1. Before the SCAN VIPs can be changed, the entry for the SCAN name on the Domain Name Server (DNS) needs to be updated with the new IP addresses. This usually will be done by a network administrator. To check the current setting, the following command can be used:

    nslookup \

  2. To check the current IP address(es) of the SCAN VIPs, run the following commands as the root user:

    $GRID_HOME/bin/srvctl config scan

  3. Stop the SCAN listeners and SCAN

    $GRID_HOME/bin/srvctl stop scan_listener
    $GRID_HOME/bin/srvctl stop scan

    本人提供Oracle(OCP、OCM)、MySQL(OCP)、PostgreSQL(PGCA、PGCE、PGCM)等数据库的培训和考证业务,私聊QQ646634621或微信dbaup66,谢谢!
    AiDBA后续精彩内容已被站长无情隐藏,请输入验证码解锁本文!
    验证码:
    获取验证码: 请先关注本站微信公众号,然后回复“验证码”,获取验证码。在微信里搜索“AiDBA”或者“dbaup6”或者微信扫描右侧二维码都可以关注本站微信公众号。

标签:

Avatar photo

小麦苗

学习或考证,均可联系麦老师,请加微信db_bao或QQ646634621

您可能还喜欢...

发表回复