How to change VIP and VIP/Hostname in 10g
http://www.itpub.net/618614.html
Doc ID: Note:271121.1 Type: BULLETIN
Last Revision Date: 12-JAN-2005 Status: PUBLISHED
***
This article is being delivered in Draft form and may contain
errors. Please use the MetaLink "Feedback" button to advise
Oracle of any issues related to this article.
***
PURPOSE
-------
Oracle 10g uses VIP (Virtual IP) for clients to connect to the
database. VIP solves all time-outs entering the TCP/IP stack resulting
in higher application availability. This VIP is a static IP with a
hostname defined and resolved thru DNS. During the installation
of CRS users are prompted to enter a Virtual IP and Virtual Hostname
for each of the nodes in the cluster. These are stored in OCR,
and various components within the 10g HA framework depends on these
VIPs. If for some reason there is a need to change either the VIP or
the VIP/Hostname use the following procedure.
SCOPE & APPLICATION
-------------------
Customers want to change the VIP or VIP/Hostname.
How to change the VIP address only:
-----------------------------------
1. Stop all node-level applications.
Use the srvctl stop nodeapps command with the following syntax:
srvctl stop nodeapps -n
The only option for this command is the -n option, which specifies the node name.
Note: This will stop the VIP, GSD, Listener, and ONS daemons currently running on the node specified
2. Apply a new virtual IP address to nodeapps (You must be root user).
Use the srvctl modify nodeapps command with the following syntax:
srvctl modify nodeapps -n
Options Description:
-n
-o
-A
3. Configure the network interface for the VIP (You must be root user).
Use the ifconfig command to configure the network interface
ifconfig interface [aftype] options | address ...
Option Description should be reviewed using unix man pages
4. Start node-level applications.
Use the srvctl start nodeapps command with the following syntax:
srvctl start nodeapps -n
The only option available for this command is -n to specify the node name.
5. Start the ASM.
Use the srvctl start asm command with the following syntax:
srvctl start asm -n
Option Description:
-n
-i
-o
6. Start the database instance.
Use the srvctl start instance command with the following
srvctl start instance -d
Option Description:
-d
-i
-o
-c
-q Prompt for user credentials connect string from standard input.
The following is an example of the commands to change the VIP address on a node:
srvctl stop nodeapps -n mynode1
srvctl modify nodeapps -n mynode1 -A 138.2.166.152/255.255.255.0
/sbin/ifconfig eth0:1 138.2.166.152
srvctl start nodeapps -n mynode1
srvctl start asm -n stress21
srvctl start instance -d rac -i rac3
Repeat the same steps for all the nodes in the cluster. SRVCTL is a
cluster wide management tool you can accomplish the task for all nodes
from one node without having to login to each of the cluster nodes.
How to change the VIP and Hostname:
-----------------------------------
If you want to change the VIP and Hostname use the following steps:
1. Stops all node-level applications.
Use the srvctl stop nodeapps command with the following syntax:
srvctl stop nodeapps -n
The only option for this command is the -n option, which specifies the node name.
Note: This will stop the VIP, GSD, Listener, and ONS daemon currently running on the nodes specified.
2. Remove the node application configuration.
Use the srvctl remove nodeapps command as follows:
srvctl remove nodeapps -n
Options Description
-n
-f Force remove.
Note: You must have full administrative privileges to run this
command. On UNIX-based systems, you must be logged in as root and on
Windows-based systems, you must be logged in as a user with
Administrator privileges.
3. Use NETCA to remove listener configuration.
4. Use VIPCA (as root) to create and configure new VIP/Hostname.
Note: VIPCA creates VIP,GSD, Listener, and ONS resource
applications for each node in the cluster. VIPCA is the only
recommended way.
5. Use NETCA to create listener configuration.
The following is an example of the commands to change the hostname and VIP address on the nodes in the cluster:
This example assumes we have a 2 node cluster and want to change the VIP/Hostname in all nodes.
srvctl stop nodeapps -n mynode1
srvctl stop nodeapps -n mynode2
srvctl remove nodeapps -n mynode1
srvctl remove nodeapps -n mynode2
use netca to remove the network configuration files
use vipca to create and configure the cluster ready services
use netca to create the network configuration files
Note: NETCA and VIPCA should be run on one node to effect the
change for the cluster as a whole. Also in srvctl
nodeapps, the –n option takes only one node name for all commands
except for remove command. For simplicity we used only one node name in
all commands.
Caution: This note can only be used to change VIP or Hostname
associated with VIP or both. It should not be used to change the public
hostname or its I
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-82918/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- VIP影片解析
- parameter hj8828vip installed Oracle h518vip onOracleH5
- keepalived(二)vip漂移
- rac vip failback issueAI
- How to change the background color for PyCharmPyCharm
- Python抓取VIP電影Python
- MHA高可用+VIP漂移
- www.hj518.vip@17008768000@www.hj518.vip@我要發大財
- Oracle RAC修改public, VIP, SCAN IPOracle
- RAC的VIP切換測試
- 百度VIP音樂爬取
- linux start_udev 導致VIP漂移Linuxdev
- rac 新增第二public ip 和 vip
- 怎麼會wwwhj518vip18587065666
- vip-admin 管理系統v1.0.0
- MySQL Orchestrator自動導換+VIP切換MySql
- 【RAC】Oracle rac 如何修改公網及vipOracle
- HAC叢集部署vip及相關操作
- 送滿vip的手遊平臺哪個好?上線就送滿vip版手遊平臺排行
- 愛奇藝星鑽VIP會員怎麼升級? 愛奇藝成為星鑽VIP會員的技巧
- 百度網盤vip下載-軟體
- kube-vip高可用k8s群K8S
- PG12.9-Repmgr5.1.0-vip-3節點部署
- www.hj278.com18587065666www.hj518.vip
- www.hj518.vip@18587065666@www.hj278.com
- [藍橋杯][演算法提高VIP]大數加法演算法
- 咕泡學院JAVA架構師VIP課程Java架構
- Blockstream、皇家國際線上客服hj8828.vipBloC
- [藍橋杯][基礎練習VIP]矩形面積交
- [藍橋杯][演算法提高VIP]尤拉函式演算法函式
- [藍橋杯][演算法提高VIP]超級瑪麗演算法
- [藍橋杯][演算法提高VIP]奪寶奇兵 dp演算法
- Bug 12725963 - New database connection fails with ORA-12541 after vip failoverDatabaseAI
- 免費下載百度文庫、vip視訊
- [藍橋杯][演算法訓練VIP]方格取數演算法
- Oracle 12. 2 RAC public IP與vip 互換方法Oracle
- python愛奇藝VIP視訊爬蟲爬取下載Python爬蟲
- Vip積分管理系統專案JavaWeb開發流程JavaWeb
- Oracle RAC ASM磁碟組擴容時遇到的VIP漂移OracleASM