1.安装jdk
rpm -ivh /opt/jdk-8u144-linux-x64.rpm
./runInstaller 执行报错
-bash: ./runInstaller: Permission denied
/代表根目录 .. 上一级目录
chmod 777 oracle/database/runInstaller
chmod 777 oracle/database/install/.oui
chmod 777 oracle/database/install/unzip
The user is root. Oracle Universal Installer cannot continue installation if the user is root.
过程纪要:
- root身份安装依赖包:
yum -y install binutils compat-libcap1 compat-libstdc++-33 compat-libstdc++-33*.i686 elfutils-libelf-devel gcc gcc-c++ glibc*.i686 glibc glibc-devel glibc-devel*.i686 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
- 建立用户和组:
groupadd oinstall groupadd dba groupadd oper useradd -g oinstall -G dba,oper oracle echo "123456" | passwd --stdin oracle #oracle用户的登录密码,后续登录要用,记着。
- 创建安装目录:
mkdir -p /orcl/app/oracle/product/12.1.0/db_1 chown -R oracle:oinstall /orcl/app chmod -R 775 /orcl/app
- 修改内核参数vi /etc/sysctl.conf,添加:
fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 1200000000 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048576
改好后,