rac下load balance分为两种:
1.client端load balance
tnsName =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = vip1)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = vip2)(PORT = 1521))
(LOAD_BALANCE = yes)
(CONNECT_DATA =(SERVICE_NAME = dbServiceName))
)
2.server端监听load balance
用REMOTE_LISTENER参数,指向tnsname.ora中的监听
LISTENERS_dbname =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = vip1)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = vip2)(PORT = 1521))
)[@more@]
1.client端load balance
tnsName =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = vip1)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = vip2)(PORT = 1521))
(LOAD_BALANCE = yes)
(CONNECT_DATA =(SERVICE_NAME = dbServiceName))
)
2.server端监听load balance
用REMOTE_LISTENER参数,指向tnsname.ora中的监听
LISTENERS_dbname =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = vip1)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = vip2)(PORT = 1521))
)[@more@]
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/112417/viewspace-918075/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/112417/viewspace-918075/