Linux7.2安裝ORACLE12C_RAC

ASM磁盤空間規(guī)劃
OCR+VOTING 8G三個(gè)NORMAL冗余
MGMT 80G 外部冗余

創(chuàng)新互聯(lián)建站是一家專業(yè)提供沙市企業(yè)網(wǎng)站建設(shè),專注與網(wǎng)站設(shè)計(jì)、做網(wǎng)站、H5場(chǎng)景定制、小程序制作等業(yè)務(wù)。10年已為沙市眾多企業(yè)、政府機(jī)構(gòu)等服務(wù)。創(chuàng)新互聯(lián)專業(yè)網(wǎng)站建設(shè)公司優(yōu)惠進(jìn)行中。

1、硬件檢測(cè)
內(nèi)存(最少8G)

grep MemTotal /proc/meminfo

swap空間(4-16G equal to RAM more than 16GB:16GB )

grep SwapTotal /proc/meminfo

/tmp目錄大小 >2G

df -h /tmp

空閑內(nèi)存

free

內(nèi)核版本:
uname -r

df -h /dev/shm

2、系統(tǒng)版本

cat /etc/oracle-release

cat /etc/redhat-release

lsb_release -id

uname -r

3、修改主機(jī)名:
節(jié)點(diǎn)1:
hostname dwdb1
hostnamectl --static set-hostname dwdb1

節(jié)點(diǎn)2:
hostname dwdb2
hostnamectl --static set-hostname dwdb2

4、關(guān)閉防火墻:
systemctl status firewalld
systemctl stop firewalld
systemctl disable firewalld

看狀態(tài)
firewall-cmd --state

systemctl stop firewalld.service
systemctl disable firewalld.service

5、配置主機(jī)名和IP地址對(duì)應(yīng)關(guān)系
vi /etc/hosts 添加如下內(nèi)容

public

10.1.11.1 dwdb1
10.1.11.2 dwdb2

private

20.1.1.39 dwdb1-priv
20.1.1.40 dwdb2-priv

vip

10.1.11.161 dwdb1-vip
10.1.11.162 dwdb2-vip

scanip

10.1.11.163 scan-dwdb

修改/etc/sysconfig/network
NOZEROCONF=yes

6、安裝依賴包:(oracle linux 7.2依賴包如下,具體可參考官方文檔)
yum install -y binutils-2.23.52.0.1-12.el7
yum install -y compat-libcap1-1.10-3.el7
yum install -y compat-libstdc++-33-3.2.3-71.el7
yum install -y glibc-2.17-36.el7
yum install -y glibc-devel-2.17-36.el7
yum install -y ksh
yum install -y libaio-0.3.109-9.el7
yum install -y libaio-devel-0.3.109-9.el7
yum install -y libX11-1.6.0-2.1.el7
yum install -y libXau-1.0.8-2.1.el7
yum install -y libXi-1.7.2-1.el7
yum install -y libXtst-1.2.2-1.el7
yum install -y libgcc-4.8.2-3.el7
yum install -y libstdc++-4.8.2-3.el7
yum install -y libstdc++-devel-4.8.2-3.el7
yum install -y libxcb-1.9-5.el7
yum install -y make-3.82-19.el7
yum install -y nfs-utils-1.3.0-0.21.el7.x86_64
yum install -y net-tools-2.0-0.17.20131004git.el7
yum install -y smartmontools-6.2-4.el7
yum install -y sysstat-10.1.5-1.el7
yum install -y compat-libcap1-1.10
yum install -y sysstat-10.1.5
yum install -y libaio-devel-0.3.109

7、關(guān)閉transparent hugepages,設(shè)置hugepages
查看transparent hugepage
Red Hat Enterprise Linux kernels:

cat /sys/kernel/mm/redhat_transparent_hugepage/enabled

Other kernels:

cat /sys/kernel/mm/transparent_hugepage/enabled

oracle linux 7.2 沒有開啟transparent hugepages,忽略。

8、啟用Name Service Cache Deamon

yum install -y nscd

systemctl start nscd

systemctl enable nscd

7、verifying the Disk I/O Scheduler on Linux
cat /sys/block/${ASM_DISK}/queue/scheduler
noop [deadline] cfq

8、配置NTP時(shí)間同步

ntpdate 10.1.30.231

vi /etc/ntp.conf 修改以下內(nèi)容

server 10.1.30.231 iburst
server 10.1.30.232 iburst

systemctl enable ntpd.service

/etc/init.d/ntpd start

/chkconfig ntpd on

/chkconfig --list ntpd

systemctl restart chronyd.service
systemctl enable chronyd.service

9、網(wǎng)絡(luò)配置(/etc/sysctl.conf)
private address to 2
public address to 1

bond1 p4p1 em3 20.1.1.39 private
bond0 p5p1 p6p1 10.1.11.1 public

net.ipv4.conf.p4p1.rp_filter=2
net.ipv4.conf.em3.rp_filter=2
net.ipv4.conf.p5p1.rp_filter=1
net.ipv4.conf.p6p1.rp_filter=1

10、用戶和組:
/usr/sbin/groupadd -g 54321 oinstall
/usr/sbin/groupadd -g 54322 dba
/usr/sbin/groupadd -g 54323 oper
/usr/sbin/groupadd -g 54324 backupdba
/usr/sbin/groupadd -g 54325 dgdba
/usr/sbin/groupadd -g 54326 kmdba
/usr/sbin/groupadd -g 54327 asmdba
/usr/sbin/groupadd -g 54328 asmoper
/usr/sbin/groupadd -g 54329 asmadmin
/usr/sbin/groupadd -g 54330 racdba

/usr/sbin/useradd -u 54321 -g oinstall -G dba,asmdba,backupdba,dgdba,kmdba,racdba oracle

/usr/sbin/useradd -u 54331 -g oinstall -G dba,asmdba,asmoper,asmadmin grid

passwd oracle
hagj5Xc2GokR

passwd grid
a31K0eBBJMXW

11、目錄:
mkdir -p /u01/app/oraInventory
chown -R grid:oinstall /u01/app/oraInventory
chmod -R 71 /u01/app/oraInventory

mkdir -p /u01/app/grid
chown -R grid:oinstall /u01/app/grid

mkdir -p /u01/12.2.0/grid
chown -R grid:oinstall /u01/12.2.0/grid
chmod -R 71 /u01/12.2.0/grid

mkdir -p /u01/app/oracle
mkdir /u01/app/oracle/fetology
chown -R oracle:oinstall /u01/app/oracle
chmod -R 71 /u01/app/oracle

mkdir -p /u01/app/oracle/product/12.2.0/db_1
chown -R oracle:oinstall /u01/app/oracle/product/12.2.0/db_1
chmod -R 71 /u01/app/oracle/product/12.2.0/db_1

12、環(huán)境變量

節(jié)點(diǎn)1:
--oracle用戶
export ORACLE_SID=dwdb1
export ORACLE_BASE=/u01/app/oracle/
export ORACLE_HOME=/u01/app/oracle/product/12.2.0/db_1
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

--grid
export ORACLE_SID=+ASM1
export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=/u01/12.2.0/grid
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

節(jié)點(diǎn)2:
--oracle用戶
export ORACLE_SID=dwdb2
export ORACLE_BASE=/u01/app/oracle/
export ORACLE_HOME=/u01/app/oracle/product/12.2.0/db_1
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

--gird
export ORACLE_SID=+ASM2
export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=/u01/12.2.0/grid
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

13、防火墻
/etc/init.d/iptables stop
chkconfig iptables off

networkmanager
chkconfig NetworkManager off

linux6上關(guān)閉防火墻和selinux,root下執(zhí)行:
service iptables stop
chkconfig iptables off
service ip6tables stop
chkconfig ip6tables off
setenforce 0
getenforce
vi /etc/selinux/config 確保以下內(nèi)容
SELINUX=disabled

linux6上 iptables關(guān)閉后 ip6tables會(huì)起來,所以最好一并關(guān)掉。
/etc/init.d/iptables stop
chkconfig iptables off

14、內(nèi)核參數(shù):
kernel.panic_on_oops = 1
fs.aio-max-nr = 104852
fs.file-max = 6815744
kernel.shmall = 134217728
kernel.shmmax = 558345748480
kernel.shmmni = 4096
kernel.sem = 5010 641280 5010 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 8388608
net.core.rmem_max = 16777216
net.core.wmem_default = 8388608
net.core.wmem_max = 16777216
vm.swappiness = 0
vm.nr_hugepages = 163845

--修改以下兩個(gè)
kernel.shmall = 134217728
kernel.shmmax = 558345748480

--保存生效
/sbin/sysctl -p

15、限制文件:/etc/security/limits.conf

oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
grid soft nproc 2047
grid hard nproc 16384
grid soft nofile 1024
grid hard nofile 65536
grid soft stack 10240

grid soft nproc 2047
grid hard nproc 16384
grid soft nofile 1024
grid hard nofile 65536
grid soft stack 10240
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240

  • soft memlock 524288000
  • hard memlock 524288000

16、/etc/pam.d/login文件
session required pam_limits.so

/etc/profile
if [ $USER = "oracle" ] || [ $USER = "grid" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi

17、配置互信
在兩個(gè)節(jié)點(diǎn)上執(zhí)行:
su - oracle
/usr/bin/ssh-keygen -t rsa
/usr/bin/ssh-keygen -t dsa
2)在第二個(gè)節(jié)點(diǎn)上執(zhí)行
cd .ssh
scp id_rsa.pub rac1:/home/oracle/.ssh/id_rsa.pub2
scp id_dsa.pub rac1:/home/oracle/.ssh/id_dsa.pub2
3)在第一個(gè)節(jié)點(diǎn)上執(zhí)行
cat id_dsa.pub id_dsa.pub2 id_rsa.pub id_rsa.pub2>authorized_keys
chmod 644 authorized_keys
scp authorized_keys rac2:/home/oracle/.ssh
配置完成后進(jìn)行測(cè)試:
ssh dwdb1
ssh dwdb1-priv
ssh dwdb2
ssh dwdb2-priv
ssh dwdb2
ssh dwdb2-priv
ssh dwdb1
ssh dwdb1-priv
ssh dwdb2-priv
ssh dwdb1-priv
ssh dwdb1
ssh dwdb2
ssh dwdb2
ssh dwdb2-priv
ssh dwdb2
ssh dwdb1-priv
ssh dwdb1
ssh dwdb1-priv
ssh dwdb1
ssh dwdb2-priv
ssh dwdb2-priv
ssh dwdb1-priv
ssh dwdb1
ssh dwdb1

./runcluvfy.sh stage -pre crsinst -n dwdb1,dwdb2

18、安裝cvudisk RPM包
cvuqdisk存于oracle GI安裝介質(zhì)的cv/rpm目錄下
export CVUQDISK_GRP=asmadmin
rpm -ivh cvuqdisk-1.0.10-1.rpm

19、配置ASM盤:
OCR:8G NORMAL冗余
GIMR:至少40G 外部冗余
DATA:外部冗余
ARCH:外部冗余

root配置腳本如下:
vi asm_udev.sh
#!/bin/bash
for i in $(cat /proc/partitions | awk {'print $4'} |grep emcpower|sort);
do
echo "ACTION==\"add|change\", KERNEL==\"emcpower*\", ENV{DEVTYPE}==\"disk\",SUBSYSTEM==\"block\", PROGRAM==\"/usr/lib/udev/scsi_id -g -u -d --whitelisted --replace-whitespace --device=\$devnode\", RESULT==\"/usr/lib/udev/scsi_id -g -u -d --whitelisted --replace-whitespace --device=/dev/$i\",RUN+=\"/bin/sh -c 'mknod /dev/asm-$i b \$major \$minor; chown grid:asmadmin /dev/asm-$i; chmod 0660 /dev/asm-$i'\"" >> /etc/udev/rules.d/99-oracle-asmdevices.rules
done

chmod +x asm_udev.sh

重新加載udev
/sbin/udevadm trigger

新聞標(biāo)題:Linux7.2安裝ORACLE12C_RAC
網(wǎng)址分享:http://m.kartarina.com/article22/gogccc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供用戶體驗(yàn)自適應(yīng)網(wǎng)站品牌網(wǎng)站設(shè)計(jì)建站公司網(wǎng)站制作ChatGPT

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

h5響應(yīng)式網(wǎng)站建設(shè)
主站蜘蛛池模板: 人妻系列AV无码专区| av无码一区二区三区| 熟妇人妻中文字幕无码老熟妇| 国产网红无码精品视频| 欲色aV无码一区二区人妻| julia无码人妻中文字幕在线 | 国产成人无码精品久久久久免费| 亚洲免费无码在线| AV无码精品一区二区三区| 狠狠躁天天躁中文字幕无码 | 无码精品国产va在线观看dvd| 久久久精品人妻无码专区不卡| 精品少妇无码AV无码专区| 中文字幕精品无码一区二区| 无码精品国产va在线观看dvd| 久久亚洲精品无码VA大香大香| 国产成人无码a区在线视频| 亚洲a∨无码一区二区| 亚洲日韩乱码中文无码蜜桃| 无码任你躁久久久久久老妇| 亚洲国产成人无码AV在线| 无码av最新无码av专区| 国产乱人伦Av在线无码| 国产成人无码精品久久久性色| 亚洲无码高清在线观看| 黄色成人网站免费无码av| 亚洲中文字幕久久无码| 精品人妻系列无码一区二区三区| 久久亚洲精品无码| 成在人线av无码免费高潮喷水| 国产做无码视频在线观看| 日韩精品中文字幕无码专区| 成人无码区免费视频观看| 特级小箩利无码毛片| 无码日韩精品一区二区免费| 亚洲av无码有乱码在线观看| 人妻在线无码一区二区三区 | 无码精品国产一区二区三区免费| 一本一道AV无码中文字幕| 久久久久亚洲AV无码专区网站| 久久亚洲国产成人精品无码区|