ORACLE-12C-RAC INSTALL
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ORACLE-12C-RAC INSTALL相关的知识,希望对你有一定的参考价值。
OS:
Oracle Linux Server release 5.7
DB:
12.1.0.1.0
挂载镜像:
mkdir /media/disk
mount /dev/cdrom /media/disk
安装oracle-linux依赖的所有包:
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 --执行并安装依赖的包
修改hosts,配置域名:
vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will 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
创建用户和组:
groupadd -g 5000 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
配置信息:
[[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
安装grid:
安装数据库,步骤如同11G-RAC,下面就不写了,可以参照我的11G-RAC.
热爱学习oracle的可以看看ML微博:http://weibo.com/liumaclean
在这也感谢ML为热爱oracle的童鞋做的贡献.
以上是关于ORACLE-12C-RAC INSTALL的主要内容,如果未能解决你的问题,请参考以下文章
HOWTO: install Oracle 12c Database on Centos8
[Oracle] - Install Oracle12cR1 on Oracle Linux 6.5 in VirtualBox
Oracle 12c agent install for linux
我的Android进阶之旅解决安装apk时出现错误:INSTALL_FAILED_CONFLICTING_PROVIDER : Package couldn‘t be installed in(代码片