How to generate a specific form through command line and AD "adadmin" utility

 At times, it may be necessary to regenerate a specific form for any number of reasons.


This note provides a detailed example of how to generate a specific form through the AD utility adadmin.


The basic steps are as follows:


1. Select the "Generate Applications Files menu" option.

2. Then select the "Generate forms files" option.

3. Choose the number of workers, the default is recommended and is based off the number of CPUs in your server.

4. Enter "yes" at this prompt to regenerate PL/SQL library files (.pll extension)

5. Enter "yes" at this prompt to regenerate Forms Menu files (.mmb -> .mmx extension)

6. Enter "yes" at this prompt to regenerate Forms Executable files (.fmb -> .fmx extension)

7. Enter the list of products, by short name as they are listed in "$APPL_TOP/". Use commas to separate the product names.

8. If you would like to generate specific files for each product, you may answer "Yes" here and a list of files will be displayed.

9. You may either choose to generate all the previously selected items for all languages or only some of the installed languages.

10. Shows your default and/or selected languages.

11. Enter "yes" if the languages selected are the desired languages.


Start the adadmin Utility

> $AD_TOP/bin/adadmin


Step Through the Initial adadmin Questions
==========================================

Reply to the questions as required:

Your default directory is '**'.

Is this the correct APPL_TOP [Yes] ?

If the above is true, then hit the [Enter] key.


AD Administration records your AD Administration session in a text file

you specify. Enter your AD Administration log file name or press [Return]

to accept the default file name shown in brackets.

This log file will be saved in $APPL_TOP/admin/<INSTANCE_NAME>/log directory.

The next step which requires user interaction is:


You are about to use or modify Oracle Applications product tables 

in your ORACLE database '' 

using ORACLE executables in ''. 

Is this the correct database [Yes] ?

If correct, hit the [Enter] key. Otherwise, exit this utility by typing "abort" plus the [Enter] 

key and verify if your environment has been sourced correctly.


AD Administration needs the password for your 'SYSTEM' ORACLE schema

in order to determine your installation configuration.


Enter the password for your 'SYSTEM' ORACLE schema:

Here you must enter your SYSTEM database user password. There is no default, since adadmin has no way to determine SYSTEM's password.


Connecting to SYSTEM......Connected successfully.

The ORACLE username specified below for Application Object Library

uniquely identifies your existing product group: APPLSYS

Enter the ORACLE password of the Application Object Library [APPS] :

At this point, provide the APPS database user password. By default, the password is APPS.


After finally reaching this point, the utility will try to connect to your database and get information regarding your system.


This will lead to the next menu:

         Maintain Applications Files

   ----------------------------------------


   1.    Create Applications environment file


   2.    Relink Applications programs


   3.    Copy files to destinations


   4.    Convert Character Set


   5.    Verify files necessary for runtime


   6.    Generate message files


   7.    Generate form files


   8.    Generate graphics files


   9.    Generate product jar files


  10.    Return to Main Menu


Enter your choice :  


In order to generate a specific form, select the option "Generate form files". 

Do so by entering the number located at the left of the mentioned option (in this case, 7).  Now, you will be asked for the number of parallel workers that will start generating forms:


Enter the number of workers [3] :


In order to determine the optimal number of workers for your system, you should consider the following general rule:


Total of available workers for your system = (Number of processors) x 3


The next question is:


Do you want to generate Oracle Forms objects

If this is your correct character set, hit [Enter].  


Do you want to regenerate Oracle Forms PL/SQL library files [Yes] ?


In this case, we will not generate any PL/SQL library files, so you might reply 'n' to the above question.


Do you want to regenerate Oracle Forms menu files [Yes] ?

Same as above; reply 'n' to this question.


Do you want to regenerate Oracle Forms executable files [Yes] ?

Here, hit [Enter] to accept the default 'Yes'.


Enter list of products ('all' for all products) [all] :


Now, we need to specify the Application short name. (gl, for General Ledger, ap for Payables, and so on).  


Generate specific forms objects for each selected product [No] ?

Answer 'y' to this question, since it will regenerate all forms for the module selected previously if 'No' is answered here.


The current set of installed languages is: US ESA


Please select languages for generating Oracle Forms files.

You may select all of the above languages, or just a subset.


Enter list of languages ('all' for all of the above) [all] :

In this case, reply 'all', since this will regenerate the form for all existing languages.



You selected the following languages: US ESA


In this case, answer 'y' since this is the correct language.



At this point, you will receive, based on how you answered the questions a list of all possible forms that you are able to regenerate:


Selecting product forms to generate...


Selecting forms for Application Object Library...


List of forms in Application Object Library :


    APPTREE.fmx   FNDADDSQ.fmx   FNDADDTC.fmx   FNDADDVW.fmx    FNDAPLT.fmx

   FNDATCAT.fmx   FNDATDAG.fmx   FNDATDAI.fmx   FNDATDAT.fmx   FNDATDOC.fmx

   FNDATENT.fmx   FNDATFUN.fmx   FNDATTCH.fmx   FNDCPDCL.fmx   FNDCPDCQ.fmx

   FNDCPDCS.fmx   FNDCPDIA.fmx   FNDCPDPD.fmx   FNDCPDSR.fmx   FNDCPMCP.fmx

   FNDCPMMD.fmx   FNDCPMMT.fmx   FNDCPMPE.fmx   FNDCPRNO.fmx   FNDCPVCM.fmx

   FNDCPVWR.fmx   FNDFBMAS.fmx   FNDFBMPA.fmx   FNDFBRFP.fmx   FNDFBTST.fmx

   FNDFFIDF.fmx   FNDFFIIF.fmx   FNDFFMCV.fmx   FNDFFMDC.fmx   FNDFFMHL.fmx

   FNDFFMIS.fmx   FNDFFMSA.fmx   FNDFFMSV.fmx   FNDFFMVS.fmx   FNDFFMWP.fmx

   FNDFFSRA.fmx   FNDFFSRN.fmx   FNDFFTST.fmx   FNDFLADM.fmx   FNDFMFBF.fmx

  &nbsp;FNDFMFUN.fmx   FNDLVMLU.fmx   FNDMDMSG.fmx   FNDMNMNU.fmx   FNDNLDCX.fmx

  &nbsp;FNDNLDLG.fmx   FNDNLDTI.fmx   FNDPMNET.fmx   FNDPOMPO.fmx   FNDPOMPV.fmx

  &nbsp;FNDPOMSV.fmx   FNDPRMPD.fmx   FNDPRMPR.fmx   FNDPRRPS.fmx   FNDPRTYP.fmx

  &nbsp;FNDRSGRP.fmx   FNDRSRUN.fmx   FNDRSSET.fmx   FNDSCAPP.fmx   FNDSCAUS.fmx

  &nbsp;FNDSCDDG.fmx   FNDSCGRP.fmx   FNDSCMON.fmx   FNDSCMOU.fmx   FNDSCPLS.fmx

  &nbsp;FNDSCRSP.fmx   FNDSCSGN.fmx   FNDSNASQ.fmx   FNDSNDCT.fmx   FNDSNDSQ.fmx

  &nbsp;TEMPLATE.fmx


In this example we will try to regenerate FNDCPMCP.fmx.


Enter 'FNDCPMCP.fmx' at the prompt. Once you do so, adadmin will invoke the appropriate forms compiler and will regenerate the forms.


If any error is found, review the adadmin log file and the adworker log file(s).  

The adworker log files are also located under $APPL_TOP/admin/<INSTANCE_NAME>/log directory.  

The file name is adworkxx.log where xx is the number of the worker that had failed.


Compile the individual form through the command line
===============================================


1) If using forms customizations (CUSTOM.pll) then run the command below to compile the form.


frmcmp_batch.sh module=<path to fmb file> userid=APPS/APPS output_file=

<full path to fmx output file> module_type=form compile_all=special


frmcmp_batch.sh module=/u01/oracle/TEST/apps/apps_st/appl/au/12.0.0/forms/US/XXX.fmb userid=APPS/APPS output_file=/u01/oracle/TEST/apps/apps_st/appl/inv/

12.0.0/forms/US/XXX.fmx module_type=form compile_all=special


2) If you are NOT using form customizations, then run the command below to compile the form.


frmcmp_batch.sh module=<path to fmb file> userid=APPS/APPS output_file=<full path to fmx output file> module_type=form


frmcmp_batch.sh module=/u01/oracle/TEST/apps/apps_st/appl/au/12.0.0/forms/US/XXX.fmb userid=APPS/APPS  output_file=/u01/oracle/TEST/apps/apps_st/appl/inv/

12.0.0/forms/US/XXX.fmx module_type=form


For reference Oracle Metalink Support Doc ID (178722.1)

Comments

Popular posts from this blog

How to drop index and before dropping it how to get the DDL.

PRVG-11250 : The check "RPM Package Manager database" was not performed because

ORA-00257:archiver error, connect internal only until freed

Verifying Daemon “Avahi-Daemon” Not Configured And Running …FAILED (PRVG-1360)

Linux OL7/RHEL7: PRVE-0421 : No entry exists in /etc/fstab for mounting /dev/shm

SKIP DNS RESLOV.CONF CHECK DURING RAC CONFIGURATION

CPU Patch Analysis

How to write to a CSV file using Oracle SQL*Plus

How to troubleshoot Long Running Concurrent Request in EBS 12.2

How To Manage Space of The FRA in the Oracle DB