此文章是我在安装oracle11G—R1的时候遇到问题,然后在网上搜索的时候得到的宝贝,文中并没有直接告诉你应该怎么去改正你的报错,而是教会我怎么样去判断一个错误,觉得很不错,拿来分享!

 

 

作者: oracleexpert    时间: 2008-6-12 21:39     标题: 求教小布老师,安装11g有麻烦

安装11g过程中,在oracle check时,报2个warning,具体如下

check for file-max =65536;file-max =24898. failed
check for rmem_default=4194304;rmem_default=262144  failed

expected result:922MB
actual result 248MB
check complete the overall result of this check is failed
请小布老师赐教,谢谢了喔


作者:

wilson66   

时间:

2008-6-12 22:25



check for file-max =65536;file-max =24898. failed


check for rmem_default=4194304;rmem_default=262144  failed



expected result:922MB


actual result 248MB



===========================


The reason is very clear.


作者:

oracleexpert   

时间:

2008-6-13 08:52



我想应该报的是内存不够的警告,是不是可以忽略呢小布老师?


我的内存是1G的,应该将将够用了,怎么还报这种警告呢?


作者:

wilson66   

时间:

2008-6-13 09:03



file-max / rmem_default is not memory, but kernel parameter.



YOU SHOULD READ THE ERROR MESSAGE CAREFULLY,  I think.


作者:

wilson66   

时间:

2008-6-13 10:37



玩软件这碗饭,工作中遇到软件出错是家常便饭。 出了错误不要慌,不要怕。 工作技巧如何:



1. 首先要仔细阅读出错信息。 要搞懂出错信息的含义。



2. 出错信息有两个可能,一是正确地告诉你出错的原因;二是误报



3.首先要相信出错信息不是误报,根据出错信息,仔细检查原因。



4. 如果仔细检查原因后,还解决不了问题,就要考虑是否是误报的问题,就要仔细思索原因。这个时候经验就很重要。



你的出错信息你完全没有搞明白,只是靠主观臆断,认为是内存的问题。 你应该再仔细地一个单词一个单词地把出错信息搞明白。 个人觉得这个出错信息已经很明确地告诉你问题在什么地方,可惜你却不仔细看。


作者:

oracleexpert   

时间:

2008-6-13 12:05



expected result:922MB


actual result 248MB


这项应该是检查物理内存要求的,呵呵,菜鸟还请老师原谅.


我自己慢慢摸索原因吧


谢谢小布老师的建议


作者:

wilson66   

时间:

2008-6-13 12:07



上面还有错误信息啊。file-max / rmem_default  什么的。


作者:

long1224   

时间:

2008-6-13 13:19    

标题:

我猜下解决方法



check for file-max =65536;file-max =24898. failed


check for rmem_default=4194304;rmem_default=262144  failed



expected result:922MB


actual result 248MB


check complete the overall result of this check is failed


检查file-max=65536 ;file-max=24898.failed   是不是安装的时候系统需要file-max=65536 而你只设了24898   ??



后面的期望结果是922M,实际结果248M


你给的虚拟机分得内存太少了吧


作者:

oracleexpert   

时间:

2008-6-13 13:37



[root@linux ~]# ll


total 1805232


-rw-r--r--  1 root root       1093 Jun  6 19:55 anaconda-ks.cfg


drwxr-xr-x  3 root root       4096 Jun  6 20:08 Desktop


-rw-r--r--  1 root root      39095 Jun 12 14:47 elfutils-libelf-0.97.1-5.i386.rpm


-rw-r--r--  1 root root      53160 Jun 12 21:11 elfutils-libelf-devel-0.97.1-5.i386.rpm


-rw-r--r--  1 root root          6 Jun 13 05:42 file-mav~


-rw-r--r--  1 root root          6 Jun 13 05:41 file-maw~


-rw-r--r--  1 root root          6 Jun 13 05:40 file-max~


-rw-r--r--  1 root root          6 Jun 13 05:41 file-may~


-rw-r--r--  1 root root          6 Jun 13 05:41 file-maz~


-rw-r--r--  1 root root      55832 Jun  6 19:55 install.log


-rw-r--r--  1 root root      32397 Jun  6 19:55 install.log.syslog


-rw-r--r--  1 root root      18712 Jun 12 21:09 libaio-0.3.105-2.i386.rpm


-rw-r--r--  1 root root      10181 Jun 12 21:10 libaio-devel-0.3.105-2.i386.rpm


-rw-r--r--  1 root root      35291 Jun 12 14:44 libao-0.8.5-2.EL.0.i386.rpm


-rw-r--r--  1 root root      30024 Jun 12 14:44 libao-devel-0.8.5-2.EL.0.i386.rpm


-rw-r--r--  1 root root 1844572234 Jun 11 19:35 oracle11g for linux.zip


-rw-r--r--  1 root root     117907 Jun 12 14:44 sysstat-5.0.5-16.rhel4.i386.rpm


-rw-r--r--  1 root root     849063 Jun 12 14:44 unixODBC-2.2.11-1.RHEL4.1.i386.rpm


-rw-r--r--  1 root root     790460 Jun 12 14:44 unixODBC-devel-2.2.11-1.RHEL4.1.i386.rpm



我到/proc/sys/fs/file-max下修改参数(想增加file-max),之前用oracle用户是可以进入的,也可以修改,但是在保存退出时会


有下面的提示:warning:the file has been changed since reading it!!!


do you really want to write to it ((y/n)y


"/proc/sys/fs/file-max" E667:Fsync failed


hit ENTER or type command to continue



就这样倒腾了几次,发现用oracle 用户再到该目录下编辑时,修改后想保存系统一点反应都没有了.但是我用root用户查看时,出现了几个和file-max类似的文件生成,如上第9到13行,


-rw-r--r--  1 root root          6 Jun 13 05:42 file-mav~


-rw-r--r--  1 root root          6 Jun 13 05:41 file-maw~


-rw-r--r--  1 root root          6 Jun 13 05:40 file-max~


-rw-r--r--  1 root root          6 Jun 13 05:41 file-may~


-rw-r--r--  1 root root          6 Jun 13 05:41 file-maz~


我想知道这些文件到底是哪里来的?怎么后面还有个~符号?


小弟晕死,


小布老师不要对我这个忠实的粉丝太失望喔,我在校学生,刚接触linux和oracle自学.


作者:

long1224   

时间:

2008-6-13 14:03



我以前在rhel5做实验的时候也遇到过这个问题,就是修改了proc下的参数,不起作用,我也没解决了,你这个可以在/etc/sysctl.conf 里面添加两行



file-max =65536


rmem_default=4194304



然后保存退出


再执行 sysctl -p


作者:

long1224   

时间:

2008-6-13 14:05



还有你可以上oracle的官网去down个安装文档来看下,非常详细的


作者:

wilson66   

时间:

2008-6-13 20:05



原帖由 long1224 于 2008-6-13 02:03 AM 发表
我以前在rhel5做实验的时候也遇到过这个问题,就是修改了proc下的参数,不起作用,我也没解决了,你这个可以在/etc/sysctl.conf 里面添加两行

file-max =65536
rmem_default=4194304

然后保存退出
再执行 s ...


正解!


作者:

wilson66   

时间:

2008-6-13 20:47



原帖由 oracleexpert 于 2008-6-13 01:37 AM 发表
[root@linux ~]# ll
total 1805232
-rw-r--r--  1 root root       1093 Jun  6 19:55 anaconda-ks.cfg
drwxr-xr-x  3 root root       4096 Jun  6 20:08 Desktop
-rw-r--r--  1 root root      39095 Jun 12 1 ...


如果你面对问题,能思考和试验到这一步,才能算是有点专业水准。



如果你看到屏幕一片漆黑,脑子想都不想,赶快向别人请教,最后发现原来是计算机的电源被你的同学踢掉了,那么,所有的人都无话可说了。



提问也是需要技巧的。 我们是菜鸟,都想提高水平,但是提问之前,需要自己动脑子思考一下,试验一下,搞不定,再来向老鸟请教,老鸟才会乐意给你解答。