Oracle RAC load balancing test (combined with server and client)

Source: Internet
Author: User

Oracle RAC Load Balancing allows connections initiated from clients to be effectively allocated to instances with low listener load. There are two methods to achieve load balancing on the client. One is to configure the load_balance of the client, and the other is to configure the remote_listener parameter on the server. The two methods have their own advantages and disadvantages, and they are not mutually exclusive. Therefore, the two methods can be combined to achieve load balancing more effectively. This article describes the use of the two (oralce 10g rac ).

For separate tests on Server Load balancer between clients, see:

Load Balance)

Oracle RAC server connection Load Balance)

The tests in this article combine the scripts and samples used in the previous article, which is a summary of the previous two tests.

I. Configuration Requirements

1. The listeners on each node on the server can provide services normally. If you use non-default port 1521, refer to the non-default port monitoring configuration in oracle rac (listener. ora tnsnames. ora)

  1. Oracle @ bo2dbp: ~> More $ ORACLE_HOME/network/admin/listener. ora
  2. # Listener. ora. bo2dbp Network Configuration File:/u01/oracle/db/network/admin/listener. ora. bo2dbp
  3. # Generated by Oracle configuration tools.
  4. LISTENER_BO2DBP =
  5. (DESCRIPTION_LIST =
  6. (DESCRIPTION =
  7. (ADDRESS = (PROTOCOL = TCP) (HOST = bo2dbp-vip.2gotrade.com) (PORT = 1521) (IP = FIRST ))
  8. (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.7.51) (PORT = 1521) (IP = FIRST ))
  9. )
  10. )
  11. SID_LIST_LISTENER_BO2DBP =
  12. (SID_LIST =
  13. (SID_DESC =
  14. (SID_NAME = PLSExtProc)
  15. (ORACLE_HOME =/u01/oracle/db)
  16. (PROGRAM = extproc)
  17. )
  18. )
  19. Oracle @ bo2dbp: ~> Lsnrctl status
  20. Service "GOBO4" has 2 instance (s ).
  21. Instance "GOBO4A", status READY, has 2 handler (s) for this service...
  22. Instance "GOBO4B", status READY, has 1 handler (s) for this service...

2. remote_listener parameter settings on the server

The connection identifier of the remote_listener parameter is required to have corresponding entries in tnsnames. ora on the server side.

  1. SQL> show parameter listener
  2. NAME TYPE VALUE
  3. -----------------------------------------------------------------------------
  4. Local_listener string
  5. Remote_listener string remote_lsnr_gobo4
  6. Oracle @ bo2dbp: ~> More $ ORACLE_HOME/network/admin/tnsnames. ora
  7. # Tnsnames. ora Network Configuration File:/u01/oracle/db/network/admin/tnsnames. ora
  8. # Generated by Oracle configuration tools.
  9. Remote_lsnr_gobo4 =
  10. (ADDRESS_LIST =
  11. (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.7.61) (PORT = 1521 ))
  12. (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.7.62) (PORT = 1521 ))
  13. )

3. Enable load_balance in client tnsnames. ora

  1. Oracle @ SZDB: ~> Tail-11 $ ORACLE_HOME/network/admin/tnsnames. ora
  2. GOBO4 =
  3. (DESCRIPTION =
  4. (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.7.61) (PORT = 1521 ))
  5. (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.7.62) (PORT = 1521 ))
  6. (LOAD_BALANCE = yes)
  7. (CONNECT_DATA =
  8. (SERVER = DEDICATED)
  9. (SERVICE_NAME = GOBO4)
  10. )
  11. )
  • 1
  • 2
  • Next Page

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.