Building Oracle11g RAC in linux (1)
Document Description |
Author |
Deep Blue |
Project |
Simulate RAC construction in Visualbox (dual-node) (Redhat5 + Oracle11G) |
Environment |
RedHat performanise5.5, Oracle 11g 11.2.0 |
Date |
April 12, 2014 |
Version |
V1.1 |
Description |
Prepare two virtual machines, node1 (node 1) and node2 (node 2). the linux operating system has been installed. In addition, the document is compiled after the building. The naming details of Node 1 and node 2 are different. Please note when referring to this document. Due to the time relationship, it will gradually improve. |
Basic RAC knowledge
Cluster |
Only a single server |
Cluster Features |
HA (High Available) fault tolerance (Failover) and load balancing (Balance) |
HA Environment |
Hot standby (one node is active and one node is standby) Dual-host mutual backup (both nodes are active) |
RAC |
Real Application Cluster |
RAC features |
A database can be accessed by multiple instances. Each node has an instance. |
CRS |
Cluster Ready Service |
GRID |
After the grid architecture is installed, oracle is as convenient as electricity, and the node is plug-and-play. |
ASM |
Automatic storage manager 1. strip is mainly used to distribute I/O and provide read/write performance. 2. Image, mirror |
RAW |
Bare devices have fast access, but are unstable and inconvenient to manage in the operating system. The bare devices are not supported after the oracle 11g, use oracle's asm for Automatic Storage Management at 11 GB |
Two important disks: 1. OCR disk: ocr is used to store configuration information related to resources on RAC. On RAC, the running application service is a kind of resource, the distribution of these resources on RAC will be stored on the OCR disk, and 10 Gb is previously stored on RAW bare devices; 2. VOTE disk: used to store the status of each node and the role of arbitration. It is also called an arbitration disk. |
Virtualbox settings create three directories to store hard disks
Preparation:
Create three directories to store Disk Files: node1, node2, and sharedisk
Note:
Node1 stores Node 1 Disk Files
Node2 stores Node 2 Disk Files
Sharedisk stores shared Disk Files
Import node1 and node2 Images
Import the experiment to Vbox using two images.
[Supplement]: vbox modifies the backup location.
1. Import a virtual computer
2. modify the configuration of the import wizard.
Modify the following content:
Example:
Name: metro1
Memory: 1580 MB
Virtual hard drive: H: \ rac \ rac1 \ metro1-disk1.vmdk
Check to reassign a MAC address
3. The import virtual machine interface is as follows:
Configure storage node1 to add a 30G (local) Dynamic Disk
Add a 20G (shared) Fixed Disk to node1
1. Create a New Disk
2. Select VDI disk format
3. Select a fixed size (Be sure to pay attention)
4. Set the Virtual Disk location and size
The disk size is set to 20 GB. It does not need to be too large because it takes too long to create a fixed-size disk.
Click OK.
Add a 30 GB Dynamic Disk to node2
Add a 30G (local) disk to node1.
Modify the shared disk mode in node1.
Set a connection to a shared disk under node2.
Configure the NIC to set Bridged Adapter Nic 1 for node1
Set Host-onlyEtherent Adapter Nic 2 for node1
Set Bridged Adapter Nic 1 for node2
Set BridgedAdapter Nic 1 with node1
Set Host-only Etherent Adapter Nic 2 for node2 and Host-onle Ethernet Adapter Nic 2 for node1.
************************** About the virtual machine preparation completed ******* *************************
******** ******************************
Statement:
Original works, from "Deep Blue blog" blog, allow reprint, reprint please be sure to indicate the source (http://blog.csdn.net/huangyanlong ). The author has the right to pursue legal liability for copyright issues.