Linux下安装oracle9i(二)
Linux下安装oracle9i(二)
参考同事的意见,用add/remove programmes
选中了所有的develop tool安装
然后安装oracle那个东东报错
[root@localhost tmp]# rpm -ivh compat-oracle-rhel4-1.0-5.i386.rpm
error: Failed dependencies:
libaio is needed by compat-oracle-rhel4-1.0-5.i386
libaio-devel is needed by compat-oracle-rhel4-1.0-5.i386
openmotif21 is needed by compat-oracle-rhel4-1.0-5.i386
Suggested resolutions:
libaio-0.3.102-1.i386.rpm
libaio-devel-0.3.102-1.i386.rpm
openmotif21-2.1.30-11.RHEL4.2.i386.rpm
http://rpm.pbone.net/
搜索下载如下包
libaio-0.3.102-1.i386.rpm
libaio-devel-0.3.102-1.i386.rpm
openmotif21-2.1.30-11.RHEL4.2.i386.rpm
下载很麻烦,所以改成在自己的光盘中去找,按照一下标准去看差那些包
# rpm -qa | grep compat
检查当前系统所安装的compat软件包是否已有:
compat-db-4.1.25-9
compat-gcc-32-3.2.3-47.3
compat-gcc-32-c++-3.2.3-47.3
compat-oracle-rhel4-1.0-3
compat-libcwait-2.0-1
compat-libgcc-296-2.96-132.7.2
compat-libstdc++-296-2.96-132.7.2
compat-libstdc++-33-3.2.3-47.3
gcc-3.4.3-9.EL4
gcc-c++-3.4.3-9.EL4
gnome-libs-1.4.1.2.90-44
gnome-libs-devel-1.4.1.2.90-44
libaio-devel-0.3.102-1
libaio-0.3.102-1
make-3.80-5
openmotif21-2.1.30-11
xorg-x11-deprecated-libs-devel-6.8.1-23.EL
xorg-x11-deprecated-libs-6.8.1-23.EL
发如果少了上数包,可按下面的命令和所属AS4光盘安装RPM包(最后两个由Oralce补丁p4198954_21_linux.zip解压产生)
rpm -ivh sysstat-5.0.5-1.i386.rpm disk4
rpm -ivh openmotif21-2.1.30-11.RHEL4.2.i386.rpm disk3
rpm -ivh libaio-0.3.102-1.i386.rpm disk3
rpm -ivh libaio-devel-0.3.102-1.i386.rpm disk3
rpm -ivh freetype-devel-2.1.9-1.i386.rpm disk3
rpm -ivh fontconfig-devel-2.2.3-7.i386.rpm disk3
rpm -ivh xorg-x11-devel-6.8.1-23.EL.i386.rpm disk3
rpm -ivh xorg-x11-deprecated-libs-devel-6.8.1-23.EL.i386.rpm disk3
rpm -ivh glib-devel-1.2.10-15.i386.rpm disk4
rpm -ivh ORBit-devel-0.5.17-14.i386.rpm disk4
rpm -ivh gtk+-devel-1.2.10-33.i386.rpm disk4
rpm -ivh alsa-lib-devel-1.0.6-4.i386.rpm disk3
rpm -ivh audiofile-devel-0.2.6-1.i386.rpm disk3
rpm -ivh esound-devel-0.2.35-2.i386.rpm disk3
rpm -ivh libjpeg-devel-6b-33.i386.rpm disk3
rpm -ivh libtiff-devel-3.6.1-7.i386.rpm disk3
rpm -ivh libungif-devel-4.1.3-1.i386.rpm disk3
rpm -ivh imlib-devel-1.9.13-23.i386.rpm disk3
rpm -ivh gnome-libs-devel-1.4.1.2.90-44.1.i386.rpm disk4
rpm -ivh ORBit-devel-0.5.17-14.i386.rpm disk4
rpm -ivh gtk+-devel-1.2.10-33.i386.rpm disk4
rpm -ivh imlib-devel-1.9.13-23.i386.rpm disk4
rpm -ivh glib-devel-1.2.10-15.i386.rpm disk4
rpm -ivh compat-oracle-rhel4-1.0-5.i386.rpm (p4198954_21_linux.zip)
rpm -ivh compat-libcwait-2.0-2.i386.rpm (p4198954_21_linux.zip)
这些RPM包其实linux光盘上都有,出了那个p4198954_21_linux.zip里面的。安装好了检查好了所有的包以后oracle的安装条件终于具备了,那么继续向下操作。
4.2 设置内核参数,调节信号灯及共享内存
为了一开机系统就能自动帮你设好这些参数,也可改动 /etc/sysctl.conf 这个文件,
加入以下的语句:
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
保存后,即可。建议关于net.ipv4.ip_local_port_range不要改动,可以用cat /proc/sys/net/ipv4/ip_local_port_range 看到红帽子对这个所定义的范围已经符合,而且端口范围比这个小
4.3 设置oracle对文件的要求
编辑文件:/etc/security/limits.conf
加入以下语句:
oracle soft nofile 65536
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 1