当前位置:
- 首页
- /
- Oracle
- /
- CentOS7.3 安装Oracle 11gR2 64位
CentOS7.3 安装Oracle 11gR2 64位
参考: 0 安装好,关闭虚拟机,压缩备份(文件2G大小)1. 关闭安全措施# service iptables stop // 暂时关闭防火墙,重启系统后会自动打开# chkconfig iptables off // 永久关闭防火墙 (7.3 不用iptables,用firewalld)# sed -i "s/SELINUX=enforcing/SELINUX=disabled/" /etc/selinux/config // 关闭Selinux# systemctl status firewalld.service //查看防火墙状态# systemctl stop firewalld.service //关闭防火墙# systemctl disable firewalld.service //禁止使用防火墙(重启也是禁止的)2. 安装oracle数据库所需要的软件包 操作系统: Oracle Linux 7 and Red Hat Enterprise Linux 7# yum install binutils compat-libcap1 compat-libstdc++-33 gcc gcc-c++ glibc glibc-devel ksh# yum install libaio libaio-devel libgcc libstdc++ libstdc++-devel libXi libXtst make sysstat 另:# yum install kernel-headers numactl-devel glibc-headers glibc-common unixODBC-devel elfutils-libelf elfutils-libelf-devel# yum install glibc-static elfutils-libelf-devel-static libstdc++-static unixODBC libgomp 安装pdksh ? 3. 创建运行oracle数据库的系统用户和用户组# su -# groupadd oinstall# groupadd dba# useradd -g oinstall -G dba oracle# passwd oracle# id oracle4. 创建oracle数据库安装目录# su -# mkdir -p /data/oracle /oracle数据库安装目录# mkdir -p /data/oraInventory /oracle数据库配置文件目录# mkdir -p /data/database /oracle数据库软件包解压目录# cd /data# chown -R oracle:oinstall /data/oracle /设置目录所有者为oinstall用户组的oracle用户# chown -R oracle:oinstall /data/oraInventory# chown -R oracle:oinstall /data/database5. 修改OS系统标识 oracle默认不支持CentOS系统安装: 修改文件 /etc/redhat-release# su -# cat /proc/version# cat /etc/redhat-release# mv /etc/redhat-release /etc/redhat-release.bak# vi /etc/redhat-release# cat /etc/redhat-releaseredhat-7
来源: