一、ASM安装准备条件
1、ASM支持存储类型
本地祼设备(本地的磁盘和分区)
网络附加存储(NAS)
存储区域网络(SAN)
2、ASM使用本地裸设备,要点:
已经被挂载到操作系统上或者已经做了分区
映射裸设备为文件名
设置正确的权限(针对grid用户和asmadmin组,权限为660)
二、ORACLE单实例-ASM实验
1、操作系统环境准备
设置主机名
[root@oracle ~]# hostnamectl set-hostname oracle
[root@oracle ~]# hostname && hostname -i
oracle
192.168.31.52
[root@oracle ~]#
关闭selinuix
[root@oracle ~]# vi /etc/selinux/config
关闭防火墙
systemctl stop firewalld.service
systemctl disable firewalld.service
systemctl status firewalld.service
安装rpm包
yum install -y bc
yum install -y compat-libcap1*
yum install -y compat-libcap*
yum install -y binutils
yum install -y compat-libstdc++-33
yum install -y elfutils-libelf
yum install -y elfutils-libelf-devel
yum install -y gcc
yum install -y gcc-c++
yum install -y glibc-2.5
yum install -y glibc-common
yum install -y glibc-devel
yum install -y glibc-headers
yum install -y ksh libaio
yum install -y libaio-devel
yum install -y libgcc
yum install -y libstdc++
yum install -y libstdc++-devel
yum install -y make
yum install -y sysstat
yum install -y unixODBC
yum install -y unixODBC-devel
yum install -y binutils*
yum install -y compat-libstdc*
yum install -y elfutils-libelf*
yum install -y gcc*
yum install -y glibc*
yum install -y ksh*
yum install -y libaio*
yum install -y libgcc*
yum install -y libstdc*
yum install -y make*
yum install -y sysstat*
yum install -y libXp*
yum install -y glibc-kernheaders
yum install -y net-tools-*
yum install -y iscsi-initiator-utils
yum install -y udev
yum install -y xclock*推荐安装以下命令
yum install -y lrzsz
yum install -y rsync
yum install -y telnet
yum install -y vim
yum install -y curl
yum install -y wget
yum install -y openssh-server
yum install -y openssh-clients
yum install -y lsof
修改内核参数
vi /etc/sysctl.conf
kernel.shmmax = 277495689510912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144