分享更有价值
被信任是一种快乐

oracle 10g安装脚本怎么写

文章页正文上

这篇文章主要介绍oracle 10g安装脚本怎么写,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!#!/bin/shcat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=DB
EOFhostname DBcat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.200 DBEOFcat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=192.168.1.200
TYPE=Ethernet
EOFchkconfig cups off
chkconfig sendmail off
service cups stop
service sendmail stop
service network restart
cat /etc/resolv.conf
nameserver 8.8.8.8
EOFiptables -F
iptables -X
iptables -Z
service iptable save
service iptable restart
setenforce 0mount -o loop /dev/cdrom /mntrm -rf /etc/yum.repos.d/*cat /etc/yum.repos.d/base.repo
[Base]
name=base
baseurl=file:///mnt/Server
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm免费主机域名-gpg/RPM-GPG-KEY-redhat-release
EOFyum -y install binutils-*
compat-db-*
control-center-*
gcc-*
gcc-c++-*
glibc-*
libXp-*
libstdc++-*
libstdc++-devel-*
make-*
openmotif-*
termcap*
readline*
libtermcap-devel*
readline-devel*
sysstat*
wgetcd /tmpunzip oracle10g_database_linux32.ziprm -rf oracle10g_database_linux32.zip
groupadd oinstallgroupadd dbauseradd -g oinstall -G dba oracleecho “oracle” | passwd –stdin oraclemkdir -p /oracle/app

chmod 777 /oracle

chown -R oracle.oinstall /oracle
echo “kernel.sem = 250 32000 100 128” >>/etc/sysctl.confecho “fs.file-max = 65536” >>/etc/sysctl.confecho “net.ipv4.ip_local_port_range = 1024 65000” >>/etc/sysctl.confecho “net.core.rmem_default = 262144” >>/etc/sysctl.confecho “net.core.rmem_max = 262144” >>/etc/sysctl.confecho “net.core.wmem_default = 262144” >>/etc/sysctl.confecho “net.core.wmem_max = 262144” >>/etc/sysctl.confecho “” >/etc/redhat-releaseecho “Red Hat Enterprise Linux Server release 3 (Tikanga)” > /etc/redhat-release/sbin/sysctl -pecho “oracle soft nproc 2047” >>/etc/security/limits.confecho “oracle hard nproc 16384” >>/etc/security/limits.confecho “oracle soft nofile 1024” >>/etc/security/limits.confecho “oracle hard nofile 65536” >>/etc/security/limits.confecho “session required /lib/security/pam_limits.so” >>/etc/pam.d/loginecho “stty erase ^H” >>/home/oracle/.bash_profileecho “ORACLE_BASE=/oracle/app” >>/home/oracle/.bash_profileecho “ORACLE_HOME=$ORACLE_BASE/oracle/product/10.2.0/db_1” >>/home/oracle/.bash_profileecho “ORACLE_SID=ecom” >>/home/oracle/.bash_profileecho “PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin” >>/home/oracle/.bash_profileecho “LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib” >>/home/oracle/.bash_profileecho “NLS免费主机域名_LANG=AMERICAN_AMERICA.ZHS16GBK” >>/home/oracle/.bash_profileecho “export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH LD_LIBRARY_PATH NLS_LANG” >>/home/oracle/.bash_profile以上是“oracle 10g安装脚本怎么写”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注云技术行业资讯频道!

相关推荐: mysql中怎么用数字辅助表补录数据一则

这篇文章给大家分享的是有关mysql中怎么用数字辅助表补录数据一则的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。 结构:create table user_baseinfo( userid bigint not null prima…

文章页内容下
赞(0) 打赏
版权声明:本站采用知识共享、学习交流,不允许用于商业用途;文章由发布者自行承担一切责任,与本站无关。
文章页正文下
文章页评论上

云服务器、web空间可免费试用

宝塔面板主机、支持php,mysql等,SSL部署;安全高速企业专供99.999%稳定,另有高防主机、不限制内容等类型,具体可咨询QQ:360163164,Tel同微信:18905205712

主机选购导航云服务器试用

登录

找回密码

注册