Oracle 11gR2 RAC connection management

Source: Internet
Author: User

For RAC, when an Oracle Instance fails, the application has several high-availability technologies to ensure availability. These technologies are transparent to the client, and the client may not be able to perceive the instance failure.
1. Transparent Application Failover (TAF)
Ii. Fast Connection Failover (FCF ).
When a node fails, TAF allows the database session to use OCI libraries for fail over to another surviving node. However, if the application uses JDBC thin driver, TAF cannot be used.
Failover Modes:
Session failover
Select failover
None (default)
1. select mode allows the query to be executed on the new node again, discard the rows that have been fetch, and continue to return the results to the client.
2. The none mode explicit declaration does not use TAF
3. TAF cannot restore any DML transaction, and the transaction will be rolled back on another node.
Failover Methods:
Basic
Preconnect
1. the Basic option means that the client creates a new connection after the instance fails. This method may cause the performance of the other node to degrade when the node fails, because many sessions will be reconnected to the surviving nodes.
2. The client generates a preconnected session as a backup to accelerate failover when the instance fails.
TAF is the client-side feature. We need to configure it in the client Tnsnames. ora or server through service.
1. Client implementation

In RAC, the typical configurations in tnsnames. ora are as follows:

  1. LEO1=
  2. (DESCRIPTION_LIST=
  3. (LOAD_BALANCE=Off)
  4. (FAILOVER=On)
  5. (DESCRIPTION=
  6. (ADDRESS_LIST=
  7. (LOAD_BALANCE=OFF)
  8. (FAILOVER=ON)
  9. (ADDRESS= (PROTOCOL=TCP)(HOST=Node1.Chinamobile.com )(PORT=1521))
  10. )
  11. (CONNECT_DATA=
  12. (SERVICE_NAME=Leo)
  13. (INSTANCE_NAME=Leo1)
  14. (FAILOVER_MODE= (TYPE=Session)(METHOD=Basic)(RETRIES=4)(DELAY=1))
  15. )
  16. )
  17. (DESCRIPTION=
  18. (ADDRESS_LIST=
  19. (LOAD_BALANCE=OFF)
  20. (FAILOVER=ON)
  21. (ADDRESS= (PROTOCOL=TCP)(HOST=Node2.Chinamobile.com )(PORT=1521))
  22. )
  23. (CONNECT_DATA=
  24. (SERVICE_NAME=Leo)
  25. (INSTANCE_NAME=Leo2)
  26. (FAILOVER_MODE= (TYPE=Session)(METHOD=Basic)(RETRIES=4)(DELAY=1))
  27. )
  28. )
  29. )
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next Page

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.