Amazon books

Tuesday, September 28, 2010

While trying to compile a form with frmcmp_batch.sh got ORA-12154

Example:

[appebs@hom3 PTB]$ frmcmp_batch.sh module=TACCOPH.fmb Userid=apps/appdesenv123 module_type=FORM compile_all=SPECIAL
Forms 10.1 (Form Compiler) Version 10.1.2.0.2 (Production)

Forms 10.1 (Form Compiler): Release - Production

Copyright (c) 1982, 2005, Oracle. All rights reserved.

PL/SQL Version 10.1.0.5.0 (Production)
Oracle Procedure Builder V10.1.2.0.2 - Production
Oracle Virtual Graphics System Version 10.1.2.0.0 (Production)
Oracle Multimedia Version 10.1.2.0.2 (Production)
Oracle Tools Integration Version 10.1.2.0.2 (Production)
Oracle Tools Common Area Version 10.1.2.0.2
Oracle CORE 10.1.0.5.0 Production
ORA-12154: TNS:could not resolve the connect identifier specified


Workaround:
Change TNS_ADMIN on frmcmp_batch.sh like bellow:

--OLD VALUE
TNS_ADMIN=$ORACLE_HOME/network/admin
export TNS_ADMIN

--NEW VALUE
# TNS_ADMIN=$ORACLE_HOME/network/admin
# export TNS_ADMIN

TNS_ADMIN=${TNS_ADMIN:-$ORACLE_HOME/network/admin}
export TNS_ADMIN


OR Apply patch 5456500 as per NOTE 431324.1

Best Regards,
Paulo Portugal

4 comments:

  1. Thanks Paulo, this article is really helpfull !!

    ReplyDelete
  2. Thanks Paulo.. you saved our day.. :)

    joey from philippines.
    joeyski.wordpress.com

    ReplyDelete
  3. Excellent, thanks.

    Miguel Vega(Costa Rica)

    ReplyDelete
  4. Awesome! Thanks a lot!

    ReplyDelete