安装脚本: https://raw.githubusercontent.com/xblvesting/oracle-install/master/auto-install.sh Readme 支持Oracle 11g和18c版本在linux6和7的安装 支持Dataguard的一键安装 部分安装日志: [root@xb ~]# wget http://127.0.0.1/soft/auto-install.sh && chmod a+x auto-install.sh && ./auto-install.sh install_db ...... SELINUX=enforcing Please input oracle's user password: (Default password: oracle): Please input oracle install PATH: (Default path: /u01/app/oracle): Please input oracle version to install [11g or 18c]: (Default version: 11g): Please input oracle_sid: (Default oracle_sid: orcl): ======================================= Now checking rpm,please wait... ======================================= binutils-2.27-34.base.0.1.el7.x86_64 compat-libcap1-1.10-7.el7.x86_64 compat-libstdc++-33-3.2.3-72.el7.x86_64 gcc-c++-4.8.5-36.0.1.el7.x86_64 gcc-gfortran-4.8.5-36.0.1.el7.x86_64 gcc-4.8.5-36.0.1.el7.x86_64 gcc-objc-4.8.5-36.0.1.el7.x86_64 gcc-objc++-4.8.5-36.0.1.el7.x86_64 gcc-gnat-4.8.5-36.0.1.el7.x86_64 gcc-c++-4.8.5-36.0.1.el7.x86_64 glibc-2.17-260.0.9.el7.x86_64 glibc-headers-2.17-260.0.9.el7.x86_64 glibc-common-2.17-260.0.9.el7.x86_64 glibc-devel-2.17-260.0.9.el7.x86_64 glibc-devel-2.17-260.0.9.el7.x86_64 ksh-20120801-139.0.1.el7.x86_64 libaio-0.3.109-13.el7.x86_64 libaio-devel-0.3.109-13.el7.x86_64 libgcc-4.8.5-36.0.1.el7.x86_64 libstdc++-4.8.5-36.0.1.el7.x86_64 libstdc++-devel-4.8.5-36.0.1.el7.x86_64 libstdc++-devel-4.8.5-36.0.1.el7.x86_64 make-3.82-23.el7.x86_64 sysstat-10.1.5-17.el7.x86_64 libXi-1.7.9-1.el7.x86_64 libXtst-1.2.3-1.el7.x86_64 ======================================= ++++++++++++++++CHECK PASS!+++++++++++++++++++++ ======================================= ######################################################### ######## Summary Info ############ Oracle Home Dir : /u01/app/oracle/product/11.2.0/dbhome_1 Oracle User Password : oracle Oracle Base Dir : /u01/app/oracle Oracle SID : orcl Oracle Version : 11g ######################################################### Press any key to start...or Press Ctrl+c to cancel……