Forgot your password?    
+ Reply to Thread
Results 1 to 1 of 1

Thread: How to change VIP in 11gR2

  1. #1
    Expert Oracle Administrator
    Join Date
    Oct 2011
    Location
    New Delhi, India
    Posts
    427

    How to change VIP in 11gR2

    Code:
    [root@rac1 ~]# srvctl config  vip -n rac1
    VIP exists.:rac1
    VIP exists.: /rac1-vip/192.168.2.251/255.255.255.0/eth0
    [root@rac1 ~]# su - oracle
    [oracle@rac1 ~]$ srvctl stop vip -n rac1 -f

    Code:
    [root@rac1 ~]# /sbin/ifconfig -a | egrep '(eth0|Mask)'
    eth0      Link encap:Ethernet  HWaddr 00:0C:29:FA:13:28  
              inet addr:192.168.2.100  Bcast:192.168.2.255  Mask:255.255.255.0
    eth0:3    Link encap:Ethernet  HWaddr 00:0C:29:FA:13:28  
              inet addr:192.168.2.150  Bcast:192.168.2.255  Mask:255.255.255.0
    eth0:4    Link encap:Ethernet  HWaddr 00:0C:29:FA:13:28  
              inet addr:192.168.2.151  Bcast:192.168.2.255  Mask:255.255.255.0
              inet addr:10.10.10.100  Bcast:10.10.10.255  Mask:255.255.255.0
              inet addr:127.0.0.1  Mask:255.0.0.0
    [root@rac1 ~]#
    Code:
    [root@rac2 ~]# /sbin/ifconfig -a | egrep '(eth0|Mask)'
    eth0      Link encap:Ethernet  HWaddr 00:0C:29:BB:9C:06  
              inet addr:192.168.2.200  Bcast:192.168.2.255  Mask:255.255.255.0
    eth0:1    Link encap:Ethernet  HWaddr 00:0C:29:BB:9C:06  
              inet addr:192.168.2.152  Bcast:192.168.2.255  Mask:255.255.255.0
    eth0:2    Link encap:Ethernet  HWaddr 00:0C:29:BB:9C:06  
              inet addr:192.168.2.252  Bcast:192.168.2.255  Mask:255.255.255.0
              inet addr:10.10.10.200  Bcast:10.10.10.255  Mask:255.255.255.0
              inet addr:127.0.0.1  Mask:255.0.0.0

    Code:
    [root@rac1 ~]# srvctl modify nodeapps -n rac1 -A 192.168.2.241/255.255.255.0/eth0
    Code:
    [root@rac1 ~]# srvctl config  vip -n rac1
    VIP exists.:rac1
    VIP exists.: /192.168.2.241/192.168.2.241/255.255.255.0/eth0
    Code:
    [root@rac1 ~]# srvctl start  vip -n rac1
    Code:
    [root@rac1 ~]# /sbin/ifconfig -a | egrep '(eth0|Mask)'
    eth0      Link encap:Ethernet  HWaddr 00:0C:29:FA:13:28  
              inet addr:192.168.2.100  Bcast:192.168.2.255  Mask:255.255.255.0
    eth0:1    Link encap:Ethernet  HWaddr 00:0C:29:FA:13:28  
              inet addr:192.168.2.241  Bcast:192.168.2.255  Mask:255.255.255.0
    eth0:3    Link encap:Ethernet  HWaddr 00:0C:29:FA:13:28  
              inet addr:192.168.2.150  Bcast:192.168.2.255  Mask:255.255.255.0
    eth0:4    Link encap:Ethernet  HWaddr 00:0C:29:FA:13:28  
              inet addr:192.168.2.151  Bcast:192.168.2.255  Mask:255.255.255.0
              inet addr:10.10.10.100  Bcast:10.10.10.255  Mask:255.255.255.0
              inet addr:127.0.0.1  Mask:255.0.0.0
    [root@rac1 ~]#
    Code:
    [root@rac1 ~]# cat /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1		localhost.localdomain localhost
    192.168.2.100		rac1.example.com 	rac1
    192.168.2.200		rac2.example.com	rac2
    # Private Interconnect - (eth1)
    10.10.10.100    rac1-priv.example.com      rac1-priv
    10.10.10.200    rac2-priv.example.com      rac2-priv
    
    # Public Virtual IP (VIP) addresses - (eth0:1)
    192.168.2.251    rac1-vip.example.com       rac1-vip
    192.168.2.252    rac2-vip.example.com       rac2-vip

    Code:
    [root@rac1 ~]# vi /etc/hosts
    
    [root@rac1 ~]# cat /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1		localhost.localdomain localhost
    192.168.2.100		rac1.example.com 	rac1
    192.168.2.200		rac2.example.com	rac2
    # Private Interconnect - (eth1)
    10.10.10.100    rac1-priv.example.com      rac1-priv
    10.10.10.200    rac2-priv.example.com      rac2-priv
    
    # Public Virtual IP (VIP) addresses - (eth0:1)
    192.168.2.241    rac1-vip.example.com       rac1-vip
    192.168.2.252    rac2-vip.example.com       rac2-vip

+ Reply to Thread

Similar Threads

  1. Enable block change tracking in Oracle for RMAN backups
    By Amit in forum Backup, Restoration & Recovery, RMAN, Flashback, Datapump, Export, Import
    Replies: 2
    Last Post: 02-03-2012, 02:04 PM
  2. Change Logo, Background and SplashScreen of Oracle APPS 11i
    By Amit in forum AD Utilities , Autoconfig , FND Utilities
    Replies: 2
    Last Post: 11-07-2011, 09:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

DBA Lounge (P) Ltd. deals in Oracle Technologies on Consulting, Resourcing, Corporate Training


Online and corporate training available on Oracle Database 11g, Oracle 11g Real Application Cluster (RAC), Oracle Applications 11i/R12, Oracle Fusion Middleware 11g, Oracle Identity Management-OIM, Oracle Internet Directory 11g-OID, Oracle Business Intelligence Enterprise Edition-OBIEE, Oracle Golden Gate, Oracle Access Management-OAM, Oracle Internet Directory-ODS, Oracle Identity Analytics Architecture-OIA Statistics