Oracle 11g安装报错You do not have sufficient permissions to access the inventory

问题描述

安装数据库软件时报错:

[oracle@localhost database]$ ./runInstaller
You do not have sufficient permissions to access the inventory '/u01/app/oraInventory'. 
Installation cannot continue. It is required that the primary group of the install user is same as the inventory owner group. 
Make sure that the install user is part of the inventory owner group and restart the installer.: No such file or directory

问题解决

根据提示,以为是解压安装包后的database目录不是oracle用户权限,于是修改database目录权限

[root@localhost data]# ll
total 2487588
drwxr-xr-x 7 root   root            136 Aug 27  2013 database
-rw-r--r-- 1 root   root     1395582860 Aug  5 09:10 p13390677_112040_Linux-x86-64_1of7.zip
-rw-r--r-- 1 root   root     1151304589 Aug  5 09:10 p13390677_112040_Linux-x86-64_2of7.zip
-rw-r--r-- 1 root   root         181294 Jul 31 16:05 pdksh-5.2.14-13.i386.rpm
-rw-r--r-- 1 root   root         210877 Jul 31 16:05 pdksh-5.2.14-37.el5_8.1.x86_64.rpm
drwxr-xr-x 3 root   root             20 Aug  4 15:48 qySoft
drwxr-xr-x 3 oracle oinstall         17 Aug  5 09:19 u01
[root@localhost data]# chown -R oracle:oinstall database
[root@localhost data]# ll
total 2487588
drwxr-xr-x 7 oracle oinstall        136 Aug 27  2013 database
-rw-r--r-- 1 root   root     1395582860 Aug  5 09:10 p13390677_112040_Linux-x86-64_1of7.zip
-rw-r--r-- 1 root   root     1151304589 Aug  5 09:10 p13390677_112040_Linux-x86-64_2of7.zip
-rw-r--r-- 1 root   root         181294 Jul 31 16:05 pdksh-5.2.14-13.i386.rpm
-rw-r--r-- 1 root   root         210877 Jul 31 16:05 pdksh-5.2.14-37.el5_8.1.x86_64.rpm
drwxr-xr-x 3 root   root             20 Aug  4 15:48 qySoft
drwxr-xr-x 3 oracle oinstall         17 Aug  5 09:19 u01
[root@localhost data]# id oracle
uid=1001(oracle) gid=1001(oinstall) groups=1001(oinstall),1002(dba)

依旧报错。
这是由于在相同的机器下,使用不同的用户安装多个版本的数据库或应用软件,Oracle默认会采用/etc/oraInst.loc文件中的参数作为oraInventory目录,而新用户如果没有正确的权限则会造成上述的错误。

解决这个问题,可以删除/etc/oraInst.loc

[root@localhost data]# rm -rf /etc/oraInst.loc
[root@localhost data]# ll
total 2487588
drwxr-xr-x 7 oracle oinstall        136 Aug 27  2013 database
-rw-r--r-- 1 root   root     1395582860 Aug  5 09:10 p13390677_112040_Linux-x86-64_1of7.zip
-rw-r--r-- 1 root   root     1151304589 Aug  5 09:10 p13390677_112040_Linux-x86-64_2of7.zip
-rw-r--r-- 1 root   root         181294 Jul 31 16:05 pdksh-5.2.14-13.i386.rpm
-rw-r--r-- 1 root   root         210877 Jul 31 16:05 pdksh-5.2.14-37.el5_8.1.x86_64.rpm
drwxr-xr-x 3 root   root             20 Aug  4 15:48 qySoft
drwxr-xr-x 3 oracle oinstall         17 Aug  5 09:19 u01

或者在安装时给runInstaller指定参数,使用不同的oraInventory目录即可。

./runInstaller -invPtrLoc /u02/app/oracle/oraInst.loc      

oracle会自动去创建/u02/app/oracle/oraInst.loc这个目录

你可能感兴趣的:(笔记,Oracle,oracle)