Oracle 10g rac transparent failover and load balancing test

Source: Internet
Author: User
Tags taf

After establishing RAC on a virtual machine a few days ago, I tried to test the two functions of Oracle TAF (transparent application failover) and Server Load balancer.

1. Server Load balancer

First, edit the tnsnames. ora file on the server and add LOAD_BALANCE = yes to the orcl service. The content is as follows:

Then, download the file to the local instantclient installation path and open multiple sessions through sqlplus. It is found that these sessions are randomly allocated to different instances. For details, see:

2. transparent application failover

Run DBCA to enter Service Manager, configure the Failover Service orcltest, and select the two instances as the "preferred instance" (orcl1 is the "preferred instance" and orcl2 is the "available instance ", can also achieve this purpose), TAF policy select "Basic", see:

View the tnsnames. ora file and find that the orcltest service is missing, add the FAILOVER_MODE parameter, edit the local tnsnames. ora file, and add the orcltest service. The content is the same as that of the server. See:

Open two sessions on the client to connect to different nodes at the same time. After the RAC1 database is closed, the session connected to this node has been transferred to RAC2.

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.