Home › Discussions › Questions & Answers › Forms Compilation Failure: ORA-12154 TNS error

7 replies

  • Support Enginatics

    This error is typically due to the TNS_ADMIN variable being incorrectly set in the forms compilation script, preventing it from finding your tnsnames.ora file.

  • Which specific script needs fixing?

  • Support Enginatics

    You need to edit the $ORACLE_HOME/bin/frmcmp_batch.sh script. Replace the line TNS_ADMIN=$ORACLE_HOME/network/admin with TNS_ADMIN=${TNS_ADMIN:-$ORACLE_HOME/network/admin}.

  • Since this is a common issue, should I fix it elsewhere too?

  • Support Enginatics

    Yes, to ensure the change persists across cloned environments, you should also apply the same correction to the associated template file: $ORACLE_HOME/inventory/Templates/bin/frmcmp_batch.sh.

  • I’m on R12.2. Does that change anything?

  • Support Enginatics

    For R12.2, you must repeat the modifications on both the run and patch file systems to ensure consistency.

  • You must be logged in to reply to this post.