After the server environment is configured, start installing the Grid foundation Setup Gridinfrastructure, and the firewall of the three servers needs to be shut down before installation. Part of the configuration see the following figure:
|
Installation Configuration |
|
User |
Group |
Oracle_base |
Installation Path |
|
Oracle |
Oinstall |
/u01/app/oracle |
/u01/app/oracle/product/12.1.0/dbhome_1 |
|
Dba |
|
Oper |
|
Asmadmin |
/u01/app/grid |
/u01/app/12.1.0/grid |
|
Asmdba |
|
Asmoper |
Installation users use Oracle users to create all groups and ASM groups for the subsequent installation of the RAC database, noting that the following users and groups are required to be created by host01 and host02.
[root@host01 ~]# useradd Oracle
[root@host01 ~]# groupadd oinstall
[root@host01 ~]# groupadd dba
[ root@host01 ~]# groupadd oper
[root@host01 ~]# groupadd asmdba] [root@host01 ~]# groupadd asmadmin
[ root@host01 ~]# groupadd asmoper
[root@host01 ~]#-G usermod-a oinstall-g, Asmoper Oracle
GI installation and single instance of a slightly different, the main diagram is as follows, you need to pay attention to the network configuration is not configured well, installation can not be carried out smoothly.
If DNS is not configured correctly, the CLUSTER01 cannot be detected at this time, and the next two chapters need to be checked with the previous configuration
The configuration of the SSH link requires that the same users and groups be configured host01, host02, and, if not properly configured, the host name and host user information.
When you are ready to click Settings, you may see that the settings are successful but the test will not succeed, and carefully check that the network IP address is set correctly. You will need to restart your computer after you modify some files before you can reinstall it. If you still have an error after restarting, view the error log.
Here you need to pay attention to the space size to choose common redundancy.
Note The file directory location, the directory owner for the Oracle group is Oinstall, if not with root execution chown-r Oracle:oinstall/u01/app two hosts need to execute.
12c execution script can choose to run automatically, but it does not recommend that if you choose to automate the script is not executed successfully, can not manually arrange the error, do not recommend tick.
The fixed command requires root to perform an automatic repair of the two hosts separately, with the following warning. Use Yum to install a warning package.
After you install the associated packages using Yum, the warning issues for the package should be gone, for example: Yum install compat-libcap1-1.1.0 can also be installed on its own RPM but it's tedious to skip here.
Network Time Protocol error (NTP), where our DNS server as a clock server, so we host01 and host02 do not need NTP service, under HOST01 and host02 execute the following command, turn off the local ntpd
Mv/etc/ntp.conf/etc/ntp.confbak
resolv.conf integrity errors, you need to edit the/etc/resolve.conf file on both hosts host01 and host02 to add the following:
Search example.com
nameserver 10.0.1.3
options Rotate options
timeout:2
options Attempts:5
After all the operation is done, there are still the following problems, the physical memory is not enough, this depends on the memory of your host, the general setting is more than 4G basic to meet the requirements, here we ignore.
If the option to execute the script is not previously selected, it is necessary to use ROOT to execute/u01/app/12.1.0/grid/root.sh,host01 on the host02 after host01 and host02 are executed sequentially.
According to the picture installed after the GI, so congratulations on your RAC Basic calculate successfully, the following is installed RACDB.