oracle10g安装脚本怎么写-创新互联
这篇文章主要介绍oracle 10g安装脚本怎么写,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!
海曙网站建设公司创新互联,海曙网站设计制作,有大型网站制作公司丰富经验。已为海曙上千余家提供企业网站建设服务。企业网站搭建\外贸网站制作要多少钱,请找那个售后服务好的海曙做网站的公司定做!#!/bin/sh
cat <
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=DB
EOF
hostname DB
cat <
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.200 DB
EOF
cat <
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=192.168.1.200
TYPE=Ethernet
EOF
chkconfig cups off
chkconfig sendmail off
service cups stop
service sendmail stop
service network restart
cat <
nameserver 8.8.8.8
EOF
iptables -F
iptables -X
iptables -Z
service iptable save
service iptable restart
setenforce 0
mount -o loop /dev/cdrom /mnt
rm -rf /etc/yum.repos.d/*
cat <
[Base]
name=base
baseurl=file:///mnt/Server
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
EOF
yum -y install binutils-* \
compat-db-* \
control-center-* \
gcc-* \
gcc-c++-* \
glibc-* \
libXp-* \
libstdc++-* \
libstdc++-devel-* \
make-* \
openmotif-* \
termcap* \
readline* \
libtermcap-devel* \
readline-devel* \
sysstat* \
wget
cd /tmp
unzip oracle10g_database_linux32.zip
rm -rf oracle10g_database_linux32.zip
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
echo "oracle" | passwd --stdin oracle
mkdir -p /oracle/app
chmod 777 /oracle
chown -R oracle.oinstall /oracle
echo "kernel.sem = 250 32000 100 128" >>/etc/sysctl.conf
echo "fs.file-max = 65536" >>/etc/sysctl.conf
echo "net.ipv4.ip_local_port_range = 1024 65000" >>/etc/sysctl.conf
echo "net.core.rmem_default = 262144" >>/etc/sysctl.conf
echo "net.core.rmem_max = 262144" >>/etc/sysctl.conf
echo "net.core.wmem_default = 262144" >>/etc/sysctl.conf
echo "net.core.wmem_max = 262144" >>/etc/sysctl.conf
echo "" >/etc/redhat-release
echo "Red Hat Enterprise Linux Server release 3 (Tikanga)" > /etc/redhat-release
/sbin/sysctl -p
echo "oracle soft nproc 2047" >>/etc/security/limits.conf
echo "oracle hard nproc 16384" >>/etc/security/limits.conf
echo "oracle soft nofile 1024" >>/etc/security/limits.conf
echo "oracle hard nofile 65536" >>/etc/security/limits.conf
echo "session required /lib/security/pam_limits.so" >>/etc/pam.d/login
echo "stty erase ^H" >>/home/oracle/.bash_profile
echo "ORACLE_BASE=/oracle/app" >>/home/oracle/.bash_profile
echo "ORACLE_HOME=\$ORACLE_BASE/oracle/product/10.2.0/db_1" >>/home/oracle/.bash_profile
echo "ORACLE_SID=ecom" >>/home/oracle/.bash_profile
echo "PATH=\$PATH:\$HOME/bin:\$ORACLE_HOME/bin" >>/home/oracle/.bash_profile
echo "LD_LIBRARY_PATH=\$ORACLE_HOME/lib:/usr/lib" >>/home/oracle/.bash_profile
echo "NLS_LANG=AMERICAN_AMERICA.ZHS16GBK" >>/home/oracle/.bash_profile
echo "export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH LD_LIBRARY_PATH NLS_LANG" >>/home/oracle/.bash_profile
以上是“oracle 10g安装脚本怎么写”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注创新互联行业资讯频道!
另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
分享名称:oracle10g安装脚本怎么写-创新互联
文章链接:http://pwwzsj.com/article/dseoph.html