Server side load balancing in RAC

Server side load balancing in RAC

Add following setting in $ORACLE_HOME/network/admin/listener.ora file on each node

PREFER_LEAST_LOADED_NODE_LISTENER_=OFF

Set LOCAL & REMOTE listener parameter

For example, if I have 3 node cluster

local_listener parameter can be added as

alter system set local_listener='(ADDRESS = (PROTOCOL = TCP)(HOST = ) (PORT = 1521))’ scope=spfile sid=’TESTDB1′;
alter system set local_listener='(ADDRESS = (PROTOCOL = TCP)(HOST = ) (PORT = 1521))’ scope=spfile sid=’TESTDB2′;
alter system set local_listener='(ADDRESS = (PROTOCOL = TCP)(HOST = ) (PORT = 1521))’ scope=spfile sid=’TESTDB3′;

remote_listener parameter

alter system set remote_listener=’LISTENERS_TESTDB’;

where LISTENERS_TESTDB is a $ORACLE_HOME/network/admin/tnsnames.ora entry

LISTENERS_TESTDB =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = )(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = )(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = )(PORT = 1521))
)

Background process PMON, will update the load information. Based on this information, new requests are assigned to the nodes.

Advertisements
This entry was posted in Oracle Connectivity, Oracle Real Application Cluster and tagged . Bookmark the permalink.

2 Responses to Server side load balancing in RAC

  1. orapal says:

    Simple & Good artical.

  2. vinod says:

    Easy to understand.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s