Installing Oracle 10g on SuSE 9.1 professional
2024-08-29 13:30:15
供稿:网友
,欢迎访问网页设计爱好者web开发。
oracle rdbms | weblogs | opensource | reviews | others
[oracle] installing oracle 10g on suse 9.1 professional 作者:fenng 日期:july 03 2004
suse 9.1 专业版是前一段时间发布的。suse公司是欧洲的一个重要的linux厂商。suse linux一直以界面华丽而著称。其实,suse linux的一个很引人注目的地方就是对oracle的支持一向不错。
在suse 以前的几个版本中,都针对oracle有过专门的改进,安装起来也比较方便,一般用户只需要安装一个rpm包即可搞定。不过目前的9.1版本是否支持oracle 10g还没有官方声明。经过笔者测试,发现oracle 10g在suse上可以运行的很好。
suse linux 9.1 采用的是2.6( 2.6.4-52)的核心。这是笔者要对其测试的一个重要原因。这个版本kde是3.2,gui足够华丽, 不过这个和我们今天的这个主题关系不大。对suse新特性感兴趣的读者可以先去看一下这个links:http://www.suse.com/us/private/products/suse_linux/prof/new_features.html 。此外,9.1版集成了lvm2,lvm对维护上带来了不少方便,从某种意义上说提高了系统可用性。2.6核心+lvm2+ 10g--还真的蛮吸引人的。
安装之前,先去suse的oracle支持站点看看:http://www.suse.com/en/business/certifications/certified_software/oracle/documents.html 。虽然没有直接针对oracle 10g 的资料,不过一些文档也是非常有参考价值的哦。还有http://otn.oracle.com上的支持文档,也应该是必读之物。
一 准备工作
先检查操作系统软件包是不是已经安装齐备。也就是属于开发环境的那些东西,gcc 、binutils 、make等等,如果没有安装的话,可以通过yast2工具来进行安装,仔细选好软件,按照提示依次插入各安装盘即可。
参考http://www.dbanotes.net/oracle/install-oracle10g-rhel3.htm这里的信息。(另外, 在该link还可以找到其它的一些有用的link)。接下来我们创建用户和相关的组,调整用户的环境变量:
#-----------begin from here--------------------------------------export oracle_base=/u/app/oracleexport oracle_home=$oracle_base/product/10.1.0/db_1export oracle_sid=testexport path=$path:$home/bin:$oracle_home/binexport ld_library_path=$oracle_home/lib:/usr/lib#--------------end here------------------------------------------
创建目录,检查核心参数。suse上我没有发现 sysctl.conf 文件。自己创建之。内容如下:
#-----------begin from here--------------------------------------kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65000#--------------end here------------------------------------------
然后sysctl -p 确定一下。
二 安装软件
安装之前要进行一下处理。因为runinstaller所需要的配置文件oraparame.ini 中没有提到suse ,所以,预检查的时候会报告错误。
我们采取调整该文件的办法.具体参考: http://www.dbanotes.net/oracle/10g-beta-install-bug.htm
vi oraparam.ini找到[certified versions]linux=redhat-2.1,unitedlinux-1.0,redhat-3修改成[certified versions]linux=redhat-2.1,unitedlinux-1.0,redhat-3,suse-9.1
然后运行./runinstaller
如果不能出现x安装界面,注意display环境变量的设置。以后一路是图形文件。不多说了。注意,在安装的时候不要创建数据库。
三 创建实例
运行dbca ,创建实例。不过,在这里一个比较令人头疼的问题。图形化创建实例总是报告:ora-27125:unable to create shared memory segment. 检查核心参数,没有发现问题。后来经过网络上的交流得知:linux 2.6内核有个特性:huge tlb支持。该特性默认条件下是激活的。(by default only root has permission to allocate shared memory with this option (shm_hugetlb) and oracle 10g defaults using it, so oracle fails to allocate the sga.this capability is supposed to be able to controlled with the setcaps program (cap_ipc_lock), but i couldn't get it to work properly. the solution is either to set disable_hugetlbfs=1 before you start oracle or to recompile the kernel without config_hugetlb_page and config_hugetlbfs configuration parameters.)
要解决该问题,在oracle用户下执行 $export disable_hugetlbfs=1
然后再次运行dbca 。如果遇到问题的话,最好是定制库,最后选择"生成脚本" (当然,可以自己写脚本建库,不过用图形工具方便一些) 。
运行脚本创建实例。不出意外的话,这次应该没有问题了。
安装数据库只是学习oracle 10g的一个序曲。别等待,开始探索10g 的众多特性吧!
原文出处:<a href="http://www.dbanotes.net/oracle/install-oracle10g-suse9.1.htm">http://www.dbanotes.net/oracle/install-oracle10g-suse9.1.htm</a>
本文作者: fenng,现任某美资公司dba,业余时间混迹于各数据库相关的技术论坛。目前关注如何利用oracle数据库有效的构建企业应用。对oracle tuning、troubleshooting有一点研究。个人技术站点: http://www.dbanotes.net/ 。可以通过电子邮件 [email protected] 联系到他。 【返回首页】 本文为dbanotes.net版权所有,转载请注明出处、作者并尽量保留本文所有超链接。
copyleft ? 2004 www.dbanotes.net all rights reserved.i would welcome any feedback. please send questions, comments or corrections to [email protected]