1、下载安装包
https://www.oracle.com/database/technologies/oracle-database-software-downloads.html
2、检查服务器配置
3、检查依赖包
rpm --query --queryformat "%{NAME}-%{VERSION}.%{RELEASE}(%{ARCH})\n" bc binutils elfutils-libelf glibc glibc-devel ksh libaiolibXrender libX11 libXau libXi libXtst libgcc libstdc++ libxcb makepolicycoreutils policycoreutils-python smartmontools sysstat
4、安装依赖包
yum -y install bc binutils elfutils-libelf glibcglibc-devel ksh libaio libXrender libX11 libXau libXi libXtst libgcc libstdc++libxcb make policycoreutils policycoreutils-python smartmontools sysstat
5、创建用户、组
[root@oracle ~]# /usr/sbin/groupadd -g 54321 oinstall
[root@oracle ~]# groupadd -g 54322 dba
[root@oracle ~]# groupadd -g 54323 oper
[root@oracle ~]# groupadd -g 54324 backupdba
[root@oracle ~]# groupadd -g 54325 dgdba
[root@oracle ~]# groupadd -g 54326 kmdba
[root@oracle ~]# groupadd -g 54330 racdba
[root@oracle ~]# useradd -u 54321 -g oinstall -Gdba,oper,backupdba,dgdba,kmdba,racdba oracle
6、查看内核参数配置
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 16451328
kernel.shmmax = 33692319744
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
7、查看用户资源配置
cat /etc/security/limits.conf
oracle soft nofile 1024
oracle hard nofile 65536
oracle hard nproc 16384
oracle soft nproc 2047
oracle soft stack 10240
oracle hard stack 32768
oracle hard memlock 3145728
oracle soft memlock 3145728
8、上传安装包并解压
这里运行./runInstaller有两个报错
No X11 DISPLAY variable was set, but thisprogram performed an operation which requires it.
Can't connect to X11 window server using'localhost:1' as the value of the DISPLAY variable.
解决:先切换到root用户,执行xhost+
切回oracle用户,执行:export DISPLAY=hostname:1 ###(这里hostname为访问oracle服务器的客户端IP)
9、开始安装
这里报错
[INS-32012] Unable to create directory:/u01/app/oracle
解决:root执行chown-R oracle:oinstall /u01 && chmod-R 775 /u01
此处报:[INS-35178] The Automatic MemoryManagement option is not allowed when the total physical memory is greater than4GB
.
网友评论