You do not have sufficient permissions to access the inventory ‘/u01/app/oraInventory‘.

孟俊发
2023-12-01

自己环境安装单库oracle软件报错

[oracle@lzl database]$  ./runInstaller -responseFile /soft/database/response/db_install.rsp -silent -ignorePrereq -showProgress 
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

第一反应是我的response文件配置错了,查看配置文件

[root@lzl ~]# grep oraInventory  /soft/database/response/db_install.rsp
INVENTORY_LOCATION=/oracle/app/oraInventory

没有问题

 

尝试图形界面安装,仍然报错,这就跟response文件没有关系了
[oracle@lzl 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

 

查看/etc/oraInst.loc,配置有问题,修改下面的文件

vi /etc/oraInst.loc
inventory_loc=/u01/app/oraInventory
inst_group=oinstall

将inventory_loc修改成:
inventory_loc=/oracle/app/oraInventory

 

再次安装,成功
 ./runInstaller -responseFile /soft/database/response/db_install.rsp -silent -ignorePrereq -showProgress 
 [oracle@lzl database]$  ./runInstaller -responseFile /soft/database/response/db_install.rsp -silent -ignorePrereq -showProgress 
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB.   Actual 11814 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 3779 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2020-07-20_10-47-13AM. Please wait ...[oracle@lzl database]$ You can find the log of this install session at:
 /oracle/app/oraInventory/logs/installActions2020-07-20_10-47-13AM.log

Prepare in progress.
..................................................   9% Done.

Prepare successful.

Copy files in progress.
..................................................   14% Done.
..................................................   20% Done.
..................................................   26% Done.
........................................

 

 

原因分析:

1 由于当前环境以前安装过oracle,删除环境时没有删除干净

2 oracle进程在读取中央文件时先读取/etc/oraInventory,所以更改成自己想要的目录即可

 类似资料: