images.png

系统版本 Red Hat Enterprise Linux 7.4 

数据库版本 Oracle Database 11g Release 2 for Linux x86-64

服务器 Dell EMC PowerEdge R640 1U *2

存储 Dell EMC SC5020 Storage Array+Dell Storage SC420


系统安装与分区

两块600G SAS做RAID 1,出BOOT分区外,其余划分为名叫lv的VG中,minimal安装

/ 100G

SWAP 64G

BOOT 5G

BOOT EFI 5G

/u01 75G

/HOME 其余所有容量


网卡绑定

20181124145625.jpg

网卡4个电口,系统安装好后,使用nmtui工具将em3网口地址改为2.2.2.2/24作为与笔记本直连的调试口


挂载本地源】(两个节点)

setenforce 0 
sed 's/SELINUX=.*/SELINUX=disabled/g' -i /etc/selinux/config
systemctl stop firewalld
systemctl disable firewalld
nmcli con add type team con-name team0 ifname team0 config '{"runner":{"name": "roundrobin"}}'
nmcli con modify team0 ipv4.address '10.37.10.131/24' ipv4.gateway '10.37.10.254'
nmcli con modify team0 ipv4.method manual
nmcli con add type team-slave con-name team0-port1 ifname em1 master team0
nmcli con add type team-slave con-name team0-port2 ifname em2 master team0
nmcli connection up team0-port1 
nmcli connection up team0-port2 
nmcli connection up team0
teamdctl team0 state


【多路径】  (两个节点)

fdisk -l
yum install -y device-mapper device-mapper-multipath
mpathconf --enable
systemctl start multipathd.service
systemctl enable multipathd.service
systemctl status multipathd.service
multipath -ll


系统环境配置

两个节点均按规划修改,节点2不需要wget安装包

cd /root
wget http://10.37.20.101/p13390677_112040_Linux-x86-64_1of7.zip
wget http://10.37.20.101/p13390677_112040_Linux-x86-64_2of7.zip
wget http://10.37.20.101/p13390677_112040_Linux-x86-64_3of7.zip
======================================================================
vi /etc/sysconfig/network
添加
NETWORKING=yes
HOSTNAME=laos-crm-scc-db-svr1
======================================================================
mv /etc/hosts /etc/hosts.bak
vi /etc/hosts
添加
127.0.0.1   laos-crm-scc-db-svr1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

#public ip
10.37.11.128 laos-crm-scc-db-svr1
10.37.11.129 laos-crm-scc-db-svr2
#priv ip
2.1.1.1 laos-crm-scc-db-svr1-priv
2.1.1.2 laos-crm-scc-db-svr2-priv
#vip ip
10.37.11.201 laos-crm-scc-db-svr1-vip
10.37.11.202 laos-crm-scc-db-svr2-vip
#scan ip
10.37.11.211 laos-crm-scc-db-svr-scan
10.37.11.212 laos-crm-scc-db-svr-scan
10.37.11.213 laos-crm-scc-db-svr-scan


组件安装(两个节点)

yum -y install binutils compat-libcap1 compat-libstdc++-33 compat-libstdc++-33*.i686 elfutils-libelf-devel elfutils-libelf elfutils-libelf-devel-static gcc gcc-c++ glibc*.i686 glibc glibc-devel glibc-devel*.i686 glibc glibc-common glibc-headers ksh libgcc*.i686 libgcc libstdc++ libstdc++*.i686 libstdc++-devel libstdc++-devel*.i686 libaio libaio*.i686 libaio-devel libaio-devel*.i686 make sysstat unixODBC unixODBC*.i686 unixODBC-devel unixODBC-devel*.i686 libXp lrzsz numactl-devel setuptool ntsysv openssh-clients kmod-oracleasm smartmontools libgomp kernel-headers libXtst libXtst.i686 libXext libXext.i686 tightvnc-server xorg-x11-apps
=========================================================================
yum -y groupinstall "Server with GUI"
=========================================================================
通过rz上传必要组件包,然后安装
rpm -ivh oracleasm*
rpm -ivh compat-libstdc++-33-3.2.3-72.el7.i686.rpm
rpm -ivh compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm
rpm -ivh --nodeps elfutils-libelf-devel-static-0.170-4.el7.x86_64.rpm  elfutils-libelf-devel-static-0.170-4.el7.i686.rpm

20181124151824.png

点击下载RHEL7.4 ORACLE11G其他组件


组件检测(两个节点)

rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' binutils  \
compat-libcap1  \
compat-libstdc++-33.x86_64  \
compat-libstdc++-33.i686  \
gcc  \
gcc-c++  \
glibc  \
glibc.i686  \
glibc-devel  \
glibc-devel.i686  \
ksh  \
libgcc  \
libgcc.i686  \
libstdc++  \
libstdc++.i686  \
libstdc++-devel  \
libstdc++-devel.i686  \
libaio  \
libaio.i686  \
libaio-devel  \
libaio-devel.i686  \
libXext  \
libXext.i686  \
libXtst  \
libXtst.i686  \
libX11  \
libX11.i686  \
libXau  \
libXau.i686  \
libxcb  \
libxcb.i686  \
libXi  \
libXi.i686  \
make  \
sysstat  \
unixODBC  \
unixODBC-devel  \
net-tools  \
smartmontools


Oracle环境配置

制作服务(两个节点)

vi /etc/systemd/system/oracle-ohasd.service
添加
[Unit]

Description=Oracle High Availability Services

After=syslog.target network.target remote-fs.target

[Service]

ExecStart=/etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/null

Type=simple

Restart=always

[Install]

WantedBy=multi-user.target graphical.target

systemctl enable oracle-ohasd


内核参数(两个节点)

vi /etc/sysctl.conf
添加
fs.file-max = 6815744
fs.aio-max-nr = 1048576
kernel.shmall = 2097152
kernel.shmmax = 137438953472
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.ipv4.conf.em4.rp_filter=2  
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576

sysctl –p


限制参数(两个节点)

vi /etc/security/limits.conf
添加
oracle   soft   nofile    131072
oracle   hard   nofile    131072
oracle   soft   nproc    131072
oracle   hard   nproc    131072
oracle   soft   core    unlimited
oracle   hard   core    unlimited
oracle   soft   memlock    3500000
oracle   hard   memlock    3500000
# Recommended stack hard limit 32MB for oracle installations
# oracle   hard   stack    32768

grid   soft   nofile    131072
grid   hard   nofile    131072
grid   soft   nproc    131072
grid   hard   nproc    131072
grid   soft   core    unlimited
grid   hard   core    unlimited
grid   soft   memlock    3500000
grid   hard   memlock    3500000
# Recommended stack hard limit 32MB for grid installations
# grid   hard   stack    32768

vi /etc/pam.d/login
添加
session required /lib64/security/pam_limits.so


环境变量(两个节点)

vi /etc/profile
添加
if [ $USER = "oracle" ]; then
    if [ $SHELL = "/bin/ksh" ]; then
        ulimit -u 131072
        ulimit -n 131072
    else
        ulimit -u 131072 -n 131072
     fi
fi

if [ $USER = "grid" ]; then
   if [ $SHELL = "/bin/ksh" ]; then
        ulimit -u 131072
        ulimit -n 131072
    else
        ulimit -u 131072 -n 131072
      fi
fi


创建用户名和组(两个节点)

groupadd --gid 1001 oinstall
groupadd --gid 1002 dba
groupadd --gid 1003 asmadmin
groupadd --gid 1004 asmdba
groupadd --gid 1005 asmoper
groupadd --gid 1006 oper
useradd --uid 1001 --gid oinstall --groups dba,oper,asmdba,asmoper oracle
useradd --uid 1002 --gid oinstall --groups dba,asmadmin,asmdba,asmoper grid

passwd grid 
passwd oracle
密码Dell@1234


创建文件目录(两个节点)

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

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

mkdir -p /u01/app/oracle/product/11.2.0/db_1
chown -R oracle.oinstall /u01/app/oracle
chmod -R 775 /u01/app/oracle

mkdir -p /u01/app/oraInventory  
chown -R grid:oinstall /u01/app/oraInventory 
chmod -R 775 /u01/app/oraInventory


grid变量(节点2修改ORACLE_SID和ORACLE_HOSTNAME)

su - grid
vi .bash_profile
添加
#For Grid 
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR

ORACLE_SID=+ASM1; export ORACLE_SID
ORACLE_BASE=/u01/app/grid; export ORACLE_BASE
ORACLE_HOME=/u01/app/grid11204; export ORACLE_HOME
ORACLE_HOSTNAME=laos-crm-scc-db-svr1; export ORACLE_HOSTNAME
ORACLE_UNQNAME=racdb; export ORACLE_UNQNAME
ORACLE_TERM=xterm; export ORACLE_TERM
GRID_HOME=/u01/app/grid11204/; export GRID_HOME

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
BASE_PATH=/usr/sbin:$PATH:$HOME/bin; export BASE_PATH
PATH=$ORACLE_HOME/bin:$BASE_PATH; export PATH

umask 022

source /home/grid/.bash_profile


oracle变量(节点2修改ORACLE_SID和ORACLE_HOSTNAME)

su - oracle
vi .bash_profile
添加
#For Oracle   
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR

ORACLE_SID=rac1db; export ORACLE_SID
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1; export ORACLE_HOME
ORACLE_HOSTNAME=laos-crm-scc-db-svr1; export ORACLE_HOSTNAME
ORACLE_UNQNAME=racdb; export ORACLE_UNQNAME
ORACLE_TERM=xterm; export ORACLE_TERM

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
BASE_PATH=/usr/sbin:$PATH:$HOME/bin; export BASE_PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH

umask 022

source /home/oracle/.bash_profile


安装oracle组件(两个节点)

cd /root
export CVUQDISK_GRP=oinstall
echo $CVUQDISK_GRP
rpm -ivh cvuqdisk-1.0.9-1.rpm


设置SSH对等性(两个节点)

su - oracle
mkdir ~/.ssh
chmod 700 ~/.ssh
ssh-keygen -t rsa
ssh-keygen -t dsa

touch ~/.ssh/authorized_keys
cd ~/.ssh
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
scp authorized_keys laos-crm-scc-db-svr2:.ssh/
chmod 600 ~/.ssh/authorized_keys
===============================================
su - grid
mkdir ~/.ssh
chmod 700 ~/.ssh
ssh-keygen -t rsa
ssh-keygen -t dsa

touch ~/.ssh/authorized_keys
cd ~/.ssh
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
scp authorized_keys laos-crm-scc-db-svr2:.ssh/
chmod 600 ~/.ssh/authorized_keys

ssh laos-crm-scc-db-svr1 date
ssh laos-crm-scc-db-svr2 date
ssh laos-crm-scc-db-svr1-priv date
ssh laos-crm-scc-db-svr2-priv date


udev

绑定存储为Oracle划的多个LUN(节点1执行)

cd /dev/mapper
for i in `ls mpath*`; do printf "%s %s\n" "$i" "$(udevadm info --query=all --name=/dev/mapper/$i |grep -i dm_uuid)"; done

将存储中的LUN号和系统发现的LUN的UUID对应后编辑udev规则

vi /etc/udev/rules.d/99-oracle-asmdevices.rules
添加
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000070",SYMLINK+="DG_CRM_DATA_DISK01",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000071",SYMLINK+="DG_CRM_DATA_DISK02",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000072",SYMLINK+="DG_CRM_DATA_DISK03",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000073",SYMLINK+="DG_CRM_DATA_DISK04",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000074",SYMLINK+="DG_CRM_DATA_DISK05",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000075",SYMLINK+="DG_CRM_DATA_DISK06",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000076",SYMLINK+="DG_CRM_DATA_DISK07",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000077",SYMLINK+="DG_CRM_DATA_DISK08",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000078",SYMLINK+="DG_CRM_IDX_DISK01",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000079",SYMLINK+="DG_CRM_IDX_DISK02",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f600000000000000007a",SYMLINK+="DG_CRM_IDX_DISK03",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f600000000000000007b",SYMLINK+="DG_CRM_IDX_DISK04",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f600000000000000007c",SYMLINK+="DG_CRM_IDX_DISK05",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f600000000000000007d",SYMLINK+="DG_CRM_ARCH_DISK01",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f600000000000000007e",SYMLINK+="DG_CRM_ARCH_DISK02",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f600000000000000007f",SYMLINK+="DG_CRM_ARCH_DISK03",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000080",SYMLINK+="DG_CRM_ARCH_DISK04",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000081",SYMLINK+="DG_CRM_ARCH_DISK05",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000082",SYMLINK+="DG_CRM_ARCH_DISK06",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000083",SYMLINK+="DG_CRM_REDO_DISK01",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000084",SYMLINK+="DG_CRM_REDO_DISK02",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000085",SYMLINK+="DG_CRM_REDO_DISK03",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000086",SYMLINK+="DG_CRM_REDO_DISK04",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000087",SYMLINK+="DG_CRM_UNDO1_DISK01",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000088",SYMLINK+="DG_CRM_UNDO1_DISK02",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000089",SYMLINK+="DG_CRM_UNDO1_DISK03",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f600000000000000008a",SYMLINK+="DG_CRM_UNDO1_DISK04",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f600000000000000008b",SYMLINK+="DG_CRM_UNDO2_DISK01",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f600000000000000008c",SYMLINK+="DG_CRM_UNDO2_DISK02",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f600000000000000008d",SYMLINK+="DG_CRM_UNDO2_DISK03",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f600000000000000008e",SYMLINK+="DG_CRM_UNDO2_DISK04",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f600000000000000008f",SYMLINK+="DG_CRM_TMP_DISK01",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000090",SYMLINK+="DG_CRM_TMP_DISK02",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000091",SYMLINK+="DG_CRM_TMP_DISK03",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000092",SYMLINK+="DG_CRM_TMP_DISK04",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000093",SYMLINK+="DG_CRM_TMP_DISK05",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000094",SYMLINK+="DG_CRM_OCR1_DISK01",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000095",SYMLINK+="DG_CRM_OCR2_DISK01",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000096",SYMLINK+="DG_CRM_VOTE_DISK01",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000097",SYMLINK+="DG_CRM_VOTE_DISK02",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000d3100571f6000000000000000098",SYMLINK+="DG_CRM_VOTE_DISK03",OWNER="grid",GROUP="asmadmin",MODE="0660"

将规则传送至节点2

scp /etc/udev/rules.d/99-oracle-asmdevices.rules laos-crm-scc-db-svr2:/etc/udev/rules.d/

刷新规则设置udev自启并重启(两个节点)

udevadm control --reload-rules
udevadm trigger --type=devices --action=change
systemctl enable systemd-udevd.service
systemctl status systemd-udevd.service
reboot
ls -l /dev/dm-*
ls -l /dev/DG*


安装grid

vncpasswd 
密码设置为123456
vncserver
export DISPLAY=:1.0
xhost +

mkdir /u01/app/grid/grid-software
mv /root/p13390677_112040_Linux-x86-64_3of7.zip /u01/app/grid/grid-software
chown grid.oinstall /u01/app/grid/grid-software

cd /u01/app/grid/grid-software
chown grid.oinstall p13390677_112040_Linux-x86-64_3of7.zip

su - grid
cd /u01/app/grid/grid-software
unzip p13390677_112040_Linux-x86-64_3of7.zip
sed -i 's/CV_ASSUME_DISTID=OEL4/CV_ASSUME_DISTID=OEL6/' /u01/app/grid/grid-software/grid/stage/cvu/cv/admin/cvu_config
grep CV_ASSUME_DISTID=OEL6 /u01/app/grid/grid-software/grid/stage/cvu/cv/admin/cvu_config

echo $DISPLAY
export DISPLAY=:1.0
xhost +

cd /u01/app/grid/grid-software/grid
./runInstaller -jreLoc /usr/lib/jvm/jre-1.8.0        #加参数可解决图形化不全问题#

安装中会弹出提示要求输入2条脚本,不要点OK,节点1输入完2条脚本后,再节点2上再输入

/u01/app/oraInventory/orainstRoot.sh
/u01/app/grid11204/root.sh

第1次运行第2条root脚本会提示出错信息

Adding Clusterware entries to inittab

ohasd failed to start

Failed to start the Clusterware. Last 20 lines of the alert log follow: 

2018-11-23 21:21:56.168: 

[client(75949)]CRS-2101:The OLR was formatted using version 3.

卡到这里失败后,Ctrl+C终止此脚本,然后再启动前几步新建的服务,此时服务可正常运行,需再次运行脚本2

systemctl start oracle-ohasd
systemctl status oracle-ohasd
/u01/app/grid11204/root.sh


划分ASM磁盘组

20181124154133.png

asmca对话框中Volumes和ASM Cluster File Systems为灰色是正常的


20181124154250.png

创建DG是对话框显示不全,鼠标右键选中,然后Resize


20181124154640.png

创建DG中,选好磁盘,点击确认后如果对话框弹出不全,直接可以按叉号关闭


安装Oracle

mkdir /u01/app/oracle/oracle-software
mv /root/p13390677_112040_Linux-x86-64_1of7.zip /u01/app/oracle/oracle-software
mv /root/p13390677_112040_Linux-x86-64_2of7.zip /u01/app/oracle/oracle-software
chown oracle.oinstall /u01/app/oracle/oracle-software

cd /u01/app/oracle/oracle-software
chown oracle.oinstall p13390677_112040_Linux-x86-64_1of7.zip
chown oracle.oinstall p13390677_112040_Linux-x86-64_2of7.zip

su - oracle
export DISPLAY=:1.0
xhost +

cd /u01/app/oracle/oracle-software
unzip p13390677_112040_Linux-x86-64_1of7.zip
unzip p13390677_112040_Linux-x86-64_2of7.zip
sed -i 's/CV_ASSUME_DISTID=OEL4/CV_ASSUME_DISTID=OEL6/' /u01/app/oracle/oracle-software/database/stage/cvu/cv/admin/cvu_config

cd /u01/app/oracle/oracle-software/database
./runInstaller -jreLoc /usr/lib/jvm/jre-1.8.0    #解决对话框显示不完整#

20181124160433.png

弹出ins_emagent.mk错误,在makefile中添加链接libnnz11库的参数之后再点击Retry

20181124101424.png

su - oracle
vi /u01/app/oracle/product/11.2.0/db_1/sysman/lib/ins_emagent.mk
将:$(MK_EMAGENT_NMECTL) 
修改为:$(MK_EMAGENT_NMECTL) -lnnz11


节点1执行完脚本后,节点2再执行

/u01/app/oracle/product/11.2.0/db_1/root.sh



更新日期: 2018年11月24日
文章标签: LinuxOracle
文章链接: https://www.vos.cn/db/245.html  
版权说明:如非注明,本站文章均为vOS原创,转载请注明出处和附带本文链接。