欢迎来到天天文库
浏览记录
ID:34250551
大小:3.12 MB
页数:36页
时间:2019-03-04
《在centos6.264位系统上安装oracle10g》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、在CentOS6.264位系统上安装Oracle10g在CentOS6.264位系统上安装Oracle10gA.初始化网络1.设置网络参数编辑/etc/sysconfig/network-scripts/ifcfg-eth0,初始化网络参数(根据实际情况编辑)。编辑/etc/hosts,加入主机名和IP(主机名用hostname或者uname–u命令查看)2.设置系统服务禁用一些不必要的系统服务chkconfigiptablesoffchkconfigip6tablesoffchkconfigcupsoffchkconfigfirstb
2、ootoffchkconfigwpa_supplicantoffchkconfigpostfixoff3.安装常用软件及必需软件安装kernel-devel和kernel-headers,并且在更新系统时,禁止更新kernel:yum-yinstallkernel-develkernel-headers&&echoexclude=kernel*>>/etc/yum.conf更新系统:yum-yupdate安装常用软件:yum-yinstallautoconfautomakebinutils-develbisoncppdos2unixft
3、pgccgcc-c++lrzszpython-devel安装Oracle必需软件:yum-yinstallcompat-dbcompat-gcc-34compat-gcc-34-c++compat-libstdc++-33glibc-*glibc-*.i686libXpm-*.i686libXp.so.6libXt.so.6libXtst.so.6libgcc_s.so.1kshlibXplibaio-develnumactlnumactl-develunixODBCunixODBC-devel注:安装完成以上软件后,建议重启系统。4.
4、创建Oracle相关用户和目录以下命令按顺序执行:在CentOS6.264位系统上安装Oracle10ggroupaddoinstallgroupadddbauseradd-goinstall-Gdbaoraclepasswdoracleusermod-goinstall-Gdbaoraclemkdir-p/usr/local/oraclechown-Roracle:oinstall/usr/local/oraclechmod-R755/usr/local/oracle1.修改内核参数编辑/etc/sysctl.conf:cat>>/e
5、tc/sysctl.conf<6、etc/security/limits.conf:cat>>/etc/security/limits.conf<>/etc/pam.d/login<7、thenif[$SHELL="/bin/ksh"];thenulimit-p16384ulimit-n65536elseulimit-u16384-n65536fifi编辑/etc/csh.login,在最后添加如下内容:if($USER=="oracle")thenlimitmaxproc16384limitdescriptors65536在CentOS6.264位系统上安装Oracle10gendif编辑/home/oracle/.bash_profile,在最后添加如下内容:exportORACLE_BASE=/usr/local8、/oracleexportORACLE_HOME=/usr/local/oracle/product/10201exportORACLE_SID=billexportPATH=$PATH:$HOME/bin
6、etc/security/limits.conf:cat>>/etc/security/limits.conf<>/etc/pam.d/login<7、thenif[$SHELL="/bin/ksh"];thenulimit-p16384ulimit-n65536elseulimit-u16384-n65536fifi编辑/etc/csh.login,在最后添加如下内容:if($USER=="oracle")thenlimitmaxproc16384limitdescriptors65536在CentOS6.264位系统上安装Oracle10gendif编辑/home/oracle/.bash_profile,在最后添加如下内容:exportORACLE_BASE=/usr/local8、/oracleexportORACLE_HOME=/usr/local/oracle/product/10201exportORACLE_SID=billexportPATH=$PATH:$HOME/bin
7、thenif[$SHELL="/bin/ksh"];thenulimit-p16384ulimit-n65536elseulimit-u16384-n65536fifi编辑/etc/csh.login,在最后添加如下内容:if($USER=="oracle")thenlimitmaxproc16384limitdescriptors65536在CentOS6.264位系统上安装Oracle10gendif编辑/home/oracle/.bash_profile,在最后添加如下内容:exportORACLE_BASE=/usr/local
8、/oracleexportORACLE_HOME=/usr/local/oracle/product/10201exportORACLE_SID=billexportPATH=$PATH:$HOME/bin
此文档下载收益归作者所有