一个稳定的操作系统,对于各个方面的要求都是非常苛刻的,RHEL4就是一个***的例子,在RHEL4上安装Oracle1是个非常繁琐的过程,为了帮助大家成功的完成安装,下面给大家详细的讲解RHEL4上安装Oracle1的过程。
1.RHEL4上安装Oracle1,InstallRHEL4U1
/ext313500MB
swap824MB(itshouldbephysicalmemory*2.ifphysicalmemory>1G,justsetswap=physicalmemory)
IP:192.168.193.8/255.255.255.0
Hostname:RHEL4
Gateway:192.168.193.1
DNS:202.96.0.133
Nofirewall
Languages:
English(USA)
Chinese(P.R.ofChina)
Location:Asia/Shanghai
Customizesoftwarepackagestobeinstalled.
XwindowsSystem
GNOMEDesktopEnvironment
KDE(KDeskTopEnvironment)
Editors
GraphicalInternet
Office/Productivity
SoundandVideo
ServerCofigurationTools
FTPServer
LegacyNetworkServer
DevelopmentTools
LegacySoftwareDevelopment
AdministrationTools
2.RHEL4上安装Oracle1,OpenFTPfeature:
#setup->systemservices->vsftpd
#cd/etc/init.d
#./vsftpdstart
3.RHEL4上安装Oracle1,CreateOracleUser:
#groupaddoinstall
#groupadddba
#useradd-goinstall-Gdbaora10g
4.RHEL4上安装Oracle1,ModifyOracleuser's.bash_profile
exportORACLE_BASE=/u10/app/oracle
exportORACLE_HOME=$ORACLE_BASE/product/10.2.0.1
exportORACLE_SID=ora10g
exportPATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
exportLD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
exportLC_CTYPE=en_US.UTF-8
5.RHEL4上安装Oracle1,modifylinuxsystemparameters:
a.#vi/etc/sysctl.conf
在该文件末尾加入如下内容:
kernel.shmall=2097152
kernel.shmmax=2147483648
kernel.shmmni=4096
kernel.sem=25032000100128
fs.file-max=65536
net.ipv4.ip_local_port_range=102465000
net.core.rmem_default=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144
#/sbin/sysctl-p命令操作来使我们所做的变更生效.
b.#vi/etc/security/limits.conf
#添加如下的行
*softnproc2047
*hardnproc16384
*softnofile1024
*hardnofile65536
c.#vi/etc/pam.d/login
添加:sessionrequired/lib/security/pam_limits.so
d.#vi/etc/profile文件
添加如下部分:
if[$USER="oracle"];then
if[$SHELL="/bin/ksh"];then
ulimit-p16384
ulimit-n65536
else
ulimit-u16384-n65536
fi
fi
6.RHEL4上安装Oracle1,确认如下package已经安装了:
确认以下rpm包都已经安装:
make-3.79
binutils-2.11
openmotif-2.2.2-16
setarch-1.3-1
compat-db-4.0.14.5
compat-gcc-7.3-2.96.122
compat-gcc-c++-7.3-2.96.122
compat-libstdc++-7.3-2.96.122
compat-libstdc++-devel-7.3-2.96.122
7.RHEL4上安装Oracle1,ftp10201_database_linux32.zip到/home/ora10g
8.RHEL4上安装Oracle1,$unzip10201_database_linux32.zip
9.RHEL4上安装Oracle1,Disablesendmail:
/etc/init.d
/etc/rc0.d
/etc/rc1.d
/etc/rc2.d
/etc/rc3.d
/etc/rc4.d
/etc/rc5.d
/etc/rc6.d
#mv*sendmail*./yszhang
10modify/etc/hosts:
127.0.0.1RHEL4localhost.localdomainlocalhost
变成
127.0.0.1localhost.localdomainlocalhost
192.168.193.8RHEL4
9.#xhost+
10.RHEL4上安装Oracle1之安oraclebinary
#mkdir/u10
#chownora10g:oinstall/u10
#su-ora10g
$/home/ora10g/database/runInstaller&
只有物理内存一项不合格,其余全部检查成功,不选择创建数据库。
11.RHEL4上安装Oracle1,CreateDatabase
以上笔者从11个大方面详细的讲解了RHEL4上安装Oracle1的过程,如果大家跟着一起做一定可以成功的在RHEL4上安装Oracle1。
【编辑推荐】