Step3环境自检验证
Oracle对系统环境的验证,通过会显示passed,不通过的会给出warning或failed的提示信息,可以把下面信息显示区域的错误描述拷贝出来检查
本机在检查过程中出现如下错误(此处只截取了失败的错误提示)
(错误一)
Checking kernel parameters
Checking for rmem_default=262144; found rmem_default=109568. Failed <<<<
Checking for rmem_max=262144; found rmem_max=131071. Failed <<<<
Checking for wmem_default=262144; found wmem_default=109568. Failed <<<<
Checking for wmem_max=262144; found wmem_max=131071. Failed <<<<
Check complete. The overall result of this check is: Failed <<<<
Problem: The kernel parameters do not meet the minimum requirements (see above).
Recommendation: Perform. operating system specific instructions to update the kernel parameters.(此处提示当前系统内核参数的配置跟最小配置要求不一致,需要调整配置参数)
[root@localhost ~]# cat >> /etc/sysctl.conf <
>net.core.rmem_default=262144
>net.core.rmem_max=262144
>net.core.wmem_default=262144
>net.core.wmem_max=262144
>EOF
[root@localhost ~]# /sbin/sysctl –p
=======================================================================
(错误二)
Checking physical memory requirements ...
Expected result: 922MB
Actual Result: 500MB
Check complete. The overall result of this check is: Failed <<<<
Problem: The system does not have sufficient physical memory to perform. the install.
Recommendation: Increase the amount of physical memory available to your system before continuing with the installation.(物理内存的大小不足,期望992MB,实际只有500MB)
(解决方案,因为是在Vmware虚拟机上安装的Linux,所以调整Vmware的内存配置为1G,此时又出现新问题)
(错误三)
Checking available swap space requirements ...
Expected result: 1512MB
Actual Result: 1019MB
Check complete. The overall result of this check is: Failed <<<<
Problem: The system does not have the required swap space.
Recommendation: Make more swap space available to perform. the install.
(从此处来看,急需解决的是如何调整swap空间,因为当然Vmware的内存为1G,按常规看Swap交换空间应该为2G,下面就是解决swap交换空间的问题)
(第一步:使用free -m查看目前swap的交换空间情况,1019M,也可以使用grep SwapTotal /proc/meminfo查看)
[root@localhost swapimage]# free -m
total used free shared buffers cached
Mem: 1010 995 15 0 1 847
-/+ buffers/cache: 145 865
Swap: 1019 0 1019
(用df –h查看磁盘空间的使用情况)
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 3.8G 3.1G 572M 85% /
/dev/sda3 15G 1.7G 13G 13% /home
/dev/sda1 46M 11M 33M 25% /boot
tmpfs 506M 0 506M 0% /dev/shm
(第二步:确保系统中有足够的空间用来做swap交换空间,经过df –h查看,只有/home下面还有13G的空间是比较大的,所以我这边准备在/home/swapimage开辟swap交换区)
[root@localhost home]# mkdir swapimage(在/home目录下创建swapimage文件夹)
[root@localhost home]# cd swapimage/ (进入swapimage文件夹)
[root@localhost swapimage]# dd if=/dev/zero f=/home/swapimage/swap bs=1024count=1024000(添加交换文件并设置大小为1G)
1024000+0 records in
1024000+0 records out
1048576000 bytes (1.0 GB) copied, 16.2007 seconds, 64.7 MB/s
(再次用df –h查看磁盘空间的使用情况,/home的可以大小已经由13G变成12G了,也就是说通过上面的dd操作,我们已经成功的分配了1G的swap交换空间)
[root@localhost swapimage]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 3.8G 3.1G 572M 85% /
/dev/sda3 15G 2.7G 12G 20% /home
/dev/sda1 46M 11M 33M 25% /boot
tmpfs 506M 0 506M 0% /dev/shm
(第三步:使用mkswap命令,创建(或设置)交换空间)
[root@localhost swapimage]# mkswap /home/swapimage/swap
Setting up swapspace version 1, size = 1048571 kB
(第四步:使用swapon命令,启用新增的1G交换空间)
[root@localhost swapimage]# swapon /home/swapimage/swap
(使用free –m确认新增的swap交换空间已生效,2019)
[root@localhost swapimage]# free -m
total used free shared buffers cached
Mem: 1010 997 13 0 2 848
-/+ buffers/cache: 146 864
Swap: 2019 0 2019
(第五步:修改/etc/fstab文件,使新增的1G交换空间在系统重启后自动生效)
[root@localhost swapimage]# vi /etc/fstab
/home/swapimage/swap swap swap defaults 0 0
=======================================================================
Checking Network Configuration requirements ...
Check complete. The overall result of this check is: Not executed <<<<
Recommendation: Oracle supports installations on systems with DHCP-assigned public IP addresses. However, the primary network interface on the system should be configured with a static IP address in order for the Oracle Software to function properly. See the Installation Guide for more details on installing the software on systems configured with DHCP.(推荐系统采用静态的IP设置)
(解决方案:切换到root用户,进行静态IP地址的配置
[oracle@localhost database]$ vi /etc/sysconfig/network-scripts/ifcfg-eth0
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
#BOOTPROTO=dhcp
BOOTPROTO=static
IPADDR=192.168.1.289
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
#HWADDR=00:0c:29:c9:31:a9
ONBOOT=yes
TYPE=Ethernet
(重启使IP地址生效)
/sbin/ifdown eth0
/sbin/ifup eth0
(配置DNS解析)
Echo “nameserver 218.135.1.26”>> /etc/resolv.conf
(通知网关更新信息)
/etc/init.d/network restart
(设置好静态IP地址后retry,还是Not executed,搜索到资料讲需要修改/etc/hosts文件,将127.0.0.1修改为192.168.1.289(也就是设置的静态IP地址))
[oracle@localhost database]$ su root
Password:
[root@localhost database]# vi /etc/hosts
(修改后retry检查,通过passed)
)
=======================================================================
(该步骤结束后,系统会提示某些检查没有通过,是否继续并手动配置)
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/25188158/viewspace-733142/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/25188158/viewspace-733142/