You do not have sufficient permissions to access the inventory '/u01/app/oracle/

安装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会自动去创建这个目录 */ 

猜你喜欢

转载自xukenetwork.iteye.com/blog/2166704
今日推荐