码迷,mamicode.com
首页 > 其他好文 > 详细

RAC一个节点添加本地监听地址

时间:2017-02-06 12:52:07      阅读:314      评论:0      收藏:0      [点我收藏+]

标签:art   esc   end   监听   nbsp   文件   srv   local   prot   

10g,修改oracle用户下$ORACLE_HOME/network/admin/listener.ora下的文件,增加类似红色一行

LISTENER_ORCLRAC1 =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = orclrac1-vip.com)(PORT = 1521)(IP = FIRST))
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.116.21)(PORT = 1521)(IP = FIRST))

       (ADDRESS = (PROTOCOL = TCP)(HOST = 145.145.20.21)(PORT = 1521)(IP = FIRST))

    )
  )

 

如果不是默认1521端口,需要重新设置local_listener 

重启监听即可

$srvctl stop listener -n orclrac1 

$srvctl start listener -n orclrac1 

 11g,修改grid用户下$ORACLE_HOME/network/admin/listener.ora下的文件,修改类似红色一行

#LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER))))            # line added by Agent
LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))(ADDRESS=(PROTOCOL=TCP)(HOST=10.10.10.11)(PORT=1521)(IP=FIRST))))
LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1))))                # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON                # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON              # line added by Agent

 

如果不是默认1521端口,需要重新设置local_listener 

 重启监听即可

 

$srvctl stop listener -n orclrac1 

$srvctl start listener -n orclrac1 

 

RAC一个节点添加本地监听地址

标签:art   esc   end   监听   nbsp   文件   srv   local   prot   

原文地址:http://www.cnblogs.com/dfzzqq/p/6369586.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!