ORACLE-12C-RAC INSTALL

haoge0205發表於2013-11-28

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

配置資訊:

[root@rac1 u01]# su - grid

[root@rac1 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

[root@rac2 CVU_12.1.0.1.0_grid]# su - grid

[grid@rac2 ~]$ 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

[root@rac1 u01]# su - oracle
[oracle@rac1 ~]$ 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

[root@rac2 ~]# su - oracle
[oracle@rac2 ~]$ 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:

ORACLE-12C-RAC INSTALL

ORACLE-12C-RAC INSTALL

ORACLE-12C-RAC INSTALL

ORACLE-12C-RAC INSTALL

ORACLE-12C-RAC INSTALL

ORACLE-12C-RAC INSTALL

ORACLE-12C-RAC INSTALL

ORACLE-12C-RAC INSTALL

ORACLE-12C-RAC INSTALL

ORACLE-12C-RAC INSTALL

ORACLE-12C-RAC INSTALL

ORACLE-12C-RAC INSTALL

ORACLE-12C-RAC INSTALL

ORACLE-12C-RAC INSTALL

ORACLE-12C-RAC INSTALL

ORACLE-12C-RAC INSTALL

ORACLE-12C-RAC INSTALL

ORACLE-12C-RAC INSTALL

ORACLE-12C-RAC INSTALL

ORACLE-12C-RAC INSTALL
ORACLE-12C-RAC INSTALL

ORACLE-12C-RAC INSTALL

安裝資料庫,步驟如同11G-RAC,下面就不寫了,可以參照我的11G-RAC.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28939273/viewspace-1061469/,如需轉載,請註明出處,否則將追究法律責任。

相關文章