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

Forms Compilation Failure: ORA-12154 TNS error

Avatar photoCustomer December 25, 2019 at 2:43 am

I am experiencing ORA-12154: TNS:could not resolve the connect identifier specified when the installation tries to compile forms.

Viewing 6 reply threads
  • Author
    Replies
    • Support December 27, 2019 at 5:35 am  

      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.

    • Avatar photoCustomer December 28, 2019 at 2:17 pm  

      Which specific script needs fixing?

    • Support December 28, 2019 at 10:18 pm  

      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}.

    • Avatar photoCustomer December 30, 2019 at 1:15 am  

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

    • Support December 31, 2019 at 5:43 pm  

      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.

    • Avatar photoCustomer January 2, 2020 at 4:49 pm  

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

    • Support January 4, 2020 at 12:57 pm  

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

Viewing 6 reply threads
  • You must be logged in to reply to this post.

Login with: