环境:red hat 4.7 +oracle 10g
1.在节点1的tnsname.ora增加
local_listener_rac=
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.201)(PORT = 1521))
)
其中host=192.168.1.201 为vip地址
2.在节点2的tnsname.ora增加
local_listener_rac=
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.202)(PORT = 1521))
)
3.在任意节点修改local_listener参数
SQL> alter system set local_listener='local_listener_rac' scope=spfile;
System altered.
4.重启各节点上的实例
1.在节点1的tnsname.ora增加
local_listener_rac=
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.201)(PORT = 1521))
)
其中host=192.168.1.201 为vip地址
2.在节点2的tnsname.ora增加
local_listener_rac=
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.202)(PORT = 1521))
)
3.在任意节点修改local_listener参数
SQL> alter system set local_listener='local_listener_rac' scope=spfile;
System altered.
4.重启各节点上的实例
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26937943/viewspace-1809396/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/26937943/viewspace-1809396/