系统使用rhel7/centos7/Oracle Linux Server release 7
数据库安装包上传到/tmp目录
-
cd /tmp
-
unzip Oracle_122010_Linux-x86-64.zip
需在图形界面下执行脚本和安装程序
执行初始化
-
#http://public-yum.oracle.com/getting-started.html#checking-yum-configuration
-
echo -n "正在配置iptables防火墙……"
-
systemctl stop firewalld > /dev/null 2>&1
-
systemctl disable firewalld > /dev/null 2>&1
-
if [ $? -eq 0 ];then
-
echo -n "Iptables防火墙初始化完毕!"
-
fi
-
echo -n "正在关闭SELinux……"
-
setenforce 0 > /dev/null 2>&1
-
sed -i '/^SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config