同一台机器安装不同版本的oracle数据库的注意点

来源:互联网 发布:德国进出口贸易数据 编辑:程序博客网 时间:2024/06/16 07:47

安装oracle 10.2.0.1程序
./runInstaller后会报类似:
you do not have sufficient permissions to access the inventory '/oracle/oraInventory'.
Installation cannot continue.Make sure that you have read/write permissions to the inventory
directory and restart the installer.:Permission denied
这是由于在一台机器上同时安装了9i和10g的原因,
可以使用
./runInstaller -invPtrLoc /oraclesid/oraInst.loc命令绕过去,oracle会创建一个新的loc文件
(默认会使用/etc/oraInst.loc和oratab这两个文件)


错误参考:
首先,在执行runInstaller时,系统报错:You do not have sufficient permissions to access the inventory
'/oracle11g/oraInventory'. Installation cannot continue. Make sure that
you have read/write permissions to the inventory directory and restart
the installer.: Permission denied
这里采用的是新建一个10g用户的方法让10g,11g并存,实际上在启动安装程序的时候,oracle会去找/etc/oraInst.loc和oratab这两个文件(hp是/var/opt/oracle)
而在oraInst.loc里面定义了inventory_loc的位置和inst_group,由于之前装过了一个11g,里面的定义都是针对
11g用户设置的,所以才会报错。解决办法是执行runInstaller -invPtrLoc /oracle10g/oraInst.loc
命令就可以绕过去了,oracle会创建一个新的loc文件。

原创粉丝点击