今天安装了Oracle 11.2.0.4的数据库,由于在安装GRID软件是,跑脚本的时候是现在节点2上跑的,跑完之后然后在节点1上跑。发现我的scan_ip在节点2上,我想把scan_ip

relocate 到节点1 上。操作如下:

[root@elvis112 ~]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 08:00:27:72:C8:E4  
          inet addr:192.168.56.112  Bcast:192.168.56.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe72:c8e4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2934765 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1149412 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4380939360 (4.0 GiB)  TX bytes:78738949 (75.0 MiB)

eth0:1    Link encap:Ethernet  HWaddr 08:00:27:72:C8:E4  
          inet addr:192.168.56.114  Bcast:192.168.56.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

eth0:2    Link encap:Ethernet  HWaddr 08:00:27:72:C8:E4  
          inet addr:192.168.56.115  Bcast:192.168.56.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

eth1      Link encap:Ethernet  HWaddr 08:00:27:ED:96:2A  
          inet addr:172.168.1.112  Bcast:172.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:feed:962a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11780 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10853 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:6299510 (6.0 MiB)  TX bytes:5513041 (5.2 MiB)

eth1:1    Link encap:Ethernet  HWaddr 08:00:27:ED:96:2A  
          inet addr:169.254.215.143  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:9230 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9230 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:8018947 (7.6 MiB)  TX bytes:8018947 (7.6 MiB)

[grid@elvis112 ~]$ crs_stat -t
Name           Type           Target    State     Host        
------------------------------------------------------------
ora.DATA1.dg   ora....up.type ONLINE    ONLINE    elvis111    
ora....ER.lsnr ora....er.type ONLINE    ONLINE    elvis111    
ora....N1.lsnr ora....er.type ONLINE    ONLINE    elvis112    
ora.asm        ora.asm.type   ONLINE    ONLINE    elvis111    
ora.cvu        ora.cvu.type   ONLINE    ONLINE    elvis112    
ora....SM2.asm application    ONLINE    ONLINE    elvis111    
ora....11.lsnr application    ONLINE    ONLINE    elvis111    
ora....111.gsd application    OFFLINE   OFFLINE               
ora....111.ons application    ONLINE    ONLINE    elvis111    
ora....111.vip ora....t1.type ONLINE    ONLINE    elvis111    
ora....SM1.asm application    ONLINE    ONLINE    elvis112    
ora....12.lsnr application    ONLINE    ONLINE    elvis112    
ora....112.gsd application    OFFLINE   OFFLINE               
ora....112.ons application    ONLINE    ONLINE    elvis112    
ora....112.vip ora....t1.type ONLINE    ONLINE    elvis112    
ora.gsd        ora.gsd.type   OFFLINE   OFFLINE               
ora....network ora....rk.type ONLINE    ONLINE    elvis111    
ora.oc4j       ora.oc4j.type  ONLINE    ONLINE    elvis112    
ora.ons        ora.ons.type   ONLINE    ONLINE    elvis111    
ora....ry.acfs ora....fs.type ONLINE    ONLINE    elvis111    
ora.scan1.vip  ora....ip.type ONLINE    ONLINE    elvis112   
-------上面显示scan ip在elvis112上 
[grid@elvis112 ~]$ srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node elvis112
[grid@elvis112 ~]$ srvctl relocate -h
The SRVCTL relocate command relocates a running Oracle Clusterware managed object to another node or instance.
Usage: srvctl relocate database -d <db_unique_name> {[-n <target>] [-w <timeout>] | -a [-r]} [-v]
Usage: srvctl relocate service -d <db_unique_name> -s <service_name> {-i <old_inst_name> -t <new_inst_name> | -c <current_node> -n <target_node>} [-f]
Usage: srvctl relocate server -n "<server_list>" -g <pool_name> [-f]
Usage: srvctl relocate vip -i <vip_name> [-n <node_name>] [-f] [-v]
Usage: srvctl relocate scan -i <ordinal_number> [-n <node_name>]
Usage: srvctl relocate scan_listener -i <ordinal_number> [-n <node_name>]
Usage: srvctl relocate oc4j [-n <node_name>] [-v]
Usage: srvctl relocate gns [-n <node_name>] [-v]
Usage: srvctl relocate cvu [-n <node_name>]
For detailed help on each command and object and its options use:
  srvctl <command> <object> -h
[grid@elvis112 ~]$ srvctl relocate scan_listener -i elvis112 -n elvis111
PRKO-2111 : Invalid number elvis112 for command line option i  
-----注意,上述报错,-i为ordinal_number -n为节点的名字。官档描述如下:
srvctl relocate scan_listener -i ordinal_number [-n node_name]
Note:This command is only available with Oracle Clusterware.
OptionDescription
-i ordinal_number
An ordinal number that identifies which SCAN VIP you want to relocate. The range of values you can specify for this option is 1 to 3.
-n node_name
The name of a single node.
If you do not specify this option, then the utility chooses the node to which the SCAN VIP is relocated.

Example
An example of this command is:
$ srvctl relocate scan_listener -i 1 -n node3

[grid@elvis112 ~]$ srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521
[grid@elvis112 ~]$ srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node elvis112
[grid@elvis112 ~]$ srvctl relocate scan_listener -i 1 -n elvis111
[grid@elvis112 ~]$ crs_stat -t -v
Name           Type           R/RA   F/FT   Target    State     Host        
----------------------------------------------------------------------
ora.DATA1.dg   ora....up.type 0/5    0/     ONLINE    ONLINE    elvis111    
ora....ER.lsnr ora....er.type 0/5    0/     ONLINE    ONLINE    elvis111    
ora....N1.lsnr ora....er.type 0/5    0/0    ONLINE    ONLINE    elvis111    
ora.asm        ora.asm.type   0/5    0/     ONLINE    ONLINE    elvis111    
ora.cvu        ora.cvu.type   0/5    0/0    ONLINE    ONLINE    elvis112    
ora....SM2.asm application    0/5    0/0    ONLINE    ONLINE    elvis111    
ora....11.lsnr application    0/5    0/0    ONLINE    ONLINE    elvis111    
ora....111.gsd application    0/5    0/0    OFFLINE   OFFLINE               
ora....111.ons application    0/3    0/0    ONLINE    ONLINE    elvis111    
ora....111.vip ora....t1.type 0/0    0/0    ONLINE    ONLINE    elvis111    
ora....SM1.asm application    0/5    0/0    ONLINE    ONLINE    elvis112    
ora....12.lsnr application    0/5    0/0    ONLINE    ONLINE    elvis112    
ora....112.gsd application    0/5    0/0    OFFLINE   OFFLINE               
ora....112.ons application    0/3    0/0    ONLINE    ONLINE    elvis112    
ora....112.vip ora....t1.type 0/0    0/0    ONLINE    ONLINE    elvis112    
ora.gsd        ora.gsd.type   0/5    0/     OFFLINE   OFFLINE               
ora....network ora....rk.type 0/5    0/     ONLINE    ONLINE    elvis111    
ora.oc4j       ora.oc4j.type  0/1    0/2    ONLINE    ONLINE    elvis112    
ora.ons        ora.ons.type   0/3    0/     ONLINE    ONLINE    elvis111    
ora....ry.acfs ora....fs.type 0/5    0/     ONLINE    ONLINE    elvis111    
ora.scan1.vip  ora....ip.type 0/0    0/0    ONLINE    ONLINE    elvis111

---------可以看到已经relocate到elvis111上了,达到了我想要的效果
[grid@elvis112 ~]$ srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node elvis111

11g relocate scan ip的更多相关文章

  1. [转]Oracle 11g RAC SCAN ip的原理及配置

    原文地址:http://tiany.blog.51cto.com/513694/1421917/ Oracle 11g RAC SCAN ip的原理及配置   Oracle 11g RAC网格即插即用 ...

  2. Oracle 11g RAC客户端使用SCAN IP无法连接问题

    Oracle 版本:11.2.0.1.0 客户端:Windows Server 2003/PLSQL Developer Oracle服务器端的ip设置如下: ##公网ip 192.168.135.2 ...

  3. 如何理解oracle 11g scan ip

    如何理解oracle 11g scan ip   在11.2之前,client链接数据库的时候要用vip,假如你的cluster有4个节点,那么客户端的tnsnames.ora中就对应有四个主机vip ...

  4. Scan IP relocate/failover其它段后不能ping通过

    或手动集群重启单个节点srvctl relocate scan_listener后.群集网络段ping IP,VIP.SCAN IP正常.其他段ping SCAN IP 不通.其原因是,该路由ARP表 ...

  5. Oracle 11G R2 RAC中的scan ip 的用途和基本原理【转】

    Oracle 11G R2 RAC增加了scan ip功能,在11.2之前,client链接数据库的时候要用vip,假如你的cluster有4个节点,那么客户端的tnsnames.ora中就对应有四个 ...

  6. Oracle 11G R2 RAC中的scan ip 的用途和基本原理

    Oracle 11G R2 RAC增加了scan ip功能,在11.2之前,client链接数据库的时候要用vip,假如你的cluster有4个节点,那么客户端的tnsnames.ora中就对应有四个 ...

  7. oracle rac scan ip 用途 原理

    Oracle 11G R2 RAC增加了scan ip功能,在11.2之前,client链接数据库的时候要用vip,假如你的cluster有4个节点,那么客户端的tnsnames.ora中就对应有四个 ...

  8. RAC8——scan ip的理解

    SCAN概念 先介绍一下什么叫SCAN,SCAN(Single Client Access Name)是Oracle从11g R2开始推出的,客户端可以通过SCAN特性负载均衡地连接到RAC数据库.S ...

  9. 转载:细说oracle 11g rac 的ip地址

    本文转载自:细说oracle 11g rac 的ip地址 http://blog.sina.com.cn/s/blog_4fe6d4250102v5fa.html 以前搭建oracle rac的时候( ...

随机推荐

  1. win7 64位安装pywin32

    先安装pywin32-218.win-amd64-py3.4.exe文件: 安装完成后,用CMD管理员模式进入\Python34\Scripts\目录 输入pywin32_postinstall.py ...

  2. 通过yum来安装vsftpd

    Linux系统:centos6.6.  安装步骤  1.通过yum来安装vsftpd [root@localhost ~]# yum -y install vsftpd 2.设置为开机启动 [root ...

  3. 所谓jQuery.append()、jQuery.html()存在的XSS漏洞

    使用jQuery.append().jQuery.html()方法时,如果其中内容包含<script>脚本而没有经过任何处理的话,会执行它. 简单的示例代码如下: var xssStr = ...

  4. C++反汇编-结构体和类

    学无止尽,积土成山,积水成渊-<C++反汇编与逆向分析技术揭秘> 读书笔记 对象的内存布局 一般计算公式: 对象内存大小 = sizeof(数据成员1)+ sizeof(数据成员2) +. ...

  5. Setup Factory打包winform程序

    摘要 Setup Factory是一款软件安装工具.Setup Factory支持创建一个安装文件或一个单间的setup.exe文件,生成文件可以运行于任意版本的windows中. 步骤 1.安装Se ...

  6. MVC二级联动使用$.ajax方法获取后端返回的字符串

    在"MVC二级联动使用$.getJSON方法"中使用$.getJSON()获取后端返回的JSon. 本篇使用jQuery的$.ajax()获取后端返回的字符串,实现二级联动.   ...

  7. bt z

    比特币从2008年开始启动,到09年创始区块的出现,甚至一直到10年和11年都只是中本聪自己一个人在运行这套程序.在早期这个极少数人参与到游戏里,大家运行一个软件,这个软件既是钱包也是挖矿软件,进行P ...

  8. C# 输入法 z

    C# 输入法 虽说输入法不是什么新事物,各种语言版本都有,不过在C#不常见:这就会给人一种误会:C#不能做!其实C#能不能做呢,答案是肯定的——三种方式都行:IMM.TSF以及外挂式.IMM这种就是调 ...

  9. 基于svnserve的SVN服务器(windows下安装与配置)

    基于svnserve的SVN服务器(windows下安装与配置) 基于svnserve的SVN服务器(windows下安装与配置)关键字: svn 安装SVNserve 从http://subvers ...

  10. 自用广告过滤规则,整合xwhyc大大的,非常小才79K

    xwhyc大大 好久没更新了,自己弄了一点 更新: $third-party选项过滤多个站点的第三方广告:dy1000.com.yatu.tv,greasyfork.org 主流视频站点,请配合我的脚 ...