OEL7.9+Oracle12c+asm安装文档

fdisk -l
磁盘分区

fdisk /dev/sdb
n p 1 两个回车 w

格式化

mkfs.xfs /dev/sdb1
挂载目录

mkdir /oracle
mount /dev/sdb1 /oracle
开机自启动

echo "/dev/sdb1 /oracle xfs defaults 0 0" >> /etc/fstab
查看内存信息

free -m
查看CPU信息

cat /proc/cpuinfo
查看操作系统版本

cat /etc/os-release
系统参数设置
修改主机名

echo "192.168.2.53 hisdb" >> /etc/hosts
修改字符集

echo "export.UTF8" >> ~/.bash_profile
source ~/.bash_profile
新建组

/usr/sbin/groupadd -g 60001 oinstall
/usr/sbin/groupadd -g 60002 dba
/usr/sbin/groupadd -g 60003 oper
/usr/sbin/groupadd -g 60004 backupdba
/usr/sbin/groupadd -g 60005 dgdba
/usr/sbin/groupadd -g 60006 kmdba
/usr/sbin/groupadd -g 60007 asmdba
/usr/sbin/groupadd -g 60008 asmoper
/usr/sbin/groupadd -g 60009 asmadmin
新建用户

useradd -u 61001 -g oinstall -G dba,asmdba,backupdba,dgdba,kmdba,oper oracle
useradd -u 61002 -g oinstall -G asmadmin,asmdba,asmoper,dba grid
修改用户密码

passwd grid
passwd oracle
新建目录

mkdir -p /oracle/app/oracle
chown -R oracle:oinstall /oracle/app/oracle
mkdir -p /oracle/app/oraInventory
chown -R grid:oinstall /oracle/app/oraInventory
chmod -R 775 /oracle
配置YUM源

mount /dev/cdrom /mnt

cd /etc/yum.repos.d
mkdir bk
mv *.repo bk/

echo "[EL]">> /etc/yum.repos.d/itpux.repo
echo "name=Linux 7.6 DVD">> /etc/yum.repos.d/itpux.repo
echo "baseurl=file:///mnt">> /etc/yum.repos.d/itpux.repo
echo "gpgcheck=0">> /etc/yum.repos.d/itpux.repo
echo "enabled=1">> /etc/yum.repos.d/itpux.repo
安装软件包

yum -y install autoconf
yum -y install automake
yum -y install binutils-devel
yum -y install bison
yum -y install cpp
yum -y install dos2unix
yum -y install ftp
yum -y install gcc
yum -y install gcc-c++
yum -y install python-devel
yum -y install compat-db
yum -y install compat-gcc-44
yum -y install compat-gcc-44-c++
yum -y install compat-libcap1
yum -y install compat-libstdc++-33
yum -y install compat-libstdc++-33.i686
yum -y install glibc-

yum -y install glibc-.i686
yum -y install libXpm-
.i686
yum -y install libXp.so.6
yum -y install libXtst.so.6
yum -y install libstdc++-docs
yum -y install libstdc++.i686
yum -y install libstdc++-devel.i686
yum -y install libaio.i686
yum -y install libaio-devel
yum -y install libaio-devel.i686
yum -y install ksh
yum -y install libXp
yum -y install numactl
yum -y install numactl-devel
yum -y install unixODBC
yum -y install unixODBC-devel
yum -y install elfutils-libelf-devel
yum -y install redhat-lsb-core
修改配置文件

vi /etc/security/limits.conf

grid soft nproc 16384
grid hard nproc 16384
grid soft nofile 65536
grid hard nofile 65536
grid soft stack 32768
grid hard stack 32768
oracle soft nproc 16384
oracle hard nproc 16384
oracle soft nofile 65536
oracle hard nofile 65536
oracle soft stack 32768
oracle hard stack 32768
oracle hard memlock 15000000 #小于物理内存
oracle soft memlock 15000000 #小于物理内存

上一篇:Centos 在线部署docker及docker-compost


下一篇:CentOS7编译安装nginx