OS:
Oracle Linux Server Release 5.7
Db:
12.1.0.1.0
Mount Image:
Mkdir/media/disk
Mount/dev/cdrom/media/disk
Install all packages that Oracle-linux depends on:
Vi/etc/yum.repos.d/public-yum-el5.repo
[Oel5]
Name = Enterprise Linux 5.7 DVD
baseurl=file:///media/disk/server/
Gpgcheck=0
Enabled=1
Yum Install oracle-validated--execute and install dependent packages
To modify the hosts, configure the domain name:
Vi/etc/hosts
# don't remove the following line, or various programs
# that require network functionality would fail.
#127.0.0.1 Rac1 localhost.localdomain localhost
#::1 localhost6.localdomain6 Localhost6
127.0.0.1 localhost
192.168.228.161 Rac1
192.168.228.168 RAC1-VIP
1.1.1.161 Rac1-priv
192.168.228.162 RAC2
192.168.228.169 RAC2-VIP
1.1.1.162 Rac2-priv
192.168.228.170 Rac-scan
To create users and groups:
Groupadd-g Asmadmin
Groupadd-g 5001 ASMDBA
Groupadd-g 5002 Asmoper
GROUPADD-G 6000 Oinstall
Groupadd-g 6001 DBA
Groupadd-g 6002 Oper
Useradd-g oinstall-g asmadmin,asmdba,asmoper Grid
USERADD-G oinstall-g DBA,ASMDBA Oracle
Configuration information:
[Email protected] u01]# Su-grid
[Email protected] u01]# more. Bash_profile
Crs_home=/u02/grid/app/11.2.0/grid
Oracle_home=/u02/grid/app/11.2.0/grid
Oracle_base=/orabase
Oracle_sid=+asm1
Path= $CRS _home/bin: $PATH: $HOME/bin
Export PATH crs_home oracle_base oracle_sid oracle_home
[Email protected] cvu_12.1.0.1.0_grid]# Su-grid
[Email protected] ~]$ more. Bash_profile
Crs_home=/u02/grid/app/11.2.0/grid
Oracle_home=/u02/grid/app/11.2.0/grid
Oracle_base=/orabase
Oracle_sid=+asm2
Path= $CRS _home/bin: $PATH: $HOME/bin
Export PATH crs_home oracle_base oracle_sid oracle_home
[Email protected] u01]# su-oracle
[Email protected] ~]$ more. Bash_profile
#. Bash_profile
# Get the aliases and functions
If [-f ~/.BASHRC]; Then
. ~/.bashrc
Fi
# User specific environment and startup programs
Path= $PATH: $HOME/bin
Export PATH
Oracle_base=/u01
Oracle_home=/u01/oracle/app/oracle/product/11.2.0/dbhome_1
Oracle_sid=yoon_1
Path= $ORACLE _home/opatch: $ORACLE _home/bin: $PATH: $HOME/bin
Export PATH oracle_base oracle_home oracle_sid
[Email protected] ~]# su-oracle
[Email protected] ~]$ more. Bash_profile
#. Bash_profile
# Get the aliases and functions
If [-f ~/.BASHRC]; Then
. ~/.bashrc
Fi
# User specific environment and startup programs
Path= $PATH: $HOME/bin
Export PATH
Oracle_base=/u01
Oracle_home=/u01/oracle/app/oracle/product/11.2.0/dbhome_1
Oracle_sid=yoon_2
Path= $ORACLE _home/opatch: $ORACLE _home/bin: $PATH: $HOME/bin
Export PATH oracle_base oracle_home oracle_sid
To install the grid:
Install the database, steps like 11g-rac, the following is not written, you can refer to my 11g-rac.
Love Learning Oracle can look at the ml Weibo: Http://weibo.com/liumaclean
Thanks to ML's contribution to the love of Oracle's children's shoes.
Oracle-12c-rac INSTALL