cat >>/tmp/rpm.txt <<EOF
ConsoleKit.x86_64
ConsoleKit-libs.x86_64
ConsoleKit-x11.x86_64
GConf2.x86_64
ORBit2.x86_64
atk.x86_64
audit-libs.i686
avahi-glib.x86_64
avahi-libs.x86_64
bc.x86_64
bind-libs.x86_64
bind-utils.x86_64
cairo.x86_64
cloog-ppl.x86_64
compat-db42.x86_64
compat-gcc-34.x86_64
compat-gcc-34-c++.x86_64
compat-libstdc++-33.i686
compat-libstdc++-33.x86_64
cpp.x86_64
cracklib.i686
cups-libs.x86_64
db4.i686
dbus.x86_64
dmz-cursor-themes.noarch
eggdbus.x86_64
elfutils-libelf-devel.x86_64
fontconfig.x86_64
freetype.x86_64
gcc.x86_64
gcc-c++.x86_64
gdb.x86_64
glibc.i686
glibc-devel.i686
glibc-devel.x86_64
glibc-headers.x86_64
gnutls.x86_64
gtk2.x86_64
gtk2-engines.x86_64
hal-libs.x86_64
hicolor-icon-theme.noarch
irqbalance.x86_64
jasper-libs.x86_64
kernel-headers.x86_64
ksh.x86_64
libICE.i686
libICE.x86_64
libIDL.x86_64
libSM.i686
libSM.x86_64
libX11.i686
libX11.x86_64
libX11-common.noarch
libXau.i686
libXau.x86_64
libXcomposite.x86_64
libXcursor.x86_64
libXdamage.x86_64
libXext.i686
libXext.x86_64
libXfixes.x86_64
libXft.x86_64
libXi.i686
libXi.x86_64
libXinerama.x86_64
libXmu.x86_64
libXp.i686
libXrandr.x86_64
libXrender.x86_64
libXt.i686
libXt.x86_64
libXtst.i686
libXtst.x86_64
libXv.x86_64
libXxf86dga.x86_64
libXxf86misc.x86_64
libXxf86vm.x86_64
libaio.x86_64
libaio-devel.i686
libaio-devel.x86_64
libbonobo.x86_64
libdmx.x86_64
libgcc.i686
libgnome.x86_64
libgomp.x86_64
libjpeg-turbo.x86_64
libmcpp.x86_64
libpng.x86_64
libselinux.i686
libstdc++.i686
libstdc++-devel.x86_64
libthai.x86_64
libtiff.x86_64
libtool-ltdl.i686
libtool-ltdl.x86_64
libuuid.i686
libxcb.i686
libxcb.x86_64
mcpp.x86_64
mpfr.x86_64
ncurses-libs.i686
nss-softokn-freebl.i686
numactl.x86_64
pam.i686
pango.x86_64
pixman.x86_64
polkit.x86_64
ppl.x86_64
readline.i686
sgml-common.noarch
sysstat.x86_64
unixODBC.i686
unixODBC.x86_64
unixODBC-devel.i686
unixODBC-devel.x86_64
xorg-x11-server-utils.x86_64
xorg-x11-utils.x86_64
xorg-x11-xauth.x86_64
xorg-x11-xinit.x86_64
unzip
EOF
yum install -y `cat /tmp/rpm.txt`
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
cat >> /etc/sysctl.conf <<EOF
fs.file-max = 6815744
fs.aio-max-nr = 1048576
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
EOF
sysctl -p
cat >> /etc/security/limits.conf <<EOF
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft memlock unlimited
oracle hard memlock unlimited
EOF
cat >> /home/oracle/.bash_profile<<EOF
export ORACLE_BASE=/db/oracle
export ORACLE_SID=rac
export ORACLE_HOME=/db/oracle/product/11.2.0/db
export CRS_HOME=$ORACLE_BASE/crs
export PATH=\$PATH:\$ORACLE_HOME/bin:\$CRS_HOME/bin:
export PS1='`/bin/hostname -s`->'
EOF
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。