你好,游客 登录 注册 搜索
背景:
阅读新闻

如何在一台主机上安装多个版本Oracle 数据库?

[日期:2013-06-29] 来源:Linux社区  作者:royjj [字体:大 中 小]

安装中遇到的的问题及解决方法;
 
(a)
 
Oracle 10201 没有在ol5.x 和 rhel5.x上认证,所以在
 
Linux安装Oracle报Checking operating system version must be RedHat-3, SUSE-9, redhat-4, UnitedLin。。。。。
 

在Linux系统中安装oralce的过程中,如果Linux发行版本不是oracle的推荐版本,可能会报如下错误,导致runInstaller无法完成:
 

Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
 Failed <<<<


遇到这个问题,可以通过如下两种方式解决
 
 
 
1、修改Linux的发行标记
 
如在redhat-5上安装oracle的时候,需要将文件 '/etc/redhat-release'的内容由
 

Red Hat Enterprise Linux Server release 5 (Tikanga)


修改为
 

Red Hat Enterprise Linux Server release 4 (Tikanga)


2、runInstaller的时候加上-ignoreSysPreReqs参数,如:
 

./runInstaller -ignoreSysPreReqs


不过不推荐这种方式,因为这可能会错过对操作系统内核参数以及oracle必需的包的检测。
 

 
 
(b)oraInventory Permission denied

 安装Oracle数据库和应用时经常会遇到下面的错误:
 

All installer requirements met.
 
You do not have sufficient permissions to access the inventory '/u01/app/oracle/oraInventory'. Installation cannot continue.
  Make sure that  you have read/write permissions to the inventory directory and restart the installer.: Permission denied
 
这是由于在相同的机器下,使用不同的用户安装多个版本的数据库或应用软件,Oracle默认会采用/etc/oraInst.loc文件中的参数作为oraInventory目录,而新用户如果没有正确的权限则会造成上述的错误。
 
解决这个问题,可以在安装时给runInstaller指定参数,使用不同的oraInventory目录即可。
 

./runInstaller -invPtrLoc /u02/app/oracle/oraInst.loc        --------/*  ‘/u02/app/oracle/oraInst.loc  ’  oracle会自动去创建这个目录 */
 
 
 
 (c)在安装第二套数据时(我是先安装oracle11g ,再安装oracle10g)好像只需要执行了一个脚本,但在后检测时也没有发现问题。
 
 
 
1.》在安装时会遇到ORA-27125: unable to create shared memory segment
 
解决方法:
 
Oracle文档上关于ORA-27125错误的描述为:
 
ORA-27125: unable to create shared memory segment 
Cause: shmget() call failed   
Action: contact Oracle support
 
查询了一下,发现问题和linux上的hugetbl有关。 
解决方法也很简单,首先检查oracle用户的组信息: 

[oracle10g@lixora ~]$ id oracle 
uid=54322(oracle) gid=502(oinstall) groups=502(oinstall),501(dba)   
[oracle@yans1 ~]$ more /proc/sys/vm/hugetlb_shm_group   
0
 

下面用root执行下面的命令,将dba组添加到系统内核中: 

# echo 54322 > /proc/sys/vm/hugetlb_shm_group
 
 
 
2.》
 Last login: Fri Jun 28 11:40:55 2013 from 192.168.1.2
 [root@lixora ~]# /u02/app/oracle/product/10.2.0/db_1/root.sh
 Running Oracle10 root.sh script...
 
The following environment variables are set as:
    ORACLE_OWNER= oracle10g
    ORACLE_HOME=  /u02/app/oracle/product/10.2.0/db_1

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)

在这里全部选默认即可。

更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12

linux
相关资讯       Oracle 数据库安装 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款