Skip to content

SEVERE:OUI-10020:The target area /u01/app/oracle/oraInventory/ is being used as a source by another session

What to do if you get the above error when you try to install Oracle SE2 (did not test if the same issue is there with EE, but probably it is) in silent mode?:

./runInstaller oracle.install.option=INSTALL_DB_SWONLY 
    ORACLE_BASE=/u01/app/oracle/ 
    ORACLE_HOME=/u01/app/oracle/product/12.1.0/db_2_4/ 
    UNIX_GROUP_NAME=oinstall  
    oracle.install.db.DBA_GROUP=dba 
    oracle.install.db.OPER_GROUP=dba 
    oracle.install.db.BACKUPDBA_GROUP=dba  
    oracle.install.db.DGDBA_GROUP=dba  
    oracle.install.db.KMDBA_GROUP=dba  
    FROM_LOCATION=../stage/products.xml 
    INVENTORY_LOCATION=/u01/app/oracle/oraInventory/ 
    SELECTED_LANGUAGES=en 
    oracle.install.db.InstallEdition=SE2 
    DECLINE_SECURITY_UPDATES=true  -silent -ignoreSysPrereqs -ignorePrereq -waitForCompletion

You already checked my oracle support and verified that there are no lock files in the oraInventory/locks directory:

ls -la /u01/app/oraIventory/locks

What to do? Follow the error message…:

[FATAL] [INS-10008] Session initialization failed
   CAUSE: An unexpected error occured while initializing the session.
   ACTION: Contact Oracle Support Services or refer logs
   SUMMARY:

… and create a service request in my oracle support? You don’t need to. The error message is a bit misleading. The real issue is only the trailing slash (“/”) at the end of the directory name for the oraInventory. Once you remove it everything works as expected:

./runInstaller oracle.install.option=INSTALL_DB_SWONLY 
    ORACLE_BASE=/u01/app/oracle 
    ORACLE_HOME=/u01/app/oracle/product/12.1.0/db_2_4 
    UNIX_GROUP_NAME=oinstall  
    oracle.install.db.DBA_GROUP=dba 
    oracle.install.db.OPER_GROUP=dba 
    oracle.install.db.BACKUPDBA_GROUP=dba  
    oracle.install.db.DGDBA_GROUP=dba  
    oracle.install.db.KMDBA_GROUP=dba  
    FROM_LOCATION=../stage/products.xml 
    INVENTORY_LOCATION=/u01/app/oracle/oraInventory 
    SELECTED_LANGUAGES=en 
    oracle.install.db.InstallEdition=SE2 
    DECLINE_SECURITY_UPDATES=true  -silent -ignoreSysPrereqs -ignorePrereq -waitForCompletion

And all this because of a slash. I am pretty sure this could be handled better very easily.

Let’s work together

Ready to operate at
the next level?

Tell us about your challenge. We’ll bring the depth, the expertise, and the Swiss precision.

Open source Team

Open source Team

Posts published under the Open source Team account are collective contributions by the dbi services open infrastructure consultants. The practice covers open-source databases and platforms, PostgreSQL first of all, along with MySQL, MariaDB, and Linux, from architecture, replication, and high availability to performance tuning and operations under service level agreements, and contributes actively to the PostgreSQL community.View Author posts

721 posts since September 2011

Leave a Comment

Your email address will not be published. Required fields are marked *