成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

Linux7.2安裝ORACLE12C_RAC-創(chuàng)新互聯(lián)

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

創(chuàng)新互聯(lián)建站始終堅(jiān)持【策劃先行,效果至上】的經(jīng)營(yíng)理念,通過(guò)多達(dá)十年累計(jì)超上千家客戶的網(wǎng)站建設(shè)總結(jié)了一套系統(tǒng)有效的全網(wǎng)推廣解決方案,現(xiàn)已廣泛運(yùn)用于各行各業(yè)的客戶,其中包括:生料攪拌車(chē)等企業(yè),備受客戶贊許。

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 沒(méi)有開(kāi)啟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ì)起來(lái),所以最好一并關(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盤(pán):
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

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無(wú)理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。

當(dāng)前名稱:Linux7.2安裝ORACLE12C_RAC-創(chuàng)新互聯(lián)
本文來(lái)源:http://jinyejixie.com/article30/egpso.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供面包屑導(dǎo)航、品牌網(wǎng)站制作、網(wǎng)站收錄、做網(wǎng)站手機(jī)網(wǎng)站建設(shè)、外貿(mào)網(wǎng)站建設(shè)

廣告

聲明:本網(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í)需注明來(lái)源: 創(chuàng)新互聯(lián)

手機(jī)網(wǎng)站建設(shè)
宁强县| 河源市| 习水县| 建阳市| 商都县| 饶阳县| 安吉县| 钟山县| 伊金霍洛旗| 永新县| 利川市| 永新县| 西华县| 襄城县| 大丰市| 原阳县| 萍乡市| 榆树市| 连山| 乌什县| 阳泉市| 长武县| 宜宾市| 塔河县| 镇坪县| 原阳县| 瑞丽市| 邵武市| 修文县| 西青区| 浙江省| 潮州市| 鹤庆县| 河北省| 铜陵市| 临海市| 丰城市| 肇源县| 高碑店市| 通许县| 莱芜市|