oracle 安装过程遇到很多的问题赶紧记录一下
安装oracle jdk
依赖安装
依赖安装直接用yum 安装方式 一般都可以直接执行成功
yum -y install make gcc binutils gcc-c++ compat-libstdc++ elfutils-libelf-devel elfutils-libelf-devel-static ksh libaio libaio-devel numactl-devel sysstat unixODBC unixODBC-devel pcre-devel glibc.i686
用户组创建
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba -d /home/oracle oracle
安装目录创建
echo "create all oracle directory"
echo " -> 数据库系统安装目录"
sudo mkdir -p /mnt/soft/app/oracle
sudo chown -R oracle:oinstall /mnt/soft/app/oracle
sudo chmod -R 755 /mnt/soft/app/oracle
echo " -> 数据库数据安装目录"
sudo mkdir -p /mnt/soft/app/data/oradata
echo " -> 数据备份目录"
sudo mkdir -p /mnt/data/app/data/oradata_back
echo " -> 清单目录"
sudo mkdir -p /mnt/data/app/data/inventory
sudo chown -R oracle:oinstall /mnt/data/app/data
sudo chown -R oracle:oinstall /mnt/soft/app/oracle
sudo chmod -R 775 /mnt/data/app/oracle
sudo chmod -R 775 /mnt/soft/app/data
系统的配置
以下脚本直接 保存成sh 文件运行即可需要注意的是安装的路径和sid 名字
#!/bin/bash
#writed by csc 2018-10-12
cat >> /etc/sysctl.conf <
> /etc/security/limits.conf << done
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
done
echo "limits.conf success"
################################################
#modify /etc/pam.d/login #
################################################
echo "session required pam_limits.so">>/etc/pam.d/login
################################################
# edit profile config #
################################################
echo " profile start "
cat >> /etc/profile <
响应模板文件
1.db_install.rsp 验证过的
####################################################################
## Copyright(c) Oracle Corporation 1998,2008. All rights reserved.##
## ##
## Specify values for the variables listed below to customize ##
## your installation. ##
## ##
## Each variable is associated with a comment. The comment ##
## can help to populate the variables with the appropriate ##
## values. ##
## ##
## IMPORTANT NOTE: This file contains plain text passwords and ##
## should be secured to have read permission only by oracle user ##
## or db administrator who owns this installation. ##
## ##
####################################################################
#------------------------------------------------------------------------------
# Do not change the following system generated value.
#------------------------------------------------------------------------------
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
#------------------------------------------------------------------------------
# Specify the installation option.
# It can be one of the following:
# 1. INSTALL_DB_SWONLY
# 2. INSTALL_DB_AND_CONFIG
# 3. UPGRADE_DB
#-------------------------------------------------------------------------------
oracle.install.option=INSTALL_DB_SWONLY
#-------------------------------------------------------------------------------
# Specify the hostname of the system as set during th