11.11 Oracle Trace File Analyzer Fails to Start with com.sleepycat.je.EnvironmentLockedException Java Exception

Description: Reported errors found in the Oracle Trace File Analyzer syserrorout log located in $TFA_BASE//log are:

/u01/app/oracle/tfa//log$ cat syserrorout.08.06.2015-16.19.54

Exception in thread "TFAMain" com.sleepycat.je.EnvironmentLockedException: (JE 5.0.84) 
/u01/app/oracle/tfa//database/BERKELEY_JE_DB The environment cannot be locked for single writer access. 
ENV_LOCKED: The je.lck file could not be locked. Environment is invalid and must be closed.
at com.sleepycat.je.log.FileManager.(FileManager.java:368)
at com.sleepycat.je.dbi.EnvironmentImpl.(EnvironmentImpl.java:483)
at com.sleepycat.je.dbi.EnvironmentImpl.(EnvironmentImpl.java:409

Cause: The root cause is unknown.


  1. Check if there are any processes accessing the BDB.

    # fuser $GI_BASE/tfa//database/BERKELEY_JE_DB/je.lck
  2. If a process is returned, then kill it.

    # kill -9
  3. Remove the $GI_BASE/tfa//database/BERKELEY_JE_DB/je.lck file.

    # rm -rf $GI_BASE/tfa//database/BERKELEY_JE_DB/je.lck
  4. Start Oracle Trace File Analyzer.

    # $TFA_HOME/bin/tfactl start