Centos6.5静默安装Oracle11g

时间:2021-02-18 07:42:37

sed -i "s/SELINUX=enforcing/SELINUX=disabled/" /etc/selinux/config
setenforce 0
yum -y install gcc gcc-c++ make binutilscompat-libstdc++-33 elfutils-libelf elfutils-libelf-devel glibc glibc-commonglibc-devel
libaio libaio-devel libgcclibstdc++ libstdc++-devel unixODBC unixODBC-devel binutils
yum -y install libaio libaio-devel libgcclibstdc++ libstdc++-devel unixOD
groupadd -g oinstall
groupadd oinstall
groupadd dba
useradd -g oinstall -g dba -m oracle
passwd oracle
mkdir -p /data/oracle
mkdir -p /data/oraInventory
mkdir -p /data/database
chown -R oracle:oinstall /data/oracle
chown -R oracle:oinstall /data/oraInventory/
chown -R oracle:oinstall /data/database/
/etc/init.d/iptables stop
chkconfig iptables off
vim /etc/sysctl.conf
sysctl -p
vim /etc/security/limits.conf
vim /home/oracle/.bash_profile
. /home/oracle/.bash_profile
unzip linux.x64_11gR2_database_1of2.zip -d /data/database/
unzip linux.x64_11gR2_database_2of2.zip -d /data/database/
chown -R oracle:oinstall /data/database/database/
LD_LIBRARY_PATH=$ORACLE_HOME/lib
cd /data/oraInventory/
./orainstRoot.sh
cd oracle/product/11.2.0/db_1/
./root.sh