Use shared storage to build Oracle dual-machine load. Of course, you can use rsync to synchronize the configuration files on the two machines to ensure high availability.
Use shared storage to build Oracle dual-machine load. Of course, you can use rsync to synchronize the configuration files on the two machines to ensure high availability.
Using shared storage to build Oracle dual-host Load
Preparation environment: two servers and one storage
Shows the basic principles:
Environment:
Shared storage: 172.16.0.5
DB1:
Eth0: 192.168.1.1
Eth1: 172.160.1
Vip: 192.168.1.5
DB2:
Eth0: 192.168.1.2
Eth1: 172.160.2
Vip: 192.168.1.5
Details
1. Create a data storage directory on shared storage
/Dev/oradata/
2. Create a mount directory and mount shared storage on DB1 and DB2.
/Oradata
3. DB1 Installation
Install the database on the shared storage according to the oracle installation method, and then uninstall the mounted shared storage;
4. DB2 Installation
Uninstall DB1 shared storage, and change the name of the directory under DB1 data directory on the shared storage;
Mount the shared storage to DB2;
Synchronize the installation configurations of DB1 on db2;
5. Unmount and share the data to DB2 and mount it to DB1 so that the DB1 environment can be restored to the state of the first data creation;
Once DB1 encounters a problem, Mount DB1vip to DB2 and enable the DB2 database. In this way, the DB2 environment is equivalent to DB1 before the fault;
6. Of course, you can use rsync software to synchronize the configuration files on the two machines to ensure high availability. See
,