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

服务端配置scan ip

时间:2016-11-20 00:01:49      阅读:499      评论:0      收藏:0      [点我收藏+]

标签:修改   技术   altered   节点   地址   分享   show   toc   prot   

 

 

节点1确认当前监听状态

SQL> show parameter listener;

 

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

listener_networks                    string

local_listener                       string       (ADDRESS=(PROTOCOL=TCP)(HOST=

                                                 192.168.0.118)(PORT=1521))

remote_listener                      string

 

节点2 确认当前监听状态

SQL> show parameter listener;

 

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

listener_networks                    string

local_listener                       string       (ADDRESS=(PROTOCOL=TCP)(HOST=

                                                 192.168.0.119)(PORT=1521))

remote_listener                      string

 

节点1、节点2 只有本地监听。本地监听的地址 都是  VIP

 

 

节点1 修改 remote_listener 为 scan 地址

SQL> alter system set remote_listener=‘(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.120)(PORT=1521))‘;

 

System altered.

 

SQL> alter system register;

 

System altered.

 

确认以上操作

SQL> show parameter listener;

 

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

listener_networks                    string

local_listener                       string       (ADDRESS=(PROTOCOL=TCP)(HOST=

                                                 192.168.0.118)(PORT=1521))

remote_listener                      string      (ADDRESS=(PROTOCOL=TCP)(HOST=1

                                                 92.168.0.120)(PORT=1521))

                                                

节点2 修改 remote_listener 为 scan 地址

SQL> alter system set remote_listener=‘(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.120)(PORT=1521))‘;

 

System altered.

 

SQL> alter system register;

 

System altered.

 

确认以上操作

SQL> show parameter listener;

 

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

listener_networks                    string

local_listener                       string       (ADDRESS=(PROTOCOL=TCP)(HOST=

                                                 192.168.0.119)(PORT=1521))

remote_listener                      string      (ADDRESS=(PROTOCOL=TCP)(HOST=1

                                                 92.168.0.120)(PORT=1521))   

 

 

 

客户端 连接 SCAN_IP

技术分享

 

 

                                                

                                            

服务端配置scan ip

标签:修改   技术   altered   节点   地址   分享   show   toc   prot   

原文地址:http://www.cnblogs.com/iyoume2008/p/6081671.html

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