- 服务器配置检查
1) 检查/tmp目录,至少需要400MB空间
2) 检查swap分区
256 MB: 3 times the size of RAM
Between 256 MB and 512 MB: 2 times the size of RAM
Between 512 MB and 2 GB: 1.5 times the size of RAM
Between 2 GB and 16 GB: Equal to the size of RAM
More than 16 GB: 16 GB
3) oinstall用户组和oraInventory目录
sudo groupadd oinstall
sudo groupadd dba
sudo usermod -g oinstall -G dba oracle
mkdir -p /u01/app/oracle/product/19.0.0/client_1
mkdir -p /u01/app/oraInventory
chown -R oracle.oinstall /u01/app
4) 用户和组
/usr/sbin/useradd -u 54321 -g oinstall -G dba oracle
5) 确认有root权限或者root跳转权限
6) 修改oracle用户环境变量
export ORACLE_HOME=/u01/app/oracle/product/19.0.0/client_1
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:$PATH
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
export ORACLE_BASE=/u01/app/oracle
- 检查服务器硬件配置
1) 确保远程弹框可以使用
# xhost + RemoteHost
2) 检查硬件和内存配置
检查RAM(至少256M)
# grep MemTotal /proc/meminfo
检查SWAP
# grep SwapTotal /proc/meminfo
检查tmp
# df -h /tmp
#查看内存和架构
# free
# uname -m
确认共享内存(/dev/shm)挂载合理并且大小足够
df -h /dev/shm
- 配置操作系统
1) 安装基础依赖包
yum install -y bc binutils elfutils-libelf elfutils-libelf-devel
yum install -y fontconfig-devel
yum install -y glibc
yum install -y glibc-devel
yum install -y ksh
yum install -y libaio
yum install -y libaio-devel
yum install -y libXrender
yum install -y libX11
yum install -y libXau
yum install -y libXi
yum install -y libXtst
yum install -y libgcc
yum install -y libnsl
yum install -y librdmacm
yum install -y libstdc++
yum install -y libstdc++-devel
yum install -y libxcb
yum install -y libibverbs
yum install -y make
yum install -y policycoreutils
yum install -y policycoreutils-python-utils
yum install -y smartmontools
yum install -y sysstat
2) 安装图形依赖包
yum -y isntall xdpyinfo xauth xhost
- 安装客户端
1) 如果是redhat 8.0版本,执行下面的命令,否则会报supportedOSCheck相关错误
su - oracle
export CV_ASSUME_DISTID=RHEL7.6
Export CV_ASSUME_DISTID=OEL7.8
2) 设置变量
Su - oracle
Exprot DISPLAY=*.*.*.*:0.0
Xhost +
3) 安装
./runInstaller
4) 用root用户执行脚本
/u01/app/oraInventory/orainstRoot.sh
- 配置oracle用户环境变量
export ORACLE_BASE=/u01/app/oracle
export INVENTORY_LOCATION=/u01/app/oraInventory
export ORACLE_HOME=/u01/app/oracle/product/19.0.0/client_1
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:$PATH
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK #根据需要选择
umask 022
- 发送环境变量信息给用户