You are on page 1of 26

Oracle RAC (Real Application

Clusters) multiple listeners and load


balance

• Oracle RAC supports clusters, multiple


listeners, load balance.
• AOD only supports clusters, multiple
listeners.
Oracle client tnsnames.ora for
Multiple listeners
EBSRVFI1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = man3a002l02-vip)(PORT = 1523))
(ADDRESS = (PROTOCOL = TCP)(HOST = man3a002l03-vip)(PORT = 1523))
(LOAD_BALANCE = YES)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = FI1)
(FAILOVER_MODE =
(TYPE = SELECT)
(METHOD = BASIC)
(RETRIES = 180)
(DELAY = 5)
)
)
)

EBSRVFI2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = man3a002l03-vip)(PORT = 1524))
(ADDRESS = (PROTOCOL = TCP)(HOST = man3a002l02-vip)(PORT = 1524))
(LOAD_BALANCE = YES)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = FI2)
(FAILOVER_MODE =
(TYPE = SELECT)
(METHOD = BASIC)
(RETRIES = 180)
(DELAY = 5)
)
)
)
Scenario 1
After bring Node 1 back online
Scenario 2
After bring node 1 online again
Expecting Result
• Infrastructure listener and FI1 listener will always connect to Node 1
first as primary node
• FI2 listener will always connect to Node 2 first as primary node.
• When Node 1 is down, Infrastructure listener and FI1 listener will
switch to Node 2. FI2 listener will remain on Node 2
• When Node 1 back online again, Infrastructure listener and FI1
listener will switch back to Node 1, FI2 listener will remain on Node
2
• When Node 2 is down, Infrastructure listener and FI1 listener will
remain on Node 1, FI2 listener will switch to Node 1
• When Node 2 back online again, Infrastructure listener and FI1
listener will remain on Node 1, FI2 listener will switch back to Node
2
Recovery from failed over
• All the previous connection will be restore
to the original oracle rac node (based from
the AOD’s feedback, but they are not
100% sure)
Connecting to with node?
• srvctl status instance -d EB1RAC -i
EB1RAC1
• srvctl status nodeapps -n man3a002l02
• srvctl status instance -d EB1RAC -i
EB1RAC2
• srvctl status nodeapps -n man3a002l03
• oracle@man3a002l02:/oracle > srvctl status instance -d EB1RAC -i EB1RAC1
• Instance EB1RAC1 is running on node man3a002l02
• oracle@man3a002l02:/oracle > srvctl status nodeapps -n man3a002l02
• VIP is running on node: man3a002l02
• GSD is running on node: man3a002l02
• Listener is running on node: man3a002l02
• ONS daemon is running on node: man3a002l02
• oracle@man3a002l02:/oracle > crs_stat -t
• Name Type Target State Host
• ------------------------------------------------------------
• ora....C1.inst application ONLINE ONLINE man3a002l02
• ora....C2.inst application ONLINE ONLINE man3a002l03
• ora....AC1.srv application ONLINE ONLINE man3a002l02
• ora....AC2.srv application ONLINE ONLINE man3a002l03
• ora....BRAC.cs application ONLINE ONLINE man3a002l03
• ora.EB1RAC.db application ONLINE ONLINE man3a002l02
• ora....02.lsnr application ONLINE ONLINE man3a002l02
• ora....l02.gsd application ONLINE ONLINE man3a002l02
• ora....l02.ons application ONLINE ONLINE man3a002l02
• ora....l02.vip application ONLINE ONLINE man3a002l02
• ora....03.lsnr application ONLINE ONLINE man3a002l03
• ora....l03.gsd application ONLINE ONLINE man3a002l03
• ora....l03.ons application ONLINE ONLINE man3a002l03
• ora....l03.vip application ONLINE ONLINE man3a002l03
• oracle@man3a002l02:/oracle >
Connecting to which node?
• SELECT INST_ID, MACHINE,
TO_CHAR(logon_time, 'MM/DD/YYYY
HH24:MI:SS') LOGON_TIME,
SCHEMANAME, OSUSER FROM
GV$SESSION ORDER BY logon_time
DESC;
System information and Testing
• http://man3aekb01vm/wiki/index.php/AppE
ng:Development_RAC_Testing_Env
• Running the same test case on both FI1
and FI2 at the same time, then failover a
node
• Verify the failover is working as expected
• Verify test cases are working as expected.
• Record the test results
Submitting issue
• The oracle team wants to review all the
issues before submitting any CR.
• Tracking issue xls location:
Starteam\documentation\Enterprise
Banker 7.5\2-15 QA Test
Execution\Special
Projects\EB_Oracle_RAC_Style_URL\Ora
cle RAC issue tracking sheet.xls

You might also like