系统及配置要求 物理内存,不少于1GB
交换分区 物理内存为1-2GB时,设置为物理内存的1.5-2倍 物理内存为2-16GB时,设置为物理内存大小相同 不能少于4G
磁盘空间,创建xfs文件系统并且进行挂载不少于15G
拥有固定的FQDN名称,安装后不建议再更改
软件要求 GNOME中文桌面环境 中文JAva支持 安装所需软件包
虚拟机VMware Centos 7.6版本 内核版本为 3.10.0-957.el7.x86_64 swap交换分区为16GB 新增磁盘为50GB 防火墙,核心防护均为关闭状态 yum仓库为线网源
使用pam_limits认证模块
[root@oracle ~]# vim /etc/pam.d/login #%PAM-1.0 auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so auth substack system-auth auth include postlogin account required pam_nologin.so account include system-auth password include system-auth session required /lib/security/pam_limits.so 新增下面两行添加资源限制模块 session required pam_limits.so ...省略下面内容 [root@oracle ~]# vim /etc/security/limits.conf oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 oracle soft stack 10240 [root@oracle ~]# vim /etc/profile if [ $USER = "oracle" ] 最后插入 then if [ $SHELL = "/bin/ksh" ] then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi [root@oracle ~]# source /etc/profile此时用xshell把安装包放入abc目录中 进行解压
[root@oracle abc]# unzip linuxx64_12201_database.zip图形化界面操作
[root@oracle ~]# xhost + [root@oracle ~]# su - oracle [oracle@oracle ~]$ cd abc [oracle@oracle abc]$ export DISPLAY=:0.0 [oracle@oracle abc]$ cd database/ [oracle@oracle database]$ ./runInstaller执行完会出现图形界面安装 安装中弹窗处理
在 root 用户下输入下面两条命令
[root@oracle ~]# /orc/app/oraInventory/orainstRoot.sh [root@oracle ~]# /orc/app/oracle/product/12.2.0/dbhome_1/root.sh注意要等脚本都加载完成,在继续选择进行安装 安装成功
